Skip to contentSkip to conversation

arm64: zynqmp: Add support for KRIA boards and update phy/pinctrl descs

PATCH New Michal Simek 2 participants 12 messages May 10, 2021 – May 19, 2021

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

cover arm64: zynqmp: Add support for KRIA boards and update phy/pinctrl descs

Hi,

this patchset is adding support for new Xilinx SOM platform. SOM+CC. Also adding description for pin control and PSGTR phys with also some small fixes in DT.

Thanks,
Michal

Michal Simek (6):
arm64: zynqmp: Add missing silabs,skip-recall for si570 ref clk nodes
arm64: zynqmp: Remove comment about clock chips
arm64: zynqmp: Add missing mio-bank properties to sdhci
arm64: zynqmp: Add pinctrl description
arm64: zynqmp: Add psgtr DT descriptions
arm64: zynqmp: Add description for SOM/Kria boards

Raviteja Narayanam (1):
arm64: zynqmp: Add 'i2c-mux-idle-disconnect' property

Saeed Nowshadi (2):
arm64: zynqmp: Add 'silabs,skip-recall' to DDR DIMM si570 clk node
arm64: zynqmp: Add label to all GPIO lines for VCK190 SC

T Karthik Reddy (1):
arm64: zynqmp: Add zynqmp firmware specific DT nodes

 arch/arm/dts/Makefile                        |   4 +
 arch/arm/dts/zynqmp-e-a2197-00-revA.dts      |  20 +-
 arch/arm/dts/zynqmp-m-a2197-01-revA.dts      |   3 +-
 arch/arm/dts/zynqmp-m-a2197-02-revA.dts      |   3 +-
 arch/arm/dts/zynqmp-m-a2197-03-revA.dts      |   3 +-
 arch/arm/dts/zynqmp-mini-emmc0.dts           |  40 ++
 arch/arm/dts/zynqmp-mini-emmc1.dts           |  40 ++
 arch/arm/dts/zynqmp-p-a2197-00-revA.dts      |  23 ++
 arch/arm/dts/zynqmp-sck-kv-g-revA.dts        | 373 +++++++++++++++++++
 arch/arm/dts/zynqmp-sck-kv-g-revB.dts        | 353 ++++++++++++++++++
 arch/arm/dts/zynqmp-sm-k26-revA-u-boot.dtsi  |  21 ++
 arch/arm/dts/zynqmp-sm-k26-revA.dts          | 316 ++++++++++++++++
 arch/arm/dts/zynqmp-smk-k26-revA-u-boot.dtsi |  21 ++
 arch/arm/dts/zynqmp-smk-k26-revA.dts         |  21 ++
 arch/arm/dts/zynqmp-zc1751-xm015-dc1.dts     | 260 +++++++++++++
 arch/arm/dts/zynqmp-zc1751-xm016-dc2.dts     | 306 +++++++++++++++
 arch/arm/dts/zynqmp-zc1751-xm019-dc5.dts     | 330 ++++++++++++++++
 arch/arm/dts/zynqmp-zcu100-revC.dts          | 242 +++++++++++-
 arch/arm/dts/zynqmp-zcu102-revA.dts          | 290 ++++++++++++++
 arch/arm/dts/zynqmp-zcu104-revA.dts          | 218 +++++++++++
 arch/arm/dts/zynqmp-zcu104-revC.dts          | 218 +++++++++++
 arch/arm/dts/zynqmp-zcu106-revA.dts          | 290 ++++++++++++++
 arch/arm/dts/zynqmp-zcu111-revA.dts          | 234 +++++++++++-
 arch/arm/dts/zynqmp-zcu208-revA.dts          |  83 ++++-
 arch/arm/dts/zynqmp-zcu216-revA.dts          |  83 ++++-
 configs/xilinx_zynqmp_virt_defconfig         |   2 +-
 include/dt-bindings/pinctrl/pinctrl-zynqmp.h |  19 +
 27 files changed, 3792 insertions(+), 24 deletions(-)
 create mode 100644 arch/arm/dts/zynqmp-sck-kv-g-revA.dts
 create mode 100644 arch/arm/dts/zynqmp-sck-kv-g-revB.dts
 create mode 100644 arch/arm/dts/zynqmp-sm-k26-revA-u-boot.dtsi
 create mode 100644 arch/arm/dts/zynqmp-sm-k26-revA.dts
 create mode 100644 arch/arm/dts/zynqmp-smk-k26-revA-u-boot.dtsi
 create mode 100644 arch/arm/dts/zynqmp-smk-k26-revA.dts
 create mode 100644 include/dt-bindings/pinctrl/pinctrl-zynqmp.h
Signature · 1 line
2.31.1
#1 lore raw

PATCH 1/10 arm64: zynqmp: Add missing silabs, skip-recall for si570 ref clk nodes

All si570 which are used for ps reference clock generation should contain silabs,skip-recall property not to cause break on ps clock. On Versal boards this will cause hang on Versal cpu when it is booted at the same time with SC.

---

 arch/arm/dts/zynqmp-e-a2197-00-revA.dts | 1 +
 arch/arm/dts/zynqmp-m-a2197-01-revA.dts | 3 ++-
 arch/arm/dts/zynqmp-m-a2197-02-revA.dts | 3 ++-
 arch/arm/dts/zynqmp-m-a2197-03-revA.dts | 3 ++-
 arch/arm/dts/zynqmp-p-a2197-00-revA.dts | 1 +
 5 files changed, 8 insertions(+), 3 deletions(-)
arch/arm/dts/zynqmp-e-a2197-00-revA.dts +1 -0
index aae3c626f562..135c83f502e8 100644
@@ -475,6 +475,7 @@
 				factory-fout = <33333333>;
 				clock-frequency = <33333333>;
 				clock-output-names = "ref_clk";
+				silabs,skip-recall;
 			};
 			/* and connector J212D */
 		};
arch/arm/dts/zynqmp-m-a2197-01-revA.dts +2 -1
index 19e1ebdb1d6a..213149a3dc83 100644
@@ -343,9 +343,10 @@
 				compatible = "silabs,si570";
 				reg = <0x5d>; /* FIXME addr */
 				temperature-stability = <50>;
-				factory-fout = <156250000>; /* FIXME every chip can be different */
+				factory-fout = <33333333>;
 				clock-frequency = <33333333>;
 				clock-output-names = "REF_CLK"; /* FIXME */
+				silabs,skip-recall;
 			};
 			/* Connection via Samtec U20D */
 			/* Use for storing information about X-PRC card */
arch/arm/dts/zynqmp-m-a2197-02-revA.dts +2 -1
index 46ec427648fa..c458110e5a89 100644
@@ -349,9 +349,10 @@
 				compatible = "silabs,si570";
 				reg = <0x5d>; /* FIXME addr */
 				temperature-stability = <50>;
-				factory-fout = <156250000>; /* FIXME every chip can be different */
+				factory-fout = <33333333>;
 				clock-frequency = <33333333>;
 				clock-output-names = "REF_CLK"; /* FIXME */
+				silabs,skip-recall;
 			};
 			/* Connection via Samtec U20D */
 			/* Use for storing information about X-PRC card */
