Skip to contentSkip to conversation

Add support for Samsung 2017 A-series phones

PATCH Superseded Dzmitry Sankouski 2 participants 6 messages Oct 12, 2021 – Oct 15, 2021

Subsystems (5)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Add support for Samsung 2017 A-series phones

Samsung Galaxy A3, A5, A7 (2017) - middle class Samsung smartphones, powered by Exynos7880 (A5,A7) and Exynos7870 (A3)
U-boot can be used as chain-loaded bootloader to gain control on booting vanilla linux(and possibly others) kernels.

Samsung Exynos 7880 \ 7870 - SoC for mainstream smartphones and tablets introduced on March 2017.
Features:
- 8 Cortex A53 cores
- ARM Mali-T830 MP3 GPU
- LTE Cat. 7 (7880) or 6 (7870) modem

Dzmitry Sankouski (4):
serial: samsung: add support for skip debug init in s5p
pinctrl: exynos: add support for multiple pin banks
SoC: exynos: add support for exynos 78x0
board: samsung: add support for Galaxy A series of 2017 (a5y17lte)

 arch/arm/dts/Makefile                       |   3 +
 arch/arm/dts/exynos78x0-axy17lte.dts        |  29 ++
 arch/arm/dts/exynos78x0-gpio.dtsi           | 204 ++++++++++++++
 arch/arm/dts/exynos78x0-pinctrl.dtsi        | 280 ++++++++++++++++++++
 arch/arm/dts/exynos78x0.dtsi                |  98 +++++++
 arch/arm/mach-exynos/Kconfig                |  28 ++
 arch/arm/mach-exynos/mmu-arm64.c            |  66 +++++
 board/samsung/axy17lte/Kconfig              |  58 ++++
 board/samsung/axy17lte/MAINTAINERS          |   8 +
 board/samsung/axy17lte/Makefile             |   3 +
 board/samsung/axy17lte/axy17lte.c           |  11 +
 configs/a3y17lte_defconfig                  |  24 ++
 configs/a5y17lte_defconfig                  |  24 ++
 configs/a7y17lte_defconfig                  |  24 ++
 doc/board/index.rst                         |   1 +
 doc/board/samsung/axy17lte.rst              |  92 +++++++
 doc/board/samsung/index.rst                 |   9 +
 drivers/gpio/s5p_gpio.c                     |   1 +
 drivers/pinctrl/exynos/Kconfig              |   8 +
 drivers/pinctrl/exynos/Makefile             |   1 +
 drivers/pinctrl/exynos/pinctrl-exynos.c     |  28 +-
 drivers/pinctrl/exynos/pinctrl-exynos78x0.c | 119 +++++++++
 drivers/serial/serial_s5p.c                 |   8 +-
 include/configs/exynos78x0-common.h         | 112 ++++++++
 24 files changed, 1230 insertions(+), 9 deletions(-)
 create mode 100644 arch/arm/dts/exynos78x0-axy17lte.dts
 create mode 100644 arch/arm/dts/exynos78x0-gpio.dtsi
 create mode 100644 arch/arm/dts/exynos78x0-pinctrl.dtsi
 create mode 100644 arch/arm/dts/exynos78x0.dtsi
 create mode 100644 board/samsung/axy17lte/Kconfig
 create mode 100644 board/samsung/axy17lte/MAINTAINERS
 create mode 100644 board/samsung/axy17lte/Makefile
 create mode 100644 board/samsung/axy17lte/axy17lte.c
 create mode 100644 configs/a3y17lte_defconfig
 create mode 100644 configs/a5y17lte_defconfig
 create mode 100644 configs/a7y17lte_defconfig
 create mode 100644 doc/board/samsung/axy17lte.rst
 create mode 100644 doc/board/samsung/index.rst
 create mode 100644 drivers/pinctrl/exynos/pinctrl-exynos78x0.c
 create mode 100644 include/configs/exynos78x0-common.h
Signature · 1 line
2.20.1
#3 lore raw

PATCH 2/4 pinctrl: exynos: add support for multiple pin banks

Iterate all pin banks to find a pin

---
 drivers/pinctrl/exynos/pinctrl-exynos.c | 28 +++++++++++++++++++------
 1 file changed, 22 insertions(+), 6 deletions(-)
drivers/pinctrl/exynos/pinctrl-exynos.c +22 -6
index 2640c8fcef..898185479b 100644
@@ -5,6 +5,7 @@
  * Thomas Abraham <[email protected]>
  */
 
