Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm64: dts: ti: iot2050: Factor out enabling of USB3 support

Already simplifies the existing code by avoid the switch back in the m2
variant to what k3-am65-main.dtsi provided as base.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Link: https://lore.kernel.org/r/51d9be5ddbf74f90bc915ab5473b9ea9a4b0cdf7.1707463401.git.jan.kiszka@siemens.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>

authored by

Jan Kiszka and committed by
Vignesh Raghavendra
f1a024f7 1ef134a4

+29 -31
-18
arch/arm64/boot/dts/ti/k3-am65-iot2050-common-pg2.dtsi
··· 38 38 /* Workaround needed to get DP clock of 154Mhz */ 39 39 assigned-clocks = <&k3_clks 67 0>; 40 40 }; 41 - 42 - &serdes0 { 43 - assigned-clocks = <&k3_clks 153 4>, <&serdes0 AM654_SERDES_CMU_REFCLK>; 44 - assigned-clock-parents = <&k3_clks 153 7>, <&k3_clks 153 4>; 45 - }; 46 - 47 - &dwc3_0 { 48 - assigned-clock-parents = <&k3_clks 151 4>, /* set REF_CLK to 20MHz i.e. PER0_PLL/48 */ 49 - <&k3_clks 151 8>; /* set PIPE3_TXB_CLK to WIZ8B2M4VSB */ 50 - phys = <&serdes0 PHY_TYPE_USB3 0>; 51 - phy-names = "usb3-phy"; 52 - }; 53 - 54 - &usb0 { 55 - maximum-speed = "super-speed"; 56 - snps,dis-u1-entry-quirk; 57 - snps,dis-u2-entry-quirk; 58 - };
+27
arch/arm64/boot/dts/ti/k3-am65-iot2050-usb3.dtsi
··· 1 + // SPDX-License-Identifier: GPL-2.0-only 2 + /* 3 + * Copyright (c) Siemens AG, 2024 4 + * 5 + * Authors: 6 + * Jan Kiszka <jan.kiszka@siemens.com> 7 + * 8 + * Common bits for IOT2050 variants with USB3 support 9 + */ 10 + 11 + &serdes0 { 12 + assigned-clocks = <&k3_clks 153 4>, <&serdes0 AM654_SERDES_CMU_REFCLK>; 13 + assigned-clock-parents = <&k3_clks 153 7>, <&k3_clks 153 4>; 14 + }; 15 + 16 + &dwc3_0 { 17 + assigned-clock-parents = <&k3_clks 151 4>, /* set REF_CLK to 20MHz i.e. PER0_PLL/48 */ 18 + <&k3_clks 151 8>; /* set PIPE3_TXB_CLK to WIZ8B2M4VSB */ 19 + phys = <&serdes0 PHY_TYPE_USB3 0>; 20 + phy-names = "usb3-phy"; 21 + }; 22 + 23 + &usb0 { 24 + maximum-speed = "super-speed"; 25 + snps,dis-u1-entry-quirk; 26 + snps,dis-u2-entry-quirk; 27 + };
+1
arch/arm64/boot/dts/ti/k3-am6528-iot2050-basic-pg2.dts
··· 17 17 18 18 #include "k3-am6528-iot2050-basic-common.dtsi" 19 19 #include "k3-am65-iot2050-common-pg2.dtsi" 20 + #include "k3-am65-iot2050-usb3.dtsi" 20 21 21 22 / { 22 23 compatible = "siemens,iot2050-basic-pg2", "ti,am654";
-13
arch/arm64/boot/dts/ti/k3-am6548-iot2050-advanced-m2.dts
··· 92 92 &pcie1_rc { 93 93 status = "disabled"; 94 94 }; 95 - 96 - &dwc3_0 { 97 - assigned-clock-parents = <&k3_clks 151 4>, /* set REF_CLK to 20MHz i.e. PER0_PLL/48 */ 98 - <&k3_clks 151 9>; /* set PIPE3_TXB_CLK to CLK_12M_RC/256 (for HS only) */ 99 - /delete-property/ phys; 100 - /delete-property/ phy-names; 101 - }; 102 - 103 - &usb0 { 104 - maximum-speed = "high-speed"; 105 - /delete-property/ snps,dis-u1-entry-quirk; 106 - /delete-property/ snps,dis-u2-entry-quirk; 107 - };
+1
arch/arm64/boot/dts/ti/k3-am6548-iot2050-advanced-pg2.dts
··· 18 18 #include "k3-am6548-iot2050-advanced-common.dtsi" 19 19 #include "k3-am65-iot2050-common-pg2.dtsi" 20 20 #include "k3-am65-iot2050-arduino-connector.dtsi" 21 + #include "k3-am65-iot2050-usb3.dtsi" 21 22 22 23 / { 23 24 compatible = "siemens,iot2050-advanced-pg2", "ti,am654";