arch/arm/dts/zynqmp-m-a2197-03-revA.dts +2 -1
index 6eb58e6701ad..cee7ca1fa995 100644
@@ -339,9 +339,10 @@
 				compatible = "silabs,si570";
 				reg = <0x5d>; /* FIXME addr */
 				temperature-stability = <50>;
-				factory-fout = <156250000>; /* FIXME every chip can be different */
+				factory-fout = <33333333>;
 				clock-frequency = <33333333>;
 				clock-output-names = "REF_CLK"; /* FIXME */
+				silabs,skip-recall;
 			};
 			/* Connection via Samtec U20D */
 			/* Use for storing information about X-PRC card */
arch/arm/dts/zynqmp-p-a2197-00-revA.dts +1 -0
index 4f7824ae4007..8e1e6b7f903b 100644
@@ -390,6 +390,7 @@
 				factory-fout = <33333333>;
 				clock-frequency = <33333333>;
 				clock-output-names = "ref_clk";
+				silabs,skip-recall;
 			};
 			/* Connection via Samtec J212D */
 			/* Use for storing information about X-PRC card */
Signature · 1 line
2.31.1
#2 lore raw

PATCH 2/10 arm64: zynqmp: Add 'silabs, skip-recall' to DDR DIMM si570 clk node

In reply to Michal Simek

From: Saeed Nowshadi <[email protected]>

The 'silabs,skip-recall' property prevents interruption in operation of the clock while the driver is being probed. Without this property, the DDR DIMM clk can cause a failure during Versal's boot.

---

 arch/arm/dts/zynqmp-e-a2197-00-revA.dts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/dts/zynqmp-e-a2197-00-revA.dts +2 -1
index 135c83f502e8..e5d75e552346 100644
@@ -2,7 +2,7 @@
 /*
  * dts file for Xilinx Versal a2197 RevA System Controller
  *
- * (C) Copyright 2019 - 2020, Xilinx, Inc.
+ * (C) Copyright 2019 - 2021, Xilinx, Inc.
  *
  * Michal Simek <[email protected]>
  */
@@ -505,6 +505,7 @@
 				factory-fout = <200000000>;
 				clock-frequency = <200000000>;
 				clock-output-names = "si570_ddrdimm1_clk";
