Skip to contentSkip to conversation

arm: exynos: Migrate E850-96 board to OF_UPSTREAM

PATCH In review Sam Protsenko 2 participants 2 messages May 25, 2024 – May 31, 2024

Subsystems (7)
lore
Share & tools
lore

Sam Protsenko

author maintainer
#0 lore raw

PATCH v2 1/1 arm: exynos: Migrate E850-96 board to OF_UPSTREAM

Use upstream device tree files and bindings. To do so:
- imply (enable) OF_UPSTREAM option for E850-96 target
- point DEFAULT_DEVICE_TREE in E850-96 config to upstream dts
- remove now not needed local dts files, binding docs and headers
- update MAINTAINERS and board/samsung/e850-96/MAINTAINERS correspondingly

Upstream device tree files for Exynos850 SoC and E850-96 board are pretty much the same as local (removed) ones, so the conversion is rather straightforward and painless in this case. The appended dts file (arch/arm/dts/exynos850-e850-96-u-boot.dtsi) stays unchanged.

The only remaining local dt-bindings doc for E850-96 board is exynos-pmu.yaml. It wasn't removed as it's quite different from Linux kernel version. Particularly U-Boot local version of exynos-pmu.yaml describes "samsung,uart-debug-1" property, which is not present in Linux kernel binding. Later it might be upstreamed to Linux kernel, and once it's done the U-Boot exynos-pmu.yaml binding can be removed.

No functional change.

---
Changes in v2:
- Updated board/samsung/e850-96/MAINTAINERS (removed board dts entry)
- Added "Acked-by" tag by Sumit Garg

 MAINTAINERS                                   |   7 +-
 arch/arm/dts/Makefile                         |   1 -
 arch/arm/dts/exynos850-e850-96.dts            | 273 ------
 arch/arm/dts/exynos850-pinctrl.dtsi           | 663 --------------
 arch/arm/dts/exynos850.dtsi                   | 809 ------------------
 arch/arm/mach-exynos/Kconfig                  |   1 +
 board/samsung/e850-96/MAINTAINERS             |   1 -
 configs/e850-96_defconfig                     |   2 +-
 .../clock/samsung,exynos850-clock.yaml        | 307 -------
 .../soc/samsung/exynos-usi.yaml               | 162 ----
 include/dt-bindings/clock/exynos850.h         | 337 --------
 include/dt-bindings/soc/samsung,exynos-usi.h  |  17 -
 12 files changed, 3 insertions(+), 2577 deletions(-)
 delete mode 100644 arch/arm/dts/exynos850-e850-96.dts
 delete mode 100644 arch/arm/dts/exynos850-pinctrl.dtsi
 delete mode 100644 arch/arm/dts/exynos850.dtsi
 delete mode 100644 doc/device-tree-bindings/clock/samsung,exynos850-clock.yaml
 delete mode 100644 doc/device-tree-bindings/soc/samsung/exynos-usi.yaml
 delete mode 100644 include/dt-bindings/clock/exynos850.h
 delete mode 100644 include/dt-bindings/soc/samsung,exynos-usi.h
MAINTAINERS +1 -6
index 638b2fdd442f..f8afd7d51e2e 100644
@@ -578,19 +578,14 @@ F:	drivers/clk/exynos/clk.h
 ARM SAMSUNG EXYNOS850 SOC
 M:	Sam Protsenko <[email protected]>
 S:	Maintained
-F:	arch/arm/dts/exynos850-pinctrl.dtsi
-F:	arch/arm/dts/exynos850.dtsi
-F:	doc/device-tree-bindings/clock/samsung,exynos850-clock.yaml
 F:	drivers/clk/exynos/clk-exynos850.c
 F:	drivers/pinctrl/exynos/pinctrl-exynos850.c
-F:	include/dt-bindings/clock/exynos850.h
 
 ARM SAMSUNG SOC DRIVERS
 M:	Sam Protsenko <[email protected]>
 S:	Maintained
