* [PATCH 0/3] imx: add max7310 and usb support for imx6qdl sabreauto @ 2015-03-09 9:28 Peter Chen [not found] ` <1425893288-1517-1-git-send-email-peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org> 0 siblings, 1 reply; 7+ messages in thread From: Peter Chen @ 2015-03-09 9:28 UTC (permalink / raw) To: shawn.guo-QSEj5FYQhm4dnm+yROfE0A Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, kernel-bIcnvbaLZ9MEGnE8C9+IrQ, devicetree-u79uwXL29TY76Z2rM5mHXA, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8, Peter Chen 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 | 87 ++++++++++++++++++++++++++++++++ arch/arm/configs/imx_v6_v7_defconfig | 1 + 2 files changed, 88 insertions(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <1425893288-1517-1-git-send-email-peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org>]
* [PATCH 1/3] ARM: imx6qdl-sabreauto.dtsi: add max7310 support [not found] ` <1425893288-1517-1-git-send-email-peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org> @ 2015-03-09 9:28 ` Peter Chen [not found] ` <1425893288-1517-2-git-send-email-peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org> 2015-03-09 9:28 ` [PATCH 2/3] ARM: imx6qdl-sabreauto.dtsi: enable USB support Peter Chen 2015-03-09 9:28 ` [PATCH 3/3] ARM: imx_v6_v7_defconfig: Add CONFIG_GPIO_PCA953X Peter Chen 2 siblings, 1 reply; 7+ messages in thread From: Peter Chen @ 2015-03-09 9:28 UTC (permalink / raw) To: shawn.guo-QSEj5FYQhm4dnm+yROfE0A Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, kernel-bIcnvbaLZ9MEGnE8C9+IrQ, devicetree-u79uwXL29TY76Z2rM5mHXA, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8, Peter Chen max7310 is an i2c interface gpio expander Signed-off-by: Peter Chen <peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org> --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 43 ++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi index 009abd6..51acfec 100644 --- a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi @@ -28,6 +28,13 @@ }; }; + max7310_reset: max7310-reset { + compatible = "gpio-reset"; + reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; + reset-delay-us = <1>; + #reset-cells = <0>; + }; + sound-spdif { compatible = "fsl,imx-audio-spdif", "fsl,imx-sabreauto-spdif"; @@ -182,6 +189,35 @@ }; }; +&i2c3 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_i2c3>; + pinctrl-assert-gpios = <&gpio5 4 GPIO_ACTIVE_HIGH>; + status = "okay"; + + max7310_a: gpio@30 { + compatible = "maxim,max7310"; + reg = <0x30>; + gpio-controller; + #gpio-cells = <2>; + resets = <&max7310_reset>; + }; + + max7310_b: gpio@32 { + compatible = "maxim,max7310"; + reg = <0x32>; + gpio-controller; + #gpio-cells = <2>; + }; + + max7310_c: gpio@34 { + compatible = "maxim,max7310"; + reg = <0x34>; + gpio-controller; + #gpio-cells = <2>; + }; +}; + &iomuxc { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_hog>; @@ -265,6 +301,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 -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 7+ messages in thread
[parent not found: <1425893288-1517-2-git-send-email-peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org>]
* Re: [PATCH 1/3] ARM: imx6qdl-sabreauto.dtsi: add max7310 support [not found] ` <1425893288-1517-2-git-send-email-peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org> @ 2015-03-11 1:46 ` Shawn Guo 2015-03-13 2:40 ` Peter Chen 0 siblings, 1 reply; 7+ messages in thread From: Shawn Guo @ 2015-03-11 1:46 UTC (permalink / raw) To: Peter Chen Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, kernel-bIcnvbaLZ9MEGnE8C9+IrQ, devicetree-u79uwXL29TY76Z2rM5mHXA, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8 On Mon, Mar 09, 2015 at 05:28:06PM +0800, Peter Chen wrote: > max7310 is an i2c interface gpio expander > > Signed-off-by: Peter Chen <peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org> > --- > arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 43 ++++++++++++++++++++++++++++++++ > 1 file changed, 43 insertions(+) > > diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi > index 009abd6..51acfec 100644 > --- a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi > +++ b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi > @@ -28,6 +28,13 @@ > }; > }; > > + max7310_reset: max7310-reset { > + compatible = "gpio-reset"; The mainline kernel doesn't seem to have a gpio-reset driver/binding yet. Shawn > + reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; > + reset-delay-us = <1>; > + #reset-cells = <0>; > + }; > + > sound-spdif { > compatible = "fsl,imx-audio-spdif", > "fsl,imx-sabreauto-spdif"; > @@ -182,6 +189,35 @@ > }; > }; > > +&i2c3 { > + pinctrl-names = "default"; > + pinctrl-0 = <&pinctrl_i2c3>; > + pinctrl-assert-gpios = <&gpio5 4 GPIO_ACTIVE_HIGH>; > + status = "okay"; > + > + max7310_a: gpio@30 { > + compatible = "maxim,max7310"; > + reg = <0x30>; > + gpio-controller; > + #gpio-cells = <2>; > + resets = <&max7310_reset>; > + }; > + > + max7310_b: gpio@32 { > + compatible = "maxim,max7310"; > + reg = <0x32>; > + gpio-controller; > + #gpio-cells = <2>; > + }; > + > + max7310_c: gpio@34 { > + compatible = "maxim,max7310"; > + reg = <0x34>; > + gpio-controller; > + #gpio-cells = <2>; > + }; > +}; > + > &iomuxc { > pinctrl-names = "default"; > pinctrl-0 = <&pinctrl_hog>; > @@ -265,6 +301,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 > -- > 1.9.1 > -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] ARM: imx6qdl-sabreauto.dtsi: add max7310 support 2015-03-11 1:46 ` Shawn Guo @ 2015-03-13 2:40 ` Peter Chen 2015-03-13 3:37 ` Shawn Guo 0 siblings, 1 reply; 7+ messages in thread From: Peter Chen @ 2015-03-13 2:40 UTC (permalink / raw) To: Shawn Guo Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, pawel.moll-5wv7dgnIgG8@public.gmane.org, mark.rutland-5wv7dgnIgG8@public.gmane.org On Wed, Mar 11, 2015 at 09:46:09AM +0800, Shawn Guo wrote: > On Mon, Mar 09, 2015 at 05:28:06PM +0800, Peter Chen wrote: > > max7310 is an i2c interface gpio expander > > > > Signed-off-by: Peter Chen <peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org> > > --- > > arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 43 ++++++++++++++++++++++++++++++++ > > 1 file changed, 43 insertions(+) > > > > diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi > > index 009abd6..51acfec 100644 > > --- a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi > > +++ b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi > > @@ -28,6 +28,13 @@ > > }; > > }; > > > > + max7310_reset: max7310-reset { > > + compatible = "gpio-reset"; > > The mainline kernel doesn't seem to have a gpio-reset driver/binding > yet. > Yeah, the driver still handles reset by itself instead of DT. Even without reset operation, my max7310 chip works ok. Would you accept that I delete this reset operation and send v2? -- Best Regards, Peter Chen -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 1/3] ARM: imx6qdl-sabreauto.dtsi: add max7310 support 2015-03-13 2:40 ` Peter Chen @ 2015-03-13 3:37 ` Shawn Guo 0 siblings, 0 replies; 7+ messages in thread From: Shawn Guo @ 2015-03-13 3:37 UTC (permalink / raw) To: Peter Chen Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, pawel.moll-5wv7dgnIgG8@public.gmane.org, mark.rutland-5wv7dgnIgG8@public.gmane.org On Fri, Mar 13, 2015 at 10:40:43AM +0800, Peter Chen wrote: > On Wed, Mar 11, 2015 at 09:46:09AM +0800, Shawn Guo wrote: > > On Mon, Mar 09, 2015 at 05:28:06PM +0800, Peter Chen wrote: > > > max7310 is an i2c interface gpio expander > > > > > > Signed-off-by: Peter Chen <peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org> > > > --- > > > arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 43 ++++++++++++++++++++++++++++++++ > > > 1 file changed, 43 insertions(+) > > > > > > diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi > > > index 009abd6..51acfec 100644 > > > --- a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi > > > +++ b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi > > > @@ -28,6 +28,13 @@ > > > }; > > > }; > > > > > > + max7310_reset: max7310-reset { > > > + compatible = "gpio-reset"; > > > > The mainline kernel doesn't seem to have a gpio-reset driver/binding > > yet. > > > > Yeah, the driver still handles reset by itself instead of DT. > Even without reset operation, my max7310 chip works ok. > Would you accept that I delete this reset operation > and send v2? Yes. Shawn -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 7+ messages in thread
* [PATCH 2/3] ARM: imx6qdl-sabreauto.dtsi: enable USB support [not found] ` <1425893288-1517-1-git-send-email-peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org> 2015-03-09 9:28 ` [PATCH 1/3] ARM: imx6qdl-sabreauto.dtsi: add max7310 support Peter Chen @ 2015-03-09 9:28 ` Peter Chen 2015-03-09 9:28 ` [PATCH 3/3] ARM: imx_v6_v7_defconfig: Add CONFIG_GPIO_PCA953X Peter Chen 2 siblings, 0 replies; 7+ messages in thread From: Peter Chen @ 2015-03-09 9:28 UTC (permalink / raw) To: shawn.guo-QSEj5FYQhm4dnm+yROfE0A Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, kernel-bIcnvbaLZ9MEGnE8C9+IrQ, devicetree-u79uwXL29TY76Z2rM5mHXA, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8, Peter Chen Add USBOTG and USB host 1 support Signed-off-by: Peter Chen <peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org> --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi index 51acfec..33f228c 100644 --- a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi @@ -35,6 +35,32 @@ #reset-cells = <0>; }; + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + + reg_usb_h1_vbus: regulator@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@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"; @@ -327,6 +353,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 @@ -471,6 +503,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>; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 7+ messages in thread
* [PATCH 3/3] ARM: imx_v6_v7_defconfig: Add CONFIG_GPIO_PCA953X [not found] ` <1425893288-1517-1-git-send-email-peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org> 2015-03-09 9:28 ` [PATCH 1/3] ARM: imx6qdl-sabreauto.dtsi: add max7310 support Peter Chen 2015-03-09 9:28 ` [PATCH 2/3] ARM: imx6qdl-sabreauto.dtsi: enable USB support Peter Chen @ 2015-03-09 9:28 ` Peter Chen 2 siblings, 0 replies; 7+ messages in thread From: Peter Chen @ 2015-03-09 9:28 UTC (permalink / raw) To: shawn.guo-QSEj5FYQhm4dnm+yROfE0A Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, kernel-bIcnvbaLZ9MEGnE8C9+IrQ, devicetree-u79uwXL29TY76Z2rM5mHXA, robh+dt-DgEjT+Ai2ygdnm+yROfE0A, pawel.moll-5wv7dgnIgG8, mark.rutland-5wv7dgnIgG8, Peter Chen It is used for max7310 gpio expandor which is used at imx6qdl sabreauto board. Signed-off-by: Peter Chen <peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org> --- arch/arm/configs/imx_v6_v7_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig index cf1e71e..75e7a95 100644 --- a/arch/arm/configs/imx_v6_v7_defconfig +++ b/arch/arm/configs/imx_v6_v7_defconfig @@ -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 -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-03-13 3:37 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-03-09 9:28 [PATCH 0/3] imx: add max7310 and usb support for imx6qdl sabreauto Peter Chen [not found] ` <1425893288-1517-1-git-send-email-peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org> 2015-03-09 9:28 ` [PATCH 1/3] ARM: imx6qdl-sabreauto.dtsi: add max7310 support Peter Chen [not found] ` <1425893288-1517-2-git-send-email-peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org> 2015-03-11 1:46 ` Shawn Guo 2015-03-13 2:40 ` Peter Chen 2015-03-13 3:37 ` Shawn Guo 2015-03-09 9:28 ` [PATCH 2/3] ARM: imx6qdl-sabreauto.dtsi: enable USB support Peter Chen 2015-03-09 9:28 ` [PATCH 3/3] ARM: imx_v6_v7_defconfig: Add CONFIG_GPIO_PCA953X Peter Chen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).