+				silabs,skip-recall;
 			};
 		};
 		i2c at 4 { /* LPDDR4_SI570_CLK2 */
Signature · 1 line
2.31.1
#3 lore raw

PATCH 3/10 arm64: zynqmp: Add label to all GPIO lines for VCK190 SC

In reply to Michal Simek

From: Saeed Nowshadi <[email protected]>

Add label to GPIO lines so the user-level applications can find any line without knowing its physical path on System Controller on VCK190/VMK180.

These labels are describing EMIO gpio connection which depends on PL which we normally don't describe but that's only way to go for now. Lately this should be done out of this source code.

---

 arch/arm/dts/zynqmp-e-a2197-00-revA.dts | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
arch/arm/dts/zynqmp-e-a2197-00-revA.dts +7 -7
index e5d75e552346..ffa3dbb5f71f 100644
@@ -163,20 +163,20 @@
 		  "", "", "", "", "", /* 70 - 74 */
 		  "", "ETH_MDC", "ETH_MDIO", /* 75 - 77, MIO end and EMIO start */
 		  "SYSCTLR_VERSAL_MODE0", "SYSCTLR_VERSAL_MODE1", /* 78 - 79 */
-		  "SYSCTLR_VERSAL_MODE2", "SYSCTLR_VERSAL_MODE3", "SYSCTLR_POR_B_LS", "", "", /* 80 - 84 */
-		  "", "", "", "", "", /* 85 - 89 */
-		  "", "", "", "", "", /* 90 - 94 */
-		  "", "", "", "", "", /* 95 - 99 */
+		  "SYSCTLR_VERSAL_MODE2", "SYSCTLR_VERSAL_MODE3", "SYSCTLR_POR_B_LS", "DC_PRSNT", "", /* 80 - 84 */
+		  "SYSCTLR_JTAG_S0", "SYSCTLR_JTAG_S1", "SYSCTLR_IIC_MUX0_RESET_B", "SYSCTLR_IIC_MUX1_RESET_B", "", /* 85 - 89 */
+		  "SYSCTLR_GPIO0", "SYSCTLR_GPIO1", "SYSCTLR_GPIO2", "SYSCTLR_GPIO3", "SYSCTLR_GPIO4", /* 90 - 94 */
+		  "SYSCTLR_GPIO5", "", "", "", "", /* 95 - 99 */
 		  "", "", "", "", "", /* 100 - 104 */
 		  "", "", "", "", "", /* 105 - 109 */
 		  "", "", "", "", "", /* 110 - 114 */
 		  "", "", "", "", "", /* 115 - 119 */
 		  "", "", "", "", "", /* 120 - 124 */
 		  "", "", "", "", "", /* 125 - 129 */
-		  "", "", "", "", "", /* 130 - 134 */
+		  "PMBUS1_INA226_ALERT", "PMBUS2_INA226_ALERT", "", "", "", /* 130 - 134 */
 		  "", "", "", "", "", /* 135 - 139 */
-		  "", "", "", "", "", /* 140 - 144 */
-		  "", "", "", "", "", /* 145 - 149 */
+		  "PMBUS_ALERT", "", "SYSCTLR_ETH_RESET_B", "SYSCTLR_VCC0V85_TG", "MAX6643_OT_B", /* 140 - 144 */
+		  "MAX6643_FANFINAL_B", "MAX6643_FULLSPD", "", "", "", /* 145 - 149 */
 		  "", "", "", "", "", /* 150 - 154 */
 		  "", "", "", "", "", /* 155 - 159 */
 		  "", "", "", "", "", /* 160 - 164 */
Signature · 1 line
2.31.1
#4 lore raw

PATCH 4/10 arm64: zynqmp: Add 'i2c-mux-idle-disconnect' property

In reply to Michal Simek

From: Raviteja Narayanam <[email protected]>

I2C muxes that have the slave devices with same address are falling into the below problem.

VCK190 system controller (SC) - zynqmp-e-a2197-00-revA.dts I2C1 (0xff030000) -> Mux1 (@0x74) -> Channel 3 -> 0x50 I2C1 (0xff030000) -> Mux2 (@0x75) -> Channel 0 -> 0x50

1. SC accesses I2C1 - Mux1 (0x74) - Channel 3 and then
2. SC accesses I2C1 - Mux2 (0x75) - Channel 0.

Now it results in 2 slave devices with same address (0x50) on the I2C bus, making the communication un-reliable.

When ' i2c-mux-idle-disconnect' is in DT, after '1', the Mux channel output is disconnected, making none of the channels available to the I2C1. So, there is no question of having the same addressed slave (0x50) present on the bus when we are doing '2'.

Same pattern is seen in below two boards also.

ZCU208 - zynqmp-zcu208-revA.dts
ZCU216 - zynqmp-zcu216-revA.dts

---

 arch/arm/dts/zynqmp-e-a2197-00-revA.dts | 2 ++
 arch/arm/dts/zynqmp-zcu208-revA.dts     | 2 ++
 arch/arm/dts/zynqmp-zcu216-revA.dts     | 2 ++
 3 files changed, 6 insertions(+)
arch/arm/dts/zynqmp-e-a2197-00-revA.dts +2 -0
index ffa3dbb5f71f..8ec2e866535b 100644
@@ -457,6 +457,7 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 		reg = <0x74>;
+		i2c-mux-idle-disconnect;
 		/* reset-gpios = <&gpio SYSCTLR_IIC_MUX1_RESET_B GPIO_ACTIVE_HIGH>; */
 		dc_i2c: i2c at 0 { /* DC_I2C */
 			#address-cells = <1>;
@@ -561,6 +562,7 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 		reg = <0x75>;
+		i2c-mux-idle-disconnect;
 		i2c at 0 { /* SFP0_IIC */
 			#address-cells = <1>;
 			#size-cells = <0>;
arch/arm/dts/zynqmp-zcu208-revA.dts +2 -0
index 0e114cdacb1a..c24301090dde 100644
@@ -388,6 +388,7 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 		reg = <0x74>;
+		i2c-mux-idle-disconnect;
 		/* FIXME reset-gpios = <&tca6416_u15 SYSCTLR_IIC_MUX0_RESET_B GPIO_ACTIVE_HIGH>; */
 		i2c_eeprom: i2c at 0 {
 			#address-cells = <1>;
@@ -504,6 +505,7 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 		reg = <0x75>;
+		i2c-mux-idle-disconnect;
 		/* FIXME reset-gpios = <&tca6416_u15 SYSCTLR_IIC_MUX0_RESET_B GPIO_ACTIVE_HIGH>; */
 		i2c at 0 {
 			#address-cells = <1>;
arch/arm/dts/zynqmp-zcu216-revA.dts +2 -0
index 2302b07c4825..675baf4bed61 100644
@@ -399,6 +399,7 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 		reg = <0x74>;
+		i2c-mux-idle-disconnect;
 		/* FIXME reset-gpios = <&tca6416_u15 SYSCTLR_IIC_MUX0_RESET_B GPIO_ACTIVE_HIGH>; */
 		i2c_eeprom: i2c at 0 {
 			#address-cells = <1>;
@@ -515,6 +516,7 @@
 		#address-cells = <1>;
 		#size-cells = <0>;
 		reg = <0x75>;
+		i2c-mux-idle-disconnect;
 		/* FIXME reset-gpios = <&tca6416_u15 SYSCTLR_IIC_MUX0_RESET_B GPIO_ACTIVE_HIGH>; */
 		i2c at 0 {
 			#address-cells = <1>;
Signature · 1 line
2.31.1
#5 lore raw

PATCH 5/10 arm64: zynqmp: Remove comment about clock chips

In reply to Michal Simek

These comments weren't push to mainline that's why remove them.

---

 arch/arm/dts/zynqmp-zcu208-revA.dts | 10 +++++-----
 arch/arm/dts/zynqmp-zcu216-revA.dts | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)
arch/arm/dts/zynqmp-zcu208-revA.dts +5 -5
index c24301090dde..cd2f02f21de5 100644
@@ -424,27 +424,27 @@
 				si5341_2: out at 2 {
 					/* refclk2 for PS-GT, used for USB3 */
 					reg = <2>;
-					always-on; /* assigned-clocks does not enable, so do it here */
+					always-on;
 				};
 				si5341_3: out at 3 {
 					/* refclk3 for PS-GT, used for SATA */
 					reg = <3>;
-					always-on; /* assigned-clocks does not enable, so do it here */
+					always-on;
 				};
 				si5341_5: out at 5 {
 					/* refclk5 PL CLK100 */
 					reg = <5>;
-					always-on; /* assigned-clocks does not enable, so do it here */
+					always-on;
 				};
 				si5341_6: out at 6 {
 					/* refclk6 PL CLK125 */
 					reg = <6>;
-					always-on; /* assigned-clocks does not enable, so do it here */
+					always-on;
 				};
 				si5341_9: out at 9 {
 					/* refclk9 used for PS_REF_CLK 33.3 MHz */
 					reg = <9>;
-					always-on; /* assigned-clocks does not enable, so do it here */
+					always-on;
 				};
 			};
 		};
arch/arm/dts/zynqmp-zcu216-revA.dts +5 -5
index 675baf4bed61..8aecb1529250 100644
@@ -435,27 +435,27 @@
 				si5341_2: out at 2 {
 					/* refclk2 for PS-GT, used for USB3 */
 					reg = <2>;
-					always-on; /* assigned-clocks does not enable, so do it here */
+					always-on;
 				};
 				si5341_3: out at 3 {
 					/* refclk3 for PS-GT, used for SATA */
 					reg = <3>;
-					always-on; /* assigned-clocks does not enable, so do it here */
+					always-on;
 				};
 				si5341_5: out at 5 {
 					/* refclk5 PL CLK100 */
 					reg = <5>;
-					always-on; /* assigned-clocks does not enable, so do it here */
+					always-on;
 				};
 				si5341_6: out at 6 {
 					/* refclk6 PL CLK125 */
 					reg = <6>;
-					always-on; /* assigned-clocks does not enable, so do it here */
+					always-on;
 				};
 				si5341_9: out at 9 {
 					/* refclk9 used for PS_REF_CLK 33.3 MHz */
 					reg = <9>;
-					always-on; /* assigned-clocks does not enable, so do it here */
+					always-on;
 				};
 			};
 		};
Signature · 1 line
2.31.1
#6 lore raw

PATCH 6/10 arm64: zynqmp: Add missing mio-bank properties to sdhci

In reply to Michal Simek

Add missing xlnx,mio-bank property to sdhci node. Also add properties with 0 value to have it listed in case that files are copied to different projects where default case doesn't need to be handled in the same way. That's why explicitly list them too.

---

 arch/arm/dts/zynqmp-zc1751-xm019-dc5.dts | 1 +
 1 file changed, 1 insertion(+)
arch/arm/dts/zynqmp-zc1751-xm019-dc5.dts +1 -0
index 8d8ebeaac3bf..0f1094804d91 100644
@@ -93,6 +93,7 @@
 &sdhci0 {
 	status = "okay";
 	no-1-8-v;
+	xlnx,mio-bank = <0>;
 };
 
 &ttc0 {
Signature · 1 line
2.31.1
#7 lore raw

PATCH 7/10 arm64: zynqmp: Add zynqmp firmware specific DT nodes

In reply to Michal Simek

From: T Karthik Reddy <[email protected]>

Probe zynqmp firmware driver by adding zynqmp firmware, power & ipi mailbox device tree nodes for mini emmc.

---

 arch/arm/dts/zynqmp-mini-emmc0.dts | 40 ++++++++++++++++++++++++++++++
 arch/arm/dts/zynqmp-mini-emmc1.dts | 40 ++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+)
arch/arm/dts/zynqmp-mini-emmc0.dts +40 -0
index 8467dd8e1cc7..8d9f9ca37259 100644
@@ -41,6 +41,46 @@
 		clock-frequency = <200000000>;
 	};
 
+	firmware {
+		zynqmp_firmware: zynqmp-firmware {
+			compatible = "xlnx,zynqmp-firmware";
+			#power-domain-cells = <1>;
+			method = "smc";
+			u-boot,dm-pre-reloc;
+
+			zynqmp_power: zynqmp-power {
+				u-boot,dm-pre-reloc;
+				compatible = "xlnx,zynqmp-power";
+				mboxes = <&ipi_mailbox_pmu1 0>,
+					 <&ipi_mailbox_pmu1 1>;
+				mbox-names = "tx", "rx";
+			};
+		};
+	};
+
+	zynqmp_ipi: zynqmp_ipi {
+		u-boot,dm-pre-reloc;
+		compatible = "xlnx,zynqmp-ipi-mailbox";
+		xlnx,ipi-id = <0>;
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		ipi_mailbox_pmu1: mailbox at ff990400 {
+			u-boot,dm-pre-reloc;
+			reg = <0x0 0xff9905c0 0x0 0x20>,
+			      <0x0 0xff9905e0 0x0 0x20>,
+			      <0x0 0xff990e80 0x0 0x20>,
+			      <0x0 0xff990ea0 0x0 0x20>;
+			reg-names = "local_request_region",
+				    "local_response_region",
+				    "remote_request_region",
+				    "remote_response_region";
+			#mbox-cells = <1>;
+			xlnx,ipi-id = <4>;
+		};
+	};
+
 	amba: amba {
 		compatible = "simple-bus";
 		#address-cells = <2>;
arch/arm/dts/zynqmp-mini-emmc1.dts +40 -0
index 2afcc7751b9f..5722b762d679 100644
@@ -41,6 +41,46 @@
 		clock-frequency = <200000000>;
 	};
 
+	firmware {
+		zynqmp_firmware: zynqmp-firmware {
+			compatible = "xlnx,zynqmp-firmware";
+			#power-domain-cells = <1>;
+			method = "smc";
+			u-boot,dm-pre-reloc;
+
+			zynqmp_power: zynqmp-power {
+				u-boot,dm-pre-reloc;
+				compatible = "xlnx,zynqmp-power";
+				mboxes = <&ipi_mailbox_pmu1 0>,
+					 <&ipi_mailbox_pmu1 1>;
+				mbox-names = "tx", "rx";
+			};
+		};
+	};
+
+	zynqmp_ipi: zynqmp_ipi {
+		u-boot,dm-pre-reloc;
+		compatible = "xlnx,zynqmp-ipi-mailbox";
+		xlnx,ipi-id = <0>;
+		#address-cells = <2>;
+		#size-cells = <2>;
+		ranges;
+
+		ipi_mailbox_pmu1: mailbox at ff990400 {
+			u-boot,dm-pre-reloc;
+			reg = <0x0 0xff9905c0 0x0 0x20>,
+			      <0x0 0xff9905e0 0x0 0x20>,
+			      <0x0 0xff990e80 0x0 0x20>,
+			      <0x0 0xff990ea0 0x0 0x20>;
+			reg-names = "local_request_region",
+				    "local_response_region",
+				    "remote_request_region",
+				    "remote_response_region";
+			#mbox-cells = <1>;
+			xlnx,ipi-id = <4>;
+		};
+	};
+
 	amba: amba {
 		compatible = "simple-bus";
 		#address-cells = <2>;
Signature · 1 line
2.31.1
#8 lore raw

PATCH 8/10 arm64: zynqmp: Add pinctrl description

In reply to Michal Simek

ZynqMP pinctrl Linux driver has been merged to 5.13-rc1 kernel. Based on it DT files can be extended by pinctrl configurations.

---

 arch/arm/dts/zynqmp-zc1751-xm015-dc1.dts     | 229 +++++++++++++
 arch/arm/dts/zynqmp-zc1751-xm016-dc2.dts     | 306 +++++++++++++++++
 arch/arm/dts/zynqmp-zc1751-xm019-dc5.dts     | 329 +++++++++++++++++++
 arch/arm/dts/zynqmp-zcu100-revC.dts          | 238 +++++++++++++-
 arch/arm/dts/zynqmp-zcu102-revA.dts          | 288 ++++++++++++++++
 arch/arm/dts/zynqmp-zcu104-revA.dts          | 216 ++++++++++++
 arch/arm/dts/zynqmp-zcu104-revC.dts          | 216 ++++++++++++
 arch/arm/dts/zynqmp-zcu106-revA.dts          | 288 ++++++++++++++++
 arch/arm/dts/zynqmp-zcu111-revA.dts          | 225 +++++++++++++
 arch/arm/dts/zynqmp-zcu208-revA.dts          |  68 ++++
 arch/arm/dts/zynqmp-zcu216-revA.dts          |  68 ++++
 include/dt-bindings/pinctrl/pinctrl-zynqmp.h |  19 ++
 12 files changed, 2489 insertions(+), 1 deletion(-)
 create mode 100644 include/dt-bindings/pinctrl/pinctrl-zynqmp.h
arch/arm/dts/zynqmp-zc1751-xm015-dc1.dts +229 -0
index b8c5efb6a914..d5862c1cabe9 100644
@@ -11,6 +11,8 @@
 
 #include "zynqmp.dtsi"
 #include "zynqmp-clk-ccf.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
 
 / {
 	model = "ZynqMP zc1751-xm015-dc1 RevA";
@@ -75,6 +77,8 @@
 	status = "okay";
 	phy-handle = <&phy0>;
 	phy-mode = "rgmii-id";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_gem3_default>;
 	phy0: ethernet-phy at 0 {
 		reg = <0>;
 	};
@@ -82,6 +86,8 @@
 
 &gpio {
 	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_gpio_default>;
 };
 
 &gpu {
@@ -91,6 +97,11 @@
 &i2c1 {
 	status = "okay";
 	clock-frequency = <400000>;
+	pinctrl-names = "default", "gpio";
+	pinctrl-0 = <&pinctrl_i2c1_default>;
+	pinctrl-1 = <&pinctrl_i2c1_gpio>;
+	scl-gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
+	sda-gpios = <&gpio 37 GPIO_ACTIVE_HIGH>;
 
 	eeprom: eeprom at 55 {
 		compatible = "atmel,24c64"; /* 24AA64 */
@@ -98,6 +109,216 @@
 	};
 };
 
+&pinctrl0 {
+	status = "okay";
+	pinctrl_i2c1_default: i2c1-default {
+		mux {
+			groups = "i2c1_9_grp";
+			function = "i2c1";
+		};
+
+		conf {
+			groups = "i2c1_9_grp";
+			bias-pull-up;
+			slew-rate = <SLEW_RATE_SLOW>;
+			power-source = <IO_STANDARD_LVCMOS18>;
+		};
+	};
+
+	pinctrl_i2c1_gpio: i2c1-gpio {
+		mux {
+			groups = "gpio0_36_grp", "gpio0_37_grp";
+			function = "gpio0";
+		};
+
+		conf {
+			groups = "gpio0_36_grp", "gpio0_37_grp";
+			slew-rate = <SLEW_RATE_SLOW>;
+			power-source = <IO_STANDARD_LVCMOS18>;
+		};
+	};
+
+	pinctrl_uart0_default: uart0-default {
+		mux {
+			groups = "uart0_8_grp";
+			function = "uart0";
+		};
+
+		conf {
+			groups = "uart0_8_grp";
+			slew-rate = <SLEW_RATE_SLOW>;
+			power-source = <IO_STANDARD_LVCMOS18>;
+		};
+
+		conf-rx {
+			pins = "MIO34";
+			bias-high-impedance;
+		};
+
+		conf-tx {
+			pins = "MIO35";
+			bias-disable;
+		};
+	};
+
+	pinctrl_usb0_default: usb0-default {
+		mux {
+			groups = "usb0_0_grp";
+			function = "usb0";
+		};
+
+		conf {
+			groups = "usb0_0_grp";
+			slew-rate = <SLEW_RATE_SLOW>;
+			power-source = <IO_STANDARD_LVCMOS18>;
+		};
+
+		conf-rx {
+			pins = "MIO52", "MIO53", "MIO55";
+			bias-high-impedance;
+		};
+
+		conf-tx {
+			pins = "MIO54", "MIO56", "MIO57", "MIO58", "MIO59",
+			       "MIO60", "MIO61", "MIO62", "MIO63";
+			bias-disable;
+		};
+	};
+
+	pinctrl_gem3_default: gem3-default {
+		mux {
+			function = "ethernet3";
+			groups = "ethernet3_0_grp";
+		};
+
+		conf {
+			groups = "ethernet3_0_grp";
+			slew-rate = <SLEW_RATE_SLOW>;
+			power-source = <IO_STANDARD_LVCMOS18>;
+		};
+
+		conf-rx {
+			pins = "MIO70", "MIO71", "MIO72", "MIO73", "MIO74",
+									"MIO75";
+			bias-high-impedance;
+			low-power-disable;
+		};
+
+		conf-tx {
+			pins = "MIO64", "MIO65", "MIO66", "MIO67", "MIO68",
+									"MIO69";
+			bias-disable;
+			low-power-enable;
+		};
+
+		mux-mdio {
+			function = "mdio3";
+			groups = "mdio3_0_grp";
+		};
+
+		conf-mdio {
+			groups = "mdio3_0_grp";
+			slew-rate = <SLEW_RATE_SLOW>;
+			power-source = <IO_STANDARD_LVCMOS18>;
+			bias-disable;
+		};
+	};
+
+	pinctrl_sdhci0_default: sdhci0-default {
+		mux {
+			groups = "sdio0_0_grp";
+			function = "sdio0";
+		};
+
+		conf {
+			groups = "sdio0_0_grp";
+			slew-rate = <SLEW_RATE_SLOW>;
+			power-source = <IO_STANDARD_LVCMOS18>;
+			bias-disable;
+		};
+
+		mux-cd {
+			groups = "sdio0_cd_0_grp";
+			function = "sdio0_cd";
+		};
+
+		conf-cd {
+			groups = "sdio0_cd_0_grp";
+			bias-high-impedance;
+			bias-pull-up;
+			slew-rate = <SLEW_RATE_SLOW>;
+			power-source = <IO_STANDARD_LVCMOS18>;
+		};
+
+		mux-wp {
+			groups = "sdio0_wp_0_grp";
+			function = "sdio0_wp";
+		};
+
+		conf-wp {
+			groups = "sdio0_wp_0_grp";
+			bias-high-impedance;
+			bias-pull-up;
+			slew-rate = <SLEW_RATE_SLOW>;
+			power-source = <IO_STANDARD_LVCMOS18>;
+		};
+	};
+
+	pinctrl_sdhci1_default: sdhci1-default {
+		mux {
+			groups = "sdio1_0_grp";
+			function = "sdio1";
+		};
+
+		conf {
+			groups = "sdio1_0_grp";
+			slew-rate = <SLEW_RATE_SLOW>;
+			power-source = <IO_STANDARD_LVCMOS18>;
+			bias-disable;
+		};
+
+		mux-cd {
+			groups = "sdio1_cd_0_grp";
+			function = "sdio1_cd";
+		};
+
+		conf-cd {
+			groups = "sdio1_cd_0_grp";
+			bias-high-impedance;
+			bias-pull-up;
+			slew-rate = <SLEW_RATE_SLOW>;
+			power-source = <IO_STANDARD_LVCMOS18>;
+		};
+
+		mux-wp {
+			groups = "sdio1_wp_0_grp";
+			function = "sdio1_wp";
+		};
+
+		conf-wp {
+			groups = "sdio1_wp_0_grp";
+			bias-high-impedance;
+			bias-pull-up;
+			slew-rate = <SLEW_RATE_SLOW>;
+			power-source = <IO_STANDARD_LVCMOS18>;
+		};
+	};
+
+	pinctrl_gpio_default: gpio-default {
+		mux {
+			function = "gpio0";
+			groups = "gpio0_38_grp";
+		};
+
+		conf {
+			groups = "gpio0_38_grp";
+			bias-disable;
+			slew-rate = <SLEW_RATE_SLOW>;
+			power-source = <IO_STANDARD_LVCMOS18>;
+		};
+	};
+};
+
 &qspi {
 	status = "okay";
 	flash at 0 {
@@ -147,6 +368,8 @@
 /* eMMC */
 &sdhci0 {
 	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_sdhci0_default>;
 	bus-width = <8>;
 	xlnx,mio-bank = <0>;
 };
@@ -158,16 +381,22 @@
 	 * This property should be removed for supporting UHS mode
 	 */
 	no-1-8-v;
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_sdhci1_default>;
 	xlnx,mio-bank = <1>;
 };
 
 &uart0 {
 	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_uart0_default>;
 };
 
 /* ULPI SMSC USB3320 */
 &usb0 {
 	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_usb0_default>;
 };
 
 &dwc3_0 {
arch/arm/dts/zynqmp-zc1751-xm016-dc2.dts +306 -0

372 lines not on this page · raw message

arch/arm/dts/zynqmp-zc1751-xm019-dc5.dts +329 -0

383 lines not on this page · raw message

arch/arm/dts/zynqmp-zcu100-revC.dts +237 -1

301 lines not on this page · raw message

arch/arm/dts/zynqmp-zcu102-revA.dts +288 -0

350 lines not on this page · raw message

arch/arm/dts/zynqmp-zcu104-revA.dts +216 -0

267 lines not on this page · raw message

arch/arm/dts/zynqmp-zcu104-revC.dts +216 -0

267 lines not on this page · raw message

arch/arm/dts/zynqmp-zcu106-revA.dts +288 -0

350 lines not on this page · raw message

arch/arm/dts/zynqmp-zcu111-revA.dts +225 -0

278 lines not on this page · raw message

arch/arm/dts/zynqmp-zcu208-revA.dts +68 -0

92 lines not on this page · raw message

arch/arm/dts/zynqmp-zcu216-revA.dts +68 -0

59 lines not on this page · raw message

include/dt-bindings/pinctrl/pinctrl-zynqmp.h new file +19 -0
new file mode 100644
index 000000000000..cdb215734bdf

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Signature · 1 line
2.31.1

Part of the diff is not shown here. View the raw message.

#9 lore raw

PATCH 9/10 arm64: zynqmp: Add psgtr DT descriptions

In reply to Michal Simek

Mainline kernel has psgtr driver that's why it is good to add description to DT files. Some boards are just missing description for USB3 and sata. zc1751-dc1 and p-a2197 are also missing clock descriptions for input clocks.

---

 arch/arm/dts/zynqmp-p-a2197-00-revA.dts  | 22 +++++++++++++++++
 arch/arm/dts/zynqmp-zc1751-xm015-dc1.dts | 31 ++++++++++++++++++++++++
 arch/arm/dts/zynqmp-zcu100-revC.dts      |  4 +++
 arch/arm/dts/zynqmp-zcu102-revA.dts      |  2 ++
 arch/arm/dts/zynqmp-zcu104-revA.dts      |  2 ++
 arch/arm/dts/zynqmp-zcu104-revC.dts      |  2 ++
 arch/arm/dts/zynqmp-zcu106-revA.dts      |  2 ++
 arch/arm/dts/zynqmp-zcu111-revA.dts      |  9 ++++++-
 arch/arm/dts/zynqmp-zcu208-revA.dts      |  3 +++
 arch/arm/dts/zynqmp-zcu216-revA.dts      |  3 +++
 10 files changed, 79 insertions(+), 1 deletion(-)
arch/arm/dts/zynqmp-p-a2197-00-revA.dts +22 -0
index 8e1e6b7f903b..1f5201ac8883 100644
@@ -11,6 +11,7 @@
 #include "zynqmp.dtsi"
 #include "zynqmp-clk-ccf.dtsi"
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/phy/phy.h>
 
 / {
 	model = "Versal System Controller on a2197 Processor Char board RevA"; /* Tenzing */
@@ -43,6 +44,18 @@
 		device_type = "memory";
 		reg = <0x0 0x0 0x0 0x80000000>;
 	};
+
+	si5332_1: si5332_1 { /* clk0_sgmii - u142 */
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <33333333>; /* FIXME */
+	};
+
+	si5332_2: si5332_2 { /* clk1_usb - u142 */
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <27000000>;
+	};
 };
 
 &sdhci0 { /* emmc MIO 13-23 - with some settings  16GB */
@@ -70,6 +83,13 @@
 	xlnx,mio-bank = <1>;
 };
 
+&psgtr {
+	status = "okay";
+	/* sgmii, usb3 */
+	clocks = <&si5332_1>, <&si5332_2>;
+	clock-names = "ref0", "ref1";
+};
+
 &gem0 {
 	status = "okay";
 	phy-handle = <&phy0>;
@@ -537,6 +557,8 @@
 	snps,dis_u2_susphy_quirk;
 	snps,dis_u3_susphy_quirk;
 	maximum-speed = "super-speed";
+	phy-names = "usb3-phy";
+	phys = <&psgtr 1 PHY_TYPE_USB3 0 1>;
 };
 
 &usb1 {
arch/arm/dts/zynqmp-zc1751-xm015-dc1.dts +31 -0
index d5862c1cabe9..039a8da1a960 100644
@@ -11,6 +11,7 @@
 
 #include "zynqmp.dtsi"
 #include "zynqmp-clk-ccf.dtsi"
+#include <dt-bindings/phy/phy.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/pinctrl/pinctrl-zynqmp.h>
 
@@ -39,6 +40,31 @@
 		device_type = "memory";
 		reg = <0x0 0x0 0x0 0x80000000>, <0x8 0x00000000 0x0 0x80000000>;
 	};
+
+	clock_si5338_0: clk27 {	/* u55 SI5338-GM */
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <27000000>;
+	};
+
+	clock_si5338_2: clk26 {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <26000000>;
+	};
+
+	clock_si5338_3: clk150 {
+		compatible = "fixed-clock";
+		#clock-cells = <0>;
+		clock-frequency = <150000000>;
+	};
+};
+
+&psgtr {
+	status = "okay";
+	/* dp, usb3, sata */
+	clocks = <&clock_si5338_0>, <&clock_si5338_2>, <&clock_si5338_3>;
+	clock-names = "ref1", "ref2", "ref3";
 };
 
 &fpd_dma_chan1 {
@@ -363,6 +389,8 @@
 	ceva,p1-comwake-params = /bits/ 8 <0x06 0x19 0x08 0x0E>;
 	ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
 	ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
+	phy-names = "sata-phy";
+	phys = <&psgtr 3 PHY_TYPE_SATA 1 3>;
 };
 
 /* eMMC */
@@ -402,6 +430,9 @@
 &dwc3_0 {
 	status = "okay";
 	dr_mode = "host";
+	snps,usb3_lpm_capable;
+	phy-names = "usb3-phy";
+	phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
 };
 
 &zynqmp_dpdma {
arch/arm/dts/zynqmp-zcu100-revC.dts +4 -0
index 9603043db109..b83696cccd2b 100644
@@ -567,6 +567,8 @@
 &dwc3_0 {
 	status = "okay";
 	dr_mode = "peripheral";
+	phy-names = "usb3-phy";
+	phys = <&psgtr 2 PHY_TYPE_USB3 0 0>;
 	maximum-speed = "super-speed";
 };
 
@@ -580,6 +582,8 @@
 &dwc3_1 {
 	status = "okay";
 	dr_mode = "host";
+	phy-names = "usb3-phy";
+	phys = <&psgtr 3 PHY_TYPE_USB3 1 0>;
 	maximum-speed = "super-speed";
 };
 
arch/arm/dts/zynqmp-zcu102-revA.dts +2 -0
index 27c3dcc87f96..ec61b7089da2 100644
@@ -1034,6 +1034,8 @@
 	status = "okay";
 	dr_mode = "host";
 	snps,usb3_lpm_capable;
+	phy-names = "usb3-phy";
+	phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
 	maximum-speed = "super-speed";
 };
 
arch/arm/dts/zynqmp-zcu104-revA.dts +2 -0
index bad73d9093c0..c25ac9af48e8 100644
@@ -511,6 +511,8 @@
 	status = "okay";
 	dr_mode = "host";
 	snps,usb3_lpm_capable;
+	phy-names = "usb3-phy";
+	phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
 	maximum-speed = "super-speed";
 };
 
arch/arm/dts/zynqmp-zcu104-revC.dts +2 -0
index 1b4cfb142a39..ce9d8fb3b815 100644
@@ -524,6 +524,8 @@
 	status = "okay";
 	dr_mode = "host";
 	snps,usb3_lpm_capable;
+	phy-names = "usb3-phy";
+	phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
 	maximum-speed = "super-speed";
 };
 
arch/arm/dts/zynqmp-zcu106-revA.dts +2 -0
index 9a6b00ff8c10..ae20e581c0f4 100644
@@ -1049,6 +1049,8 @@
 	status = "okay";
 	dr_mode = "host";
 	snps,usb3_lpm_capable;
+	phy-names = "usb3-phy";
+	phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
 };
 
 &watchdog0 {
arch/arm/dts/zynqmp-zcu111-revA.dts +8 -1
index ec2bf537dff7..d564f74344c9 100644
@@ -826,7 +826,7 @@
 	ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
 	ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
 	phy-names = "sata-phy";
-	phys = <&psgtr 3 PHY_TYPE_SATA 1 1>;
+	phys = <&psgtr 3 PHY_TYPE_SATA 1 3>;
 };
 
 /* SD1 with level shifter */
@@ -853,7 +853,14 @@
 	status = "okay";
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_usb0_default>;
+};
+
+&dwc3_0 {
+	status = "okay";
 	dr_mode = "host";
+	snps,usb3_lpm_capable;
+	phy-names = "usb3-phy";
+	phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
 };
 
 &zynqmp_dpdma {
arch/arm/dts/zynqmp-zcu208-revA.dts +3 -0
index 0dc9880b923a..880281d4e79b 100644
@@ -671,6 +671,7 @@
 	ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
 	ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
 	ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
+	phy-names = "sata-phy";
 	phys = <&psgtr 3 PHY_TYPE_SATA 1 3>;
 };
 
