Skip to contentSkip to conversation

ARM:dts:imx6:phyflex: dt update

PATCH New Christian Hemp 3 participants 10 messages Nov 14, 2014 – Nov 19, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover ARM:dts:imx6:phyflex: dt update

This series updates the PHYTEC phyFLEX-i.MX6 board.
- set nodes in correct order
- enables gpmi in pfla02
- sets the correct PMIC interrupt
- add support for PCIe and CAN

Based on branch for-next from Shawn Guo:
git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git

Christian Hemp (5):
ARM:dts:imx6:phyFLEX: set nodes in alphabetical order ARM:dts:imx6:phyFLEX: Enable gpmi in module file ARM:dts:imx6:phyFLEX: Set correct interrupt for pmic ARM:dts:imx6:phyFLEX: Add PCIe ARM:dts:imx6:phyFLEX: Add CAN support

 arch/arm/boot/dts/imx6qdl-phytec-pbab01.dtsi |  8 +++-
 arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 56 ++++++++++++++++++++--------
 2 files changed, 46 insertions(+), 18 deletions(-)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/5 ARM:dts:imx6:phyFLEX: set nodes in alphabetical order

The gmpi and fec node were not in alphabatical order.

---
 arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 32 ++++++++++++++--------------
 1 file changed, 16 insertions(+), 16 deletions(-)
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +16 -16
index ab3b1f9..585b823 100644
@@ -78,6 +78,22 @@
 	};
 };
 
+&fec {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_enet>;
+	phy-mode = "rgmii";
+	phy-reset-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
+	phy-supply = <&vdd_eth_io_reg>;
+	status = "disabled";
+};
+
+&gpmi {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_gpmi_nand>;
+	nand-on-flash-bbt;
+	status = "disabled";
+};
+
 &i2c1 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_i2c1>;
@@ -337,22 +353,6 @@
 	};
 };
 
-&fec {
-	pinctrl-names = "default";
-	pinctrl-0 = <&pinctrl_enet>;
-	phy-mode = "rgmii";
-	phy-reset-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>;
-	phy-supply = <&vdd_eth_io_reg>;
-	status = "disabled";
-};
-
-&gpmi {
-	pinctrl-names = "default";
-	pinctrl-0 = <&pinctrl_gpmi_nand>;
-	nand-on-flash-bbt;
-	status = "disabled";
-};
-
 &uart3 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_uart3>;
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/5 ARM:dts:imx6:phyFLEX: Enable gpmi in module file

In reply to Christian Hemp

The nand is on the module (PFL-A-02) and not on the baseboard (PBA-B-01).

---
 arch/arm/boot/dts/imx6qdl-phytec-pbab01.dtsi | 4 ----
 arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 2 +-
 2 files changed, 1 insertion(+), 5 deletions(-)
arch/arm/boot/dts/imx6qdl-phytec-pbab01.dtsi +0 -4
index 6b2c892..111b1f5 100644
@@ -105,10 +105,6 @@
 	status = "okay";
 };
 
-&gpmi {
-	status = "okay";
-};
-
 &hdmi {
 	status = "okay";
 };
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +1 -1
index 585b823..af30653 100644
@@ -91,7 +91,7 @@
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_gpmi_nand>;
 	nand-on-flash-bbt;
-	status = "disabled";
+	status = "okay";
 };
 
 &i2c1 {
Signature · 1 line
1.9.1
#3 lore raw

PATCH 2/5 ARM:dts:imx6:phyFLEX: Enable gpmi in module file

arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi line 96

Quoted 10 lines · On Friday 14 November 2014 14:32:23 Christian Hemp wrote:
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +1 -1
@@ -91,7 +91,7 @@
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_gpmi_nand>;
        nand-on-flash-bbt;
-       status = "disabled";
+       status = "okay";
 };
 

No need for the property unless you are overriding a 'status="disabled"' from another file. Just remove this property here.

Arnd

#4 lore raw

PATCH 2/5 ARM:dts:imx6:phyFLEX: Enable gpmi in module file

Hello Arnd,

Am Freitag, 14. November 2014, 15:55:11 schrieb Arnd Bergmann:

Quoted 9 lines · On Friday 14 November 2014 14:32:23 Christian Hemp wrote:
Quoted 8 lines
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +0 -0
@@ -91,7 +91,7 @@
 
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_gpmi_nand>;
        nand-on-flash-bbt;
 
Quoted 7 lines
Quoted 4 lines
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +1 -1
-       status = "disabled";
+       status = "okay";
 

};

No need for the property unless you are overriding a 'status="disabled"' from another file. Just remove this property here.

the status is disabled in 'arch/arm/boot/dts/imx6qdl.dtsi'.
That why I enabled it in the 'arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi'.

Christian

Quoted 2 lines

Arnd

#5 lore raw

PATCH 2/5 ARM:dts:imx6:phyFLEX: Enable gpmi in module file

Quoted 13 lines · On Monday 17 November 2014 09:27:37 Christian Hemp wrote:

Am Freitag, 14. November 2014, 15:55:11 schrieb Arnd Bergmann:

Quoted 12 lines · On Friday 14 November 2014 14:32:23 Christian Hemp wrote:
Quoted 11 lines
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +1 -1
@@ -91,7 +91,7 @@
 
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_gpmi_nand>;
        nand-on-flash-bbt;
 
-       status = "disabled";
+       status = "okay";
 
Quoted 8 lines
Quoted 4 lines
Quoted 1 line

};

No need for the property unless you are overriding a 'status="disabled"' from another file. Just remove this property here.

the status is disabled in 'arch/arm/boot/dts/imx6qdl.dtsi'.
That why I enabled it in the 'arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi'.

Ok, makes sense. Thanks for the clarification.

