arm64: dts: fsl-ls1012a-frdm: add spi-uart device
authorPawel Dembicki <paweldembicki@gmail.com>
Tue, 19 Jan 2021 15:51:06 +0000 (16:51 +0100)
committerShawn Guo <shawnguo@kernel.org>
Fri, 29 Jan 2021 13:30:09 +0000 (21:30 +0800)
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>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dts

index 67702667ed8a220bc853e27402b72d50c6ae60ea..2517528f684fe085a237d368aa8edb26ef702456 100644 (file)
@@ -7,6 +7,7 @@
  */
 /dts-v1/;
 
+#include <dt-bindings/interrupt-controller/irq.h>
 #include "fsl-ls1012a.dtsi"
 
 / {
        };
 };
 
+&dspi {
+       bus-num = <0>;
+       status = "okay";
+
+       serial@0 {
+               compatible = "nxp,sc16is740";
+               reg = <0>;
+               spi-max-frequency = <4000000>;
+               clocks = <&sc16is7xx_clk>;
+               interrupt-parent = <&gpio1>;
+               interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
+
+               sc16is7xx_clk: clock-sc16is7xx {
+                       compatible = "fixed-clock";
+                       #clock-cells = <0>;
+                       clock-frequency = <24000000>;
+               };
+       };
+};
+
 &duart0 {
        status = "okay";
 };