@@ -698,4 +699,6 @@
 	status = "okay";
 	dr_mode = "host";
 	snps,usb3_lpm_capable;
+	phy-names = "usb3-phy";
+	phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
 };
arch/arm/dts/zynqmp-zcu216-revA.dts +3 -0
index e0258ea0dda3..f899226ae198 100644
@@ -675,6 +675,7 @@
 	ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
 	ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
 	ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
+	phy-names = "sata-phy";
 	phys = <&psgtr 3 PHY_TYPE_SATA 1 3>;
 };
 
@@ -702,4 +703,6 @@
 	status = "okay";
 	dr_mode = "host";
 	snps,usb3_lpm_capable;
+	phy-names = "usb3-phy";
+	phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
 };
Signature · 1 line
2.31.1
#10 lore raw

PATCH 10/10 arm64: zynqmp: Add description for SOM/Kria boards

In reply to Michal Simek

The patch contains several DT files for SOM platform.
Carrier card is sck-kv (KV260) revA/B. SMK-K26 is description for starter kit which doesn't have EMMC populated. And SM-K26 is full som with EMMC.

Files are divided in this way to make sure that SOM can be plugged to different carrier card and all peripherals on SOM (or defined by a spec) can be used by U-Boot. Full DT for SOM+CC can be merged together as overlays.

