diff options
author | Daniel Golle <daniel@makrotopia.org> | 2019-04-11 22:26:28 +0200 |
---|---|---|
committer | Daniel Golle <daniel@makrotopia.org> | 2019-04-11 22:26:28 +0200 |
commit | 66e2acad9cb0ecada884e58fdeb025f92f2499a3 (patch) | |
tree | e4e348b909e9165c8bdc4978e330798242daff03 | |
parent | b6acb7b718e3bf47f8dfa615345120aad0930bad (diff) | |
download | upstream-66e2acad9cb0ecada884e58fdeb025f92f2499a3.tar.gz upstream-66e2acad9cb0ecada884e58fdeb025f92f2499a3.tar.bz2 upstream-66e2acad9cb0ecada884e58fdeb025f92f2499a3.zip |
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 <daniel@makrotopia.org>
-rw-r--r-- | target/linux/ramips/dts/WRTNODE2R.dts | 12 |
1 files changed, 11 insertions, 1 deletions
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"; }; }; |