* [PATCH v3 1/7] dt-bindings: arm: fsl: Add the S32V234-EVB board
2019-08-23 19:11 [PATCH v3 0/7] Add initial support for S32V234-EVB Stefan-gabriel Mirea
@ 2019-08-23 19:11 ` Stefan-gabriel Mirea
2019-08-23 19:11 ` [PATCH v3 2/7] arm64: Introduce config for S32 Stefan-gabriel Mirea
` (5 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: Stefan-gabriel Mirea @ 2019-08-23 19:11 UTC (permalink / raw)
To: corbet, robh+dt, mark.rutland, gregkh, catalin.marinas, will,
shawnguo, Leo Li
Cc: jslaby, linux-doc, linux-kernel, devicetree, linux-serial,
linux-arm-kernel, Eddy Petrisor
From: Eddy Petrișor <eddy.petrisor@nxp.com>
Add entry for the NXP S32V234 Customer Evaluation Board to the board/SoC
bindings.
Signed-off-by: Eddy Petrișor <eddy.petrisor@nxp.com>
Signed-off-by: Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com>
Reviewed-by: Rob Herring <robh@kernel.org>
---
Documentation/devicetree/bindings/arm/fsl.yaml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Documentation/devicetree/bindings/arm/fsl.yaml b/Documentation/devicetree/bindings/arm/fsl.yaml
index 7294ac36f4c0..597c563bdec9 100644
--- a/Documentation/devicetree/bindings/arm/fsl.yaml
+++ b/Documentation/devicetree/bindings/arm/fsl.yaml
@@ -309,4 +309,10 @@ properties:
- fsl,ls2088a-rdb
- const: fsl,ls2088a
+ - description: S32V234 based Boards
+ items:
+ - enum:
+ - fsl,s32v234-evb # S32V234-EVB2 Customer Evaluation Board
+ - const: fsl,s32v234
+
...
--
2.22.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v3 2/7] arm64: Introduce config for S32
2019-08-23 19:11 [PATCH v3 0/7] Add initial support for S32V234-EVB Stefan-gabriel Mirea
2019-08-23 19:11 ` [PATCH v3 1/7] dt-bindings: arm: fsl: Add the S32V234-EVB board Stefan-gabriel Mirea
@ 2019-08-23 19:11 ` Stefan-gabriel Mirea
2019-08-23 19:11 ` [PATCH v3 3/7] serial: fsl_linflexuart: Update compatible string Stefan-gabriel Mirea
` (4 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: Stefan-gabriel Mirea @ 2019-08-23 19:11 UTC (permalink / raw)
To: corbet, robh+dt, mark.rutland, gregkh, catalin.marinas, will,
shawnguo, Leo Li
Cc: jslaby, linux-doc, linux-kernel, devicetree, linux-serial,
linux-arm-kernel, Cosmin Stefan Stoica
From: Mihaela Martinas <Mihaela.Martinas@freescale.com>
Add configuration option for the NXP S32 platform family in
Kconfig.platforms. For starters, the only SoC supported will be Treerunner
(S32V234), with a single execution target: the S32V234-EVB (rev 29288)
board.
Signed-off-by: Mihaela Martinas <Mihaela.Martinas@freescale.com>
Signed-off-by: Stoica Cosmin-Stefan <cosmin.stoica@nxp.com>
Signed-off-by: Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com>
---
arch/arm64/Kconfig.platforms | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index 4778c775de1b..64bbe2d0b04f 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -210,6 +210,11 @@ config ARCH_ROCKCHIP
This enables support for the ARMv8 based Rockchip chipsets,
like the RK3368.
+config ARCH_S32
+ bool "NXP S32 SoC Family"
+ help
+ This enables support for the NXP S32 family of processors.
+
config ARCH_SEATTLE
bool "AMD Seattle SoC Family"
help
--
2.22.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v3 3/7] serial: fsl_linflexuart: Update compatible string
2019-08-23 19:11 [PATCH v3 0/7] Add initial support for S32V234-EVB Stefan-gabriel Mirea
2019-08-23 19:11 ` [PATCH v3 1/7] dt-bindings: arm: fsl: Add the S32V234-EVB board Stefan-gabriel Mirea
2019-08-23 19:11 ` [PATCH v3 2/7] arm64: Introduce config for S32 Stefan-gabriel Mirea
@ 2019-08-23 19:11 ` Stefan-gabriel Mirea
2019-08-23 19:11 ` [PATCH v3 4/7] serial: fsl_linflexuart: Be consistent with the name Stefan-gabriel Mirea
` (3 subsequent siblings)
6 siblings, 0 replies; 11+ messages in thread
From: Stefan-gabriel Mirea @ 2019-08-23 19:11 UTC (permalink / raw)
To: corbet, robh+dt, mark.rutland, gregkh, catalin.marinas, will,
shawnguo, Leo Li
Cc: jslaby, linux-doc, linux-kernel, devicetree, linux-serial,
linux-arm-kernel
The "fsl,s32-linflexuart" compatible string is too generic. Make it SoC
specific.
Signed-off-by: Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com>
---
drivers/tty/serial/fsl_linflexuart.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/serial/fsl_linflexuart.c b/drivers/tty/serial/fsl_linflexuart.c
index 26b9601a0952..e54c65830e5e 100644
--- a/drivers/tty/serial/fsl_linflexuart.c
+++ b/drivers/tty/serial/fsl_linflexuart.c
@@ -127,7 +127,7 @@
static const struct of_device_id linflex_dt_ids[] = {
{
- .compatible = "fsl,s32-linflexuart",
+ .compatible = "fsl,s32v234-linflexuart",
},
{ /* sentinel */ }
};
@@ -801,7 +801,7 @@ static int __init linflex_early_console_setup(struct earlycon_device *device,
return 0;
}
-OF_EARLYCON_DECLARE(linflex, "fsl,s32-linflexuart",
+OF_EARLYCON_DECLARE(linflex, "fsl,s32v234-linflexuart",
linflex_early_console_setup);
#define LINFLEX_CONSOLE (&linflex_console)
--
2.22.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v3 4/7] serial: fsl_linflexuart: Be consistent with the name
2019-08-23 19:11 [PATCH v3 0/7] Add initial support for S32V234-EVB Stefan-gabriel Mirea
` (2 preceding siblings ...)
2019-08-23 19:11 ` [PATCH v3 3/7] serial: fsl_linflexuart: Update compatible string Stefan-gabriel Mirea
@ 2019-08-23 19:11 ` Stefan-gabriel Mirea
2019-09-04 7:52 ` gregkh
2019-08-23 19:11 ` [PATCH v3 5/7] arm64: dts: fsl: Add device tree for S32V234-EVB Stefan-gabriel Mirea
` (2 subsequent siblings)
6 siblings, 1 reply; 11+ messages in thread
From: Stefan-gabriel Mirea @ 2019-08-23 19:11 UTC (permalink / raw)
To: corbet, robh+dt, mark.rutland, gregkh, catalin.marinas, will,
shawnguo, Leo Li
Cc: jslaby, linux-doc, linux-kernel, devicetree, linux-serial,
linux-arm-kernel
For consistency reasons, spell the controller name as "LINFlexD" in
comments and documentation.
Signed-off-by: Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com>
---
Documentation/admin-guide/kernel-parameters.txt | 2 +-
drivers/tty/serial/Kconfig | 8 ++++----
drivers/tty/serial/fsl_linflexuart.c | 4 ++--
include/uapi/linux/serial_core.h | 4 ++--
4 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
index 4d545732aadc..81773425fb31 100644
--- a/Documentation/admin-guide/kernel-parameters.txt
+++ b/Documentation/admin-guide/kernel-parameters.txt
@@ -1091,7 +1091,7 @@
mapped with the correct attributes.
linflex,<addr>
- Use early console provided by Freescale LinFlex UART
+ Use early console provided by Freescale LINFlexD UART
serial driver for NXP S32V234 SoCs. A valid base
address must be provided, and the serial port must
already be setup and configured.
diff --git a/drivers/tty/serial/Kconfig b/drivers/tty/serial/Kconfig
index b4fa2f7c96bd..3039c1ff68a9 100644
--- a/drivers/tty/serial/Kconfig
+++ b/drivers/tty/serial/Kconfig
@@ -1453,18 +1453,18 @@ config SERIAL_FSL_LPUART_CONSOLE
you can make it the console by answering Y to this option.
config SERIAL_FSL_LINFLEXUART
- tristate "Freescale linflexuart serial port support"
+ tristate "Freescale LINFlexD UART serial port support"
select SERIAL_CORE
help
- Support for the on-chip linflexuart on some Freescale SOCs.
+ Support for the on-chip LINFlexD UART on some Freescale SOCs.
config SERIAL_FSL_LINFLEXUART_CONSOLE
- bool "Console on Freescale linflexuart serial port"
+ bool "Console on Freescale LINFlexD UART serial port"
depends on SERIAL_FSL_LINFLEXUART=y
select SERIAL_CORE_CONSOLE
select SERIAL_EARLYCON
help
- If you have enabled the linflexuart serial port on the Freescale
+ If you have enabled the LINFlexD UART serial port on the Freescale
SoCs, you can make it the console by answering Y to this option.
config SERIAL_CONEXANT_DIGICOLOR
diff --git a/drivers/tty/serial/fsl_linflexuart.c b/drivers/tty/serial/fsl_linflexuart.c
index e54c65830e5e..b5889f8d80cb 100644
--- a/drivers/tty/serial/fsl_linflexuart.c
+++ b/drivers/tty/serial/fsl_linflexuart.c
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-or-later
/*
- * Freescale linflexuart serial port driver
+ * Freescale LINFlexD UART serial port driver
*
* Copyright 2012-2016 Freescale Semiconductor, Inc.
* Copyright 2017-2018 NXP
@@ -938,5 +938,5 @@ static void __exit linflex_serial_exit(void)
module_init(linflex_serial_init);
module_exit(linflex_serial_exit);
-MODULE_DESCRIPTION("Freescale linflex serial port driver");
+MODULE_DESCRIPTION("Freescale LINFlexD serial port driver");
MODULE_LICENSE("GPL v2");
diff --git a/include/uapi/linux/serial_core.h b/include/uapi/linux/serial_core.h
index f9e829416dcc..33bd9c411a31 100644
--- a/include/uapi/linux/serial_core.h
+++ b/include/uapi/linux/serial_core.h
@@ -296,7 +296,7 @@
/* Sunix UART */
#define PORT_SUNIX 121
-/* Freescale Linflex UART */
-#define PORT_LINFLEXUART 121
+/* Freescale LINFlexD UART */
+#define PORT_LINFLEXUART 122
#endif /* _UAPILINUX_SERIAL_CORE_H */
--
2.22.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v3 4/7] serial: fsl_linflexuart: Be consistent with the name
2019-08-23 19:11 ` [PATCH v3 4/7] serial: fsl_linflexuart: Be consistent with the name Stefan-gabriel Mirea
@ 2019-09-04 7:52 ` gregkh
2019-09-05 11:32 ` Stefan-gabriel Mirea
0 siblings, 1 reply; 11+ messages in thread
From: gregkh @ 2019-09-04 7:52 UTC (permalink / raw)
To: Stefan-gabriel Mirea
Cc: corbet, robh+dt, mark.rutland, catalin.marinas, will, shawnguo,
Leo Li, jslaby, linux-doc, linux-kernel, devicetree,
linux-serial, linux-arm-kernel
On Fri, Aug 23, 2019 at 07:11:37PM +0000, Stefan-gabriel Mirea wrote:
> For consistency reasons, spell the controller name as "LINFlexD" in
> comments and documentation.
>
> Signed-off-by: Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com>
> ---
> Documentation/admin-guide/kernel-parameters.txt | 2 +-
> drivers/tty/serial/Kconfig | 8 ++++----
> drivers/tty/serial/fsl_linflexuart.c | 4 ++--
> include/uapi/linux/serial_core.h | 4 ++--
> 4 files changed, 9 insertions(+), 9 deletions(-)
Doesn't apply to my tty-next tree :(
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v3 4/7] serial: fsl_linflexuart: Be consistent with the name
2019-09-04 7:52 ` gregkh
@ 2019-09-05 11:32 ` Stefan-gabriel Mirea
0 siblings, 0 replies; 11+ messages in thread
From: Stefan-gabriel Mirea @ 2019-09-05 11:32 UTC (permalink / raw)
To: gregkh
Cc: corbet, robh+dt, mark.rutland, catalin.marinas, will, shawnguo,
Leo Li, jslaby, linux-doc, linux-kernel, devicetree,
linux-serial, linux-arm-kernel
Hello Greg,
On 9/4/2019 10:53 AM, gregkh@linuxfoundation.org wrote:
> On Fri, Aug 23, 2019 at 07:11:37PM +0000, Stefan-gabriel Mirea wrote:
>> For consistency reasons, spell the controller name as "LINFlexD" in
>> comments and documentation.
>>
>> Signed-off-by: Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com>
>> ---
>> Documentation/admin-guide/kernel-parameters.txt | 2 +-
>> drivers/tty/serial/Kconfig | 8 ++++----
>> drivers/tty/serial/fsl_linflexuart.c | 4 ++--
>> include/uapi/linux/serial_core.h | 4 ++--
>> 4 files changed, 9 insertions(+), 9 deletions(-)
>
> Doesn't apply to my tty-next tree :(
Thanks for letting me know; I will fix this in v4.
Regards,
Stefan
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v3 5/7] arm64: dts: fsl: Add device tree for S32V234-EVB
2019-08-23 19:11 [PATCH v3 0/7] Add initial support for S32V234-EVB Stefan-gabriel Mirea
` (3 preceding siblings ...)
2019-08-23 19:11 ` [PATCH v3 4/7] serial: fsl_linflexuart: Be consistent with the name Stefan-gabriel Mirea
@ 2019-08-23 19:11 ` Stefan-gabriel Mirea
2019-08-23 19:11 ` [PATCH v3 6/7] dt-bindings: serial: Document Freescale LINFlexD UART Stefan-gabriel Mirea
2019-08-23 19:11 ` [PATCH v3 7/7] arm64: defconfig: Enable configs for S32V234 Stefan-gabriel Mirea
6 siblings, 0 replies; 11+ messages in thread
From: Stefan-gabriel Mirea @ 2019-08-23 19:11 UTC (permalink / raw)
To: corbet, robh+dt, mark.rutland, gregkh, catalin.marinas, will,
shawnguo, Leo Li
Cc: jslaby, linux-doc, linux-kernel, devicetree, linux-serial,
linux-arm-kernel, Cosmin Stefan Stoica, Dan Nica,
Larisa Ileana Grigore
From: Stoica Cosmin-Stefan <cosmin.stoica@nxp.com>
Add initial version of device tree for S32V234-EVB, including nodes for the
4 Cortex-A53 cores, AIPS bus with UART modules, ARM architected timer and
Generic Interrupt Controller (GIC).
Keep SoC level separate from board level to let future boards with this SoC
share common properties, while the dts files will keep board-dependent
properties.
Signed-off-by: Stoica Cosmin-Stefan <cosmin.stoica@nxp.com>
Signed-off-by: Mihaela Martinas <Mihaela.Martinas@freescale.com>
Signed-off-by: Dan Nica <dan.nica@nxp.com>
Signed-off-by: Larisa Grigore <Larisa.Grigore@nxp.com>
Signed-off-by: Phu Luu An <phu.luuan@nxp.com>
Signed-off-by: Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com>
---
arch/arm64/boot/dts/freescale/Makefile | 2 +
arch/arm64/boot/dts/freescale/s32v234-evb.dts | 25 ++++
arch/arm64/boot/dts/freescale/s32v234.dtsi | 139 ++++++++++++++++++
3 files changed, 166 insertions(+)
create mode 100644 arch/arm64/boot/dts/freescale/s32v234-evb.dts
create mode 100644 arch/arm64/boot/dts/freescale/s32v234.dtsi
diff --git a/arch/arm64/boot/dts/freescale/Makefile b/arch/arm64/boot/dts/freescale/Makefile
index c043aca66572..9aff21324146 100644
--- a/arch/arm64/boot/dts/freescale/Makefile
+++ b/arch/arm64/boot/dts/freescale/Makefile
@@ -26,3 +26,5 @@ dtb-$(CONFIG_ARCH_MXC) += imx8mq-librem5-devkit.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mq-zii-ultra-rmb3.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8mq-zii-ultra-zest.dtb
dtb-$(CONFIG_ARCH_MXC) += imx8qxp-mek.dtb
+
+dtb-$(CONFIG_ARCH_S32) += s32v234-evb.dtb
diff --git a/arch/arm64/boot/dts/freescale/s32v234-evb.dts b/arch/arm64/boot/dts/freescale/s32v234-evb.dts
new file mode 100644
index 000000000000..4b802518cefc
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/s32v234-evb.dts
@@ -0,0 +1,25 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright 2015-2016 Freescale Semiconductor, Inc.
+ * Copyright 2016-2017 NXP
+ */
+
+/dts-v1/;
+#include "s32v234.dtsi"
+
+/ {
+ model = "NXP S32V234-EVB2 Board";
+ compatible = "fsl,s32v234-evb", "fsl,s32v234";
+
+ chosen {
+ stdout-path = "serial0:115200n8";
+ };
+};
+
+&uart0 {
+ status = "okay";
+};
+
+&uart1 {
+ status = "okay";
+};
diff --git a/arch/arm64/boot/dts/freescale/s32v234.dtsi b/arch/arm64/boot/dts/freescale/s32v234.dtsi
new file mode 100644
index 000000000000..37225191ccbf
--- /dev/null
+++ b/arch/arm64/boot/dts/freescale/s32v234.dtsi
@@ -0,0 +1,139 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
+/*
+ * Copyright 2015-2016 Freescale Semiconductor, Inc.
+ * Copyright 2016-2018 NXP
+ */
+
+#include <dt-bindings/interrupt-controller/arm-gic.h>
+
+/memreserve/ 0x80000000 0x00010000;
+
+/ {
+ compatible = "fsl,s32v234";
+ interrupt-parent = <&gic>;
+ #address-cells = <2>;
+ #size-cells = <2>;
+
+ aliases {
+ serial0 = &uart0;
+ serial1 = &uart1;
+ };
+
+ cpus {
+ #address-cells = <2>;
+ #size-cells = <0>;
+
+ cpu0: cpu@0 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a53";
+ reg = <0x0 0x0>;
+ enable-method = "spin-table";
+ cpu-release-addr = <0x0 0x80000000>;
+ next-level-cache = <&cluster0_l2_cache>;
+ };
+
+ cpu1: cpu@1 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a53";
+ reg = <0x0 0x1>;
+ enable-method = "spin-table";
+ cpu-release-addr = <0x0 0x80000000>;
+ next-level-cache = <&cluster0_l2_cache>;
+ };
+
+ cpu2: cpu@100 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a53";
+ reg = <0x0 0x100>;
+ enable-method = "spin-table";
+ cpu-release-addr = <0x0 0x80000000>;
+ next-level-cache = <&cluster1_l2_cache>;
+ };
+
+ cpu3: cpu@101 {
+ device_type = "cpu";
+ compatible = "arm,cortex-a53";
+ reg = <0x0 0x101>;
+ enable-method = "spin-table";
+ cpu-release-addr = <0x0 0x80000000>;
+ next-level-cache = <&cluster1_l2_cache>;
+ };
+
+ cluster0_l2_cache: l2-cache0 {
+ compatible = "cache";
+ };
+
+ cluster1_l2_cache: l2-cache1 {
+ compatible = "cache";
+ };
+ };
+
+ timer {
+ compatible = "arm,armv8-timer";
+ interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) |
+ IRQ_TYPE_LEVEL_LOW)>,
+ <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) |
+ IRQ_TYPE_LEVEL_LOW)>,
+ <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) |
+ IRQ_TYPE_LEVEL_LOW)>,
+ <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) |
+ IRQ_TYPE_LEVEL_LOW)>;
+ /* clock-frequency might be modified by u-boot, depending on the
+ * chip version.
+ */
+ clock-frequency = <10000000>;
+ };
+
+ gic: interrupt-controller@7d001000 {
+ compatible = "arm,cortex-a15-gic", "arm,cortex-a9-gic";
+ #interrupt-cells = <3>;
+ #address-cells = <0>;
+ interrupt-controller;
+ reg = <0 0x7d001000 0 0x1000>,
+ <0 0x7d002000 0 0x2000>,
+ <0 0x7d004000 0 0x2000>,
+ <0 0x7d006000 0 0x2000>;
+ interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) |
+ IRQ_TYPE_LEVEL_HIGH)>;
+ };
+
+ soc {
+ #address-cells = <2>;
+ #size-cells = <2>;
+ compatible = "simple-bus";
+ interrupt-parent = <&gic>;
+ ranges;
+
+ aips0: aips-bus@40000000 {
+ compatible = "simple-bus";
+ #address-cells = <2>;
+ #size-cells = <2>;
+ interrupt-parent = <&gic>;
+ reg = <0x0 0x40000000 0x0 0x7D000>;
+ ranges;
+
+ uart0: serial@40053000 {
+ compatible = "fsl,s32v234-linflexuart";
+ reg = <0x0 0x40053000 0x0 0x1000>;
+ interrupts = <GIC_SPI 59 IRQ_TYPE_EDGE_RISING>;
+ status = "disabled";
+ };
+ };
+
+ aips1: aips-bus@40080000 {
+ compatible = "simple-bus";
+ #address-cells = <2>;
+ #size-cells = <2>;
+ interrupt-parent = <&gic>;
+ reg = <0x0 0x40080000 0x0 0x70000>;
+ ranges;
+
+ uart1: serial@400bc000 {
+ compatible = "fsl,s32v234-linflexuart";
+ reg = <0x0 0x400bc000 0x0 0x1000>;
+ interrupts = <GIC_SPI 60 IRQ_TYPE_EDGE_RISING>;
+ status = "disabled";
+ };
+ };
+ };
+};
--
2.22.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v3 6/7] dt-bindings: serial: Document Freescale LINFlexD UART
2019-08-23 19:11 [PATCH v3 0/7] Add initial support for S32V234-EVB Stefan-gabriel Mirea
` (4 preceding siblings ...)
2019-08-23 19:11 ` [PATCH v3 5/7] arm64: dts: fsl: Add device tree for S32V234-EVB Stefan-gabriel Mirea
@ 2019-08-23 19:11 ` Stefan-gabriel Mirea
2019-08-27 20:26 ` Rob Herring
2019-08-23 19:11 ` [PATCH v3 7/7] arm64: defconfig: Enable configs for S32V234 Stefan-gabriel Mirea
6 siblings, 1 reply; 11+ messages in thread
From: Stefan-gabriel Mirea @ 2019-08-23 19:11 UTC (permalink / raw)
To: corbet, robh+dt, mark.rutland, gregkh, catalin.marinas, will,
shawnguo, Leo Li
Cc: jslaby, linux-doc, linux-kernel, devicetree, linux-serial,
linux-arm-kernel, Cosmin Stefan Stoica, Larisa Ileana Grigore
From: Stoica Cosmin-Stefan <cosmin.stoica@nxp.com>
Add documentation for the serial communication interface module (LINFlexD),
found in two instances on S32V234.
Signed-off-by: Stoica Cosmin-Stefan <cosmin.stoica@nxp.com>
Signed-off-by: Larisa Grigore <Larisa.Grigore@nxp.com>
Signed-off-by: Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com>
---
.../bindings/serial/fsl,s32-linflexuart.txt | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644 Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.txt
diff --git a/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.txt b/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.txt
new file mode 100644
index 000000000000..f1bbe0826be5
--- /dev/null
+++ b/Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.txt
@@ -0,0 +1,22 @@
+* Freescale LINFlexD UART
+
+The LINFlexD controller implements several LIN protocol versions, as well as
+support for full-duplex UART communication through 8-bit and 9-bit frames.
+
+See chapter 47 ("LINFlexD") in the reference manual[1].
+
+Required properties:
+- compatible :
+ - "fsl,s32v234-linflexuart" for LINFlexD configured in UART mode, which
+ is compatible with the one integrated on S32V234 SoC
+- reg : Address and length of the register set for the device
+- interrupts : Should contain uart interrupt
+
+Example:
+uart0: serial@40053000 {
+ compatible = "fsl,s32v234-linflexuart";
+ reg = <0x0 0x40053000 0x0 0x1000>;
+ interrupts = <0 59 4>;
+};
+
+[1] https://www.nxp.com/webapp/Download?colCode=S32V234RM
--
2.22.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v3 6/7] dt-bindings: serial: Document Freescale LINFlexD UART
2019-08-23 19:11 ` [PATCH v3 6/7] dt-bindings: serial: Document Freescale LINFlexD UART Stefan-gabriel Mirea
@ 2019-08-27 20:26 ` Rob Herring
0 siblings, 0 replies; 11+ messages in thread
From: Rob Herring @ 2019-08-27 20:26 UTC (permalink / raw)
To: Stefan-gabriel Mirea
Cc: corbet, robh+dt, mark.rutland, gregkh, catalin.marinas, will,
shawnguo, Leo Li, jslaby, linux-doc, linux-kernel, devicetree,
linux-serial, linux-arm-kernel, Cosmin Stefan Stoica,
Larisa Ileana Grigore
On Fri, 23 Aug 2019 19:11:40 +0000, Stefan-gabriel Mirea wrote:
> From: Stoica Cosmin-Stefan <cosmin.stoica@nxp.com>
>
> Add documentation for the serial communication interface module (LINFlexD),
> found in two instances on S32V234.
>
> Signed-off-by: Stoica Cosmin-Stefan <cosmin.stoica@nxp.com>
> Signed-off-by: Larisa Grigore <Larisa.Grigore@nxp.com>
> Signed-off-by: Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com>
> ---
> .../bindings/serial/fsl,s32-linflexuart.txt | 22 +++++++++++++++++++
> 1 file changed, 22 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.txt
>
Reviewed-by: Rob Herring <robh@kernel.org>
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v3 7/7] arm64: defconfig: Enable configs for S32V234
2019-08-23 19:11 [PATCH v3 0/7] Add initial support for S32V234-EVB Stefan-gabriel Mirea
` (5 preceding siblings ...)
2019-08-23 19:11 ` [PATCH v3 6/7] dt-bindings: serial: Document Freescale LINFlexD UART Stefan-gabriel Mirea
@ 2019-08-23 19:11 ` Stefan-gabriel Mirea
6 siblings, 0 replies; 11+ messages in thread
From: Stefan-gabriel Mirea @ 2019-08-23 19:11 UTC (permalink / raw)
To: corbet, robh+dt, mark.rutland, gregkh, catalin.marinas, will,
shawnguo, Leo Li
Cc: jslaby, linux-doc, linux-kernel, devicetree, linux-serial,
linux-arm-kernel, Cosmin Stefan Stoica
From: Mihaela Martinas <Mihaela.Martinas@freescale.com>
Enable support for the S32V234 SoC, including the previously added UART
driver.
Signed-off-by: Mihaela Martinas <Mihaela.Martinas@freescale.com>
Signed-off-by: Adrian.Nitu <adrian.nitu@freescale.com>
Signed-off-by: Stoica Cosmin-Stefan <cosmin.stoica@nxp.com>
Signed-off-by: Stefan-Gabriel Mirea <stefan-gabriel.mirea@nxp.com>
---
arch/arm64/configs/defconfig | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig
index 0e58ef02880c..bb5aa95a8455 100644
--- a/arch/arm64/configs/defconfig
+++ b/arch/arm64/configs/defconfig
@@ -48,6 +48,7 @@ CONFIG_ARCH_MXC=y
CONFIG_ARCH_QCOM=y
CONFIG_ARCH_RENESAS=y
CONFIG_ARCH_ROCKCHIP=y
+CONFIG_ARCH_S32=y
CONFIG_ARCH_SEATTLE=y
CONFIG_ARCH_STRATIX10=y
CONFIG_ARCH_SYNQUACER=y
@@ -347,6 +348,8 @@ CONFIG_SERIAL_XILINX_PS_UART=y
CONFIG_SERIAL_XILINX_PS_UART_CONSOLE=y
CONFIG_SERIAL_FSL_LPUART=y
CONFIG_SERIAL_FSL_LPUART_CONSOLE=y
+CONFIG_SERIAL_FSL_LINFLEXUART=y
+CONFIG_SERIAL_FSL_LINFLEXUART_CONSOLE=y
CONFIG_SERIAL_MVEBU_UART=y
CONFIG_SERIAL_DEV_BUS=y
CONFIG_VIRTIO_CONSOLE=y
--
2.22.0
^ permalink raw reply related [flat|nested] 11+ messages in thread