* [PATCH v2 0/3] imx: add max7310 and usb support for imx6qdl sabreauto
@ 2015-03-13 6:21 Peter Chen
2015-03-13 6:21 ` [PATCH v2 2/3] ARM: imx6qdl-sabreauto.dtsi: enable USB support Peter Chen
[not found] ` <1426227704-26294-1-git-send-email-peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
0 siblings, 2 replies; 5+ messages in thread
From: Peter Chen @ 2015-03-13 6:21 UTC (permalink / raw)
To: shawn.guo
Cc: mark.rutland, devicetree, pawel.moll, robh+dt, Peter Chen, kernel,
linux-arm-kernel
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(+)
--
1.9.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v2 1/3] ARM: imx6qdl-sabreauto.dtsi: add max7310 support
[not found] ` <1426227704-26294-1-git-send-email-peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
@ 2015-03-13 6:21 ` Peter Chen
2015-03-13 6:21 ` [PATCH v2 3/3] ARM: imx_v6_v7_defconfig: Add CONFIG_GPIO_PCA953X Peter Chen
2015-03-13 13:53 ` [PATCH v2 0/3] imx: add max7310 and usb support for imx6qdl sabreauto Shawn Guo
2 siblings, 0 replies; 5+ messages in thread
From: Peter Chen @ 2015-03-13 6:21 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 | 35 ++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi
index 009abd6..46b2fed 100644
--- a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi
@@ -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@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>;
+ };
+
+ max7310_c: gpio@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
--
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] 5+ messages in thread
* [PATCH v2 2/3] ARM: imx6qdl-sabreauto.dtsi: enable USB support
2015-03-13 6:21 [PATCH v2 0/3] imx: add max7310 and usb support for imx6qdl sabreauto Peter Chen
@ 2015-03-13 6:21 ` Peter Chen
[not found] ` <1426227704-26294-1-git-send-email-peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
1 sibling, 0 replies; 5+ messages in thread
From: Peter Chen @ 2015-03-13 6:21 UTC (permalink / raw)
To: shawn.guo
Cc: mark.rutland, devicetree, pawel.moll, robh+dt, Peter Chen, kernel,
linux-arm-kernel
Add USBOTG and USB host 1 support
Signed-off-by: Peter Chen <peter.chen@freescale.com>
---
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 46b2fed..0bedd5d 100644
--- a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi
@@ -28,6 +28,32 @@
};
};
+ 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";
@@ -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>;
--
1.9.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v2 3/3] ARM: imx_v6_v7_defconfig: Add CONFIG_GPIO_PCA953X
[not found] ` <1426227704-26294-1-git-send-email-peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2015-03-13 6:21 ` [PATCH v2 1/3] ARM: imx6qdl-sabreauto.dtsi: add max7310 support Peter Chen
@ 2015-03-13 6:21 ` Peter Chen
2015-03-13 13:53 ` [PATCH v2 0/3] imx: add max7310 and usb support for imx6qdl sabreauto Shawn Guo
2 siblings, 0 replies; 5+ messages in thread
From: Peter Chen @ 2015-03-13 6:21 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] 5+ messages in thread
* Re: [PATCH v2 0/3] imx: add max7310 and usb support for imx6qdl sabreauto
[not found] ` <1426227704-26294-1-git-send-email-peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2015-03-13 6:21 ` [PATCH v2 1/3] ARM: imx6qdl-sabreauto.dtsi: add max7310 support Peter Chen
2015-03-13 6:21 ` [PATCH v2 3/3] ARM: imx_v6_v7_defconfig: Add CONFIG_GPIO_PCA953X Peter Chen
@ 2015-03-13 13:53 ` Shawn Guo
2 siblings, 0 replies; 5+ messages in thread
From: Shawn Guo @ 2015-03-13 13:53 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 Fri, Mar 13, 2015 at 02:21:41PM +0800, Peter Chen wrote:
> 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
Applied all, thanks.
--
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] 5+ messages in thread
end of thread, other threads:[~2015-03-13 13:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-13 6:21 [PATCH v2 0/3] imx: add max7310 and usb support for imx6qdl sabreauto Peter Chen
2015-03-13 6:21 ` [PATCH v2 2/3] ARM: imx6qdl-sabreauto.dtsi: enable USB support Peter Chen
[not found] ` <1426227704-26294-1-git-send-email-peter.chen-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
2015-03-13 6:21 ` [PATCH v2 1/3] ARM: imx6qdl-sabreauto.dtsi: add max7310 support Peter Chen
2015-03-13 6:21 ` [PATCH v2 3/3] ARM: imx_v6_v7_defconfig: Add CONFIG_GPIO_PCA953X Peter Chen
2015-03-13 13:53 ` [PATCH v2 0/3] imx: add max7310 and usb support for imx6qdl sabreauto Shawn Guo
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).