]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
arm: dts: k3-am65/j721e: Sync DMA DT bindings from Kernel DT
authorVignesh Raghavendra <vigneshr@ti.com>
Tue, 7 Jul 2020 08:13:35 +0000 (13:43 +0530)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 13 Jul 2020 15:28:34 +0000 (20:58 +0530)
Sync DT bindings from kernel DT and move them to out of -u-boot.dtsi
files.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
arch/arm/dts/k3-am65-mcu.dtsi
arch/arm/dts/k3-am654-base-board-u-boot.dtsi
arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi
arch/arm/dts/k3-j721e-mcu-wakeup.dtsi
include/dt-bindings/dma/k3-udma.h [deleted file]

index bc9a87210da995a98e3e9e6ba5924b10c17da971..d1a9fb5de6bc032310662d5cf3232305f82a2941 100644 (file)
                        #size-cells = <0>;
                };
        };
+
+       mcu_navss {
+               compatible = "simple-mfd";
+               #address-cells = <2>;
+               #size-cells = <2>;
+               ranges;
+               dma-coherent;
+               dma-ranges;
+
+               ti,sci-dev-id = <119>;
+
+               mcu_ringacc: ringacc@2b800000 {
+                       compatible = "ti,am654-navss-ringacc";
+                       reg =   <0x0 0x2b800000 0x0 0x400000>,
+                               <0x0 0x2b000000 0x0 0x400000>,
+                               <0x0 0x28590000 0x0 0x100>,
+                               <0x0 0x2a500000 0x0 0x40000>;
+                       reg-names = "rt", "fifos", "proxy_gcfg", "proxy_target";
+                       ti,num-rings = <286>;
+                       ti,sci-rm-range-gp-rings = <0x2>; /* GP ring range */
+                       ti,dma-ring-reset-quirk;
+                       ti,sci = <&dmsc>;
+                       ti,sci-dev-id = <195>;
+               };
+
+               mcu_udmap: dma-controller@285c0000 {
+                       compatible = "ti,am654-navss-mcu-udmap";
+                       reg =   <0x0 0x285c0000 0x0 0x100>,
+                               <0x0 0x2a800000 0x0 0x40000>,
+                               <0x0 0x2aa00000 0x0 0x40000>;
+                       reg-names = "gcfg", "rchanrt", "tchanrt";
+                       #dma-cells = <1>;
+
+                       ti,sci = <&dmsc>;
+                       ti,sci-dev-id = <194>;
+                       ti,ringacc = <&mcu_ringacc>;
+
+                       ti,sci-rm-range-tchan = <0x1>, /* TX_HCHAN */
+                                               <0x2>; /* TX_CHAN */
+                       ti,sci-rm-range-rchan = <0x3>, /* RX_HCHAN */
+                                               <0x4>; /* RX_CHAN */
+                       ti,sci-rm-range-rflow = <0x5>; /* GP RFLOW */
+               };
+       };
 };
index a7e5eb055313755efa62188d77b15cc3754fa796..1a40fa12b70ec9956849e7a48c6260c9ebaf8abc 100644 (file)
@@ -4,7 +4,6 @@
  */
 
 #include <dt-bindings/pinctrl/k3.h>
