Re: [PATCH] arm64: dts: ti: k3-am64* Disable ethernet by default at SoC level

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 08.08.24 um 00:13 schrieb Logan Bristol:
> External interfaces should be disabled at the SoC DTSI level, since
> the node is incomplete. The node should then be enabled in the board DTS.
> Disable ethernet switch and ports in SoC DTSI and enable them in the board
> DTS.
>
> Reflect this change in SoM DTSIs by removing ethernet port disable.
>
> Signed-off-by: Logan Bristol <logan.bristol@xxxxxxxxxx>
> ---
>   arch/arm64/boot/dts/ti/k3-am64-main.dtsi                 | 3 +++
>   arch/arm64/boot/dts/ti/k3-am64-phycore-som.dtsi          | 4 ----
>   arch/arm64/boot/dts/ti/k3-am642-evm.dts                  | 3 +++
>   arch/arm64/boot/dts/ti/k3-am642-hummingboard-t.dts       | 8 ++++++++
>   arch/arm64/boot/dts/ti/k3-am642-phyboard-electra-rdk.dts | 8 ++++++++
>   arch/arm64/boot/dts/ti/k3-am642-sk.dts                   | 3 +++
>   arch/arm64/boot/dts/ti/k3-am642-sr-som.dtsi              | 4 ----
>   arch/arm64/boot/dts/ti/k3-am642-tqma64xxl-mbax4xxl.dts   | 6 ++----
>   8 files changed, 27 insertions(+), 12 deletions(-)
cut
> diff --git a/arch/arm64/boot/dts/ti/k3-am642-hummingboard-t.dts b/arch/arm64/boot/dts/ti/k3-am642-hummingboard-t.dts
> index 5b5e9eeec5ac..90ffc426cae1 100644
> --- a/arch/arm64/boot/dts/ti/k3-am642-hummingboard-t.dts
> +++ b/arch/arm64/boot/dts/ti/k3-am642-hummingboard-t.dts
> @@ -89,6 +89,14 @@ serdes_mux: mux-controller {
>   	};
>   };
>   
> +&cpsw3g {
> +	status = "okay";
> +};
> +
> +&cpsw_port1 {
> +	status ="okay";
> +};
> +
SolidRun AM642 SoM has ethernet phys on the SoM itself,
carrier only provides physical connector.

Therefore the ports status should be set in som dtsi,
where we also set pinctrl and phy-handle.

>   &main_gpio0 {
>   	m2-reset-hog {
>   		gpio-hog;
cut
> diff --git a/arch/arm64/boot/dts/ti/k3-am642-sr-som.dtsi b/arch/arm64/boot/dts/ti/k3-am642-sr-som.dtsi
> index c19d0b8bbf0f..995e2703030b 100644
> --- a/arch/arm64/boot/dts/ti/k3-am642-sr-som.dtsi
> +++ b/arch/arm64/boot/dts/ti/k3-am642-sr-som.dtsi
> @@ -212,10 +212,6 @@ &cpsw_port1 {
>   	phy-handle = <&ethernet_phy0>;
>   };
>   
Please enable cpsw3g and cpsw_port1 status here.
> -&cpsw_port2 {
> -	status = "disabled";
> -};
> -
>   &icssg1_mdio {
>   	pinctrl-names = "default";
>   	pinctrl-0 = <&pru1_mdio0_default_pins>;





[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]


  Powered by Linux