---

 arch/arm/dts/Makefile                        |   4 +
 arch/arm/dts/zynqmp-sck-kv-g-revA.dts        | 373 +++++++++++++++++++
 arch/arm/dts/zynqmp-sck-kv-g-revB.dts        | 353 ++++++++++++++++++
 arch/arm/dts/zynqmp-sm-k26-revA-u-boot.dtsi  |  21 ++
 arch/arm/dts/zynqmp-sm-k26-revA.dts          | 316 ++++++++++++++++
 arch/arm/dts/zynqmp-smk-k26-revA-u-boot.dtsi |  21 ++
 arch/arm/dts/zynqmp-smk-k26-revA.dts         |  21 ++
 configs/xilinx_zynqmp_virt_defconfig         |   2 +-
 8 files changed, 1110 insertions(+), 1 deletion(-)
 create mode 100644 arch/arm/dts/zynqmp-sck-kv-g-revA.dts
 create mode 100644 arch/arm/dts/zynqmp-sck-kv-g-revB.dts
 create mode 100644 arch/arm/dts/zynqmp-sm-k26-revA-u-boot.dtsi
 create mode 100644 arch/arm/dts/zynqmp-sm-k26-revA.dts
 create mode 100644 arch/arm/dts/zynqmp-smk-k26-revA-u-boot.dtsi
 create mode 100644 arch/arm/dts/zynqmp-smk-k26-revA.dts
arch/arm/dts/Makefile +4 -0
index a5cae010c263..ed40b1f85a6d 100644
@@ -305,6 +305,10 @@ dtb-$(CONFIG_ARCH_ZYNQMP) += \
 	zynqmp-mini-emmc1.dtb			\
 	zynqmp-mini-nand.dtb			\
 	zynqmp-mini-qspi.dtb			\
+	zynqmp-sm-k26-revA.dtb			\
+	zynqmp-smk-k26-revA.dtb			\
+	zynqmp-sck-kv-g-revA.dtbo		\
+	zynqmp-sck-kv-g-revB.dtbo		\
 	zynqmp-topic-miamimp-xilinx-xdp-v1r1.dtb	\
 	zynqmp-zcu100-revC.dtb			\
 	zynqmp-zcu102-revA.dtb			\
arch/arm/dts/zynqmp-sck-kv-g-revA.dts new file +373 -0

373 lines not on this page · raw message

arch/arm/dts/zynqmp-sck-kv-g-revB.dts new file +353 -0

353 lines not on this page · raw message

arch/arm/dts/zynqmp-sm-k26-revA-u-boot.dtsi new file +21 -0
new file mode 100644
index 000000000000..3f01233cc5a2
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * dts file for Xilinx ZynqMP K26/KV260 SD wiring
+ *
+ * (C) Copyright 2020, Xilinx, Inc.
+ *
+ * Michal Simek <[email protected]>
+ */
+
+/* SD0 only supports 3.3V, no level shifter */
+&sdhci1 { /* on CC - MIO 39 - 51 */
+	status = "okay";
+	no-1-8-v;
+	disable-wp;
+	broken-cd;
+	xlnx,mio-bank = <1>;
+	/* Do not run SD in HS mode from bootloader */
+	sdhci-caps-mask = <0 0x200000>;
+	sdhci-caps = <0 0>;
+	max-frequency = <19000000>;
+};
arch/arm/dts/zynqmp-sm-k26-revA.dts new file +316 -0

