X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=target%2Flinux%2Framips%2Fdts%2FHLKRM04.dts;fp=target%2Flinux%2Framips%2Fdts%2FHLKRM04.dts;h=713b51f29bc2a249f16f6c91f516c9d0af8459f9;hb=553a7b4b0cf91fba7df31eec5191a74e779b8aac;hp=5f43642c12c00f70fed3ed670c3c1c05b4149278;hpb=94f3e1bcd418d57114faa35cfeaf7def06e3596d;p=openwrt.git diff --git a/target/linux/ramips/dts/HLKRM04.dts b/target/linux/ramips/dts/HLKRM04.dts index 5f43642c12..713b51f29b 100644 --- a/target/linux/ramips/dts/HLKRM04.dts +++ b/target/linux/ramips/dts/HLKRM04.dts @@ -60,7 +60,7 @@ pinctrl { state_default: pinctrl0 { gpio { - ralink,group = "jtag"; + ralink,group = "i2c", "jtag"; ralink,function = "gpio"; }; }; @@ -82,6 +82,25 @@ status = "okay"; }; + gpio-export { + compatible = "gpio-export"; + #size-cells = <0>; + + /* I2C */ + gpio1 { + /* I2C_I2C_SD */ + gpio-export,name = "hlk-rm04:gpio0"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 1 0>; + }; + gpio2 { + /* I2C_I2C_SCLK */ + gpio-export,name = "hlk-rm04:gpio1"; + gpio-export,direction_may_change = <1>; + gpios = <&gpio0 2 0>; + }; + }; + gpio-keys-polled { compatible = "gpio-keys-polled"; #address-cells = <1>;