Skip to contentSkip to conversation

arm64: zynqmp: Various DT fixes

PATCH Superseded Michal Simek 2 participants 8 messages Jan 9, 2020

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover arm64: zynqmp: Various DT fixes

Hi,

I am sending various DT fixes which have been found over the xilinx release.
1-2 patches are fixing reported description issues
3-6 patches are actual fixes.

Thanks,
Michal

Michal Simek (5):
arm64: zynqmp: Fix address for tca6416_u97 chip on zcu104
arm64: zynqmp: Turn comment to gpio-line-names
arm64: zynqmp: Setup clock-output-names for si570 chips
arm64: zynqmp: Remove broken-cd from zcu100-revC
arm64: zynqmp: Setup default number of chipselects for zcu100

Venkatesh Yadav Abbarapu (1):
arm64: zynqmp: Fix the si570 clock frequency on zcu111

 .../boot/dts/xilinx/zynqmp-zcu100-revC.dts    |  3 +-
 .../boot/dts/xilinx/zynqmp-zcu102-revA.dts    | 45 +++++--------------
 .../boot/dts/xilinx/zynqmp-zcu104-revA.dts    |  4 +-
 .../boot/dts/xilinx/zynqmp-zcu106-revA.dts    |  2 +
 .../boot/dts/xilinx/zynqmp-zcu111-revA.dts    |  4 +-
 5 files changed, 20 insertions(+), 38 deletions(-)
Signature · 1 line
2.24.0
#1 lore raw

PATCH 1/6 arm64: zynqmp: Fix address for tca6416_u97 chip on zcu104

I2c address is not 0x21 but 0x20.

---

 arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm64/boot/dts/xilinx/zynqmp-zcu104-revA.dts +2 -2