Arnd

#6 lore raw

PATCH 3/5 ARM:dts:imx6:phyFLEX: Set correct interrupt for pmic

In reply to Christian Hemp

The PMIC interrupt was changed from modul revision 1 to 2. Revision 1 was declared as a prototype and is not in series by any customers.

---
 arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +3 -3
index af30653..8d718b5 100644
@@ -107,8 +107,8 @@
 	pmic at 58 {
 		compatible = "dlg,da9063";
 		reg = <0x58>;
-		interrupt-parent = <&gpio4>;
-		interrupts = <17 0x8>; /* active-low GPIO4_17 */
+		interrupt-parent = <&gpio2>;
+		interrupts = <9 0x8>; /* active-low GPIO2_9 */
 
 		regulators {
 			vddcore_reg: bcore1 {
@@ -205,7 +205,7 @@
 			fsl,pins = <
 				MX6QDL_PAD_EIM_D23__GPIO3_IO23 0x80000000
 				MX6QDL_PAD_DISP0_DAT3__GPIO4_IO24 0x80000000 /* SPI NOR chipselect */
-				MX6QDL_PAD_DI0_PIN15__GPIO4_IO17  0x80000000 /* PMIC interrupt */
+				MX6QDL_PAD_SD4_DAT1__GPIO2_IO09  0x80000000 /* PMIC interrupt */
 				MX6QDL_PAD_ENET_TXD0__GPIO1_IO30 0x80000000 /* Green LED */
 				MX6QDL_PAD_EIM_EB3__GPIO2_IO31 0x80000000 /* Red LED */
 			>;
Signature · 1 line
1.9.1
#7 lore raw

PATCH 4/5 ARM:dts:imx6:phyFLEX: Add PCIe

In reply to Christian Hemp

Add PCIe support for Phytec phyFLEX-i.MX6 (PFL-A-02 and PBA-B-01).

---
 arch/arm/boot/dts/imx6qdl-phytec-pbab01.dtsi |  4 ++++
 arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 11 +++++++++++
 2 files changed, 15 insertions(+)
arch/arm/boot/dts/imx6qdl-phytec-pbab01.dtsi +4 -0
index 111b1f5..7634cc1 100644
@@ -144,6 +144,10 @@
 	status = "okay";
 };
 
+&pcie {
+	status = "okay";
+};
+
 &ssi2 {
 	status = "okay";
 };
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +11 -0
index 8d718b5..2d72109 100644
@@ -283,6 +283,10 @@
 			>;
 		};
 
+		pinctrl_pcie: pciegrp {
+			fsl,pins = <MX6QDL_PAD_DI0_PIN15__GPIO4_IO17  0x80000000>;
+		};
+
 		pinctrl_uart3: uart3grp {
 			fsl,pins = <
 				MX6QDL_PAD_EIM_D24__UART3_TX_DATA	0x1b0b1
@@ -353,6 +357,13 @@
 	};
 };
 
+&pcie {
+	pinctrl-name = "default";
+	pinctrl-0 = <&pinctrl_pcie>;
+	reset-gpio = <&gpio4 17 0>;
+	status = "disabled";
+};
+
 &uart3 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_uart3>;
Signature · 1 line
1.9.1
#8 lore raw

PATCH 5/5 ARM:dts:imx6:phyFLEX: Add CAN support

In reply to Christian Hemp

Add CAN support for Phytec phyFLEX-i.MX6 (PFL-A-02 and PBA-B-01).

---
 arch/arm/boot/dts/imx6qdl-phytec-pbab01.dtsi |  4 ++++
 arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi | 13 +++++++++++++
 2 files changed, 17 insertions(+)
arch/arm/boot/dts/imx6qdl-phytec-pbab01.dtsi +4 -0
index 7634cc1..585b4f6 100644
@@ -101,6 +101,10 @@
 	};
 };
 
+&can1 {
+	status = "okay";
+};
+
 &fec {
 	status = "okay";
 };
arch/arm/boot/dts/imx6qdl-phytec-pfla02.dtsi +13 -0
index 2d72109..19cc269 100644
@@ -64,6 +64,12 @@
 	status = "disabled";
 };
 
+&can1 {
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_flexcan1>;
+	status = "disabled";
+};
+
 &ecspi3 {
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_ecspi3>;
@@ -240,6 +246,13 @@
 			>;
 		};
 
+		pinctrl_flexcan1: flexcan1grp {
+			fsl,pins = <
+				MX6QDL_PAD_KEY_ROW2__FLEXCAN1_RX	0x1b0b0
+				MX6QDL_PAD_KEY_COL2__FLEXCAN1_TX	0x1b0b0
+			>;
+		};
+
 		pinctrl_gpmi_nand: gpminandgrp {
 			fsl,pins = <
 				MX6QDL_PAD_NANDF_CLE__NAND_CLE		0xb0b1
Signature · 1 line
1.9.1
Applied
#9 lore raw

cover ARM:dts:imx6:phyflex: dt update

In reply to Christian Hemp
Quoted 9 lines · Christian Hemp

This series updates the PHYTEC phyFLEX-i.MX6 board.
- set nodes in correct order
- enables gpmi in pfla02
- sets the correct PMIC interrupt
- add support for PCIe and CAN

Based on branch for-next from Shawn Guo:
git://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux.git

Quoted 6 lines

Christian Hemp (5):
ARM:dts:imx6:phyFLEX: set nodes in alphabetical order ARM:dts:imx6:phyFLEX: Enable gpmi in module file ARM:dts:imx6:phyFLEX: Set correct interrupt for pmic ARM:dts:imx6:phyFLEX: Add PCIe ARM:dts:imx6:phyFLEX: Add CAN support

Applied all, thanks.