316 lines not on this page · raw message

arch/arm/dts/zynqmp-smk-k26-revA-u-boot.dtsi new file +21 -0
new file mode 100644
index 000000000000..8e9106792ff9
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * dts file for Xilinx ZynqMP Z2-VSOM
+ *
+ * (C) Copyright 2020, Xilinx, Inc.
+ *
+ * Michal Simek <[email protected]>
+ */
+
+/* SD0 only supports 3.3V, no level shifter */
+&sdhci1 { /* FIXME - on CC - MIO 39 - 51 */
+	status = "okay";
+	no-1-8-v;
+	disable-wp;
+	broken-cd;
+	xlnx,mio-bank = <1>;
+	/* Do not run SD in HS mode from bootloader */
+	sdhci-caps-mask = <0 0x200000>;
+	sdhci-caps = <0 0>;
+	max-frequency = <19000000>;
+};
arch/arm/dts/zynqmp-smk-k26-revA.dts new file +21 -0
new file mode 100644
index 000000000000..300edc880093
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0
+/*
+ * dts file for Xilinx ZynqMP SMK-K26 rev1/B/A
+ *
+ * (C) Copyright 2020, Xilinx, Inc.
+ *
+ * Michal Simek <[email protected]>
+ */
+
+#include "zynqmp-sm-k26-revA.dts"
+
+/ {
+	model = "ZynqMP SMK-K26 Rev1/B/A";
+	compatible = "xlnx,zynqmp-smk-k26-rev1", "xlnx,zynqmp-smk-k26-revB",
+		     "xlnx,zynqmp-smk-k26-revA", "xlnx,zynqmp-smk-k26",
+		     "xlnx,zynqmp";
+};
+
+&sdhci0 {
+	status = "disabled";
+};
configs/xilinx_zynqmp_virt_defconfig +1 -1
index 9414b267060f..934042172a84 100644
@@ -68,7 +68,7 @@ CONFIG_CMD_MTDPARTS_SHOW_NET_SIZES=y
 CONFIG_CMD_UBI=y
 CONFIG_PARTITION_TYPE_GUID=y
 CONFIG_SPL_OF_CONTROL=y
