1 // SPDX-License-Identifier: (GPL-2.0+ OR X11) 2 /* 3 * Copyright 2018 Icenowy Zheng <icenowy@aosc.i 4 * Copyright 2018 Mesih Kilinc <mesihkilinc@gma 5 */ 6 7 #include <dt-bindings/clock/suniv-ccu-f1c100s. 8 #include <dt-bindings/reset/suniv-ccu-f1c100s. 9 10 / { 11 #address-cells = <1>; 12 #size-cells = <1>; 13 interrupt-parent = <&intc>; 14 15 clocks { 16 osc24M: clk-24M { 17 #clock-cells = <0>; 18 compatible = "fixed-cl 19 clock-frequency = <240 20 clock-output-names = " 21 }; 22 23 osc32k: clk-32k { 24 #clock-cells = <0>; 25 compatible = "fixed-cl 26 clock-frequency = <327 27 clock-output-names = " 28 }; 29 }; 30 31 cpus { 32 #address-cells = <1>; 33 #size-cells = <0>; 34 35 cpu@0 { 36 compatible = "arm,arm9 37 device_type = "cpu"; 38 reg = <0x0>; 39 }; 40 }; 41 42 soc { 43 compatible = "simple-bus"; 44 #address-cells = <1>; 45 #size-cells = <1>; 46 ranges; 47 48 sram-controller@1c00000 { 49 compatible = "allwinne 50 "allwinne 51 reg = <0x01c00000 0x30 52 #address-cells = <1>; 53 #size-cells = <1>; 54 ranges; 55 56 sram_d: sram@10000 { 57 compatible = " 58 reg = <0x00010 59 #address-cells 60 #size-cells = 61 ranges = <0 0x 62 63 otg_sram: sram 64 compat 65 66 reg = 67 status 68 }; 69 }; 70 }; 71 72 spi0: spi@1c05000 { 73 compatible = "allwinne 74 "allwinne 75 reg = <0x01c05000 0x10 76 interrupts = <10>; 77 clocks = <&ccu CLK_BUS 78 clock-names = "ahb", " 79 resets = <&ccu RST_BUS 80 status = "disabled"; 81 num-cs = <1>; 82 #address-cells = <1>; 83 #size-cells = <0>; 84 }; 85 86 spi1: spi@1c06000 { 87 compatible = "allwinne 88 "allwinne 89 reg = <0x01c06000 0x10 90 interrupts = <11>; 91 clocks = <&ccu CLK_BUS 92 clock-names = "ahb", " 93 resets = <&ccu RST_BUS 94 status = "disabled"; 95 num-cs = <1>; 96 #address-cells = <1>; 97 #size-cells = <0>; 98 }; 99 100 mmc0: mmc@1c0f000 { 101 compatible = "allwinne 102 "allwinne 103 reg = <0x01c0f000 0x10 104 clocks = <&ccu CLK_BUS 105 <&ccu CLK_MMC 106 <&ccu CLK_MMC 107 <&ccu CLK_MMC 108 clock-names = "ahb", " 109 resets = <&ccu RST_BUS 110 reset-names = "ahb"; 111 interrupts = <23>; 112 pinctrl-names = "defau 113 pinctrl-0 = <&mmc0_pin 114 status = "disabled"; 115 #address-cells = <1>; 116 #size-cells = <0>; 117 }; 118 119 mmc1: mmc@1c10000 { 120 compatible = "allwinne 121 "allwinne 122 reg = <0x01c10000 0x10 123 clocks = <&ccu CLK_BUS 124 <&ccu CLK_MMC 125 <&ccu CLK_MMC 126 <&ccu CLK_MMC 127 clock-names = "ahb", " 128 resets = <&ccu RST_BUS 129 reset-names = "ahb"; 130 interrupts = <24>; 131 status = "disabled"; 132 #address-cells = <1>; 133 #size-cells = <0>; 134 }; 135 136 usb_otg: usb@1c13000 { 137 compatible = "allwinne 138 reg = <0x01c13000 0x04 139 clocks = <&ccu CLK_BUS 140 resets = <&ccu RST_BUS 141 interrupts = <26>; 142 interrupt-names = "mc" 143 phys = <&usbphy 0>; 144 phy-names = "usb"; 145 extcon = <&usbphy 0>; 146 allwinner,sram = <&otg 147 status = "disabled"; 148 }; 149 150 usbphy: phy@1c13400 { 151 compatible = "allwinne 152 reg = <0x01c13400 0x10 153 reg-names = "phy_ctrl" 154 clocks = <&ccu CLK_USB 155 clock-names = "usb0_ph 156 resets = <&ccu RST_USB 157 reset-names = "usb0_re 158 #phy-cells = <1>; 159 status = "disabled"; 160 }; 161 162 ccu: clock@1c20000 { 163 compatible = "allwinne 164 reg = <0x01c20000 0x40 165 clocks = <&osc24M>, <& 166 clock-names = "hosc", 167 #clock-cells = <1>; 168 #reset-cells = <1>; 169 }; 170 171 intc: interrupt-controller@1c2 172 compatible = "allwinne 173 reg = <0x01c20400 0x40 174 interrupt-controller; 175 #interrupt-cells = <1> 176 }; 177 178 pio: pinctrl@1c20800 { 179 compatible = "allwinne 180 reg = <0x01c20800 0x40 181 interrupts = <38>, <39 182 clocks = <&ccu CLK_BUS 183 clock-names = "apb", " 184 gpio-controller; 185 interrupt-controller; 186 #interrupt-cells = <3> 187 #gpio-cells = <3>; 188 189 mmc0_pins: mmc0-pins { 190 pins = "PF0", 191 function = "mm 192 drive-strength 193 }; 194 195 /omit-if-no-ref/ 196 i2c0_pd_pins: i2c0-pd- 197 pins = "PD0", 198 function = "i2 199 }; 200 201 spi0_pc_pins: spi0-pc- 202 pins = "PC0", 203 function = "sp 204 }; 205 206 uart0_pe_pins: uart0-p 207 pins = "PE0", 208 function = "ua 209 }; 210 211 /omit-if-no-ref/ 212 uart1_pa_pins: uart1-p 213 pins = "PA2", 214 function = "ua 215 }; 216 }; 217 218 i2c0: i2c@1c27000 { 219 compatible = "allwinne 220 "allwinne 221 reg = <0x01c27000 0x40 222 interrupts = <7>; 223 clocks = <&ccu CLK_BUS 224 resets = <&ccu RST_BUS 225 #address-cells = <1>; 226 #size-cells = <0>; 227 status = "disabled"; 228 }; 229 230 i2c1: i2c@1c27400 { 231 compatible = "allwinne 232 "allwinne 233 reg = <0x01c27400 0x40 234 interrupts = <8>; 235 clocks = <&ccu CLK_BUS 236 resets = <&ccu RST_BUS 237 #address-cells = <1>; 238 #size-cells = <0>; 239 status = "disabled"; 240 }; 241 242 i2c2: i2c@1c27800 { 243 compatible = "allwinne 244 "allwinne 245 reg = <0x01c27800 0x40 246 interrupts = <9>; 247 clocks = <&ccu CLK_BUS 248 resets = <&ccu RST_BUS 249 #address-cells = <1>; 250 #size-cells = <0>; 251 status = "disabled"; 252 }; 253 254 timer@1c20c00 { 255 compatible = "allwinne 256 reg = <0x01c20c00 0x90 257 interrupts = <13>, <14 258 clocks = <&osc24M>; 259 }; 260 261 wdt: watchdog@1c20ca0 { 262 compatible = "allwinne 263 "allwinne 264 reg = <0x01c20ca0 0x20 265 interrupts = <16>; 266 clocks = <&osc32k>; 267 }; 268 269 pwm: pwm@1c21000 { 270 compatible = "allwinne 271 "allwinne 272 reg = <0x01c21000 0x40 273 clocks = <&osc24M>; 274 #pwm-cells = <3>; 275 status = "disabled"; 276 }; 277 278 ir: ir@1c22c00 { 279 compatible = "allwinne 280 "allwinne 281 reg = <0x01c22c00 0x40 282 clocks = <&ccu CLK_BUS 283 clock-names = "apb", " 284 resets = <&ccu RST_BUS 285 interrupts = <6>; 286 status = "disabled"; 287 }; 288 289 lradc: lradc@1c23400 { 290 compatible = "allwinne 291 "allwinne 292 reg = <0x01c23400 0x40 293 interrupts = <22>; 294 status = "disabled"; 295 }; 296 297 uart0: serial@1c25000 { 298 compatible = "snps,dw- 299 reg = <0x01c25000 0x40 300 interrupts = <1>; 301 reg-shift = <2>; 302 reg-io-width = <4>; 303 clocks = <&ccu CLK_BUS 304 resets = <&ccu RST_BUS 305 status = "disabled"; 306 }; 307 308 uart1: serial@1c25400 { 309 compatible = "snps,dw- 310 reg = <0x01c25400 0x40 311 interrupts = <2>; 312 reg-shift = <2>; 313 reg-io-width = <4>; 314 clocks = <&ccu CLK_BUS 315 resets = <&ccu RST_BUS 316 status = "disabled"; 317 }; 318 319 uart2: serial@1c25800 { 320 compatible = "snps,dw- 321 reg = <0x01c25800 0x40 322 interrupts = <3>; 323 reg-shift = <2>; 324 reg-io-width = <4>; 325 clocks = <&ccu CLK_BUS 326 resets = <&ccu RST_BUS 327 status = "disabled"; 328 }; 329 }; 330 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.