index 2d71b4431cce..7a4614e3f5fa 100644
@@ -118,9 +118,9 @@ i2c@4 {
 			#address-cells = <1>;
 			#size-cells = <0>;
 			reg = <4>;
-			tca6416_u97: gpio@21 {
+			tca6416_u97: gpio@20 {
 				compatible = "ti,tca6416";
-				reg = <0x21>;
+				reg = <0x20>;
 				gpio-controller;
 				#gpio-cells = <2>;
 				/*
Signature · 1 line
2.24.0
#2 lore raw

PATCH 2/6 arm64: zynqmp: Turn comment to gpio-line-names

In reply to Michal Simek

Label gpio lines properly.

---

 .../boot/dts/xilinx/zynqmp-zcu102-revA.dts    | 43 ++++---------------
 1 file changed, 9 insertions(+), 34 deletions(-)
arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts +9 -34
index 7c6b538490f8..c96e8416fa7e 100644
@@ -125,21 +125,11 @@ &i2c0 {
 	tca6416_u97: gpio@20 {
 		compatible = "ti,tca6416";
 		reg = <0x20>;
-		gpio-controller;
+		gpio-controller; /* IRQ not connected */
 		#gpio-cells = <2>;
-		/*
-		 * IRQ not connected
-		 * Lines:
-		 * 0 - PS_GTR_LAN_SEL0
-		 * 1 - PS_GTR_LAN_SEL1
-		 * 2 - PS_GTR_LAN_SEL2
-		 * 3 - PS_GTR_LAN_SEL3
-		 * 4 - PCI_CLK_DIR_SEL
-		 * 5 - IIC_MUX_RESET_B
-		 * 6 - GEM3_EXP_RESET_B
-		 * 7, 10 - 17 - not connected
-		 */
-
+		gpio-line-names = "PS_GTR_LAN_SEL0", "PS_GTR_LAN_SEL1", "PS_GTR_LAN_SEL2", "PS_GTR_LAN_SEL3",
+				"PCI_CLK_DIR_SEL", "IIC_MUX_RESET_B", "GEM3_EXP_RESET_B",
+				"", "", "", "", "", "", "", "", "";
 		gtr-sel0 {
 			gpio-hog;
 			gpios = <0 0>;
@@ -169,27 +159,12 @@ gtr-sel3 {
 	tca6416_u61: gpio@21 {
 		compatible = "ti,tca6416";
 		reg = <0x21>;
-		gpio-controller;
+		gpio-controller; /* IRQ not connected */
 		#gpio-cells = <2>;
-		/*
-		 * IRQ not connected
-		 * Lines:
-		 * 0 - VCCPSPLL_EN
-		 * 1 - MGTRAVCC_EN
-		 * 2 - MGTRAVTT_EN
-		 * 3 - VCCPSDDRPLL_EN
-		 * 4 - MIO26_PMU_INPUT_LS
-		 * 5 - PL_PMBUS_ALERT
-		 * 6 - PS_PMBUS_ALERT
-		 * 7 - MAXIM_PMBUS_ALERT
-		 * 10 - PL_DDR4_VTERM_EN
-		 * 11 - PL_DDR4_VPP_2V5_EN
-		 * 12 - PS_DIMM_VDDQ_TO_PSVCCO_ON
-		 * 13 - PS_DIMM_SUSPEND_EN
-		 * 14 - PS_DDR4_VTERM_EN
-		 * 15 - PS_DDR4_VPP_2V5_EN
-		 * 16 - 17 - not connected
-		 */
+		gpio-line-names = "VCCPSPLL_EN", "MGTRAVCC_EN", "MGTRAVTT_EN", "VCCPSDDRPLL_EN", "MIO26_PMU_INPUT_LS",
+				"PL_PMBUS_ALERT", "PS_PMBUS_ALERT", "MAXIM_PMBUS_ALERT", "PL_DDR4_VTERM_EN",
+				"PL_DDR4_VPP_2V5_EN", "PS_DIMM_VDDQ_TO_PSVCCO_ON", "PS_DIMM_SUSPEND_EN",
+				"PS_DDR4_VTERM_EN", "PS_DDR4_VPP_2V5_EN", "", "";
 	};
 
 	i2c-mux@75 { /* u60 */
Signature · 1 line
2.24.0
#3 lore raw

PATCH 3/6 arm64: zynqmp: Setup clock-output-names for si570 chips

In reply to Michal Simek

If there are more instances of si570 clock-output-names property should be used for differentiation of clock output.
The patch is adding this optional properties for all zynqmp boards with si570 chip.

---

 arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts | 2 ++
 arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts | 2 ++
 arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts | 2 ++
 3 files changed, 6 insertions(+)
arch/arm64/boot/dts/xilinx/zynqmp-zcu102-revA.dts +2 -0
index c96e8416fa7e..845671447f60 100644
@@ -389,6 +389,7 @@ si570_1: clock-generator@5d { /* USER SI570 - u42 */
 				temperature-stability = <50>;
 				factory-fout = <300000000>;
 				clock-frequency = <300000000>;
+				clock-output-names = "si570_user";
 			};
 		};
 		i2c@3 {
@@ -402,6 +403,7 @@ si570_2: clock-generator@5d { /* USER MGT SI570 - u56 */
 				temperature-stability = <50>; /* copy from zc702 */
 				factory-fout = <156250000>;
 				clock-frequency = <148500000>;
+				clock-output-names = "si570_mgt";
 			};
 		};
 		i2c@4 {
arch/arm64/boot/dts/xilinx/zynqmp-zcu106-revA.dts +2 -0
index ae62fe4287c2..822de6f04725 100644
@@ -388,6 +388,7 @@ si570_1: clock-generator@5d { /* USER SI570 - u42 */
 				temperature-stability = <50>;
 				factory-fout = <300000000>;
 				clock-frequency = <300000000>;
+				clock-output-names = "si570_user";
 			};
 		};
 		i2c@3 {
@@ -401,6 +402,7 @@ si570_2: clock-generator@5d { /* USER MGT SI570 - u56 */
 				temperature-stability = <50>; /* copy from zc702 */
 				factory-fout = <156250000>;
 				clock-frequency = <148500000>;
+				clock-output-names = "si570_mgt";
 			};
 		};
 		i2c@4 {
arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts +2 -0
index b3c29947d6b3..022c732005ee 100644
@@ -304,6 +304,7 @@ si570_1: clock-generator@5d { /* USER SI570 - u47 */
 				temperature-stability = <50>;
 				factory-fout = <300000000>;
 				clock-frequency = <300000000>;
+				clock-output-names = "si570_user";
 			};
 		};
 		i2c@3 {
@@ -317,6 +318,7 @@ si570_2: clock-generator@5d { /* USER MGT SI570 - u49 */
 				temperature-stability = <50>;
 				factory-fout = <156250000>;
 				clock-frequency = <148500000>;
+				clock-output-names = "si570_mgt";
 			};
 		};
 		i2c@4 {
Signature · 1 line
2.24.0
#4 lore raw

PATCH 4/6 arm64: zynqmp: Fix the si570 clock frequency on zcu111

In reply to Michal Simek

From: Venkatesh Yadav Abbarapu <[email protected]>

The si570 clock frequency should be 156.25MHz as per datasheet.

---

 arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/xilinx/zynqmp-zcu111-revA.dts +1 -1
index 022c732005ee..cb2e46833a7b 100644
@@ -317,7 +317,7 @@ si570_2: clock-generator@5d { /* USER MGT SI570 - u49 */
 				reg = <0x5d>;
 				temperature-stability = <50>;
 				factory-fout = <156250000>;
-				clock-frequency = <148500000>;
+				clock-frequency = <156250000>;
 				clock-output-names = "si570_mgt";
 			};
 		};
Signature · 1 line
2.24.0
#5 lore raw

PATCH 5/6 arm64: zynqmp: Remove broken-cd from zcu100-revC

In reply to Michal Simek

Card detect bit was broken on revA and it is working fine with revC board that's why this property can be removed.

---

 arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts | 1 -
 1 file changed, 1 deletion(-)
arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts +0 -1
index dd60f7d85cc8..2b3757dd74cc 100644
@@ -226,7 +226,6 @@ &rtc {
 &sdhci0 {
 	status = "okay";
 	no-1-8-v;
-	broken-cd; /* CD has to be enabled by default */
 	disable-wp;
 };
 
Signature · 1 line
2.24.0
#6 lore raw

PATCH 6/6 arm64: zynqmp: Setup default number of chipselects for zcu100

In reply to Michal Simek

There is only one chipselect on each connector. Define it directly in board dts file.
There should be an option to use more chipselects via gpios.

---

 arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts | 2 ++
 1 file changed, 2 insertions(+)
arch/arm64/boot/dts/xilinx/zynqmp-zcu100-revC.dts +2 -0
index 2b3757dd74cc..a109e82982ae 100644
@@ -250,11 +250,13 @@ wlcore: wifi@2 {
 &spi0 { /* Low Speed connector */
 	status = "okay";
 	label = "LS-SPI0";
+	num-cs = <1>;
 };
 
 &spi1 { /* High Speed connector */
 	status = "okay";
 	label = "HS-SPI1";
+	num-cs = <1>;
 };
 
 &uart0 {
Signature · 1 line
2.24.0
#7 lore raw
In reply to Michal Simek

čt 9. 1. 2020 v 14:39 odesílatel Michal Simek <[email protected]> napsal:

Quoted 29 lines

Hi,

I am sending various DT fixes which have been found over the xilinx release.
1-2 patches are fixing reported description issues
3-6 patches are actual fixes.

Thanks,
Michal

Michal Simek (5):
arm64: zynqmp: Fix address for tca6416_u97 chip on zcu104
arm64: zynqmp: Turn comment to gpio-line-names
arm64: zynqmp: Setup clock-output-names for si570 chips
arm64: zynqmp: Remove broken-cd from zcu100-revC
arm64: zynqmp: Setup default number of chipselects for zcu100

Venkatesh Yadav Abbarapu (1):
arm64: zynqmp: Fix the si570 clock frequency on zcu111

 .../boot/dts/xilinx/zynqmp-zcu100-revC.dts    |  3 +-
 .../boot/dts/xilinx/zynqmp-zcu102-revA.dts    | 45 +++++--------------
 .../boot/dts/xilinx/zynqmp-zcu104-revA.dts    |  4 +-
 .../boot/dts/xilinx/zynqmp-zcu106-revA.dts    |  2 +
 .../boot/dts/xilinx/zynqmp-zcu111-revA.dts    |  4 +-
 5 files changed, 20 insertions(+), 38 deletions(-)
Quoted 3 lines

--
2.24.0

Please ignore this patchset. I sent just 6 patches instead of 8 that's why description here is not correct.

Thanks,
Michal

Signature · 5 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs