board: sl28: move to OF_UPSTREAM
PATCH 1/1 board: sl28: move to OF_UPSTREAM
Use the new device devicetree files in dts/upstream/ and delete the old ones. Still keep the -u-boot.dtsi with all u-boot specifics around.
There is one catch and that is fsl-ls1028a-kontron-sl28-var3.dts which is not available upstream (yet!). For now, the base dts is used for this variant as this only differ in the compatible and the (human readable) model name.
---
I'll send a patch to linux to add the var3.dts, then I'll add the correct var3 dts again.
--- .../arm/dts/fsl-ls1028a-kontron-sl28-var1.dts | 59 ---- .../arm/dts/fsl-ls1028a-kontron-sl28-var2.dts | 65 ---- .../arm/dts/fsl-ls1028a-kontron-sl28-var3.dts | 15 - .../arm/dts/fsl-ls1028a-kontron-sl28-var4.dts | 47 --- arch/arm/dts/fsl-ls1028a-kontron-sl28.dts | 308 ------------------ board/kontron/sl28/spl.c | 11 +- configs/kontron_sl28_defconfig | 5 +- 7 files changed, 8 insertions(+), 502 deletions(-) delete mode 100644 arch/arm/dts/fsl-ls1028a-kontron-sl28-var1.dts delete mode 100644 arch/arm/dts/fsl-ls1028a-kontron-sl28-var2.dts delete mode 100644 arch/arm/dts/fsl-ls1028a-kontron-sl28-var3.dts delete mode 100644 arch/arm/dts/fsl-ls1028a-kontron-sl28-var4.dts delete mode 100644 arch/arm/dts/fsl-ls1028a-kontron-sl28.dts
arch/arm/dts/fsl-ls1028a-kontron-sl28-var1.dts deleted +0 -59
@@ -1,59 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * Device Tree file for the Kontron SMARC-sAL28 board. - * - * This is for the network variant 1 which has one ethernet port. It is - * different than the base variant, which also has one port, but here the - * port is connected via RGMII. This port is not TSN aware. - * None of the four SerDes lanes are used by the module, instead they are - * all led out to the carrier for customer use. - * - * Copyright (C) 2021 Michael Walle <[email protected]> - * - */ - -/dts-v1/; -#include "fsl-ls1028a-kontron-sl28.dts" -#include <dt-bindings/net/qca-ar803x.h> - -/ { - model = "Kontron SMARC-sAL28 (4 Lanes)"; - compatible = "kontron,sl28-var1", "kontron,sl28", "fsl,ls1028a"; -}; - -&enetc_mdio_pf3 { - /* Delete unused phy node */ - /delete-node/ ethernet-phy@5; - - phy0: ethernet-phy@4 { - reg = <0x4>; - eee-broken-1000t; - eee-broken-100tx; - qca,clk-out-frequency = <125000000>; - qca,clk-out-strength = <AR803X_STRENGTH_FULL>; - qca,keep-pll-enabled; - vddio-supply = <&vddio>; - - vddio: vddio-regulator { - regulator-name = "VDDIO"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - }; - - vddh: vddh-regulator { - regulator-name = "VDDH"; - }; - }; -}; - -&enetc_port0 { - status = "disabled"; - /* Delete the phy-handle to the old phy0 label */ - /delete-property/ phy-handle; -}; - -&enetc_port1 { - phy-handle = <&phy0>; - phy-mode = "rgmii-id"; - status = "okay"; -};
arch/arm/dts/fsl-ls1028a-kontron-sl28-var2.dts deleted +0 -65
65 lines not on this page · raw message
arch/arm/dts/fsl-ls1028a-kontron-sl28-var3.dts deleted +0 -15
@@ -1,15 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * Device Tree file for the Kontron SMARC-sAL28 board. - * - * Copyright (C) 2019 Michael Walle <[email protected]> - * - */ - -/dts-v1/; -#include "fsl-ls1028a-kontron-sl28.dts" - -/ { - model = "Kontron SMARC-sAL28 (Single PHY)"; - compatible = "kontron,sl28-var3", "kontron,sl28", "fsl,ls1028a"; -};
arch/arm/dts/fsl-ls1028a-kontron-sl28-var4.dts deleted +0 -47
47 lines not on this page · raw message
arch/arm/dts/fsl-ls1028a-kontron-sl28.dts deleted +0 -308
308 lines not on this page · raw message
board/kontron/sl28/spl.c +5 -6
@@ -47,15 +47,14 @@ int board_fit_config_name_match(const char *name)switch (variant) {case 1 : -return strcmp (name,"fsl-ls1028a-kontron-sl28-var1" ); +return strcmp (name,"freescale/fsl-ls1028a-kontron-sl28-var1" );case 2 : -return strcmp (name,"fsl-ls1028a-kontron-sl28-var2" ); -case 3 : -return strcmp (name,"fsl-ls1028a-kontron-sl28-var3" ); +return strcmp (name,"freescale/fsl-ls1028a-kontron-sl28-var2" );case 4 : -return strcmp (name,"fsl-ls1028a-kontron-sl28-var4" ); +return strcmp (name,"freescale/fsl-ls1028a-kontron-sl28-var4" ); +case 3 :default : -return strcmp (name,"fsl-ls1028a-kontron-sl28" ); +return strcmp (name,"freescale/fsl-ls1028a-kontron-sl28" ); } }
configs/kontron_sl28_defconfig +3 -2
@@ -11,7 +11,7 @@ CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x1800eff0 CONFIG_ENV_SIZE=0x2000 CONFIG_ENV_OFFSET=0x3e0000 CONFIG_ENV_SECT_SIZE=0x10000 -CONFIG_DEFAULT_DEVICE_TREE="fsl-ls1028a-kontron-sl28" +CONFIG_DEFAULT_DEVICE_TREE="freescale/fsl-ls1028a-kontron-sl28" CONFIG_SPL_TEXT_BASE=0x18010000 CONFIG_SYS_FSL_SDHC_CLK_DIV=1 CONFIG_OF_LIBFDT_OVERLAY=y
@@ -73,7 +73,8 @@ CONFIG_CMD_EFIDEBUG=y CONFIG_CMD_RNG=y CONFIG_OF_CONTROL=y CONFIG_SPL_OF_CONTROL=y -CONFIG_OF_LIST="fsl-ls1028a-kontron-sl28 fsl-ls1028a-kontron-sl28-var1 fsl-ls1028a-kontron-sl28-var2 fsl-ls1028a-kontron-sl28-var3 fsl-ls1028a-kontron-sl28-var4" +CONFIG_OF_UPSTREAM=y +CONFIG_OF_LIST="freescale/fsl-ls1028a-kontron-sl28 freescale/fsl-ls1028a-kontron-sl28-var1 freescale/fsl-ls1028a-kontron-sl28-var2 freescale/fsl-ls1028a-kontron-sl28-var4" CONFIG_ENV_OVERWRITE=y CONFIG_ENV_IS_IN_SPI_FLASH=y CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
Signature · 1 line
2.39.2
Quoted 9 lines · Michael Walle
Use the new device devicetree files in dts/upstream/ and delete the old ones. Still keep the
-u-boot.dtsiwith all u-boot specifics around.There is one catch and that is
fsl-ls1028a-kontron-sl28-var3.dtswhich is not available upstream (yet!). For now, the base dts is used for this variant as this only differ in the compatible and the (human readable) model name.Signed-off-by Michael Walle <[email protected]>
Ping. Any news here?
-michael
Peng Fan
AppliedQuoted 4 lines · Michael Walle
Quoted 3 lines · Michael Walle
Use the new device devicetree files in dts/upstream/ and delete the old ones. Still keep the
-u-boot.dtsiwith all u-boot specifics around.
Quoted 8 lines
Quoted 6 lines
There is one catch and that is
fsl-ls1028a-kontron-sl28-var3.dtswhich is not available upstream (yet!). For now, the base dts is used for this variant as this only differ in the compatible and the (human readable) model name.Signed-off-by Michael Walle <[email protected]>Ping. Any news here?
Applied.
Thanks,
Peng.
Quoted 2 lines
-michael