ath79: allow use GPIO17 as regular gpio on GL-AR300M devices
Small update to my previous path 'fix I2C on GL-AR300M devices'. This update allow using GPIO17 as regular GPIO in case it not used as I2C SDA line. Signed-off-by: Ptilopsis Leucotis <PtilopsisLeucotis@yandex.com> (cherry picked from commit 493080815d2ba6e3b7740dbd45c44310935aeebc)
This commit is contained in:
parent
c29641f718
commit
e8fedf26ab
@ -72,9 +72,6 @@
|
|||||||
i2c: i2c {
|
i2c: i2c {
|
||||||
compatible = "i2c-gpio";
|
compatible = "i2c-gpio";
|
||||||
|
|
||||||
pinctrl-names = "default";
|
|
||||||
pinctrl-0 = <&enable_gpio17>;
|
|
||||||
|
|
||||||
sda-gpios = <&gpio 17 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
|
sda-gpios = <&gpio 17 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
|
||||||
scl-gpios = <&gpio 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
|
scl-gpios = <&gpio 16 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
|
||||||
};
|
};
|
||||||
@ -186,6 +183,9 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&pinmux {
|
&pinmux {
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&enable_gpio17>;
|
||||||
|
|
||||||
enable_gpio17: pinmux_enable_gpio17 {
|
enable_gpio17: pinmux_enable_gpio17 {
|
||||||
pinctrl-single,bits = <0x10 0x0000 0xff00>;
|
pinctrl-single,bits = <0x10 0x0000 0xff00>;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user