aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/WRTNODE2R.dts
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2019-04-11 22:26:28 +0200
committerDaniel Golle <daniel@makrotopia.org>2019-04-11 22:26:28 +0200
commit66e2acad9cb0ecada884e58fdeb025f92f2499a3 (patch)
treee4e348b909e9165c8bdc4978e330798242daff03 /target/linux/ramips/dts/WRTNODE2R.dts
parentb6acb7b718e3bf47f8dfa615345120aad0930bad (diff)
downloadupstream-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>
Diffstat (limited to 'target/linux/ramips/dts/WRTNODE2R.dts')
-rw-r--r--target/linux/ramips/dts/WRTNODE2R.dts12
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";
};
};