+#include <log.h>
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
@@ -38,9 +39,9 @@ static unsigned long pin_to_bank_base(struct udevice *dev, const char *pin_name,
 						u32 *pin)
 {
 	struct exynos_pinctrl_priv *priv = dev_get_priv(dev);
-	const struct samsung_pin_ctrl *pin_ctrl = priv->pin_ctrl;
-	const struct samsung_pin_bank_data *bank_data = pin_ctrl->pin_banks;
-	u32 nr_banks = pin_ctrl->nr_banks, idx = 0;
+	const struct samsung_pin_ctrl *pin_ctrl_array = priv->pin_ctrl;
+	const struct samsung_pin_bank_data *bank_data;
+	u32 nr_banks, pin_ctrl_idx = 0, idx = 0, bank_base;
 	char bank[10];
 
 	/*
@@ -55,11 +56,26 @@ static unsigned long pin_to_bank_base(struct udevice *dev, const char *pin_name,
 	*pin = pin_name[++idx] - '0';
 
 	/* lookup the pin bank data using the pin bank name */
-	for (idx = 0; idx < nr_banks; idx++)
-		if (!strcmp(bank, bank_data[idx].name))
+	while (true) {
+		const struct samsung_pin_ctrl *pin_ctrl = &pin_ctrl_array[pin_ctrl_idx];
+
+		nr_banks = pin_ctrl->nr_banks;
+		if (!nr_banks)
 			break;
 
-	return priv->base + bank_data[idx].offset;
+		bank_data = pin_ctrl->pin_banks;
+		for (idx = 0; idx < nr_banks; idx++) {
+			debug("pinctrl[%d] bank_data[%d] name is: %s\n",
+					pin_ctrl_idx, idx, bank_data[idx].name);
+			if (!strcmp(bank, bank_data[idx].name)) {
+				bank_base = priv->base + bank_data[idx].offset;
+				break;
+			}
+		}
+		pin_ctrl_idx++;
+	}
+
+	return bank_base;
 }
 
 /**
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/4 serial: samsung: add support for skip debug init in s5p

In reply to Dzmitry Sankouski
---
 drivers/serial/serial_s5p.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/serial/serial_s5p.c +5 -3
index 6d09952a5d..caa9a4e5c1 100644
@@ -221,10 +221,12 @@ U_BOOT_DRIVER(serial_s5p) = {
 
 static inline void _debug_uart_init(void)
 {
-	struct s5p_uart *uart = (struct s5p_uart *)CONFIG_DEBUG_UART_BASE;
+	if (IS_ENABLED(CONFIG_DEBUG_UART_SKIP_INIT)) {
+		struct s5p_uart *uart = (struct s5p_uart *)CONFIG_DEBUG_UART_BASE;
 
-	s5p_serial_init(uart);
-	s5p_serial_baud(uart, CONFIG_DEBUG_UART_CLOCK, CONFIG_BAUDRATE);
+		s5p_serial_init(uart);
+		s5p_serial_baud(uart, CONFIG_DEBUG_UART_CLOCK, CONFIG_BAUDRATE);
+	}
 }
 
 static inline void _debug_uart_putc(int ch)
Signature · 1 line
2.20.1
#5 lore raw

PATCH 4/4 board: samsung: add support for Galaxy A series of 2017 (a5y17lte)

In reply to Dzmitry Sankouski

Samsung Galaxy A3, A5, A7 (2017) - middle class Samsung smartphones. U-boot can be used as chain-loaded bootloader to gain control on booting vanilla linux(and possibly others) kernels

---
 arch/arm/dts/Makefile                |  3 +
 arch/arm/dts/exynos78x0-axy17lte.dts | 29 +++++++++
 arch/arm/mach-exynos/Kconfig         | 28 +++++++++
 board/samsung/axy17lte/Kconfig       | 58 ++++++++++++++++++
 board/samsung/axy17lte/MAINTAINERS   |  8 +++
 board/samsung/axy17lte/Makefile      |  3 +
 board/samsung/axy17lte/axy17lte.c    | 11 ++++
 configs/a3y17lte_defconfig           | 24 ++++++++
 configs/a5y17lte_defconfig           | 24 ++++++++
 configs/a7y17lte_defconfig           | 24 ++++++++
 doc/board/index.rst                  |  1 +
 doc/board/samsung/axy17lte.rst       | 92 ++++++++++++++++++++++++++++
 doc/board/samsung/index.rst          |  9 +++
 13 files changed, 314 insertions(+)
 create mode 100644 arch/arm/dts/exynos78x0-axy17lte.dts
 create mode 100644 board/samsung/axy17lte/Kconfig
 create mode 100644 board/samsung/axy17lte/MAINTAINERS
 create mode 100644 board/samsung/axy17lte/Makefile
 create mode 100644 board/samsung/axy17lte/axy17lte.c
 create mode 100644 configs/a3y17lte_defconfig
 create mode 100644 configs/a5y17lte_defconfig
 create mode 100644 configs/a7y17lte_defconfig
 create mode 100644 doc/board/samsung/axy17lte.rst
 create mode 100644 doc/board/samsung/index.rst
arch/arm/dts/Makefile +3 -0
index b8a382d153..947c15aa50 100644
@@ -28,6 +28,9 @@ dtb-$(CONFIG_EXYNOS5) += exynos5250-arndale.dtb \
 	exynos5800-peach-pi.dtb \
 	exynos5422-odroidxu3.dtb
 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_ARCH_DAVINCI) += \
 	da850-evm.dtb \
arch/arm/dts/exynos78x0-axy17lte.dts new file +29 -0
new file mode 100644
index 0000000000..7fae8db874
@@ -0,0 +1,29 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Samsung Exynos78x0 SoC device tree source
+ *
+ * Copyright (c) 2020 Dzmitry Sankouski ([email protected])
+ */
+
+/dts-v1/;
+#include "exynos78x0.dtsi"
+/ {
+	compatible = "samsung,exynos78x0", "samsung,exynos7880", "samsung,exynos7870";
+
+	aliases {
+		console = &uart2;
+	};
+
+	chosen {
+		stdout-path = &uart2;
+	};
+};
+
+&gpioi2c0 {
+	status = "okay";
+};
+
+&fin_pll {
+	clock-frequency = <26000000>;
+};
+
arch/arm/mach-exynos/Kconfig +28 -0
index 7df0e17617..7f3aee5712 100644
@@ -151,6 +151,33 @@ config TARGET_ESPRESSO7420
 	select PINCTRL_EXYNOS7420
 	select SUPPORT_SPL
 
+config  TARGET_A5Y17LTE
+	bool "Samsung SM-A520F board"
+	select ARM64
+	select CLK_EXYNOS
+	select OF_CONTROL
+	select PINCTRL
+	select PINCTRL_EXYNOS78x0
+	select SUPPORT_SPL
+
+config  TARGET_A7Y17LTE
+	bool "Samsung SM-A520F board"
+	select ARM64
+	select CLK_EXYNOS
+	select OF_CONTROL
+	select PINCTRL
+	select PINCTRL_EXYNOS78x0
+	select SUPPORT_SPL
+
+config  TARGET_A3Y17LTE
+	bool "Samsung SM-A520F board"
+	select ARM64
+	select CLK_EXYNOS
+	select OF_CONTROL
+	select PINCTRL
+	select PINCTRL_EXYNOS7880
+	select SUPPORT_SPL
+
 endchoice
 endif
 
@@ -167,6 +194,7 @@ source "board/samsung/arndale/Kconfig"
 source "board/samsung/smdk5250/Kconfig"
 source "board/samsung/smdk5420/Kconfig"
 source "board/samsung/espresso7420/Kconfig"
+source "board/samsung/axy17lte/Kconfig"
 
 config SPL_LDSCRIPT
 	default "board/samsung/common/exynos-uboot-spl.lds" if ARCH_EXYNOS5 || ARCH_EXYNOS4
board/samsung/axy17lte/Kconfig new file +58 -0

58 lines not on this page · raw message

