arm64: dts: add FlexCAN support to LS1028A and sl28
Subsystems (3)
v2 cover arm64: dts: add FlexCAN support to LS1028A and sl28
Now that FlexCAN support for newer IPs is finally hitting upstream [1], lets add the corresponding nodes for the LS1028A SoC and enable it for the Kontron sl28 board.
changes since v1:
- added new patch "dt-bindings: can: flexcan: list supported processors" Suggested by Lee.
Please keep in mind that this only an intermediate step, as Marc already pointed out [2] that Oleksij is alreay working on converting the bindings to YAML format.
[1] https://lore.kernel.org/netdev/[email protected]/
[2] https://lore.kernel.org/linux-can/[email protected]/
Michael Walle (3):
dt-bindings: can: flexcan: list supported processors
arm64: dts: ls1028a: add missing CAN nodes
arm64: dts: freescale: sl28: add CAN node
.../bindings/net/can/fsl-flexcan.txt | 6 ++++++ .../dts/freescale/fsl-ls1028a-kontron-sl28.dts | 4 ++++ arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 18 ++++++++++++++++++ 3 files changed, 28 insertions(+)
Signature · 1 line
2.20.1
PATCH v2 1/3 dt-bindings: can: flexcan: list supported processors
The compatible is a pattern match. Explicitly list all possible values. Also mention that the ls1028ar1 must be followed by lx2160ar1.
--- Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/net/can/fsl-flexcan.txt +6 -0
@@ -4,6 +4,12 @@ Required properties: - compatible : Should be "fsl,<processor>-flexcan" + where <processor> is imx8qm, imx6q, imx28, imx53, imx35, imx25, p1010, + vf610, ls1021ar2, lx2160ar1, ls1028ar1. + + The ls1028ar1 must be followed by lx2160ar1, e.g. + - "fsl,ls1028ar1-flexcan", "fsl,lx2160ar1-flexcan" + An implementation should also claim any of the following compatibles that it is fully backwards compatible with:
Signature · 1 line
2.20.1
Marc Kleine-Budde
maintainerRe: [PATCH v2 1/3] dt-bindings: can: flexcan: list supported processors
Quoted 16 lines · Michael Walle
The compatible is a pattern match. Explicitly list all possible values. Also mention that the ls1028ar1 must be followed by lx2160ar1.
Signed-off-by Michael Walle <[email protected]>--- Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | 6 ++++++ 1 file changed, 6 insertions(+)Documentation/devicetree/bindings/net/can/fsl-flexcan.txt +0
-0@@ -4,6 +4,12 @@ Required properties: - compatible : Should be "fsl,<processor>-flexcan"
Documentation/devicetree/bindings/net/can/fsl-flexcan.txt Required properties: · line 15
Quoted 10 lines
Documentation/devicetree/bindings/net/can/fsl-flexcan.txt +6
-0+ where <processor> is imx8qm, imx6q, imx28, imx53, imx35, imx25, p1010, + vf610, ls1021ar2, lx2160ar1, ls1028ar1. + + The ls1028ar1 must be followed by lx2160ar1, e.g. + - "fsl,ls1028ar1-flexcan", "fsl,lx2160ar1-flexcan" + An implementation should also claim any of the following compatibles that it is fully backwards compatible with:
Added this patch to linux-can-next. The others should probably go via the arm SoC tree.
Marc
Signature · 4 lines
Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
PATCH v2 2/3 arm64: dts: ls1028a: add missing CAN nodes
In reply to Michael WalleThe LS1028A has two FlexCAN controller. These are compatible with the ones from the LX2160A. Add the nodes.
The first controller was tested on the Kontron sl28 board.
--- arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +18 -0
@@ -386,6 +386,24 @@ status = "disabled"; }; + can0: can@2180000 { + compatible = "fsl,ls1028ar1-flexcan", "fsl,lx2160ar1-flexcan"; + reg = <0x0 0x2180000 0x0 0x10000>; + interrupts = <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&sysclk>, <&clockgen 4 1>; + clock-names = "ipg", "per"; + status = "disabled"; + }; + + can1: can@2190000 { + compatible = "fsl,ls1028ar1-flexcan", "fsl,lx2160ar1-flexcan"; + reg = <0x0 0x2190000 0x0 0x10000>; + interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&sysclk>, <&clockgen 4 1>; + clock-names = "ipg", "per"; + status = "disabled"; + }; + duart0: serial@21c0500 { compatible = "fsl,ns16550", "ns16550a"; reg = <0x00 0x21c0500 0x0 0x100>;
Signature · 1 line
2.20.1
Shawn Guo
AppliedRe: [PATCH v2 2/3] arm64: dts: ls1028a: add missing CAN nodes
Quoted 6 lines · Michael Walle
The LS1028A has two FlexCAN controller. These are compatible with the ones from the LX2160A. Add the nodes.
The first controller was tested on the Kontron sl28 board.
Signed-off-by Michael Walle <[email protected]>
Applied, thanks.
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH v2 3/3 arm64: dts: freescale: sl28: add CAN node
In reply to Michael WalleThe module supports one CAN controller. Enable it.
--- arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm64/boot/dts/freescale/fsl-ls1028a-kontron-sl28.dts +4 -0
@@ -60,6 +60,10 @@ }; }; +&can0 { + status = "okay"; +}; + &dspi2 { status = "okay"; };
Signature · 1 line
2.20.1
Shawn Guo
AppliedRe: [PATCH v2 3/3] arm64: dts: freescale: sl28: add CAN node
Quoted 3 lines · Michael Walle
The module supports one CAN controller. Enable it.
Signed-off-by Michael Walle <[email protected]>
Applied, thanks.
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel