| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | /dts-v1/; |
| 2 | |
| 3 | / { |
| 4 | #address-cells = <1>; |
| 5 | #size-cells = <1>; |
| 6 | compatible = "brcm,bcm6358"; |
| 7 | |
| 8 | aliases { |
| 9 | pflash = &pflash; |
| 10 | pinctrl = &pinctrl; |
| 11 | serial0 = &uart0; |
| 12 | serial1 = &uart1; |
| 13 | spi0 = &lsspi; |
| 14 | }; |
| 15 | |
| 16 | cpus { |
| 17 | #address-cells = <1>; |
| 18 | #size-cells = <0>; |
| 19 | |
| 20 | cpu@0 { |
| 21 | compatible = "brcm,bmips4350", "mips,mips4Kc"; |
| 22 | device_type = "cpu"; |
| 23 | reg = <0>; |
| 24 | }; |
| 25 | |
| 26 | cpu@1 { |
| 27 | compatible = "brcm,bmips4350", "mips,mips4Kc"; |
| 28 | device_type = "cpu"; |
| 29 | reg = <1>; |
| 30 | }; |
| 31 | }; |
| 32 | |
| 33 | cpu_intc: interrupt-controller { |
| 34 | #address-cells = <0>; |
| 35 | compatible = "mti,cpu-interrupt-controller"; |
| 36 | |
| 37 | interrupt-controller; |
| 38 | #interrupt-cells = <1>; |
| 39 | }; |
| 40 | |
| 41 | memory { device_type = "memory"; reg = <0 0>; }; |
| 42 | |
| 43 | pflash: nor@1e000000 { |
| 44 | compatible = "cfi-flash"; |
| 45 | reg = <0x1e000000 0x2000000>; |
| 46 | bank-width = <2>; |
| 47 | #address-cells = <1>; |
| 48 | #size-cells = <1>; |
| 49 | |
| 50 | status = "disabled"; |
| 51 | }; |
| 52 | |
| 53 | ubus@fff00000 { |
| 54 | #address-cells = <1>; |
| 55 | #size-cells = <1>; |
| 56 | ranges; |
| 57 | compatible = "simple-bus"; |
| 58 | interrupt-parent = <&periph_intc>; |
| 59 | |
| 60 | periph_intc: interrupt-controller@fffe000c { |
| 61 | compatible = "brcm,bcm6345-l1-intc"; |
| 62 | reg = <0xfffe000c 0x8>, |
| 63 | <0xfffe0038 0x8>; |
| 64 | |
| 65 | interrupt-controller; |
| 66 | #interrupt-cells = <1>; |
| 67 | |
| 68 | interrupt-parent = <&cpu_intc>; |
| 69 | interrupts = <2>, <3>; |
| 70 | }; |
| 71 | |
| 72 | ext_intc0: interrupt-controller@fffe0014 { |
| 73 | compatible = "brcm,bcm6345-ext-intc"; |
| 74 | reg = <0xfffe0014 0x4>; |
| 75 | |
| 76 | interrupt-controller; |
| 77 | #interrupt-cells = <2>; |
| 78 | |
| 79 | interrupts = <25>, <26>, <27>, <28>; |
| 80 | }; |
| 81 | |
| 82 | ext_intc1: interrupt-controller@fffe001c { |
| 83 | compatible = "brcm,bcm6345-ext-intc"; |
| 84 | reg = <0xfffe001c 0x4>; |
| 85 | |
| 86 | interrupt-controller; |
| 87 | #interrupt-cells = <2>; |
| 88 | |
| 89 | interrupts = <20>, <21>; |
| 90 | }; |
| 91 | |
| 92 | pinctrl: pin-controller@fffe0080 { |
| 93 | compatible = "brcm,bcm6358-pinctrl"; |
| 94 | reg = <0xfffe0080 0x8>, |
| 95 | <0xfffe0088 0x8>; |
| 96 | reg-names = "dirout", "dat", "mode"; |
| 97 | brcm,gpiomode = <&gpiomode>; |
| 98 | |
| 99 | gpio-controller; |
| 100 | #gpio-cells = <2>; |
| 101 | |
| 102 | interrupts-extended = <&ext_intc1 0 0>, |
| 103 | <&ext_intc1 1 0>, |
| 104 | <&ext_intc0 0 0>, |
| 105 | <&ext_intc0 1 0>, |
| 106 | <&ext_intc0 2 0>, |
| 107 | <&ext_intc0 3 0>; |
| 108 | interrupt-names = "gpio32", "gpio33", "gpio34", "gpio35", |
| 109 | "gpio36", "gpio37"; |
| 110 | |
| 111 | pinctrl_ebi_cs: ebi_cs { |
| 112 | function = "ebi_cs"; |
| 113 | groups = "ebi_cs_grp"; |
| 114 | }; |
| 115 | |
| 116 | pinctrl_uart1: uart1 { |
| 117 | function = "uart1"; |
| 118 | groups = "uart1_grp"; |
| 119 | }; |
| 120 | |
| 121 | pinctrl_serial_led: serial_led { |
| 122 | function = "serial_led"; |
| 123 | groups = "serial_led_grp"; |
| 124 | }; |
| 125 | |
| 126 | pinctrl_legacy_led: legacy_led { |
| 127 | function = "legacy_led"; |
| 128 | groups = "legacy_led_grp"; |
| 129 | }; |
| 130 | |
| 131 | pinctrl_led: led { |
| 132 | function = "led"; |
| 133 | groups = "led_grp"; |
| 134 | }; |
| 135 | |
| 136 | pinctrl_spi_cs_23: spi_cs { |
| 137 | function = "spi_cs"; |
| 138 | groups = "spi_cs_grp"; |
| 139 | }; |
| 140 | |
| 141 | pinctrl_utopia: utopia { |
| 142 | function = "utopia"; |
| 143 | groups = "utopia_grp"; |
| 144 | }; |
| 145 | |
| 146 | pinctrl_pwm_syn_clk: pwm_syn_clk { |
| 147 | function = "pwm_syn_clk"; |
| 148 | groups = "pwm_syn_clk_grp"; |
| 149 | }; |
| 150 | |
| 151 | pinctrl_sys_irq: sys_irq { |
| 152 | function = "sys_irq"; |
| 153 | groups = "sys_irq_grp"; |
| 154 | }; |
| 155 | }; |
| 156 | |
| 157 | gpiomode: gpiomode@fffe0098 { |
| 158 | compatible = "brcm,bcm6358-gpiomode", "syscon"; |
| 159 | reg = <0xfffe0098 0x4>; |
| 160 | }; |
| 161 | |
| 162 | leds: led-controller@fffe00d0 { |
| 163 | #address-cells = <1>; |
| 164 | #size-cells = <0>; |
| 165 | compatible = "brcm,bcm6358-leds"; |
| 166 | reg = <0xfffe00d0 0x8>; |
| 167 | status = "disabled"; |
| 168 | }; |
| 169 | |
| 170 | uart0: serial@fffe0100 { |
| 171 | compatible = "brcm,bcm6345-uart"; |
| 172 | reg = <0xfffe0100 0x18>; |
| 173 | |
| 174 | interrupt-parent = <&periph_intc>; |
| 175 | interrupts = <2>; |
| 176 | |
| 177 | /* clocks = <&periph_clk>; */ |
| 178 | /* clock-names = "refclk"; */ |
| 179 | |
| 180 | status = "disabled"; |
| 181 | }; |
| 182 | |
| 183 | uart1: serial@fffe0120 { |
| 184 | compatible = "brcm,bcm6345-uart"; |
| 185 | reg = <0xfffe0120 0x18>; |
| 186 | |
| 187 | interrupt-parent = <&periph_intc>; |
| 188 | interrupts = <3>; |
| 189 | |
| 190 | /* clocks = <&periph_clk>; */ |
| 191 | /* clock-names = "refclk"; */ |
| 192 | |
| 193 | status = "disabled"; |
| 194 | }; |
| 195 | |
| 196 | lsspi: spi@fffe0800 { |
| 197 | #address-cells = <1>; |
| 198 | #size-cells = <0>; |
| 199 | compatible = "brcm,bcm6358-spi"; |
| 200 | reg = <0xfffe0800 0x70c>; |
| 201 | interrupts = <1>; |
| 202 | /* clocks = <&clkctl 9>; */ |
| 203 | }; |
| 204 | }; |
| 205 | }; |