ARM: dts: cm-fx6: extend board support
Subsystems (2)
cover ARM: dts: cm-fx6: extend board support
Extend support for cm-fx6 (Utilite) board.
Add SATA, USB OTG, and USB Host port 1 support.
Igor Grinberg (4):
ARM: dts: cm-fx6: rearrange the dts file
ARM: dts: cm-fx6: add SATA support
ARM: dts: cm-fx6: add support for USB OTG
ARM: dts: cm-fx6: add support for USB host port 1
arch/arm/boot/dts/imx6q-cm-fx6.dts | 77 ++++++++++++++++++++++++++++++++------ 1 file changed, 66 insertions(+), 11 deletions(-)
Signature · 1 line
1.8.3.2
PATCH 1/4 ARM: dts: cm-fx6: rearrange the dts file
Move the iomuxc definition before the devices definitions (e.g. gpmi, fec).
--- arch/arm/boot/dts/imx6q-cm-fx6.dts | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-)
arch/arm/boot/dts/imx6q-cm-fx6.dts +13 -11
@@ -31,19 +31,8 @@ linux,default-trigger = "heartbeat"; }; }; -}; -&fec { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_enet>; - phy-mode = "rgmii"; - status = "okay"; -}; -&gpmi { - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_gpmi_nand>; - status = "okay"; }; &iomuxc {
@@ -62,6 +51,19 @@ }; }; +&fec { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_enet>; + phy-mode = "rgmii"; + status = "okay"; +}; + +&gpmi { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpmi_nand>; + status = "okay"; +}; + &uart4 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_uart4>;
Signature · 1 line
1.8.3.2
Sascha Hauer
maintainerPATCH 1/4 ARM: dts: cm-fx6: rearrange the dts file
Hi Igor,
Quoted 2 lines · Igor Grinberg
Move the iomuxc definition before the devices definitions (e.g. gpmi, fec).
The nodes are sorted alphabetically. Please keep them sorted.
Sascha
Signature · 4 lines
Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
PATCH 1/4 ARM: dts: cm-fx6: rearrange the dts file
Hi Sascha,
Quoted 7 lines · Sascha Hauer
Hi Igor,
Quoted 2 lines · Igor Grinberg
Move the iomuxc definition before the devices definitions (e.g. gpmi, fec).
The nodes are sorted alphabetically. Please keep them sorted.
Hmmm.. I missed that point... Thanks!
Will fix this up and resend.
Signature · 2 lines
Regards, Igor.
PATCH 2/4 ARM: dts: cm-fx6: add SATA support
In reply to Igor GrinbergEnable SATA on cm-fx6.
--- arch/arm/boot/dts/imx6q-cm-fx6.dts | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/boot/dts/imx6q-cm-fx6.dts +4 -0
@@ -69,3 +69,7 @@ pinctrl-0 = <&pinctrl_uart4>; status = "okay"; }; + +&sata { + status = "okay"; +};
Signature · 1 line
1.8.3.2
PATCH 2/4 ARM: dts: cm-fx6: add SATA support
Quoted 12 lines · Igor Grinberg
Enable SATA on cm-fx6.
Signed-off-by Igor Grinberg <[email protected]>--- arch/arm/boot/dts/imx6q-cm-fx6.dts | 4 ++++ 1 file changed, 4 insertions(+)arch/arm/boot/dts/imx6q-cm-fx6.dts +0
-0
arch/arm/boot/dts/imx6q-cm-fx6.dts line 75
Quoted 7 lines
arch/arm/boot/dts/imx6q-cm-fx6.dts +4
-0@@ -69,3 +69,7 @@ pinctrl-0 = <&pinctrl_uart4>; status = "okay"; }; + +&sata { + status = "okay"; +};
Please sort these labeled nodes alphabetically.
Shawn
Quoted 3 lines
Signature · 1 line
1.8.3.2
PATCH 2/4 ARM: dts: cm-fx6: add SATA support
Quoted 8 lines · Shawn Guo
Quoted 7 lines · Igor Grinberg
Enable SATA on cm-fx6.
Signed-off-by Igor Grinberg <[email protected]>--- arch/arm/boot/dts/imx6q-cm-fx6.dts | 4 ++++ 1 file changed, 4 insertions(+)
Quoted 14 lines
arch/arm/boot/dts/imx6q-cm-fx6.dts line 75
Quoted 12 lines
arch/arm/boot/dts/imx6q-cm-fx6.dts +4
-0@@ -69,3 +69,7 @@ pinctrl-0 = <&pinctrl_uart4>; status = "okay"; }; + +&sata { + status = "okay"; +};Please sort these labeled nodes alphabetically.
Ok.
I'll wait for the "pingrp macros" to settle down and resend.
Thanks!
Signature · 2 lines
Regards, Igor.
PATCH 3/4 ARM: dts: cm-fx6: add support for USB OTG
In reply to Igor GrinbergSetup pin control, vbus regulator and the usb otg node to enable the USB OTG support.
--- arch/arm/boot/dts/imx6q-cm-fx6.dts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)
arch/arm/boot/dts/imx6q-cm-fx6.dts +26 -0
@@ -32,7 +32,21 @@ }; }; + regulators { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <0>; + reg_usb_otg_vbus: regulator at 0 { + compatible = "regulator-fixed"; + reg = <0>; + regulator-name = "usb_otg_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio3 22 0>; + enable-active-high; + }; + }; }; &iomuxc {
@@ -48,6 +62,10 @@ pinctrl_uart4: uart4grp { fsl,pins = <MX6QDL_UART4_PINGRP1>; }; + + pinctrl_usbotg: usbotggrp { + fsl,pins = <MX6QDL_USBOTG_PINGRP2>; + }; }; };
@@ -73,3 +91,11 @@ &sata { status = "okay"; }; + +&usbotg { + vbus-supply = <®_usb_otg_vbus>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbotg>; + dr_mode = "otg"; + status = "okay"; +};
Signature · 1 line
1.8.3.2
PATCH 4/4 ARM: dts: cm-fx6: add support for USB host port 1
In reply to Igor GrinbergSetup pin control, vbus regulator and the usb host port 1 node to enable the USB host port 1 support.
--- arch/arm/boot/dts/imx6q-cm-fx6.dts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
arch/arm/boot/dts/imx6q-cm-fx6.dts +23 -0
@@ -46,6 +46,16 @@ gpio = <&gpio3 22 0>; enable-active-high; }; + + reg_usb_h1_vbus: regulator at 1 { + compatible = "regulator-fixed"; + reg = <1>; + regulator-name = "usb_h1_vbus"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio7 8 0>; + enable-active-high; + }; }; };
@@ -66,6 +76,12 @@ pinctrl_usbotg: usbotggrp { fsl,pins = <MX6QDL_USBOTG_PINGRP2>; }; + + pinctrl_usbh1: usbh1grp { + fsl,pins = < + MX6QDL_PAD_SD3_RST__GPIO7_IO08 0x80000000 + >; + }; }; };
@@ -99,3 +115,10 @@ dr_mode = "otg"; status = "okay"; }; + +&usbh1 { + vbus-supply = <®_usb_h1_vbus>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usbh1>; + status = "okay"; +};
Signature · 1 line
1.8.3.2