diff options
author | Pawel Dembicki <paweldembicki@gmail.com> | 2020-11-04 10:16:31 +0100 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2020-11-23 22:53:15 +0100 |
commit | cdff729b27592b1761059886c40f0204507000d1 (patch) | |
tree | c08622ee6f464b368da457707341035454520cb6 /target/linux/layerscape/patches-5.4 | |
parent | 4dc27a026b7e308477adecbdf8e6da58e1d57716 (diff) | |
download | upstream-cdff729b27592b1761059886c40f0204507000d1.tar.gz upstream-cdff729b27592b1761059886c40f0204507000d1.tar.bz2 upstream-cdff729b27592b1761059886c40f0204507000d1.zip |
layerscape: enable spi-uart in LS1012A-FRDM
This patch add missing support of SC16IS740 serial controller, installed
on LS1012A-FRDM board.
It was required to change RCW bits, because SPI was disabled by default.
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
Diffstat (limited to 'target/linux/layerscape/patches-5.4')
-rw-r--r-- | target/linux/layerscape/patches-5.4/902-layerscape_improve_support_of_LS1012A-FRDM.patch | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/target/linux/layerscape/patches-5.4/902-layerscape_improve_support_of_LS1012A-FRDM.patch b/target/linux/layerscape/patches-5.4/902-layerscape_improve_support_of_LS1012A-FRDM.patch new file mode 100644 index 0000000000..62edf43a35 --- /dev/null +++ b/target/linux/layerscape/patches-5.4/902-layerscape_improve_support_of_LS1012A-FRDM.patch @@ -0,0 +1,58 @@ +From 12de4b5e7cbcd193d5abb753ca511fe8f2236846 Mon Sep 17 00:00:00 2001 +From: Pawel Dembicki <paweldembicki@gmail.com> +Date: Fri, 13 Nov 2020 07:30:03 +0100 +Subject: [PATCH 2/2] arm64: dts: fsl-ls1012a-frdm: add spi-uart device + +This patch adds spi-uart controller to LS1012A-FRDM board dts. +Device is equipped in SC16IS740 from NXP. + +Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com> +--- + .../boot/dts/freescale/fsl-ls1012a-frdm.dts | 21 +++++++++++++++++++ + 1 file changed, 21 insertions(+) + +--- a/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts ++++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts +@@ -7,6 +7,7 @@ + */ + /dts-v1/; + ++#include <dt-bindings/interrupt-controller/irq.h> + #include "fsl-ls1012a.dtsi" + + / { +@@ -16,6 +17,7 @@ + aliases { + ethernet0 = &pfe_mac0; + ethernet1 = &pfe_mac1; ++ serial0 = &duart0; + }; + + sys_mclk: clock-mclk { +@@ -61,6 +63,26 @@ + }; + }; + }; ++ ++&dspi { ++ status = "okay"; ++ bus-num = <0>; ++ ++ serial@0 { ++ reg = <0>; ++ compatible = "nxp,sc16is740"; ++ spi-max-frequency = <4000000>; ++ clocks = <&sc16is7xx_clk>; ++ interrupt-parent = <&gpio1>; ++ interrupts = <13 IRQ_TYPE_EDGE_FALLING>; ++ ++ sc16is7xx_clk: sc16is7xx_clk { ++ compatible = "fixed-clock"; ++ #clock-cells = <0>; ++ clock-frequency = <24000000>; ++ }; ++ }; ++}; + + &duart0 { + status = "okay"; |