board/samsung/axy17lte/MAINTAINERS new file +8 -0
new file mode 100644
index 0000000000..13feba62a7
@@ -0,0 +1,8 @@
+Samsung A series 2017 phones Board
+M:	Dzmitry Sankouski <[email protected]>
+S:	Maintained
+F:	board/samsung/axy17lte/
+F:	include/configs/exynos78x0-common.h
+F:	configs/a3y17lte_defconfig
+F:	configs/a5y17lte_defconfig
+F:	configs/a7y17lte_defconfig
board/samsung/axy17lte/Makefile new file +3 -0
new file mode 100644
index 0000000000..4e11f289dc
@@ -0,0 +1,3 @@
+# SPDX-License-Identifier: GPL-2.0+
+#
+obj-y	+= axy17lte.o
board/samsung/axy17lte/axy17lte.c new file +11 -0
new file mode 100644
index 0000000000..c38297a05b
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Samsung A5Y17 and A3Y17 LTE boards based on Exynos 7880 and Exynos 7870 SoCs
+ */
+
+#include <common.h>
+
+int exynos_init(void)
+{
+	return 0;
+}
configs/a3y17lte_defconfig new file +24 -0
new file mode 100644
index 0000000000..36404d15f7
@@ -0,0 +1,24 @@
+CONFIG_ARM=y
+CONFIG_ARCH_EXYNOS=y
+CONFIG_ARCH_EXYNOS7=y
+CONFIG_S5P=y
+CONFIG_TARGET_A3Y17LTE=y
+# This option is a number of 256MB DRAM banks, i.e. (ram size) / 256MB.
+# Used in samsung common board dram_init function.
+CONFIG_NR_DRAM_BANKS=8
+CONFIG_SYS_CONFIG_NAME="exynos78x0-common"
+CONFIG_DEFAULT_DEVICE_TREE="exynos78x0-axy17lte"
+CONFIG_SYS_TEXT_BASE=0x40001000
+CONFIG_SYS_LOAD_ADDR=0x40001000
+CONFIG_HUSH_PARSER=y
+CONFIG_FIT=y
+CONFIG_BOARD_EARLY_INIT_F=n
+CONFIG_SKIP_LOWLEVEL_INIT=y
+CONFIG_CMD_GPIO=y
+CONFIG_DISPLAY_CPUINFO=n
+CONFIG_CMD_I2C=y
+CONFIG_DM_I2C_GPIO=y
+CONFIG_PINCTRL_EXYNOS78x0=y
+CONFIG_PINCTRL_EXYNOS=y
+# CONFIG_DEBUG_UART_S5P=y
+# CONFIG_DEBUG_UART_BASE=0x13820000
\ No newline at end of file
configs/a5y17lte_defconfig new file +24 -0
new file mode 100644
index 0000000000..273ad1078e
@@ -0,0 +1,24 @@
+CONFIG_ARM=y
+CONFIG_ARCH_EXYNOS=y
+CONFIG_ARCH_EXYNOS7=y
+CONFIG_S5P=y
+CONFIG_TARGET_A5Y17LTE=y
+# This option is a number of 256MB DRAM banks, i.e. (ram size) / 256MB.
+# Used in samsung common board dram_init function.
+CONFIG_NR_DRAM_BANKS=12
+CONFIG_SYS_CONFIG_NAME="exynos78x0-common"
+CONFIG_DEFAULT_DEVICE_TREE="exynos78x0-axy17lte"
+CONFIG_SYS_TEXT_BASE=0x40001000
+CONFIG_SYS_LOAD_ADDR=0x40001000
+CONFIG_HUSH_PARSER=y
+CONFIG_FIT=y
+CONFIG_BOARD_EARLY_INIT_F=n
+CONFIG_SKIP_LOWLEVEL_INIT=y
+CONFIG_CMD_GPIO=y
+CONFIG_DISPLAY_CPUINFO=n
+CONFIG_CMD_I2C=y
+CONFIG_DM_I2C_GPIO=y
+CONFIG_PINCTRL_EXYNOS78x0=y
+CONFIG_PINCTRL_EXYNOS=y
+# CONFIG_DEBUG_UART_S5P=y
+# CONFIG_DEBUG_UART_BASE=0x13820000
\ No newline at end of file
configs/a7y17lte_defconfig new file +24 -0
new file mode 100644
index 0000000000..f544f629ef
@@ -0,0 +1,24 @@
+CONFIG_ARM=y
+CONFIG_ARCH_EXYNOS=y
+CONFIG_ARCH_EXYNOS7=y
+CONFIG_S5P=y
+CONFIG_TARGET_A7Y17LTE=y
+# This option is a number of 256MB DRAM banks, i.e. (ram size) / 256MB.
+# Used in samsung common board dram_init function.
+CONFIG_NR_DRAM_BANKS=12
+CONFIG_SYS_CONFIG_NAME="exynos78x0-common"
+CONFIG_DEFAULT_DEVICE_TREE="exynos78x0-axy17lte"
+CONFIG_SYS_TEXT_BASE=0x40001000
+CONFIG_SYS_LOAD_ADDR=0x40001000
+CONFIG_HUSH_PARSER=y
+CONFIG_FIT=y
+CONFIG_BOARD_EARLY_INIT_F=n
+CONFIG_SKIP_LOWLEVEL_INIT=y
+CONFIG_CMD_GPIO=y
+CONFIG_DISPLAY_CPUINFO=n
+CONFIG_CMD_I2C=y
+CONFIG_DM_I2C_GPIO=y
+CONFIG_PINCTRL_EXYNOS78x0=y
+CONFIG_PINCTRL_EXYNOS=y
+# CONFIG_DEBUG_UART_S5P=y
+# CONFIG_DEBUG_UART_BASE=0x13820000
\ No newline at end of file
doc/board/index.rst +1 -0
index aa397ab942..c09339480b 100644
@@ -22,6 +22,7 @@ Board-specific doc
    openpiton/index
    qualcomm/index
    rockchip/index