-#include <dt-bindings/dma/k3-udma.h>
 #include <dt-bindings/net/ti-dp83867.h>
 
 / {
 &cbass_mcu {
        u-boot,dm-spl;
 
-       navss_mcu: navss-mcu {
-               compatible = "simple-bus";
-               #address-cells = <2>;
-               #size-cells = <2>;
-               ranges;
+       mcu_navss {
                u-boot,dm-spl;
 
-               ti,sci-dev-id = <119>;
-
-               mcu_ringacc: ringacc@2b800000 {
-                       compatible = "ti,am654-navss-ringacc";
-                       reg =   <0x0 0x2b800000 0x0 0x400000>,
-                               <0x0 0x2b000000 0x0 0x400000>,
-                               <0x0 0x28590000 0x0 0x100>,
-                               <0x0 0x2a500000 0x0 0x40000>;
-                       reg-names = "rt", "fifos",
-                                   "proxy_gcfg", "proxy_target";
-                       ti,num-rings = <286>;
-                       ti,sci-rm-range-gp-rings = <0x2>; /* GP ring range */
-                       ti,dma-ring-reset-quirk;
-                       ti,sci = <&dmsc>;
-                       ti,sci-dev-id = <195>;
+               ringacc@2b800000 {
                        u-boot,dm-spl;
                };
 
-               mcu_udmap: udmap@285c0000 {
-                       compatible = "ti,k3-navss-udmap";
-                       reg =   <0x0 0x285c0000 0x0 0x100>,
-                               <0x0 0x2a800000 0x0 0x40000>,
-                               <0x0 0x2aa00000 0x0 0x40000>;
-                       reg-names = "gcfg", "rchanrt", "tchanrt";
-                       #dma-cells = <3>;
-
-                       ti,ringacc = <&mcu_ringacc>;
-                       ti,psil-base = <0x6000>;
-
-                       ti,sci = <&dmsc>;
-                       ti,sci-dev-id = <194>;
-
-                       ti,sci-rm-range-tchan = <0x1>, /* TX_HCHAN */
-                                               <0x2>; /* TX_CHAN */
-                       ti,sci-rm-range-rchan = <0x3>, /* RX_HCHAN */
-                                               <0x4>; /* RX_CHAN */
-                       ti,sci-rm-range-rflow = <0x5>; /* GP RFLOW */
-                       dma-coherent;
+               dma-controller@285c0000 {
                        u-boot,dm-spl;
                };
        };
                clocks = <&k3_clks 5 10>;
                clock-names = "fck";
                power-domains = <&k3_pds 5 TI_SCI_PD_EXCLUSIVE>;
-               ti,psil-base = <0x7000>;
-
-               dmas = <&mcu_udmap &mcu_cpsw 0 UDMA_DIR_TX>,
-                      <&mcu_udmap &mcu_cpsw 1 UDMA_DIR_TX>,
-                      <&mcu_udmap &mcu_cpsw 2 UDMA_DIR_TX>,
-                      <&mcu_udmap &mcu_cpsw 3 UDMA_DIR_TX>,
-                      <&mcu_udmap &mcu_cpsw 4 UDMA_DIR_TX>,
-                      <&mcu_udmap &mcu_cpsw 5 UDMA_DIR_TX>,
-                      <&mcu_udmap &mcu_cpsw 6 UDMA_DIR_TX>,
-                      <&mcu_udmap &mcu_cpsw 7 UDMA_DIR_TX>,
-                      <&mcu_udmap &mcu_cpsw 0 UDMA_DIR_RX>;
+
+               dmas = <&mcu_udmap 0xf000>,
+                      <&mcu_udmap 0xf001>,
+                      <&mcu_udmap 0xf002>,
+                      <&mcu_udmap 0xf003>,
+                      <&mcu_udmap 0xf004>,
+                      <&mcu_udmap 0xf005>,
+                      <&mcu_udmap 0xf006>,
+                      <&mcu_udmap 0xf007>,
+                      <&mcu_udmap 0x7000>;
                dma-names = "tx0", "tx1", "tx2", "tx3",
                            "tx4", "tx5", "tx6", "tx7",
                            "rx";
                        #size-cells = <0>;
                        bus_freq = <1000000>;
                };
-
-               ti,psil-config0 {
-                       linux,udma-mode = <UDMA_PKT_MODE>;
-                       statictr-type = <PSIL_STATIC_TR_NONE>;
-                       ti,needs-epib;
-                       ti,psd-size = <16>;
-               };
-
-               ti,psil-config1 {
-                       linux,udma-mode = <UDMA_PKT_MODE>;
-                       statictr-type = <PSIL_STATIC_TR_NONE>;
-                       ti,needs-epib;
-                       ti,psd-size = <16>;
-               };
-
-               ti,psil-config2 {
-                       linux,udma-mode = <UDMA_PKT_MODE>;
-                       statictr-type = <PSIL_STATIC_TR_NONE>;
-                       ti,needs-epib;
-                       ti,psd-size = <16>;
-               };
-
-               ti,psil-config3 {
-                       linux,udma-mode = <UDMA_PKT_MODE>;
-                       statictr-type = <PSIL_STATIC_TR_NONE>;
-                       ti,needs-epib;
-                       ti,psd-size = <16>;
-               };
-
-               ti,psil-config4 {
-                       linux,udma-mode = <UDMA_PKT_MODE>;
-                       statictr-type = <PSIL_STATIC_TR_NONE>;
-                       ti,needs-epib;
-                       ti,psd-size = <16>;
-               };
-
-               ti,psil-config5 {
-                       linux,udma-mode = <UDMA_PKT_MODE>;
-                       statictr-type = <PSIL_STATIC_TR_NONE>;
-                       ti,needs-epib;
-                       ti,psd-size = <16>;
-               };
-
-               ti,psil-config6 {
-                       linux,udma-mode = <UDMA_PKT_MODE>;
-                       statictr-type = <PSIL_STATIC_TR_NONE>;
-                       ti,needs-epib;
-                       ti,psd-size = <16>;
-               };
-
-               ti,psil-config7 {
-                       linux,udma-mode = <UDMA_PKT_MODE>;
-                       statictr-type = <PSIL_STATIC_TR_NONE>;
-                       ti,needs-epib;
-                       ti,psd-size = <16>;
-               };
        };
 };
 
index 7b01e4204f73a5efbdf01b8b28525c1e69662d82..6273133303073fed07e48f68a38d377b4f1910c2 100644 (file)
@@ -3,7 +3,6 @@
  * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
  */
 
-#include <dt-bindings/dma/k3-udma.h>
 #include <dt-bindings/net/ti-dp83867.h>
 
 / {
                };
        };
 
-       cbass_mcu_navss: mcu_navss {
-               compatible = "simple-bus";
-               #address-cells = <2>;
-               #size-cells = <2>;
-               dma-coherent;
-               dma-ranges;
-               ranges;
-
-               ti,sci-dev-id = <232>;
+       mcu_navss {
                u-boot,dm-spl;
 
-               mcu_ringacc: ringacc@2b800000 {
-                       compatible = "ti,am654-navss-ringacc";
-                       reg =   <0x0 0x2b800000 0x0 0x400000>,
-                               <0x0 0x2b000000 0x0 0x400000>,
-                               <0x0 0x28590000 0x0 0x100>,
-                               <0x0 0x2a500000 0x0 0x40000>;
-                       reg-names = "rt", "fifos", "proxy_gcfg", "proxy_target";
-                       ti,num-rings = <286>;
-                       ti,sci-rm-range-gp-rings = <0x1>; /* GP ring range */
-                       ti,sci = <&dmsc>;
-                       ti,sci-dev-id = <235>;
+               ringacc@2b800000 {
                        u-boot,dm-spl;
                };
 
-               mcu_udmap: udmap@31150000 {
-                       compatible = "ti,j721e-navss-mcu-udmap";
-                       reg =   <0x0 0x285c0000 0x0 0x100>,
-                               <0x0 0x2a800000 0x0 0x40000>,
-                               <0x0 0x2aa00000 0x0 0x40000>;
-                       reg-names = "gcfg", "rchanrt", "tchanrt";
-                       #dma-cells = <3>;
-
-                       ti,ringacc = <&mcu_ringacc>;
-                       ti,psil-base = <0x6000>;
-
-                       ti,sci = <&dmsc>;
-                       ti,sci-dev-id = <236>;
-
-                       ti,sci-rm-range-tchan = <0x0d>, /* TX_CHAN */
-                                               <0x0f>; /* TX_HCHAN */
-                       ti,sci-rm-range-rchan = <0x0a>, /* RX_CHAN */
-                                               <0x0b>; /* RX_HCHAN */
-                       ti,sci-rm-range-rflow = <0x00>; /* GP RFLOW */
+               dma-controller@285c0000 {
                        u-boot,dm-spl;
                };
        };
                clocks = <&k3_clks 18 22>;
                clock-names = "fck";
                power-domains = <&k3_pds 18 TI_SCI_PD_EXCLUSIVE>;
-               ti,psil-base = <0x7000>;
                cpsw-phy-sel = <&phy_sel>;
 
-               dmas = <&mcu_udmap &mcu_cpsw 0 UDMA_DIR_TX>,
-                      <&mcu_udmap &mcu_cpsw 1 UDMA_DIR_TX>,
-                      <&mcu_udmap &mcu_cpsw 2 UDMA_DIR_TX>,
-                      <&mcu_udmap &mcu_cpsw 3 UDMA_DIR_TX>,
-                      <&mcu_udmap &mcu_cpsw 4 UDMA_DIR_TX>,
-                      <&mcu_udmap &mcu_cpsw 5 UDMA_DIR_TX>,
-                      <&mcu_udmap &mcu_cpsw 6 UDMA_DIR_TX>,
-                      <&mcu_udmap &mcu_cpsw 7 UDMA_DIR_TX>,
-                      <&mcu_udmap &mcu_cpsw 0 UDMA_DIR_RX>;
+               dmas = <&mcu_udmap 0xf000>,
+                      <&mcu_udmap 0xf001>,
+                      <&mcu_udmap 0xf002>,
+                      <&mcu_udmap 0xf003>,
+                      <&mcu_udmap 0xf004>,
+                      <&mcu_udmap 0xf005>,
+                      <&mcu_udmap 0xf006>,
+                      <&mcu_udmap 0xf007>,
+                      <&mcu_udmap 0x7000>;
                dma-names = "tx0", "tx1", "tx2", "tx3",
                            "tx4", "tx5", "tx6", "tx7",
                            "rx";
                        ti,cpts-ext-ts-inputs = <4>;
                        ti,cpts-periodic-outputs = <2>;
                };
-
-               ti,psil-config0 {
-                       linux,udma-mode = <UDMA_PKT_MODE>;
-                       statictr-type = <PSIL_STATIC_TR_NONE>;
-                       ti,needs-epib;
-                       ti,psd-size = <16>;
-               };
-
-               ti,psil-config1 {
-                       linux,udma-mode = <UDMA_PKT_MODE>;
-                       statictr-type = <PSIL_STATIC_TR_NONE>;
-                       ti,needs-epib;
-                       ti,psd-size = <16>;
-               };
-
-               ti,psil-config2 {
-                       linux,udma-mode = <UDMA_PKT_MODE>;
-                       statictr-type = <PSIL_STATIC_TR_NONE>;
-                       ti,needs-epib;
-                       ti,psd-size = <16>;
-               };
-
-               ti,psil-config3 {
-                       linux,udma-mode = <UDMA_PKT_MODE>;
-                       statictr-type = <PSIL_STATIC_TR_NONE>;
-                       ti,needs-epib;
-                       ti,psd-size = <16>;
-               };
-
-               ti,psil-config4 {
-                       linux,udma-mode = <UDMA_PKT_MODE>;
-                       statictr-type = <PSIL_STATIC_TR_NONE>;
-                       ti,needs-epib;
-                       ti,psd-size = <16>;
-               };
-
-               ti,psil-config5 {
-                       linux,udma-mode = <UDMA_PKT_MODE>;
-                       statictr-type = <PSIL_STATIC_TR_NONE>;
-                       ti,needs-epib;
-                       ti,psd-size = <16>;
-               };
-
-               ti,psil-config6 {
-                       linux,udma-mode = <UDMA_PKT_MODE>;
-                       statictr-type = <PSIL_STATIC_TR_NONE>;
-                       ti,needs-epib;
-                       ti,psd-size = <16>;
-               };
-
-               ti,psil-config7 {
-                       linux,udma-mode = <UDMA_PKT_MODE>;
-                       statictr-type = <PSIL_STATIC_TR_NONE>;
-                       ti,needs-epib;
-                       ti,psd-size = <16>;
-               };
        };
 };
 
index 2eed50aa5a4c2e993501285efff3c00c4d703f15..70d5bcaa7298100773b18a2a65a32eafe187f310 100644 (file)
                clocks = <&k3_clks 195 0>;
                power-domains = <&k3_pds 195 TI_SCI_PD_EXCLUSIVE>;
        };
