diff options
author | Anson Huang <Anson.Huang@nxp.com> | 2018-05-06 14:28:09 +0800 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2018-05-14 22:07:57 +0800 |
commit | f3710d4eea6abf77ffb130bfefb95199f4bf0cab (patch) | |
tree | 43e2e14c21f800f8574648d8c660ca4da2658608 /arch/arm/boot/dts/imx6sx-sabreauto.dts | |
parent | 883474ed8e2e045e0becef3950b452a8bd5dfa41 (diff) | |
download | lwn-f3710d4eea6abf77ffb130bfefb95199f4bf0cab.tar.gz lwn-f3710d4eea6abf77ffb130bfefb95199f4bf0cab.zip |
ARM: dts: imx6sx-sabreauto: add IO expander max7310 support
i.MX6SX Sabre Auto board has two max7310 IO expander on I2C3 bus, add
support for them.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'arch/arm/boot/dts/imx6sx-sabreauto.dts')
-rw-r--r-- | arch/arm/boot/dts/imx6sx-sabreauto.dts | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx6sx-sabreauto.dts b/arch/arm/boot/dts/imx6sx-sabreauto.dts index ae253af53624..4d41b4d114bd 100644 --- a/arch/arm/boot/dts/imx6sx-sabreauto.dts +++ b/arch/arm/boot/dts/imx6sx-sabreauto.dts @@ -73,6 +73,13 @@ >; }; + pinctrl_i2c3: i2c3grp { + fsl,pins = < + MX6SX_PAD_KEY_ROW4__I2C3_SDA 0x4001b8b1 + MX6SX_PAD_KEY_COL4__I2C3_SCL 0x4001b8b1 + >; + }; + pinctrl_uart1: uart1grp { fsl,pins = < MX6SX_PAD_GPIO1_IO04__UART1_TX 0x1b0b1 @@ -262,3 +269,24 @@ #gpio-cells = <2>; }; }; + +&i2c3 { + clock-frequency = <100000>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3>; + status = "okay"; + + max7310_a: gpio@30 { + compatible = "maxim,max7310"; + reg = <0x30>; + gpio-controller; + #gpio-cells = <2>; + }; + + max7310_b: gpio@32 { + compatible = "maxim,max7310"; + reg = <0x32>; + gpio-controller; + #gpio-cells = <2>; + }; +}; |