+   samsung/index
    siemens/index
    sifive/index
    sipeed/index
doc/board/samsung/axy17lte.rst new file +92 -0

92 lines not on this page · raw message

doc/board/samsung/index.rst new file +9 -0
new file mode 100644
index 0000000000..c904372dff
@@ -0,0 +1,9 @@
+.. SPDX-License-Identifier: GPL-2.0+
+
+Samsung
+========
+
+.. toctree::
+   :maxdepth: 2
+
+   axy17lte
Signature · 1 line
2.20.1
#4 lore raw

PATCH 3/4 SoC: exynos: add support for exynos 78x0

In reply to Dzmitry Sankouski

Samsung Exynos 7880 \ 7870 - SoC for mainstream smartphones and tablets introduced on March 2017.
Features:
- 8 Cortex A53 cores
- ARM Mali-T830 MP3 GPU
- LTE Cat. 7 (7880) or 6 (7870) modem

---
 arch/arm/dts/exynos78x0-gpio.dtsi           | 204 ++++++++++++++
 arch/arm/dts/exynos78x0-pinctrl.dtsi        | 280 ++++++++++++++++++++
 arch/arm/dts/exynos78x0.dtsi                |  98 +++++++
 arch/arm/mach-exynos/mmu-arm64.c            |  66 +++++
 drivers/gpio/s5p_gpio.c                     |   1 +
 drivers/pinctrl/exynos/Kconfig              |   8 +
 drivers/pinctrl/exynos/Makefile             |   1 +
 drivers/pinctrl/exynos/pinctrl-exynos78x0.c | 119 +++++++++
 include/configs/exynos78x0-common.h         | 112 ++++++++
 9 files changed, 889 insertions(+)
 create mode 100644 arch/arm/dts/exynos78x0-gpio.dtsi
 create mode 100644 arch/arm/dts/exynos78x0-pinctrl.dtsi
 create mode 100644 arch/arm/dts/exynos78x0.dtsi
 create mode 100644 drivers/pinctrl/exynos/pinctrl-exynos78x0.c
 create mode 100644 include/configs/exynos78x0-common.h
arch/arm/dts/exynos78x0-gpio.dtsi new file +204 -0
new file mode 100644
index 0000000000..a7f75c5ca9
@@ -0,0 +1,204 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Samsung's Exynos7880 SoC pin-mux and pin-config device tree source
+ *
+ * Copyright (c) 2014 Samsung Electronics Co., Ltd.
+ *		http://www.samsung.com
+ * Copyright (c) 2020 Dzmitry Sankouski ([email protected])
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+/ {
+	/* ALIVE */
+	gpio@139F0000 {
+		etc0: etc0 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		etc1: etc1 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpa0: gpa0 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpa1: gpa1 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpa2: gpa2 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpa3: gpa3 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpq0: gpq0 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+	};
+
+	/* CCORE */
+	gpio@10630000 {
+		gpm0: gpm0 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+	};
+
+	/* DISP/AUD */
+	gpio@148C0000 {
+		gpz0: gpz0 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpz1: gpz1 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpz2: gpz2 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+	};
+
+	/* FSYS0 */
+	gpio@13750000 {
+		gpr0: gpr0 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpr1: gpr1 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpr2: gpr2 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpr3: gpr3 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpr4: gpr4 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+	};
+
+	/* TOP */
+	gpio@139B0000 {
+		gpb0: gpb0 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpc0: gpc0 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpc1: gpc1 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpc4: gpc4 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpc5: gpc5 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpc6: gpc6 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpc8: gpc8 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpc9: gpc9 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpd1: gpd1 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpd2: gpd2 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpd3: gpd3 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpd4: gpd4 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpd5: gpd5 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpe0: gpe0 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpf0: gpf0 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpf1: gpf1 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpf2: gpf2 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpf3: gpf3 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+
+		gpf4: gpf4 {
+			gpio-controller;
+			#gpio-cells = <2>;
+		};
+	};
+};
arch/arm/dts/exynos78x0-pinctrl.dtsi new file +280 -0