+
+       mcu_navss {
+               compatible = "simple-mfd";
+               #address-cells = <2>;
+               #size-cells = <2>;
+               ranges;
+               dma-coherent;
+               dma-ranges;
+
+               ti,sci-dev-id = <232>;
+
+               mcu_ringacc: ringacc@2b800000 {
+                       compatible = "ti,am654-navss-ringacc";
+                       reg =   <0x0 0x2b800000 0x0 0x400000>,
+                               <0x0 0x2b000000 0x0 0x400000>,
+                               <0x0 0x28590000 0x0 0x100>,
+                               <0x0 0x2a500000 0x0 0x40000>;
+                       reg-names = "rt", "fifos", "proxy_gcfg", "proxy_target";
+                       ti,num-rings = <286>;
+                       ti,sci-rm-range-gp-rings = <0x1>; /* GP ring range */
+                       ti,sci = <&dmsc>;
+                       ti,sci-dev-id = <235>;
+               };
+
+               mcu_udmap: dma-controller@285c0000 {
+                       compatible = "ti,j721e-navss-mcu-udmap";
+                       reg =   <0x0 0x285c0000 0x0 0x100>,
+                               <0x0 0x2a800000 0x0 0x40000>,
+                               <0x0 0x2aa00000 0x0 0x40000>;
+                       reg-names = "gcfg", "rchanrt", "tchanrt";
+                       #dma-cells = <1>;
+
+                       ti,sci = <&dmsc>;
+                       ti,sci-dev-id = <236>;
+                       ti,ringacc = <&mcu_ringacc>;
+
+                       ti,sci-rm-range-tchan = <0x0d>, /* TX_CHAN */
+                                               <0x0f>; /* TX_HCHAN */
+                       ti,sci-rm-range-rchan = <0x0a>, /* RX_CHAN */
+                                               <0x0b>; /* RX_HCHAN */
+                       ti,sci-rm-range-rflow = <0x00>; /* GP RFLOW */
+               };
+       };
 };
diff --git a/include/dt-bindings/dma/k3-udma.h b/include/dt-bindings/dma/k3-udma.h
deleted file mode 100644 (file)
index 670e123..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- *  Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com
- */
-
-#ifndef __DT_TI_UDMA_H
-#define __DT_TI_UDMA_H
-
-#define UDMA_TR_MODE           0
-#define UDMA_PKT_MODE          1
-
-#define UDMA_DIR_TX            0
-#define UDMA_DIR_RX            1
-
-#define PSIL_STATIC_TR_NONE    0
-#define PSIL_STATIC_TR_XY      1
-#define PSIL_STATIC_TR_MCAN    2
-
-#define UDMA_PDMA_TR_XY(id)                            \
-       ti,psil-config##id {                            \
-               linux,udma-mode = <UDMA_TR_MODE>;       \
-               statictr-type = <PSIL_STATIC_TR_XY>;    \
-       }
-
-#define UDMA_PDMA_PKT_XY(id)                           \
-       ti,psil-config##id {                            \
-               linux,udma-mode = <UDMA_PKT_MODE>;      \
-               statictr-type = <PSIL_STATIC_TR_XY>;    \
-       }
-
-#endif /* __DT_TI_UDMA_H */