Procházet zdrojové kódy

ramips: fix pinctrl to allow hardware i2c on WRTNODE2R

Instead of assigning I2C pins as GPIOs by default, leave it up to the
user whether to install kmod-i2c-mt7621 and use them for hardware I2C
instead.

Signed-off-by: Daniel Golle <[email protected]>
Daniel Golle před 6 roky
rodič
revize
66e2acad9c
1 změnil soubory, kde provedl 11 přidání a 1 odebrání
  1. 11 1
      target/linux/ramips/dts/WRTNODE2R.dts

+ 11 - 1
target/linux/ramips/dts/WRTNODE2R.dts

@@ -16,6 +16,9 @@
 	leds {
 		compatible = "gpio-leds";
 
+		pinctrl-names = "default";
+		pinctrl-0 = <&led_pins>;
+
 		led_indicator: indicator {
 			label = "wrtnode:blue:indicator";
 			gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
@@ -26,7 +29,14 @@
 &pinctrl {
 	state_default: pinctrl0 {
 		gpio {
-			ralink,group = "i2c", "gpio", "wled_an";
+			ralink,group = "gpio";
+			ralink,function = "gpio";
+		};
+	};
+
+	led_pins: led {
+		gpio {
+			ralink,group = "wled_an";
 			ralink,function = "gpio";
 		};
 	};