]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm64: zynqmp: Add psgtr DT descriptions
authorMichal Simek <michal.simek@xilinx.com>
Mon, 10 May 2021 12:55:34 +0000 (14:55 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 19 May 2021 07:44:50 +0000 (09:44 +0200)
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.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/dts/zynqmp-p-a2197-00-revA.dts
arch/arm/dts/zynqmp-zc1751-xm015-dc1.dts
arch/arm/dts/zynqmp-zcu100-revC.dts
arch/arm/dts/zynqmp-zcu102-revA.dts
arch/arm/dts/zynqmp-zcu104-revA.dts
arch/arm/dts/zynqmp-zcu104-revC.dts
arch/arm/dts/zynqmp-zcu106-revA.dts
arch/arm/dts/zynqmp-zcu111-revA.dts
arch/arm/dts/zynqmp-zcu208-revA.dts
arch/arm/dts/zynqmp-zcu216-revA.dts

index 8e1e6b7f903bf4fae9fe039f7681ea9a390b0b66..1f5201ac88835cd33d8d93f45f8e66ffdacd414c 100644 (file)
@@ -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 */
                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 */
        xlnx,mio-bank = <1>;
 };
 
+&psgtr {
+       status = "okay";
+       /* sgmii, usb3 */
+       clocks = <&si5332_1>, <&si5332_2>;
+       clock-names = "ref0", "ref1";
+};
+
 &gem0 {
        status = "okay";
        phy-handle = <&phy0>;
        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 {
index d5862c1cabe9e7af32adc75c7d21a13cc98c3d3b..039a8da1a9606f5d79e6320cad8fa6ad06870173 100644 (file)
@@ -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>
 
                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 {
        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 */
 &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 {
index 9603043db1091b1e516648cb5709823bfca3e7d0..b83696cccd2b95b0af3b225b3b33881c08c44c20 100644 (file)
 &dwc3_0 {
        status = "okay";
        dr_mode = "peripheral";
+       phy-names = "usb3-phy";
+       phys = <&psgtr 2 PHY_TYPE_USB3 0 0>;
        maximum-speed = "super-speed";
 };
 
 &dwc3_1 {
        status = "okay";
        dr_mode = "host";
+       phy-names = "usb3-phy";
+       phys = <&psgtr 3 PHY_TYPE_USB3 1 0>;
        maximum-speed = "super-speed";
 };
 
index 27c3dcc87f966ae8b1ec972e2b951d9ac8f3d694..ec61b7089da2adc6c2a8989731038ea5d96acbcb 100644 (file)
        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";
 };
 
index bad73d9093c0ccf2b7f842a3234481658a20c048..c25ac9af48e8c1f712e41ad303de8ebf1c090b8c 100644 (file)
        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";
 };
 
index 1b4cfb142a39888cdca09cc824a3d1aeb03fd102..ce9d8fb3b8156c42dc82347ba29fa6c50000d017 100644 (file)
        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";
 };
 
index 9a6b00ff8c10f6b7e183b071ec0bd6e5ab4f9f23..ae20e581c0f4acee7fe57c69cc19f7e86073df8a 100644 (file)
        status = "okay";
        dr_mode = "host";
        snps,usb3_lpm_capable;
+       phy-names = "usb3-phy";
+       phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
 };
 
 &watchdog0 {
index ec2bf537dff7027d23fcf73e3cfe8d47048f30cd..d564f74344c95012aba872ca38214bef9b9b886f 100644 (file)
        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 */
        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 {
index 0dc9880b923a064b9571d90f44b975c25a64af00..880281d4e79b3b98d333f19306b55eca30cfe893 100644 (file)
        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>;
 };
 
        status = "okay";
        dr_mode = "host";
        snps,usb3_lpm_capable;
+       phy-names = "usb3-phy";
+       phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
 };
index e0258ea0dda318ae0a80921b2272617c0df2a538..f899226ae1981d2e6479fb389610a6604f7eed23 100644 (file)
        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>;
 };
 
        status = "okay";
        dr_mode = "host";
        snps,usb3_lpm_capable;
+       phy-names = "usb3-phy";
+       phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
 };