-CONFIG_OF_LIST="avnet-ultra96-rev1 zynqmp-a2197-revA zynqmp-e-a2197-00-revA zynqmp-g-a2197-00-revA zynqmp-m-a2197-01-revA zynqmp-m-a2197-02-revA zynqmp-m-a2197-03-revA zynqmp-p-a2197-00-revA zynqmp-zc1232-revA zynqmp-zc1254-revA zynqmp-zc1751-xm015-dc1 zynqmp-zc1751-xm016-dc2 zynqmp-zc1751-xm017-dc3 zynqmp-zc1751-xm018-dc4 zynqmp-zc1751-xm019-dc5 zynqmp-zcu100-revC zynqmp-zcu102-rev1.1 zynqmp-zcu102-rev1.0 zynqmp-zcu102-revA zynqmp-zcu102-revB zynqmp-zcu104-revA zynqmp-zcu104-revC zynqmp-zcu106-revA zynqmp-zcu111-revA zynqmp-zcu1275-revA zynqmp-zcu1275-revB zynqmp-zcu1285-revA zynqmp-zcu208-revA zynqmp-zcu216-revA zynqmp-topic-miamimp-xilinx-xdp-v1r1"
+CONFIG_OF_LIST="avnet-ultra96-rev1 zynqmp-a2197-revA zynqmp-e-a2197-00-revA zynqmp-g-a2197-00-revA zynqmp-m-a2197-01-revA zynqmp-m-a2197-02-revA zynqmp-m-a2197-03-revA zynqmp-p-a2197-00-revA zynqmp-zc1232-revA zynqmp-zc1254-revA zynqmp-zc1751-xm015-dc1 zynqmp-zc1751-xm016-dc2 zynqmp-zc1751-xm017-dc3 zynqmp-zc1751-xm018-dc4 zynqmp-zc1751-xm019-dc5 zynqmp-zcu100-revC zynqmp-zcu102-rev1.1 zynqmp-zcu102-rev1.0 zynqmp-zcu102-revA zynqmp-zcu102-revB zynqmp-zcu104-revA zynqmp-zcu104-revC zynqmp-zcu106-revA zynqmp-zcu111-revA zynqmp-zcu1275-revA zynqmp-zcu1275-revB zynqmp-zcu1285-revA zynqmp-zcu208-revA zynqmp-zcu216-revA zynqmp-topic-miamimp-xilinx-xdp-v1r1 zynqmp-sm-k26-revA zynqmp-smk-k26-revA"
 CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names interrupt-parent interrupts iommus power-domains"
 CONFIG_ENV_IS_NOWHERE=y
 CONFIG_ENV_IS_IN_FAT=y
Signature · 1 line
2.31.1
Applied
#11 lore raw

cover arm64: zynqmp: Add support for KRIA boards and update phy/pinctrl descs

In reply to Michal Simek

po 10. 5. 2021 v 16:17 odes?latel Michal Simek <[email protected]> napsal:

Quoted 65 lines

Hi,

this patchset is adding support for new Xilinx SOM platform. SOM+CC. Also adding description for pin control and PSGTR phys with also some small fixes in DT.

Thanks,
Michal

Michal Simek (6):
arm64: zynqmp: Add missing silabs,skip-recall for si570 ref clk nodes
arm64: zynqmp: Remove comment about clock chips
arm64: zynqmp: Add missing mio-bank properties to sdhci
arm64: zynqmp: Add pinctrl description
arm64: zynqmp: Add psgtr DT descriptions
arm64: zynqmp: Add description for SOM/Kria boards

Raviteja Narayanam (1):
arm64: zynqmp: Add 'i2c-mux-idle-disconnect' property

Saeed Nowshadi (2):
arm64: zynqmp: Add 'silabs,skip-recall' to DDR DIMM si570 clk node
arm64: zynqmp: Add label to all GPIO lines for VCK190 SC

T Karthik Reddy (1):
arm64: zynqmp: Add zynqmp firmware specific DT nodes

 arch/arm/dts/Makefile                        |   4 +
 arch/arm/dts/zynqmp-e-a2197-00-revA.dts      |  20 +-
 arch/arm/dts/zynqmp-m-a2197-01-revA.dts      |   3 +-
 arch/arm/dts/zynqmp-m-a2197-02-revA.dts      |   3 +-
 arch/arm/dts/zynqmp-m-a2197-03-revA.dts      |   3 +-
 arch/arm/dts/zynqmp-mini-emmc0.dts           |  40 ++
 arch/arm/dts/zynqmp-mini-emmc1.dts           |  40 ++
 arch/arm/dts/zynqmp-p-a2197-00-revA.dts      |  23 ++
 arch/arm/dts/zynqmp-sck-kv-g-revA.dts        | 373 +++++++++++++++++++
 arch/arm/dts/zynqmp-sck-kv-g-revB.dts        | 353 ++++++++++++++++++
 arch/arm/dts/zynqmp-sm-k26-revA-u-boot.dtsi  |  21 ++
 arch/arm/dts/zynqmp-sm-k26-revA.dts          | 316 ++++++++++++++++
 arch/arm/dts/zynqmp-smk-k26-revA-u-boot.dtsi |  21 ++
 arch/arm/dts/zynqmp-smk-k26-revA.dts         |  21 ++
 arch/arm/dts/zynqmp-zc1751-xm015-dc1.dts     | 260 +++++++++++++
 arch/arm/dts/zynqmp-zc1751-xm016-dc2.dts     | 306 +++++++++++++++
 arch/arm/dts/zynqmp-zc1751-xm019-dc5.dts     | 330 ++++++++++++++++
 arch/arm/dts/zynqmp-zcu100-revC.dts          | 242 +++++++++++-
 arch/arm/dts/zynqmp-zcu102-revA.dts          | 290 ++++++++++++++
 arch/arm/dts/zynqmp-zcu104-revA.dts          | 218 +++++++++++
 arch/arm/dts/zynqmp-zcu104-revC.dts          | 218 +++++++++++
 arch/arm/dts/zynqmp-zcu106-revA.dts          | 290 ++++++++++++++
 arch/arm/dts/zynqmp-zcu111-revA.dts          | 234 +++++++++++-
 arch/arm/dts/zynqmp-zcu208-revA.dts          |  83 ++++-
 arch/arm/dts/zynqmp-zcu216-revA.dts          |  83 ++++-
 configs/xilinx_zynqmp_virt_defconfig         |   2 +-
 include/dt-bindings/pinctrl/pinctrl-zynqmp.h |  19 +
 27 files changed, 3792 insertions(+), 24 deletions(-)
 create mode 100644 arch/arm/dts/zynqmp-sck-kv-g-revA.dts
 create mode 100644 arch/arm/dts/zynqmp-sck-kv-g-revB.dts
 create mode 100644 arch/arm/dts/zynqmp-sm-k26-revA-u-boot.dtsi
 create mode 100644 arch/arm/dts/zynqmp-sm-k26-revA.dts
 create mode 100644 arch/arm/dts/zynqmp-smk-k26-revA-u-boot.dtsi
 create mode 100644 arch/arm/dts/zynqmp-smk-k26-revA.dts
 create mode 100644 include/dt-bindings/pinctrl/pinctrl-zynqmp.h
Quoted 3 lines

--
2.31.1

Applied.
M

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