rockchip: add Bananapi-R2 Pro board support
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca956x.dtsi
index d3a6df9ea919ec4b8dedf41dcf31cf75b9d42f82..8b261568f0b5c2d0435db923f598470d868fe911 100644 (file)
@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-#include <dt-bindings/clock/ath79-clk.h>
+
 #include "ath79.dtsi"
 
 / {
@@ -8,6 +8,10 @@
        #address-cells = <1>;
        #size-cells = <1>;
 
+       chosen {
+               bootargs = "console=ttyS0,115200n8";
+       };
+
        cpus {
                #address-cells = <1>;
                #size-cells = <0>;
@@ -49,8 +53,6 @@
                                reg-io-width = <4>;
                                reg-shift = <2>;
                                no-loopback-test;
-
-                               status = "disabled";
                        };
 
                        gpio: gpio@18040000 {
@@ -71,7 +73,7 @@
                        pinmux: pinmux@1804002c {
                                compatible = "pinctrl-single";
 
-                               reg = <0x1804002c 0x40>;
+                               reg = <0x1804002c 0x44>;
 
                                #size-cells = <0>;
 
@@ -93,6 +95,7 @@
                                clock-output-names = "cpu", "ddr", "ahb";
 
                                clocks = <&extosc>;
+                               clock-names = "ref";
                        };
 
                        wdt: wdt@18060008 {
 
                        rst: reset-controller@1806001c {
                                compatible = "qca,qca9560-reset",
-                                               "qca,ar7100-reset",
-                                                "simple-bus";
+                                               "qca,ar7100-reset";
                                reg = <0x1806001c 0x4>;
 
                                #reset-cells = <1>;
                                interrupt-parent = <&cpuintc>;
 
-                               intc3: interrupt-controller@3 {
+                               intc3: interrupt-controller {
                                        compatible = "qca,ar9340-intc";
 
                                        interrupt-parent = <&cpuintc>;
 
                                #reset-cells = <1>;
                        };
+               };
 
-                       wmac: wmac@18100000 {
-                               compatible = "qca,qca9560-wmac";
-                               reg = <0x18100000 0x10000>;
+               gmac: gmac@18070000 {
+                       compatible = "qca,qca9560-gmac";
+                       reg = <0x18070000 0x64>;
+               };
 
-                               interrupt-parent = <&cpuintc>;
-                               interrupts = <2>;
+               wmac: wmac@18100000 {
+                       compatible = "qca,qca9560-wmac";
+                       reg = <0x18100000 0x10000>;
 
-                               status = "disabled";
-                       };
+                       interrupt-parent = <&cpuintc>;
+                       interrupts = <2>;
 
-                       pcie: pcie-controller@18250000 {
-                               compatible = "qcom,ar7240-pci";
-                               #address-cells = <3>;
-                               #size-cells = <2>;
-                               bus-range = <0x0 0x0>;
-                               reg = <0x18250000 0x1000>, /* CRP */
-                                     <0x18280000 0x100>,  /* CTRL */
-                                     <0x16000000 0x1000>; /* CFG */
-                               reg-names = "crp_base", "ctrl_base", "cfg_base";
-                               ranges = <0x2000000 0 0x12000000 0x12000000 0 0x02000000        /* pci memory */
-                                         0x1000000 0 0x00000000 0x0000000 0 0x000001>;         /* io space */
-                               interrupt-parent = <&intc3>;
-                               interrupts = <0>;
+                       status = "disabled";
+               };
 
-                               interrupt-controller;
-                               #interrupt-cells = <1>;
+               pcie: pcie@18250000 {
+                       compatible = "qcom,ar7240-pci";
+                       #address-cells = <3>;
+                       #size-cells = <2>;
+                       bus-range = <0x0 0x0>;
+                       reg = <0x18250000 0x1000>, /* CRP */
+                             <0x18280000 0x100>,  /* CTRL */
+                             <0x16000000 0x1000>; /* CFG */
+                       reg-names = "crp_base", "ctrl_base", "cfg_base";
+                       ranges = <0x2000000 0 0x12000000 0x12000000 0 0x02000000        /* pci memory */
+                                 0x1000000 0 0x00000000 0x0000000 0 0x000001>;         /* io space */
+                       interrupt-parent = <&intc3>;
+                       interrupts = <0>;
 
-                               interrupt-map-mask = <0 0 0 1>;
-                               interrupt-map = <0 0 0 0 &pcie 0>;
-                               status = "disabled";
-                       };
+                       device_type = "pci";
+
+                       resets = <&rst 6>, <&rst 7>;
+                       reset-names = "hc", "phy";
+
+                       interrupt-controller;
+                       #interrupt-cells = <1>;
+
+                       interrupt-map-mask = <0 0 0 1>;
+                       interrupt-map = <0 0 0 0 &pcie 0>;
+                       status = "disabled";
                };
 
                usb0: usb@1b000000 {
                        phys = <&usb_phy0>;
 
                        status = "disabled";
+
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       hub_port0: port@1 {
+                               reg = <1>;
+                               #trigger-source-cells = <0>;
+                       };
                };
 
                usb1: usb@1b400000 {
                        phys = <&usb_phy1>;
 
                        status = "disabled";
+
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       hub_port1: port@1 {
+                               reg = <1>;
+                               #trigger-source-cells = <0>;
+                       };
                };
 
                spi: spi@1f000000 {
-                       compatible = "qca,qca9560-spi", "qca,ar7100-spi";
-                       reg = <0x1f000000 0x10>;
+                       compatible = "qca,ar934x-spi";
+                       reg = <0x1f000000 0x1c>;
 
                        clocks = <&pll ATH79_CLK_AHB>;
-                       clock-names = "ahb";
 
                        status = "disabled";
 
 };
 
 &eth0 {
-       compatible = "qca,qca9560-eth", "syscon", "simple-mfd";
+       compatible = "qca,qca9560-eth", "syscon";
 
        pll-data = <0x03000000 0x00000101 0x00001919>;
        pll-reg = <0 0x48 0>;
        builtin-switch;
 
        builtin_switch: switch0@1f {
-               compatible = "qca,ar8229-builtin";
-               #address-cells = <1>;
-               #size-cells = <0>;
-
+               compatible = "qca,ar8229";
                reg = <0x1f>;
                resets = <&rst 8>;
                reset-names = "switch";
                phy-mode = "gmii";
-               phy4-mii-enable;
+               qca,phy4-mii-enable;
+               qca,mib-poll-interval = <500>;
 
                mdio-bus {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
                        swphy0: ethernet-phy@0 {
                                reg = <0>;
                                phy-mode = "mii";
 };
 
 &eth1 {
-       compatible = "qca,qca9560-eth", "syscon", "simple-mfd";
+       compatible = "qca,qca9560-eth", "syscon";
 
        phy-mode = "gmii";
 
        resets = <&rst 13>;
        reset-names = "mac";
 
-       status = "disabled";
-
        fixed-link {
                speed = <1000>;
                full-duplex;