imx: add max7310 and usb support for imx6qdl sabreauto
Subsystems (3)
v2 cover imx: add max7310 and usb support for imx6qdl sabreauto
Changes for v2:
- Delete reset-gpio binding at dts. [Patch 1/3]
Hi Shawn,
In this series, two functions are added for imx6qdl sabreauto board.
- In the 1st patch, the i2c interface gpio expendor max7310 is added
- In the 2nd patch, the USB support is added
- In the 3rd patch, the driver for max7310 is added
Peter Chen (3):
ARM: imx6qdl-sabreauto.dtsi: add max7310 support
ARM: imx6qdl-sabreauto.dtsi: enable USB support
ARM: imx_v6_v7_defconfig: Add CONFIG_GPIO_PCA953X
arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 79 ++++++++++++++++++++++++++++++++ arch/arm/configs/imx_v6_v7_defconfig | 1 + 2 files changed, 80 insertions(+)
Signature · 1 line
1.9.1
PATCH v2 1/3 ARM: imx6qdl-sabreauto.dtsi: add max7310 support
max7310 is an i2c interface gpio expander
--- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+)
arch/arm/boot/dts/imx6qdl-sabreauto.dtsi +35 -0
@@ -182,6 +182,34 @@ }; }; +&i2c3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3>; + pinctrl-assert-gpios = <&gpio5 4 GPIO_ACTIVE_HIGH>; + status = "okay"; + + max7310_a: gpio at 30 { + compatible = "maxim,max7310"; + reg = <0x30>; + gpio-controller; + #gpio-cells = <2>; + }; + + max7310_b: gpio at 32 { + compatible = "maxim,max7310"; + reg = <0x32>; + gpio-controller; + #gpio-cells = <2>; + }; + + max7310_c: gpio at 34 { + compatible = "maxim,max7310"; + reg = <0x34>; + gpio-controller; + #gpio-cells = <2>; + }; +}; + &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>;
@@ -265,6 +293,13 @@ >; }; + pinctrl_i2c3: i2c3grp { + fsl,pins = < + MX6QDL_PAD_GPIO_3__I2C3_SCL 0x4001b8b1 + MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1 + >; + }; + pinctrl_pwm3: pwm1grp { fsl,pins = < MX6QDL_PAD_SD4_DAT1__PWM3_OUT 0x1b0b1
Signature · 1 line
1.9.1
PATCH v2 2/3 ARM: imx6qdl-sabreauto.dtsi: enable USB support
In reply to Peter ChenAdd USBOTG and USB host 1 support
--- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+)
arch/arm/boot/dts/imx6qdl-sabreauto.dtsi +44 -0
@@ -28,6 +28,32 @@ }; }; + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + reg_usb_h1_vbus: regulator at 0 { + compatible = "regulator-fixed"; + reg = <0>; + regulator-name = "usb_h1_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&max7310_b 7 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + + reg_usb_otg_vbus: regulator at 1 { + compatible = "regulator-fixed"; + reg = <1>; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&max7310_c 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + }; + sound-spdif { compatible = "fsl,imx-audio-spdif", "fsl,imx-sabreauto-spdif";
@@ -319,6 +345,12 @@ >; }; + pinctrl_usbotg: usbotggrp { + fsl,pins = < + MX6QDL_PAD_ENET_RX_ER__USB_OTG_ID 0x17059 + >; + }; + pinctrl_usdhc3: usdhc3grp { fsl,pins = < MX6QDL_PAD_SD3_CMD__SD3_CMD 0x17059
@@ -463,6 +495,18 @@ status = "okay"; }; +&usbh1 { + vbus-supply = <®_usb_h1_vbus>; + status = "okay"; +}; + +&usbotg { + vbus-supply = <®_usb_otg_vbus>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbotg>; + status = "okay"; +}; + &usdhc3 { pinctrl-names = "default", "state_100mhz", "state_200mhz"; pinctrl-0 = <&pinctrl_usdhc3>;
Signature · 1 line
1.9.1
PATCH v2 3/3 ARM: imx_v6_v7_defconfig: Add CONFIG_GPIO_PCA953X
In reply to Peter ChenIt is used for max7310 gpio expandor which is used at imx6qdl sabreauto board.
--- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/configs/imx_v6_v7_defconfig +1 -0
@@ -168,6 +168,7 @@ CONFIG_SPI=y CONFIG_SPI_IMX=y CONFIG_GPIO_SYSFS=y CONFIG_GPIO_MC9S08DZ60=y +CONFIG_GPIO_PCA953X=y CONFIG_GPIO_STMPE=y CONFIG_POWER_SUPPLY=y CONFIG_POWER_RESET=y
Signature · 1 line
1.9.1
Shawn Guo
Appliedv2 cover imx: add max7310 and usb support for imx6qdl sabreauto
In reply to Peter ChenQuoted 4 lines · Peter Chen
Peter Chen (3):
ARM:imx6qdl-sabreauto.dtsi: add max7310 support
ARM:imx6qdl-sabreauto.dtsi: enable USB support
ARM:imx_v6_v7_defconfig: AddCONFIG_GPIO_PCA953X
Applied all, thanks.