projects
/
openwrt
/
staging
/
jow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6acb7b
)
ramips: fix pinctrl to allow hardware i2c on WRTNODE2R
author
Daniel Golle
<daniel@makrotopia.org>
Thu, 11 Apr 2019 20:26:28 +0000
(22:26 +0200)
committer
Daniel Golle
<daniel@makrotopia.org>
Thu, 11 Apr 2019 20:26:28 +0000
(22:26 +0200)
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>
target/linux/ramips/dts/WRTNODE2R.dts
patch
|
blob
|
history
diff --git
a/target/linux/ramips/dts/WRTNODE2R.dts
b/target/linux/ramips/dts/WRTNODE2R.dts
index af67873986857737d299106c52ed20f6f9026609..bfe533c0c36a07b3e4483b207ac6cf6f6e1ec314 100644
(file)
--- 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";
};
};