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,bcm6318"; |
| 7 | |
| 8 | aliases { |
| 9 | pinctrl = &pinctrl; |
| 10 | serial0 = &uart0; |
| 11 | spi1 = &hsspi; |
| 12 | }; |
| 13 | |
| 14 | cpus { |
| 15 | #address-cells = <1>; |
| 16 | #size-cells = <0>; |
| 17 | |
| 18 | cpu@0 { |
| 19 | compatible = "brcm,bmips3300", "mips,mips4Kc"; |
| 20 | device_type = "cpu"; |
| 21 | reg = <0>; |
| 22 | }; |
| 23 | }; |
| 24 | |
| 25 | cpu_intc: interrupt-controller { |
| 26 | #address-cells = <0>; |
| 27 | compatible = "mti,cpu-interrupt-controller"; |
| 28 | |
| 29 | interrupt-controller; |
| 30 | #interrupt-cells = <1>; |
| 31 | }; |
| 32 | |
| 33 | memory { device_type = "memory"; reg = <0 0>; }; |
| 34 | |
| 35 | ubus@10000000 { |
| 36 | #address-cells = <1>; |
| 37 | #size-cells = <1>; |
| 38 | ranges; |
| 39 | compatible = "simple-bus"; |
| 40 | interrupt-parent = <&periph_intc>; |
| 41 | |
| 42 | ext_intc: interrupt-controller@10000018 { |
| 43 | compatible = "brcm,bcm6318-ext-intc"; |
| 44 | reg = <0x10000018 0x4>; |
| 45 | |
| 46 | interrupt-controller; |
| 47 | #interrupt-cells = <2>; |
| 48 | |
| 49 | interrupts = <24>, <25>, <26>, <27>; |
| 50 | }; |
| 51 | |
| 52 | periph_intc: interrupt-controller@10000020 { |
| 53 | compatible = "brcm,bcm6345-l1-intc"; |
| 54 | reg = <0x10000020 0x20>; |
| 55 | |
| 56 | interrupt-controller; |
| 57 | #interrupt-cells = <1>; |
| 58 | |
| 59 | interrupt-parent = <&cpu_intc>; |
| 60 | interrupts = <2>; |
| 61 | }; |
| 62 | |
| 63 | pinctrl: pin-controller@10000080 { |
| 64 | compatible = "brcm,bcm6318-pinctrl"; |
| 65 | reg = <0x10000080 0x08>, |
| 66 | <0x10000088 0x08>, |
| 67 | <0x10000098 0x04>, |
| 68 | <0x1000009c 0x0c>, |
| 69 | <0x100000d4 0x18>; |
| 70 | reg-names = "dirout", "dat", "mode", "mux", "pad"; |
| 71 | |
| 72 | gpio-controller; |
| 73 | #gpio-cells = <2>; |
| 74 | |
| 75 | interrupt-parent = <&ext_intc>; |
| 76 | interrupts = <0 0>, <1 0>; |
| 77 | interrupt-names = "gpio33", "gpio34"; |
| 78 | |
| 79 | pinctrl_ephy0_spd_led: ephy0_spd_led { |
| 80 | function = "ephy0_spd_led"; |
| 81 | pins = "gpio0"; |
| 82 | }; |
| 83 | |
| 84 | pinctrl_ephy1_spd_led: ephy1_spd_led { |
| 85 | function = "ephy1_spd_led"; |
| 86 | pins = "gpio1"; |
| 87 | }; |
| 88 | |
| 89 | pinctrl_ephy2_spd_led: ephy2_spd_led { |
| 90 | function = "ephy2_spd_led"; |
| 91 | pins = "gpio2"; |
| 92 | }; |
| 93 | |
| 94 | pinctrl_ephy3_spd_led: ephy3_spd_led { |
| 95 | function = "ephy3_spd_led"; |
| 96 | pins = "gpio3"; |
| 97 | }; |
| 98 | |
| 99 | pinctrl_ephy0_act_led: ephy0_act_led { |
| 100 | function = "ephy0_act_led"; |
| 101 | pins = "gpio4"; |
| 102 | }; |
| 103 | |
| 104 | pinctrl_ephy1_act_led: ephy1_act_led { |
| 105 | function = "ephy1_act_led"; |
| 106 | pins = "gpio5"; |
| 107 | }; |
| 108 | |
| 109 | pinctrl_ephy2_act_led: ephy2_act_led { |
| 110 | function = "ephy2_act_led"; |
| 111 | pins = "gpio6"; |
| 112 | }; |
| 113 | |
| 114 | pinctrl_ephy3_act_led: ephy3_act_led { |
| 115 | function = "ephy3_act_led"; |
| 116 | pins = "gpio7"; |
| 117 | }; |
| 118 | |
| 119 | pinctrl_serial_led: serial_led { |
| 120 | pinctrl_serial_led_data: serial_led_data { |
| 121 | function = "serial_led_data"; |
| 122 | pins = "gpio6"; |
| 123 | }; |
| 124 | |
| 125 | pinctrl_serial_led_clk: serial_led_clk { |
| 126 | function = "serial_led_clk"; |
| 127 | pins = "gpio7"; |
| 128 | }; |
| 129 | }; |
| 130 | |
| 131 | pinctrl_inet_act_led: inet_act_led { |
| 132 | function = "inet_act_led"; |
| 133 | pins = "gpio8"; |
| 134 | }; |
| 135 | |
| 136 | pinctrl_inet_fail_led: inet_fail_led { |
| 137 | function = "inet_fail_led"; |
| 138 | pins = "gpio9"; |
| 139 | }; |
| 140 | |
| 141 | pinctrl_dsl_led: dsl_led { |
| 142 | function = "dsl_led"; |
| 143 | pins = "gpio10"; |
| 144 | }; |
| 145 | |
| 146 | pinctrl_post_fail_led: post_fail_led { |
| 147 | function = "post_fail_led"; |
| 148 | pins = "gpio11"; |
| 149 | }; |
| 150 | |
| 151 | pinctrl_wlan_wps_led: wlan_wps_led { |
| 152 | function = "wlan_wps_led"; |
| 153 | pins = "gpio12"; |
| 154 | }; |
| 155 | |
| 156 | pinctrl_usb_pwron: usb_pwron { |
| 157 | function = "usb_pwron"; |
| 158 | pins = "gpio13"; |
| 159 | }; |
| 160 | |
| 161 | pinctrl_usb_device_led: usb_device_led { |
| 162 | function = "usb_device_led"; |
| 163 | pins = "gpio13"; |
| 164 | }; |
| 165 | |
| 166 | pinctrl_usb_active: usb_active { |
| 167 | function = "usb_active"; |
| 168 | pins = "gpio40"; |
| 169 | }; |
| 170 | }; |
| 171 | |
| 172 | uart0: serial@10000100 { |
| 173 | compatible = "brcm,bcm6345-uart"; |
| 174 | reg = <0x10000100 0x18>; |
| 175 | |
| 176 | interrupt-parent = <&periph_intc>; |
| 177 | interrupts = <28>; |
| 178 | |
| 179 | /* clocks = <&periph_clk>; */ |
| 180 | /* clock-names = "refclk"; */ |
| 181 | |
| 182 | status = "disabled"; |
| 183 | }; |
| 184 | |
| 185 | leds: led-controller@10000200 { |
| 186 | #address-cells = <1>; |
| 187 | #size-cells = <0>; |
| 188 | compatible = "brcm,bcm6328-leds"; |
| 189 | reg = <0x10000200 0x24>; |
| 190 | status = "disabled"; |
| 191 | }; |
| 192 | |
| 193 | hsspi: spi@10003000 { |
| 194 | #address-cells = <1>; |
| 195 | #size-cells = <0>; |
| 196 | compatible = "brcm,bcm6328-hsspi"; |
| 197 | reg = <0x10003000 0x600>; |
| 198 | interrupts = <29>; |
| 199 | /* clocks = <&clkctl 25>; */ |
| 200 | }; |
| 201 | }; |
| 202 | }; |