1// SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause 2 3#include "rtl83xx.dtsi" 4 5/ { 6 compatible = "realtek,rtl9302-soc"; 7 8 cpus { 9 #address-cells = <1>; 10 #size-cells = <0>; 11 12 cpu@0 { 13 device_type = "cpu"; 14 compatible = "mips,mips34Kc"; 15 reg = <0>; 16 clocks = <&baseclk 0>; 17 clock-names = "cpu"; 18 }; 19 }; 20 21 baseclk: clock-800mhz { 22 compatible = "fixed-clock"; 23 #clock-cells = <0>; 24 clock-frequency = <800000000>; 25 }; 26 27 lx_clk: clock-175mhz { 28 compatible = "fixed-clock"; 29 #clock-cells = <0>; 30 clock-frequency = <175000000>; 31 }; 32 33 switch0: switch@1b000000 { 34 compatible = "realtek,rtl9301-switch", "syscon", "simple-mfd"; 35 reg = <0x1b000000 0x10000>; 36 #address-cells = <1>; 37 #size-cells = <1>; 38 39 reboot@c { 40 compatible = "syscon-reboot"; 41 reg = <0x0c 0x4>; 42 value = <0x01>; 43 }; 44 45 i2c0: i2c@36c { 46 compatible = "realtek,rtl9301-i2c"; 47 reg = <0x36c 0x14>; 48 #address-cells = <1>; 49 #size-cells = <0>; 50 status = "disabled"; 51 }; 52 53 i2c1: i2c@388 { 54 compatible = "realtek,rtl9301-i2c"; 55 reg = <0x388 0x14>; 56 #address-cells = <1>; 57 #size-cells = <0>; 58 status = "disabled"; 59 }; 60 }; 61}; 62 63&soc { 64 intc: interrupt-controller@3000 { 65 compatible = "realtek,rtl9300-intc", "realtek,rtl-intc"; 66 reg = <0x3000 0x18>, <0x3018 0x18>; 67 interrupt-controller; 68 #interrupt-cells = <1>; 69 70 interrupt-parent = <&cpuintc>; 71 interrupts = <2>, <3>, <4>, <5>, <6>, <7>; 72 }; 73 74 spi0: spi@1200 { 75 compatible = "realtek,rtl8380-spi"; 76 reg = <0x1200 0x100>; 77 78 #address-cells = <1>; 79 #size-cells = <0>; 80 }; 81 82 timer0: timer@3200 { 83 compatible = "realtek,rtl9302-timer", "realtek,otto-timer"; 84 reg = <0x3200 0x10>, <0x3210 0x10>, <0x3220 0x10>, 85 <0x3230 0x10>, <0x3240 0x10>; 86 87 interrupt-parent = <&intc>; 88 interrupts = <7>, <8>, <9>, <10>, <11>; 89 clocks = <&lx_clk>; 90 }; 91}; 92 93&uart0 { 94 /delete-property/ clock-frequency; 95 clocks = <&lx_clk>; 96 97 interrupt-parent = <&intc>; 98 interrupts = <30>; 99}; 100 101&uart1 { 102 /delete-property/ clock-frequency; 103 clocks = <&lx_clk>; 104 105 interrupt-parent = <&intc>; 106 interrupts = <31>; 107}; 108 109