280 lines not on this page · raw message

arch/arm/dts/exynos78x0.dtsi new file +98 -0

98 lines not on this page · raw message

arch/arm/mach-exynos/mmu-arm64.c +66 -0

69 lines not on this page · raw message

drivers/gpio/s5p_gpio.c +1 -0
index 76f35ac5d9..06ed585f3d 100644
@@ -357,6 +357,7 @@ static const struct udevice_id exynos_gpio_ids[] = {
 	{ .compatible = "samsung,exynos4x12-pinctrl" },
 	{ .compatible = "samsung,exynos5250-pinctrl" },
 	{ .compatible = "samsung,exynos5420-pinctrl" },
+	{ .compatible = "samsung,exynos78x0-gpio" },
 	{ }
 };
 
drivers/pinctrl/exynos/Kconfig +8 -0
index 84b6aaae09..a60f49869b 100644
@@ -8,3 +8,11 @@ config PINCTRL_EXYNOS7420
 	help
 	  Support pin multiplexing and pin configuration control on
 	  Samsung's Exynos7420 SoC.
+
+config PINCTRL_EXYNOS78x0
+	bool "Samsung Exynos78x0 pinctrl driver"
+	depends on ARCH_EXYNOS && PINCTRL_FULL
+	select PINCTRL_EXYNOS
+	help
+	  Support pin multiplexing and pin configuration control on
+	  Samsung's Exynos78x0 SoC.
drivers/pinctrl/exynos/Makefile +1 -0
index 6a14a474bf..07db970ca9 100644
@@ -5,3 +5,4 @@
 
 obj-$(CONFIG_PINCTRL_EXYNOS)		+= pinctrl-exynos.o
 obj-$(CONFIG_PINCTRL_EXYNOS7420)	+= pinctrl-exynos7420.o
+obj-$(CONFIG_PINCTRL_EXYNOS78x0)	+= pinctrl-exynos78x0.o
drivers/pinctrl/exynos/pinctrl-exynos78x0.c new file +119 -0

119 lines not on this page · raw message

include/configs/exynos78x0-common.h new file +112 -0

112 lines not on this page · raw message

Signature · 1 line
2.20.1
#2 lore raw

Re: [PATCH 1/4] serial: samsung: add support for skip debug init in s5p

In reply to Dzmitry Sankouski

Dear Dzmitry Sankouski,

Quoted 18 lines · Dzmitry Sankouski
---
 drivers/serial/serial_s5p.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
drivers/serial/serial_s5p.c +1 -1
index 6d09952a5d..caa9a4e5c1 100644
@@ -221,10 +221,12 @@ U_BOOT_DRIVER(serial_s5p) = {
 
 static inline void _debug_uart_init(void)
 {
-       struct s5p_uart *uart = (struct s5p_uart *)CONFIG_DEBUG_UART_BASE;
+       if (IS_ENABLED(CONFIG_DEBUG_UART_SKIP_INIT)) {

drivers/serial/serial_s5p.c U_BOOT_DRIVER(serial_s5p) = { · line 232

Quoted 10 lines
drivers/serial/serial_s5p.c +4 -2
+               struct s5p_uart *uart = (struct s5p_uart
 *)CONFIG_DEBUG_UART_BASE;
 
-       s5p_serial_init(uart);
-       s5p_serial_baud(uart, CONFIG_DEBUG_UART_CLOCK, CONFIG_BAUDRATE);
+               s5p_serial_init(uart);
+               s5p_serial_baud(uart, CONFIG_DEBUG_UART_CLOCK,
 CONFIG_BAUDRATE);
+       }
 }

Please return if disabled.
It looks cleaner. less change, less depth.

Signature · 2 lines
Thanks,
Minkyu Kang.