* [PATCH 0/2] Introduce UART support for Exynos7870 SoC
@ 2025-02-03 20:38 Kaustabh Chakraborty
2025-02-03 20:38 ` [PATCH 1/2] dt-bindings: serial: samsung: add exynos7870-uart compatible Kaustabh Chakraborty
2025-02-03 20:38 ` [PATCH 2/2] tty: serial: samsung: add support for exynos7870 Kaustabh Chakraborty
0 siblings, 2 replies; 6+ messages in thread
From: Kaustabh Chakraborty @ 2025-02-03 20:38 UTC (permalink / raw)
To: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Alim Akhtar
Cc: Sergey Lisov, linux-kernel, linux-serial, devicetree,
linux-arm-kernel, linux-samsung-soc, Kaustabh Chakraborty
Add support for Exynos7870 UART. FIFO size is expected to be present in
DT.
This patch series is a part of Exynos7870 upstreaming.
Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
---
Kaustabh Chakraborty (2):
dt-bindings: serial: samsung: add exynos7870-uart compatible
tty: serial: samsung: add support for exynos7870
Documentation/devicetree/bindings/serial/samsung_uart.yaml | 2 ++
drivers/tty/serial/samsung_tty.c | 13 +++++++++++++
2 files changed, 15 insertions(+)
---
base-commit: df4b2bbff898227db0c14264ac7edd634e79f755
change-id: 20250203-exynos7870-uart-62f64cea2489
Best regards,
--
Kaustabh Chakraborty <kauschluss@disroot.org>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/2] dt-bindings: serial: samsung: add exynos7870-uart compatible
2025-02-03 20:38 [PATCH 0/2] Introduce UART support for Exynos7870 SoC Kaustabh Chakraborty
@ 2025-02-03 20:38 ` Kaustabh Chakraborty
2025-02-05 8:42 ` Krzysztof Kozlowski
2025-02-09 13:13 ` Krzysztof Kozlowski
2025-02-03 20:38 ` [PATCH 2/2] tty: serial: samsung: add support for exynos7870 Kaustabh Chakraborty
1 sibling, 2 replies; 6+ messages in thread
From: Kaustabh Chakraborty @ 2025-02-03 20:38 UTC (permalink / raw)
To: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Alim Akhtar
Cc: Sergey Lisov, linux-kernel, linux-serial, devicetree,
linux-arm-kernel, linux-samsung-soc, Kaustabh Chakraborty
Document the compatible string for Exynos7870's UART driver. The devicetree
property samsung,uart-fifosize must be mandatory, as the driver enquires about
the FIFO sizes.
Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
---
Documentation/devicetree/bindings/serial/samsung_uart.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/serial/samsung_uart.yaml b/Documentation/devicetree/bindings/serial/samsung_uart.yaml
index 070eba9f19d3e039090c58a82f93d02eed58ab84..e4387d504407778ffddabeb674c51c984a1179b7 100644
--- a/Documentation/devicetree/bindings/serial/samsung_uart.yaml
+++ b/Documentation/devicetree/bindings/serial/samsung_uart.yaml
@@ -26,6 +26,7 @@ properties:
- samsung,s5pv210-uart
- samsung,exynos4210-uart
- samsung,exynos5433-uart
+ - samsung,exynos7870-uart
- samsung,exynos850-uart
- samsung,exynos8895-uart
- items:
@@ -161,6 +162,7 @@ allOf:
contains:
enum:
- google,gs101-uart
+ - samsung,exynos7870-uart
- samsung,exynos8895-uart
then:
required:
--
2.48.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] tty: serial: samsung: add support for exynos7870
2025-02-03 20:38 [PATCH 0/2] Introduce UART support for Exynos7870 SoC Kaustabh Chakraborty
2025-02-03 20:38 ` [PATCH 1/2] dt-bindings: serial: samsung: add exynos7870-uart compatible Kaustabh Chakraborty
@ 2025-02-03 20:38 ` Kaustabh Chakraborty
2025-02-05 8:44 ` Krzysztof Kozlowski
1 sibling, 1 reply; 6+ messages in thread
From: Kaustabh Chakraborty @ 2025-02-03 20:38 UTC (permalink / raw)
To: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Alim Akhtar
Cc: Sergey Lisov, linux-kernel, linux-serial, devicetree,
linux-arm-kernel, linux-samsung-soc, Kaustabh Chakraborty
Add serial UART support for Exynos7870. The FIFO sizes are not defined
in the driver, and they must be provided in the devicetree with the
samsung,uart-fifosize property.
Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
---
drivers/tty/serial/samsung_tty.c | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c
index 210fff7164c138e315d20ccaa4a29ce6a7bb2dfe..c8607633fea40df2ec221cfd3653c726094127cb 100644
--- a/drivers/tty/serial/samsung_tty.c
+++ b/drivers/tty/serial/samsung_tty.c
@@ -2493,6 +2493,12 @@ static const struct s3c24xx_serial_drv_data exynos5433_serial_drv_data = {
.fifosize = { 64, 256, 16, 256 },
};
+static const struct s3c24xx_serial_drv_data exynos7870_serial_drv_data = {
+ EXYNOS_COMMON_SERIAL_DRV_DATA,
+ /* samsung,uart-fifosize must be specified in the device tree. */
+ .fifosize = { 0 },
+};
+
static const struct s3c24xx_serial_drv_data exynos850_serial_drv_data = {
EXYNOS_COMMON_SERIAL_DRV_DATA,
.fifosize = { 256, 64, 64, 64 },
@@ -2533,6 +2539,7 @@ static const struct s3c24xx_serial_drv_data gs101_serial_drv_data = {
#define EXYNOS4210_SERIAL_DRV_DATA (&exynos4210_serial_drv_data)
#define EXYNOS5433_SERIAL_DRV_DATA (&exynos5433_serial_drv_data)
+#define EXYNOS7870_SERIAL_DRV_DATA (&exynos7870_serial_drv_data)
#define EXYNOS850_SERIAL_DRV_DATA (&exynos850_serial_drv_data)
#define EXYNOS8895_SERIAL_DRV_DATA (&exynos8895_serial_drv_data)
#define GS101_SERIAL_DRV_DATA (&gs101_serial_drv_data)
@@ -2540,6 +2547,7 @@ static const struct s3c24xx_serial_drv_data gs101_serial_drv_data = {
#else
#define EXYNOS4210_SERIAL_DRV_DATA NULL
#define EXYNOS5433_SERIAL_DRV_DATA NULL
+#define EXYNOS7870_SERIAL_DRV_DATA NULL
#define EXYNOS850_SERIAL_DRV_DATA NULL
#define EXYNOS8895_SERIAL_DRV_DATA NULL
#define GS101_SERIAL_DRV_DATA NULL
@@ -2622,6 +2630,9 @@ static const struct platform_device_id s3c24xx_serial_driver_ids[] = {
}, {
.name = "s5l-uart",
.driver_data = (kernel_ulong_t)S5L_SERIAL_DRV_DATA,
+ }, {
+ .name = "exynos7870-uart",
+ .driver_data = (kernel_ulong_t)EXYNOS7870_SERIAL_DRV_DATA,
}, {
.name = "exynos850-uart",
.driver_data = (kernel_ulong_t)EXYNOS850_SERIAL_DRV_DATA,
@@ -2651,6 +2662,8 @@ static const struct of_device_id s3c24xx_uart_dt_match[] = {
.data = EXYNOS5433_SERIAL_DRV_DATA },
{ .compatible = "apple,s5l-uart",
.data = S5L_SERIAL_DRV_DATA },
+ { .compatible = "samsung,exynos7870-uart",
+ .data = EXYNOS7870_SERIAL_DRV_DATA },
{ .compatible = "samsung,exynos850-uart",
.data = EXYNOS850_SERIAL_DRV_DATA },
{ .compatible = "axis,artpec8-uart",
--
2.48.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] dt-bindings: serial: samsung: add exynos7870-uart compatible
2025-02-03 20:38 ` [PATCH 1/2] dt-bindings: serial: samsung: add exynos7870-uart compatible Kaustabh Chakraborty
@ 2025-02-05 8:42 ` Krzysztof Kozlowski
2025-02-09 13:13 ` Krzysztof Kozlowski
1 sibling, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2025-02-05 8:42 UTC (permalink / raw)
To: Kaustabh Chakraborty
Cc: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Conor Dooley,
Alim Akhtar, Sergey Lisov, linux-kernel, linux-serial, devicetree,
linux-arm-kernel, linux-samsung-soc
On Tue, Feb 04, 2025 at 02:08:45AM +0530, Kaustabh Chakraborty wrote:
> Document the compatible string for Exynos7870's UART driver. The devicetree
> property samsung,uart-fifosize must be mandatory, as the driver enquires about
> the FIFO sizes.
>
> Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
> ---
> Documentation/devicetree/bindings/serial/samsung_uart.yaml | 2 ++
> 1 file changed, 2 insertions(+)
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2] tty: serial: samsung: add support for exynos7870
2025-02-03 20:38 ` [PATCH 2/2] tty: serial: samsung: add support for exynos7870 Kaustabh Chakraborty
@ 2025-02-05 8:44 ` Krzysztof Kozlowski
0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2025-02-05 8:44 UTC (permalink / raw)
To: Kaustabh Chakraborty
Cc: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Conor Dooley,
Alim Akhtar, Sergey Lisov, linux-kernel, linux-serial, devicetree,
linux-arm-kernel, linux-samsung-soc
On Tue, Feb 04, 2025 at 02:08:46AM +0530, Kaustabh Chakraborty wrote:
> Add serial UART support for Exynos7870. The FIFO sizes are not defined
> in the driver, and they must be provided in the devicetree with the
> samsung,uart-fifosize property.
>
> Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
> ---
> drivers/tty/serial/samsung_tty.c | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/drivers/tty/serial/samsung_tty.c b/drivers/tty/serial/samsung_tty.c
> index 210fff7164c138e315d20ccaa4a29ce6a7bb2dfe..c8607633fea40df2ec221cfd3653c726094127cb 100644
> --- a/drivers/tty/serial/samsung_tty.c
> +++ b/drivers/tty/serial/samsung_tty.c
> @@ -2493,6 +2493,12 @@ static const struct s3c24xx_serial_drv_data exynos5433_serial_drv_data = {
> .fifosize = { 64, 256, 16, 256 },
> };
>
> +static const struct s3c24xx_serial_drv_data exynos7870_serial_drv_data = {
> + EXYNOS_COMMON_SERIAL_DRV_DATA,
> + /* samsung,uart-fifosize must be specified in the device tree. */
> + .fifosize = { 0 },
> +};
I don't see any difference against Exynos8895, so they look compatible.
Use Exynos8895 as fallback compatible, even though it is a bit reversed.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/2] dt-bindings: serial: samsung: add exynos7870-uart compatible
2025-02-03 20:38 ` [PATCH 1/2] dt-bindings: serial: samsung: add exynos7870-uart compatible Kaustabh Chakraborty
2025-02-05 8:42 ` Krzysztof Kozlowski
@ 2025-02-09 13:13 ` Krzysztof Kozlowski
1 sibling, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2025-02-09 13:13 UTC (permalink / raw)
To: Kaustabh Chakraborty
Cc: Greg Kroah-Hartman, Jiri Slaby, Rob Herring, Conor Dooley,
Alim Akhtar, Sergey Lisov, linux-kernel, linux-serial, devicetree,
linux-arm-kernel, linux-samsung-soc
On Tue, Feb 04, 2025 at 02:08:45AM +0530, Kaustabh Chakraborty wrote:
> Document the compatible string for Exynos7870's UART driver. The devicetree
> property samsung,uart-fifosize must be mandatory, as the driver enquires about
> the FIFO sizes.
Please run scripts/checkpatch.pl and fix reported warnings. After that,
run also 'scripts/checkpatch.pl --strict' and (probably) fix more
warnings. Some warnings can be ignored, especially from --strict run,
but the code here looks like it needs a fix. Feel free to get in touch
if the warning is not clear.
Please wrap commit message according to Linux coding style / submission
process (neither too early nor over the limit):
https://elixir.bootlin.com/linux/v6.4-rc1/source/Documentation/process/submitting-patches.rst#L597
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-02-09 13:15 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-03 20:38 [PATCH 0/2] Introduce UART support for Exynos7870 SoC Kaustabh Chakraborty
2025-02-03 20:38 ` [PATCH 1/2] dt-bindings: serial: samsung: add exynos7870-uart compatible Kaustabh Chakraborty
2025-02-05 8:42 ` Krzysztof Kozlowski
2025-02-09 13:13 ` Krzysztof Kozlowski
2025-02-03 20:38 ` [PATCH 2/2] tty: serial: samsung: add support for exynos7870 Kaustabh Chakraborty
2025-02-05 8:44 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).