]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arch: arm: dts: fsl-ls1088a.dtsi: sync serial nodes with Linux
authorIoana Ciornei <ioana.ciornei@nxp.com>
Wed, 15 Mar 2023 11:04:11 +0000 (13:04 +0200)
committerPeng Fan <peng.fan@nxp.com>
Tue, 4 Apr 2023 09:31:46 +0000 (17:31 +0800)
Sync the serial nodes of the LS1088A based boards with their
representation in Linux. We also imported the clockgen and sysclk nodes
which are dependencies.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/dts/fsl-ls1088a-qds.dtsi
arch/arm/dts/fsl-ls1088a-rdb.dts
arch/arm/dts/fsl-ls1088a-ten64.dts
arch/arm/dts/fsl-ls1088a.dtsi

index 85dc7457bfb3af81b31cce42d746ab6f35a79698..4d21d4fbd5e01e1ac1f65afc176cca46d562a9e4 100644 (file)
        };
 };
 
+&duart0 {
+       status = "okay";
+};
+
+&duart1 {
+       status = "okay";
+};
+
 &dspi {
        bus-num = <0>;
        status = "okay";
index 01f8fcb61aef9320797b686dae2f99a8824499e5..c63d4158e49fb2278620da618dc5558cf3ed96f3 100644 (file)
        };
 };
 
+&duart0 {
+       status = "okay";
+};
+
+&duart1 {
+       status = "okay";
+};
+
 &qspi {
        status = "okay";
 
index 43b669c642cece4413f4b7f45fe8b5bc17463df8..55a7d41fb01b12f55c3ab3d8d10b23ace6fdf9df 100644 (file)
@@ -20,6 +20,8 @@
        compatible = "traverse,ten64", "fsl,ls1088a";
 
        aliases {
+               serial0 = &duart0;
+               serial1 = &duart1;
                spi0 = &qspi;
        };
 
        status = "okay";
 };
 
-&serial0 {
+&duart0 {
        status = "okay";
 };
 
-&serial1 {
+&duart1 {
        status = "okay";
 };
 
index 0eb0f6c41aef576dbfb1a9f54b478bb3758f5559..b094bcf67c4f1fea7744d619b21a3a7eac24d68a 100644 (file)
@@ -2,9 +2,10 @@
 /*
  * NXP ls1088a SOC common device tree source
  *
- * Copyright 2017, 2020-2021 NXP
+ * Copyright 2017, 2020-2021, 2023 NXP
  */
 
+#include <dt-bindings/clock/fsl,qoriq-clockgen.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
 / {
        compatible = "fsl,ls1088a";
                             <1 10 0x8>; /* Hypervisor PPI, active-low */
        };
 
+       sysclk: sysclk {
+               compatible = "fixed-clock";
+               #clock-cells = <0>;
+               clock-frequency = <100000000>;
+               clock-output-names = "sysclk";
+       };
+
        soc {
                compatible = "simple-bus";
                #address-cells = <2>;
                ranges;
                dma-ranges = <0x0 0x0 0x0 0x0 0x10000 0x00000000>;
 
-               serial0: serial@21c0500 {
-                       device_type = "serial";
+               clockgen: clocking@1300000 {
+                       compatible = "fsl,ls1088a-clockgen";
+                       reg = <0 0x1300000 0 0xa0000>;
+                       #clock-cells = <2>;
+                       clocks = <&sysclk>;
+               };
+
+               duart0: serial@21c0500 {
                        compatible = "fsl,ns16550", "ns16550a";
                        reg = <0x0 0x21c0500 0x0 0x100>;
-                       clock-frequency = <0>; /* Updated by bootloader */
-                       interrupts = <0 32 0x1>; /* edge triggered */
+                       clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+                                           QORIQ_CLK_PLL_DIV(4)>;
+                       interrupts = <0 32 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
                };
 
-               serial1: serial@21c0600 {
-                       device_type = "serial";
+               duart1: serial@21c0600 {
                        compatible = "fsl,ns16550", "ns16550a";
                        reg = <0x0 0x21c0600 0x0 0x100>;
-                       clock-frequency = <0>; /* Updated by bootloader */
-                       interrupts = <0 32 0x1>; /* edge triggered */
+                       clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL
+                                           QORIQ_CLK_PLL_DIV(4)>;
+                       interrupts = <0 32 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "disabled";
                };
        };