Skip to content

Commit

Permalink
ramips: fix pinctrl to allow hardware i2c on WRTNODE2R
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dangowrt committed Apr 11, 2019
1 parent b6acb7b commit 66e2aca
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion target/linux/ramips/dts/WRTNODE2R.dts
Expand Up @@ -16,6 +16,9 @@
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";


pinctrl-names = "default";
pinctrl-0 = <&led_pins>;

led_indicator: indicator { led_indicator: indicator {
label = "wrtnode:blue:indicator"; label = "wrtnode:blue:indicator";
gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
Expand All @@ -26,7 +29,14 @@
&pinctrl { &pinctrl {
state_default: pinctrl0 { state_default: pinctrl0 {
gpio { gpio {
ralink,group = "i2c", "gpio", "wled_an"; ralink,group = "gpio";
ralink,function = "gpio";
};
};

led_pins: led {
gpio {
ralink,group = "wled_an";
ralink,function = "gpio"; ralink,function = "gpio";
}; };
}; };
Expand Down

0 comments on commit 66e2aca

Please sign in to comment.