-F:	doc/device-tree-bindings/soc/samsung/*
+F:	doc/device-tree-bindings/soc/samsung/exynos-pmu.yaml
 F:	drivers/soc/samsung/*
-F:	include/dt-bindings/soc/samsung,*.h
 
 ARM SANCLOUD
 M:	Paul Barker <[email protected]>
arch/arm/dts/Makefile +0 -1
index a5c82ebf7a5f..4b72d9f64863 100644
@@ -31,7 +31,6 @@ dtb-$(CONFIG_EXYNOS7420) += exynos7420-espresso7420.dtb
 dtb-$(CONFIG_TARGET_A5Y17LTE) += exynos78x0-axy17lte.dtb
 dtb-$(CONFIG_TARGET_A3Y17LTE) += exynos78x0-axy17lte.dtb
 dtb-$(CONFIG_TARGET_A7Y17LTE) += exynos78x0-axy17lte.dtb
-dtb-$(CONFIG_TARGET_E850_96) += exynos850-e850-96.dtb
 
 dtb-$(CONFIG_ARCH_APPLE) += \
 	t8103-j274.dtb \
arch/arm/dts/exynos850-e850-96.dts deleted +0 -273

273 lines not on this page · raw message

arch/arm/dts/exynos850-pinctrl.dtsi deleted +0 -663

663 lines not on this page · raw message

arch/arm/dts/exynos850.dtsi deleted +0 -809

809 lines not on this page · raw message

arch/arm/mach-exynos/Kconfig +1 -0
index af00ee1db07a..cad8bb044cf0 100644
@@ -249,6 +249,7 @@ config TARGET_E850_96
 	select OF_CONTROL
 	select PINCTRL
 	select PINCTRL_EXYNOS850
+	imply OF_UPSTREAM
 
 endchoice
 endif
board/samsung/e850-96/MAINTAINERS +0 -1
index e8b9365eea85..b0987943fa47 100644
@@ -2,7 +2,6 @@ WINLINK E850-96 BOARD
 M:	Sam Protsenko <[email protected]>
 S:	Maintained
 F:	arch/arm/dts/exynos850-e850-96-u-boot.dtsi
-F:	arch/arm/dts/exynos850-e850-96.dts
 F:	board/samsung/e850-96/
 F:	configs/e850-96_defconfig
 F:	doc/board/samsung/e850-96.rst
configs/e850-96_defconfig +1 -1
index bb41635ff784..38b9968c1671 100644
@@ -7,7 +7,7 @@ CONFIG_SYS_MALLOC_F_LEN=0x4000
 CONFIG_ARCH_EXYNOS9=y
 CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
 CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0xf8c00000
-CONFIG_DEFAULT_DEVICE_TREE="exynos850-e850-96"
+CONFIG_DEFAULT_DEVICE_TREE="exynos/exynos850-e850-96"
 CONFIG_SYS_LOAD_ADDR=0x80000000
 # CONFIG_AUTOBOOT is not set
 # CONFIG_DISPLAY_CPUINFO is not set
doc/device-tree-bindings/clock/samsung,exynos850-clock.yaml deleted +0 -307

307 lines not on this page · raw message

doc/device-tree-bindings/soc/samsung/exynos-usi.yaml deleted +0 -162

162 lines not on this page · raw message

include/dt-bindings/clock/exynos850.h deleted +0 -337

337 lines not on this page · raw message

include/dt-bindings/soc/samsung,exynos-usi.h deleted +0 -17
deleted file mode 100644
index a01af169d249..000000000000
@@ -1,17 +0,0 @@
-/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
-/*
- * Copyright (c) 2021 Linaro Ltd.
- * Author: Sam Protsenko <[email protected]>
- *
- * Device Tree bindings for Samsung Exynos USI (Universal Serial Interface).
- */
-
-#ifndef __DT_BINDINGS_SAMSUNG_EXYNOS_USI_H
-#define __DT_BINDINGS_SAMSUNG_EXYNOS_USI_H
-
-#define USI_V2_NONE		0
-#define USI_V2_UART		1
-#define USI_V2_SPI		2
-#define USI_V2_I2C		3
-
-#endif /* __DT_BINDINGS_SAMSUNG_EXYNOS_USI_H */
Signature · 1 line
2.39.2
#1 lore raw

Hi,

Quoted 41 lines · Sam Protsenko

Use upstream device tree files and bindings. To do so:
- imply (enable) OF_UPSTREAM option for E850-96 target
- point DEFAULT_DEVICE_TREE in E850-96 config to upstream dts
- remove now not needed local dts files, binding docs and headers
- update MAINTAINERS and board/samsung/e850-96/MAINTAINERS correspondingly

Upstream device tree files for Exynos850 SoC and E850-96 board are pretty much the same as local (removed) ones, so the conversion is rather straightforward and painless in this case. The appended dts file (arch/arm/dts/exynos850-e850-96-u-boot.dtsi) stays unchanged.

The only remaining local dt-bindings doc for E850-96 board is exynos-pmu.yaml. It wasn't removed as it's quite different from Linux kernel version. Particularly U-Boot local version of exynos-pmu.yaml describes "samsung,uart-debug-1" property, which is not present in Linux kernel binding. Later it might be upstreamed to Linux kernel, and once it's done the U-Boot exynos-pmu.yaml binding can be removed.

No functional change.

---
Changes in v2:
- Updated board/samsung/e850-96/MAINTAINERS (removed board dts entry)
- Added "Acked-by" tag by Sumit Garg

 MAINTAINERS                                   |   7 +-
 arch/arm/dts/Makefile                         |   1 -
 arch/arm/dts/exynos850-e850-96.dts            | 273 ------
 arch/arm/dts/exynos850-pinctrl.dtsi           | 663 --------------
 arch/arm/dts/exynos850.dtsi                   | 809 ------------------
 arch/arm/mach-exynos/Kconfig                  |   1 +
 board/samsung/e850-96/MAINTAINERS             |   1 -
 configs/e850-96_defconfig                     |   2 +-
 .../clock/samsung,exynos850-clock.yaml        | 307 -------
 .../soc/samsung/exynos-usi.yaml               | 162 ----
 include/dt-bindings/clock/exynos850.h         | 337 --------
 include/dt-bindings/soc/samsung,exynos-usi.h  |  17 -
 12 files changed, 3 insertions(+), 2577 deletions(-)
Quoted 11 lines
 delete mode 100644 arch/arm/dts/exynos850-e850-96.dts
 delete mode 100644 arch/arm/dts/exynos850-pinctrl.dtsi
 delete mode 100644 arch/arm/dts/exynos850.dtsi
 delete mode 100644
doc/device-tree-bindings/clock/samsung,exynos850-clock.yaml
 delete mode 100644 doc/device-tree-bindings/soc/samsung/exynos-usi.yaml
 delete mode 100644 include/dt-bindings/clock/exynos850.h
 delete mode 100644 include/dt-bindings/soc/samsung,exynos-usi.h

applied to u-boot-samsung.

Thanks,
Minkyu Kang.