Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2012-2015 Maxime Ripard |
| 3 | * |
| 4 | * Maxime Ripard <maxime.ripard@free-electrons.com> |
| 5 | * |
| 6 | * This file is dual-licensed: you can use it either under the terms |
| 7 | * of the GPL or the X11 license, at your option. Note that this dual |
| 8 | * licensing only applies to this file, and not this project as a |
| 9 | * whole. |
| 10 | * |
| 11 | * a) This library is free software; you can redistribute it and/or |
| 12 | * modify it under the terms of the GNU General Public License as |
| 13 | * published by the Free Software Foundation; either version 2 of the |
| 14 | * License, or (at your option) any later version. |
| 15 | * |
| 16 | * This library is distributed in the hope that it will be useful, |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 19 | * GNU General Public License for more details. |
| 20 | * |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 21 | * Or, alternatively, |
| 22 | * |
| 23 | * b) Permission is hereby granted, free of charge, to any person |
| 24 | * obtaining a copy of this software and associated documentation |
| 25 | * files (the "Software"), to deal in the Software without |
| 26 | * restriction, including without limitation the rights to use, |
| 27 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 28 | * sell copies of the Software, and to permit persons to whom the |
| 29 | * Software is furnished to do so, subject to the following |
| 30 | * conditions: |
| 31 | * |
| 32 | * The above copyright notice and this permission notice shall be |
| 33 | * included in all copies or substantial portions of the Software. |
| 34 | * |
| 35 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 36 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 37 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 38 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 39 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 40 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 41 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 42 | * OTHER DEALINGS IN THE SOFTWARE. |
| 43 | */ |
| 44 | |
| 45 | #include "skeleton.dtsi" |
| 46 | |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 47 | #include <dt-bindings/clock/sun5i-ccu.h> |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 48 | #include <dt-bindings/dma/sun4i-a10.h> |
| 49 | #include <dt-bindings/pinctrl/sun4i-a10.h> |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 50 | #include <dt-bindings/reset/sun5i-ccu.h> |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 51 | |
| 52 | / { |
| 53 | interrupt-parent = <&intc>; |
| 54 | |
| 55 | cpus { |
| 56 | #address-cells = <1>; |
| 57 | #size-cells = <0>; |
| 58 | |
| 59 | cpu0: cpu@0 { |
| 60 | device_type = "cpu"; |
| 61 | compatible = "arm,cortex-a8"; |
| 62 | reg = <0x0>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 63 | clocks = <&ccu CLK_CPU>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 64 | }; |
| 65 | }; |
| 66 | |
| 67 | clocks { |
| 68 | #address-cells = <1>; |
| 69 | #size-cells = <1>; |
| 70 | ranges; |
| 71 | |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 72 | osc24M: clk@01c20050 { |
| 73 | #clock-cells = <0>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 74 | compatible = "fixed-clock"; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 75 | clock-frequency = <24000000>; |
| 76 | clock-output-names = "osc24M"; |
| 77 | }; |
| 78 | |
| 79 | osc32k: clk@0 { |
| 80 | #clock-cells = <0>; |
| 81 | compatible = "fixed-clock"; |
| 82 | clock-frequency = <32768>; |
| 83 | clock-output-names = "osc32k"; |
| 84 | }; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 85 | }; |
| 86 | |
| 87 | soc@01c00000 { |
| 88 | compatible = "simple-bus"; |
| 89 | #address-cells = <1>; |
| 90 | #size-cells = <1>; |
| 91 | ranges; |
| 92 | |
Maxime Ripard | 00f69ba | 2015-03-26 15:53:44 +0100 | [diff] [blame] | 93 | sram-controller@01c00000 { |
| 94 | compatible = "allwinner,sun4i-a10-sram-controller"; |
| 95 | reg = <0x01c00000 0x30>; |
| 96 | #address-cells = <1>; |
| 97 | #size-cells = <1>; |
| 98 | ranges; |
| 99 | |
| 100 | sram_a: sram@00000000 { |
| 101 | compatible = "mmio-sram"; |
| 102 | reg = <0x00000000 0xc000>; |
| 103 | #address-cells = <1>; |
| 104 | #size-cells = <1>; |
| 105 | ranges = <0 0x00000000 0xc000>; |
| 106 | }; |
| 107 | |
| 108 | sram_d: sram@00010000 { |
| 109 | compatible = "mmio-sram"; |
| 110 | reg = <0x00010000 0x1000>; |
| 111 | #address-cells = <1>; |
| 112 | #size-cells = <1>; |
| 113 | ranges = <0 0x00010000 0x1000>; |
| 114 | |
| 115 | otg_sram: sram-section@0000 { |
| 116 | compatible = "allwinner,sun4i-a10-sram-d"; |
| 117 | reg = <0x0000 0x1000>; |
| 118 | status = "disabled"; |
| 119 | }; |
| 120 | }; |
| 121 | }; |
| 122 | |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 123 | dma: dma-controller@01c02000 { |
| 124 | compatible = "allwinner,sun4i-a10-dma"; |
| 125 | reg = <0x01c02000 0x1000>; |
| 126 | interrupts = <27>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 127 | clocks = <&ccu CLK_AHB_DMA>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 128 | #dma-cells = <2>; |
| 129 | }; |
| 130 | |
| 131 | spi0: spi@01c05000 { |
| 132 | compatible = "allwinner,sun4i-a10-spi"; |
| 133 | reg = <0x01c05000 0x1000>; |
| 134 | interrupts = <10>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 135 | clocks = <&ccu CLK_AHB_SPI0>, <&ccu CLK_SPI0>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 136 | clock-names = "ahb", "mod"; |
| 137 | dmas = <&dma SUN4I_DMA_DEDICATED 27>, |
| 138 | <&dma SUN4I_DMA_DEDICATED 26>; |
| 139 | dma-names = "rx", "tx"; |
| 140 | status = "disabled"; |
| 141 | #address-cells = <1>; |
| 142 | #size-cells = <0>; |
| 143 | }; |
| 144 | |
| 145 | spi1: spi@01c06000 { |
| 146 | compatible = "allwinner,sun4i-a10-spi"; |
| 147 | reg = <0x01c06000 0x1000>; |
| 148 | interrupts = <11>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 149 | clocks = <&ccu CLK_AHB_SPI1>, <&ccu CLK_SPI1>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 150 | clock-names = "ahb", "mod"; |
| 151 | dmas = <&dma SUN4I_DMA_DEDICATED 9>, |
| 152 | <&dma SUN4I_DMA_DEDICATED 8>; |
| 153 | dma-names = "rx", "tx"; |
| 154 | status = "disabled"; |
| 155 | #address-cells = <1>; |
| 156 | #size-cells = <0>; |
| 157 | }; |
| 158 | |
| 159 | mmc0: mmc@01c0f000 { |
| 160 | compatible = "allwinner,sun5i-a13-mmc"; |
| 161 | reg = <0x01c0f000 0x1000>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 162 | clocks = <&ccu CLK_AHB_MMC0>, <&ccu CLK_MMC0>; |
| 163 | clock-names = "ahb", "mmc"; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 164 | interrupts = <32>; |
| 165 | status = "disabled"; |
Hans de Goede | 4c1bb9c | 2015-03-10 16:27:09 +0100 | [diff] [blame] | 166 | #address-cells = <1>; |
| 167 | #size-cells = <0>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 168 | }; |
| 169 | |
| 170 | mmc1: mmc@01c10000 { |
| 171 | compatible = "allwinner,sun5i-a13-mmc"; |
| 172 | reg = <0x01c10000 0x1000>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 173 | clocks = <&ccu CLK_AHB_MMC1>, <&ccu CLK_MMC1>; |
| 174 | clock-names = "ahb", "mmc"; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 175 | interrupts = <33>; |
| 176 | status = "disabled"; |
Hans de Goede | 4c1bb9c | 2015-03-10 16:27:09 +0100 | [diff] [blame] | 177 | #address-cells = <1>; |
| 178 | #size-cells = <0>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 179 | }; |
| 180 | |
| 181 | mmc2: mmc@01c11000 { |
| 182 | compatible = "allwinner,sun5i-a13-mmc"; |
| 183 | reg = <0x01c11000 0x1000>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 184 | clocks = <&ccu CLK_AHB_MMC2>, <&ccu CLK_MMC2>; |
| 185 | clock-names = "ahb", "mmc"; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 186 | interrupts = <34>; |
| 187 | status = "disabled"; |
Hans de Goede | 4c1bb9c | 2015-03-10 16:27:09 +0100 | [diff] [blame] | 188 | #address-cells = <1>; |
| 189 | #size-cells = <0>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 190 | }; |
| 191 | |
Hans de Goede | 482f178 | 2015-02-16 19:35:36 +0100 | [diff] [blame] | 192 | usb_otg: usb@01c13000 { |
| 193 | compatible = "allwinner,sun4i-a10-musb"; |
| 194 | reg = <0x01c13000 0x0400>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 195 | clocks = <&ccu CLK_AHB_OTG>; |
Hans de Goede | 482f178 | 2015-02-16 19:35:36 +0100 | [diff] [blame] | 196 | interrupts = <38>; |
| 197 | interrupt-names = "mc"; |
| 198 | phys = <&usbphy 0>; |
| 199 | phy-names = "usb"; |
| 200 | extcon = <&usbphy 0>; |
| 201 | allwinner,sram = <&otg_sram 1>; |
| 202 | status = "disabled"; |
| 203 | }; |
| 204 | |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 205 | usbphy: phy@01c13400 { |
| 206 | #phy-cells = <1>; |
| 207 | compatible = "allwinner,sun5i-a13-usb-phy"; |
| 208 | reg = <0x01c13400 0x10 0x01c14800 0x4>; |
| 209 | reg-names = "phy_ctrl", "pmu1"; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 210 | clocks = <&ccu CLK_USB_PHY0>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 211 | clock-names = "usb_phy"; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 212 | resets = <&ccu RST_USB_PHY0>, <&ccu RST_USB_PHY1>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 213 | reset-names = "usb0_reset", "usb1_reset"; |
| 214 | status = "disabled"; |
| 215 | }; |
| 216 | |
| 217 | ehci0: usb@01c14000 { |
Hans de Goede | 3727ed3 | 2015-03-07 20:01:19 +0100 | [diff] [blame] | 218 | compatible = "allwinner,sun5i-a13-ehci", "generic-ehci"; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 219 | reg = <0x01c14000 0x100>; |
| 220 | interrupts = <39>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 221 | clocks = <&ccu CLK_AHB_EHCI>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 222 | phys = <&usbphy 1>; |
| 223 | phy-names = "usb"; |
| 224 | status = "disabled"; |
| 225 | }; |
| 226 | |
| 227 | ohci0: usb@01c14400 { |
Hans de Goede | 3727ed3 | 2015-03-07 20:01:19 +0100 | [diff] [blame] | 228 | compatible = "allwinner,sun5i-a13-ohci", "generic-ohci"; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 229 | reg = <0x01c14400 0x100>; |
| 230 | interrupts = <40>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 231 | clocks = <&ccu CLK_USB_OHCI>, <&ccu CLK_AHB_OHCI>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 232 | phys = <&usbphy 1>; |
| 233 | phy-names = "usb"; |
| 234 | status = "disabled"; |
| 235 | }; |
| 236 | |
| 237 | spi2: spi@01c17000 { |
| 238 | compatible = "allwinner,sun4i-a10-spi"; |
| 239 | reg = <0x01c17000 0x1000>; |
| 240 | interrupts = <12>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 241 | clocks = <&ccu CLK_AHB_SPI2>, <&ccu CLK_SPI2>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 242 | clock-names = "ahb", "mod"; |
| 243 | dmas = <&dma SUN4I_DMA_DEDICATED 29>, |
| 244 | <&dma SUN4I_DMA_DEDICATED 28>; |
| 245 | dma-names = "rx", "tx"; |
| 246 | status = "disabled"; |
| 247 | #address-cells = <1>; |
| 248 | #size-cells = <0>; |
| 249 | }; |
| 250 | |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 251 | ccu: clock@01c20000 { |
| 252 | reg = <0x01c20000 0x400>; |
| 253 | clocks = <&osc24M>, <&osc32k>; |
| 254 | clock-names = "hosc", "losc"; |
| 255 | #clock-cells = <1>; |
| 256 | #reset-cells = <1>; |
| 257 | }; |
| 258 | |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 259 | intc: interrupt-controller@01c20400 { |
| 260 | compatible = "allwinner,sun4i-a10-ic"; |
| 261 | reg = <0x01c20400 0x400>; |
| 262 | interrupt-controller; |
| 263 | #interrupt-cells = <1>; |
| 264 | }; |
| 265 | |
| 266 | pio: pinctrl@01c20800 { |
| 267 | reg = <0x01c20800 0x400>; |
| 268 | interrupts = <28>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 269 | clocks = <&ccu CLK_APB0_PIO>, <&osc24M>, <&osc32k>; |
Maxime Ripard | be7bc6b | 2016-10-19 11:15:27 +0200 | [diff] [blame] | 270 | clock-names = "apb", "hosc", "losc"; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 271 | gpio-controller; |
| 272 | interrupt-controller; |
Maxime Ripard | b03e081 | 2015-06-17 11:44:24 +0200 | [diff] [blame] | 273 | #interrupt-cells = <3>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 274 | #gpio-cells = <3>; |
Maxime Ripard | 51fbba4 | 2015-01-30 16:31:19 +0100 | [diff] [blame] | 275 | |
| 276 | i2c0_pins_a: i2c0@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 277 | pins = "PB0", "PB1"; |
| 278 | function = "i2c0"; |
Maxime Ripard | 51fbba4 | 2015-01-30 16:31:19 +0100 | [diff] [blame] | 279 | }; |
| 280 | |
| 281 | i2c1_pins_a: i2c1@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 282 | pins = "PB15", "PB16"; |
| 283 | function = "i2c1"; |
Maxime Ripard | 51fbba4 | 2015-01-30 16:31:19 +0100 | [diff] [blame] | 284 | }; |
| 285 | |
| 286 | i2c2_pins_a: i2c2@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 287 | pins = "PB17", "PB18"; |
| 288 | function = "i2c2"; |
Maxime Ripard | 51fbba4 | 2015-01-30 16:31:19 +0100 | [diff] [blame] | 289 | }; |
| 290 | |
Maxime Ripard | 60a47e4 | 2016-02-25 17:15:30 -0800 | [diff] [blame] | 291 | lcd_rgb565_pins: lcd_rgb565@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 292 | pins = "PD3", "PD4", "PD5", "PD6", "PD7", |
Maxime Ripard | 60a47e4 | 2016-02-25 17:15:30 -0800 | [diff] [blame] | 293 | "PD10", "PD11", "PD12", "PD13", "PD14", "PD15", |
| 294 | "PD19", "PD20", "PD21", "PD22", "PD23", |
| 295 | "PD24", "PD25", "PD26", "PD27"; |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 296 | function = "lcd0"; |
Maxime Ripard | 60a47e4 | 2016-02-25 17:15:30 -0800 | [diff] [blame] | 297 | }; |
| 298 | |
Maxime Ripard | 51fbba4 | 2015-01-30 16:31:19 +0100 | [diff] [blame] | 299 | mmc0_pins_a: mmc0@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 300 | pins = "PF0", "PF1", "PF2", "PF3", |
| 301 | "PF4", "PF5"; |
| 302 | function = "mmc0"; |
| 303 | drive-strength = <30>; |
Chen-Yu Tsai | 80ee72e | 2016-11-17 17:34:38 +0800 | [diff] [blame] | 304 | bias-pull-up; |
Maxime Ripard | 51fbba4 | 2015-01-30 16:31:19 +0100 | [diff] [blame] | 305 | }; |
Hans de Goede | e1fe9f8 | 2015-03-07 20:01:20 +0100 | [diff] [blame] | 306 | |
| 307 | mmc2_pins_a: mmc2@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 308 | pins = "PC6", "PC7", "PC8", "PC9", |
| 309 | "PC10", "PC11", "PC12", "PC13", |
| 310 | "PC14", "PC15"; |
| 311 | function = "mmc2"; |
| 312 | drive-strength = <30>; |
| 313 | bias-pull-up; |
Hans de Goede | e1fe9f8 | 2015-03-07 20:01:20 +0100 | [diff] [blame] | 314 | }; |
Maxime Ripard | 6ef8c8b | 2015-06-22 11:56:09 +0200 | [diff] [blame] | 315 | |
Icenowy Zheng | e6c5bfe | 2016-12-22 04:02:34 +0800 | [diff] [blame] | 316 | mmc2_4bit_pins_a: mmc2-4bit@0 { |
| 317 | pins = "PC6", "PC7", "PC8", "PC9", |
| 318 | "PC10", "PC11"; |
| 319 | function = "mmc2"; |
| 320 | drive-strength = <30>; |
| 321 | bias-pull-up; |
| 322 | }; |
| 323 | |
Maxime Ripard | 9255fb6 | 2016-07-18 20:51:30 +0200 | [diff] [blame] | 324 | spi2_pins_a: spi2@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 325 | pins = "PE1", "PE2", "PE3"; |
| 326 | function = "spi2"; |
Maxime Ripard | 9255fb6 | 2016-07-18 20:51:30 +0200 | [diff] [blame] | 327 | }; |
| 328 | |
| 329 | spi2_cs0_pins_a: spi2-cs0@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 330 | pins = "PE0"; |
| 331 | function = "spi2"; |
Maxime Ripard | 9255fb6 | 2016-07-18 20:51:30 +0200 | [diff] [blame] | 332 | }; |
| 333 | |
Maxime Ripard | 6ef8c8b | 2015-06-22 11:56:09 +0200 | [diff] [blame] | 334 | uart3_pins_a: uart3@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 335 | pins = "PG9", "PG10"; |
| 336 | function = "uart3"; |
Maxime Ripard | 6ef8c8b | 2015-06-22 11:56:09 +0200 | [diff] [blame] | 337 | }; |
Maxime Ripard | eeea0fa | 2015-06-22 12:00:30 +0200 | [diff] [blame] | 338 | |
| 339 | uart3_pins_cts_rts_a: uart3-cts-rts@0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 340 | pins = "PG11", "PG12"; |
| 341 | function = "uart3"; |
Maxime Ripard | eeea0fa | 2015-06-22 12:00:30 +0200 | [diff] [blame] | 342 | }; |
Hans de Goede | bb39019 | 2015-10-11 11:55:06 +0200 | [diff] [blame] | 343 | |
| 344 | pwm0_pins: pwm0 { |
Maxime Ripard | 1edcd36 | 2016-09-23 14:28:10 +0300 | [diff] [blame] | 345 | pins = "PB2"; |
| 346 | function = "pwm"; |
Hans de Goede | bb39019 | 2015-10-11 11:55:06 +0200 | [diff] [blame] | 347 | }; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 348 | }; |
| 349 | |
| 350 | timer@01c20c00 { |
| 351 | compatible = "allwinner,sun4i-a10-timer"; |
| 352 | reg = <0x01c20c00 0x90>; |
| 353 | interrupts = <22>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 354 | clocks = <&ccu CLK_HOSC>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 355 | }; |
| 356 | |
| 357 | wdt: watchdog@01c20c90 { |
| 358 | compatible = "allwinner,sun4i-a10-wdt"; |
| 359 | reg = <0x01c20c90 0x10>; |
| 360 | }; |
| 361 | |
| 362 | lradc: lradc@01c22800 { |
| 363 | compatible = "allwinner,sun4i-a10-lradc-keys"; |
| 364 | reg = <0x01c22800 0x100>; |
| 365 | interrupts = <31>; |
| 366 | status = "disabled"; |
| 367 | }; |
| 368 | |
Maxime Ripard | 44cdcfc | 2015-07-27 16:50:21 +0200 | [diff] [blame] | 369 | codec: codec@01c22c00 { |
| 370 | #sound-dai-cells = <0>; |
| 371 | compatible = "allwinner,sun4i-a10-codec"; |
| 372 | reg = <0x01c22c00 0x40>; |
| 373 | interrupts = <30>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 374 | clocks = <&ccu CLK_APB0_CODEC>, <&ccu CLK_CODEC>; |
Maxime Ripard | 44cdcfc | 2015-07-27 16:50:21 +0200 | [diff] [blame] | 375 | clock-names = "apb", "codec"; |
| 376 | dmas = <&dma SUN4I_DMA_NORMAL 19>, |
| 377 | <&dma SUN4I_DMA_NORMAL 19>; |
| 378 | dma-names = "rx", "tx"; |
| 379 | status = "disabled"; |
| 380 | }; |
| 381 | |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 382 | sid: eeprom@01c23800 { |
| 383 | compatible = "allwinner,sun4i-a10-sid"; |
| 384 | reg = <0x01c23800 0x10>; |
| 385 | }; |
| 386 | |
| 387 | rtp: rtp@01c25000 { |
Hans de Goede | 8bf1b9b | 2015-03-08 21:53:42 +0100 | [diff] [blame] | 388 | compatible = "allwinner,sun5i-a13-ts"; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 389 | reg = <0x01c25000 0x100>; |
| 390 | interrupts = <29>; |
| 391 | #thermal-sensor-cells = <0>; |
| 392 | }; |
| 393 | |
| 394 | uart1: serial@01c28400 { |
| 395 | compatible = "snps,dw-apb-uart"; |
| 396 | reg = <0x01c28400 0x400>; |
| 397 | interrupts = <2>; |
| 398 | reg-shift = <2>; |
| 399 | reg-io-width = <4>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 400 | clocks = <&ccu CLK_APB1_UART1>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 401 | status = "disabled"; |
| 402 | }; |
| 403 | |
| 404 | uart3: serial@01c28c00 { |
| 405 | compatible = "snps,dw-apb-uart"; |
| 406 | reg = <0x01c28c00 0x400>; |
| 407 | interrupts = <4>; |
| 408 | reg-shift = <2>; |
| 409 | reg-io-width = <4>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 410 | clocks = <&ccu CLK_APB1_UART3>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 411 | status = "disabled"; |
| 412 | }; |
| 413 | |
| 414 | i2c0: i2c@01c2ac00 { |
| 415 | compatible = "allwinner,sun4i-a10-i2c"; |
| 416 | reg = <0x01c2ac00 0x400>; |
| 417 | interrupts = <7>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 418 | clocks = <&ccu CLK_APB1_I2C0>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 419 | status = "disabled"; |
| 420 | #address-cells = <1>; |
| 421 | #size-cells = <0>; |
| 422 | }; |
| 423 | |
| 424 | i2c1: i2c@01c2b000 { |
| 425 | compatible = "allwinner,sun4i-a10-i2c"; |
| 426 | reg = <0x01c2b000 0x400>; |
| 427 | interrupts = <8>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 428 | clocks = <&ccu CLK_APB1_I2C1>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 429 | status = "disabled"; |
| 430 | #address-cells = <1>; |
| 431 | #size-cells = <0>; |
| 432 | }; |
| 433 | |
| 434 | i2c2: i2c@01c2b400 { |
| 435 | compatible = "allwinner,sun4i-a10-i2c"; |
| 436 | reg = <0x01c2b400 0x400>; |
| 437 | interrupts = <9>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 438 | clocks = <&ccu CLK_APB1_I2C2>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 439 | status = "disabled"; |
| 440 | #address-cells = <1>; |
| 441 | #size-cells = <0>; |
| 442 | }; |
| 443 | |
| 444 | timer@01c60000 { |
| 445 | compatible = "allwinner,sun5i-a13-hstimer"; |
| 446 | reg = <0x01c60000 0x1000>; |
| 447 | interrupts = <82>, <83>; |
Maxime Ripard | 98a59a0 | 2016-10-15 22:36:19 +0200 | [diff] [blame] | 448 | clocks = <&ccu CLK_AHB_HSTIMER>; |
Maxime Ripard | fbfa736 | 2015-01-30 16:30:48 +0100 | [diff] [blame] | 449 | }; |
| 450 | }; |
| 451 | }; |