]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm64: zynqmp: Use slg device for all resets
authorMichal Simek <michal.simek@xilinx.com>
Tue, 30 Nov 2021 14:17:24 +0000 (15:17 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 6 Dec 2021 12:32:48 +0000 (13:32 +0100)
All reset signals are active low that's why change level to proper values
and switch renaming resets over PS gpio to slg device too.
Reset over slg device has been proven by HW guys to be working properly.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/dts/zynqmp-sck-kr-g-revA.dts

index 72b33acfdd19df8d9a61a1ef486e07c1ab11783b..00ab4cc95c5e314a627d965dec840527f046b9a7 100644 (file)
        pinctrl-0 = <&pinctrl_usb0_default>;
        phy-names = "usb3-phy";
        phys = <&psgtr 2 PHY_TYPE_USB3 0 2>;
-       reset-gpio = <&gpio 76 0>;
+       reset-gpios = <&slg7xl45106 0 GPIO_ACTIVE_LOW>;
 
        usbhub0: usb5744@2d { /* u43 */
                i2c-bus = <&usbhub_i2c0>;
                compatible = "microchip,usb5744";
-               reset-gpios = <&slg7xl45106 3 GPIO_ACTIVE_HIGH>;
+               reset-gpios = <&slg7xl45106 3 GPIO_ACTIVE_LOW>;
        };
 
        /* usb2244 - u38 - SD_RESET_B via u19 */
        usbsd: usb2244 {
                compatible = "microchip,usb2244";
-               reset-gpios = <&slg7xl45106 2 GPIO_ACTIVE_HIGH>;
+               reset-gpios = <&slg7xl45106 2 GPIO_ACTIVE_LOW>;
        };
 };
 
        pinctrl-0 = <&pinctrl_usb1_default>;
        phy-names = "usb3-phy";
        phys = <&psgtr 3 PHY_TYPE_USB3 1 2>;
-       reset-gpio = <&gpio 77 0>;
+       reset-gpios = <&slg7xl45106 1 GPIO_ACTIVE_LOW>;
 
        usbhub1: usb5744@2d { /* u84 */
                i2c-bus = <&usbhub_i2c1>;
                compatible = "microchip,usb5744";
-               reset-gpios = <&slg7xl45106 4 GPIO_ACTIVE_HIGH>;
+               reset-gpios = <&slg7xl45106 4 GPIO_ACTIVE_LOW>;
        };
 };
 
        mdio: mdio { /* FIXME */
                #address-cells = <1>;
                #size-cells = <0>;
-               reset-gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
+               reset-gpios = <&slg7xl45106 6 GPIO_ACTIVE_LOW>;
                reset-delay-us = <2>;
 
                phy0: ethernet-phy@4 { /* u81 */
                        ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_75_NS>;
                        ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
                        ti,dp83867-rxctrl-strap-quirk;
+                       /* This is not correct but address depends on GTR settings */
+                       /* reset-gpios = <&slg7xl45106 5 GPIO_ACTIVE_LOW>;  */
                };
                phy1: ethernet-phy@8 { /* u36 */
                        #phy-cells = <1>;