]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: stm32mp15: alignment with v5.17
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Mon, 31 Jan 2022 15:07:54 +0000 (16:07 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 15 Mar 2022 08:11:47 +0000 (09:11 +0100)
Device tree alignment with Linux kernel v5.17-rc1
- ARM: dts: stm32: add pull-up to USART3 and UART7 RX pins
  on STM32MP15 DKx boards
- ARM: dts: stm32: clean uart4_idle_pins_a node for stm32mp15
- ARM: dts: stm32: tune the HS USB PHYs on stm32mp15xx-dkx
- ARM: dts: stm32: tune the HS USB PHYs on stm32mp157c-ev1
- ARM: dts: stm32: fix stusb1600 pinctrl used on stm32mp157c-dk

Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/dts/stm32mp15-pinctrl.dtsi
arch/arm/dts/stm32mp157c-ev1.dts
arch/arm/dts/stm32mp15xx-dkx.dtsi

index d3553e0f0187e312479fed76925b755890316a6a..6161f5906ec11b3debd2edb8108ad3fa20fc66ba 100644 (file)
 
        stusb1600_pins_a: stusb1600-0 {
                pins {
-                       pinmux = <STM32_PINMUX('I', 11, ANALOG)>;
+                       pinmux = <STM32_PINMUX('I', 11, GPIO)>;
                        bias-pull-up;
                };
        };
        };
 
        uart4_idle_pins_a: uart4-idle-0 {
-                  pins1 {
-                        pinmux = <STM32_PINMUX('G', 11, ANALOG)>; /* UART4_TX */
-                  };
-                  pins2 {
-                        pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */
-                        bias-disable;
-                  };
+               pins1 {
+                       pinmux = <STM32_PINMUX('G', 11, ANALOG)>; /* UART4_TX */
+               };
+               pins2 {
+                       pinmux = <STM32_PINMUX('B', 2, AF8)>; /* UART4_RX */
+                       bias-disable;
+               };
        };
 
        uart4_sleep_pins_a: uart4-sleep-0 {
-                  pins {
+               pins {
                        pinmux = <STM32_PINMUX('G', 11, ANALOG)>, /* UART4_TX */
                                 <STM32_PINMUX('B', 2, ANALOG)>; /* UART4_RX */
-                   };
+               };
        };
 
        uart4_pins_b: uart4-1 {
                };
                pins2 {
                        pinmux = <STM32_PINMUX('E', 7, AF7)>; /* UART7_RX */
-                       bias-disable;
+                       bias-pull-up;
                };
        };
 
                };
                pins2 {
                        pinmux = <STM32_PINMUX('E', 7, AF7)>; /* UART7_RX */
-                       bias-disable;
+                       bias-pull-up;
                };
        };
 
                pins2 {
                        pinmux = <STM32_PINMUX('B', 12, AF8)>, /* USART3_RX */
                                 <STM32_PINMUX('I', 10, AF8)>; /* USART3_CTS_NSS */
-                       bias-disable;
+                       bias-pull-up;
                };
        };
 
                };
                pins3 {
                        pinmux = <STM32_PINMUX('B', 12, AF8)>; /* USART3_RX */
-                       bias-disable;
+                       bias-pull-up;
                };
        };
 
                pins2 {
                        pinmux = <STM32_PINMUX('B', 12, AF8)>, /* USART3_RX */
                                 <STM32_PINMUX('B', 13, AF7)>; /* USART3_CTS_NSS */
-                       bias-disable;
+                       bias-pull-up;
                };
        };
 
                };
                pins3 {
                        pinmux = <STM32_PINMUX('B', 12, AF8)>; /* USART3_RX */
-                       bias-disable;
+                       bias-pull-up;
                };
        };
 
index 5c5b1ddf7bfd21d7252fb4ec98ca088d2af948a4..e222d2d2cb4496df351d862281583da3db74517d 100644 (file)
 &usbphyc {
        status = "okay";
 };
+
+&usbphyc_port0 {
+       st,tune-hs-dc-level = <2>;
+       st,enable-fs-rftime-tuning;
+       st,enable-hs-rftime-reduction;
+       st,trim-hs-current = <15>;
+       st,trim-hs-impedance = <1>;
+       st,tune-squelch-level = <3>;
+       st,tune-hs-rx-offset = <2>;
+       st,no-lsfs-sc;
+};
+
+&usbphyc_port1 {
+       st,tune-hs-dc-level = <2>;
+       st,enable-fs-rftime-tuning;
+       st,enable-hs-rftime-reduction;
+       st,trim-hs-current = <15>;
+       st,trim-hs-impedance = <1>;
+       st,tune-squelch-level = <3>;
+       st,tune-hs-rx-offset = <2>;
+       st,no-lsfs-sc;
+};
index 5502eec94b4510afbc940430137596ef2adb30a8..f8130bf445171e1a8308c5ee72759ff7121cec11 100644 (file)
 
 &usbphyc_port0 {
        phy-supply = <&vdd_usb>;
+       st,tune-hs-dc-level = <2>;
+       st,enable-fs-rftime-tuning;
+       st,enable-hs-rftime-reduction;
+       st,trim-hs-current = <15>;
+       st,trim-hs-impedance = <1>;
+       st,tune-squelch-level = <3>;
+       st,tune-hs-rx-offset = <2>;
+       st,no-lsfs-sc;
 };
 
 &usbphyc_port1 {
        phy-supply = <&vdd_usb>;
+       st,tune-hs-dc-level = <2>;
+       st,enable-fs-rftime-tuning;
+       st,enable-hs-rftime-reduction;
+       st,trim-hs-current = <15>;
+       st,trim-hs-impedance = <1>;
+       st,tune-squelch-level = <3>;
+       st,tune-hs-rx-offset = <2>;
+       st,no-lsfs-sc;
 };
 
 &vrefbuf {