From: Daniel Golle Date: Thu, 11 Apr 2019 20:26:28 +0000 (+0200) Subject: ramips: fix pinctrl to allow hardware i2c on WRTNODE2R X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=66e2acad9cb0ecada884e58fdeb025f92f2499a3;p=openwrt%2Fstaging%2Faparcar.git 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 --- diff --git a/target/linux/ramips/dts/WRTNODE2R.dts b/target/linux/ramips/dts/WRTNODE2R.dts index af67873986..bfe533c0c3 100644 --- a/target/linux/ramips/dts/WRTNODE2R.dts +++ b/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"; }; };