Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 Alexander Shiyan <shc_work@mail.ru> |
| 3 | * |
| 4 | * The code contained herein is licensed under the GNU General Public |
| 5 | * License. You may obtain a copy of the GNU General Public License |
| 6 | * Version 2 or later at the following locations: |
| 7 | * |
| 8 | * http://www.opensource.org/licenses/gpl-license.html |
| 9 | * http://www.gnu.org/copyleft/gpl.html |
| 10 | */ |
| 11 | |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 12 | #include "imx1-pinfunc.h" |
| 13 | |
| 14 | #include <dt-bindings/clock/imx1-clock.h> |
| 15 | #include <dt-bindings/gpio/gpio.h> |
| 16 | #include <dt-bindings/interrupt-controller/irq.h> |
| 17 | |
| 18 | / { |
Fabio Estevam | 7f10788 | 2016-11-12 13:30:35 -0200 | [diff] [blame] | 19 | #address-cells = <1>; |
| 20 | #size-cells = <1>; |
Fabio Estevam | a971c55 | 2017-01-23 14:54:10 -0200 | [diff] [blame] | 21 | /* |
| 22 | * The decompressor and also some bootloaders rely on a |
| 23 | * pre-existing /chosen node to be available to insert the |
| 24 | * command line and merge other ATAGS info. |
| 25 | * Also for U-Boot there must be a pre-existing /memory node. |
| 26 | */ |
| 27 | chosen {}; |
Marco Franchi | 7f08e6a | 2018-01-24 11:22:13 -0200 | [diff] [blame] | 28 | memory { device_type = "memory"; }; |
Fabio Estevam | 7f10788 | 2016-11-12 13:30:35 -0200 | [diff] [blame] | 29 | |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 30 | aliases { |
| 31 | gpio0 = &gpio1; |
| 32 | gpio1 = &gpio2; |
| 33 | gpio2 = &gpio3; |
| 34 | gpio3 = &gpio4; |
| 35 | i2c0 = &i2c; |
| 36 | serial0 = &uart1; |
| 37 | serial1 = &uart2; |
| 38 | serial2 = &uart3; |
| 39 | spi0 = &cspi1; |
| 40 | spi1 = &cspi2; |
| 41 | }; |
| 42 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 43 | aitc: aitc-interrupt-controller@223000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 44 | compatible = "fsl,imx1-aitc", "fsl,avic"; |
| 45 | interrupt-controller; |
| 46 | #interrupt-cells = <1>; |
| 47 | reg = <0x00223000 0x1000>; |
| 48 | }; |
| 49 | |
| 50 | cpus { |
| 51 | #size-cells = <0>; |
| 52 | #address-cells = <1>; |
| 53 | |
Fabio Estevam | d447dd8 | 2016-11-16 13:15:38 -0200 | [diff] [blame] | 54 | cpu@0 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 55 | device_type = "cpu"; |
Fabio Estevam | d447dd8 | 2016-11-16 13:15:38 -0200 | [diff] [blame] | 56 | reg = <0>; |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 57 | compatible = "arm,arm920t"; |
| 58 | operating-points = <200000 1900000>; |
| 59 | clock-latency = <62500>; |
| 60 | clocks = <&clks IMX1_CLK_MCU>; |
| 61 | voltage-tolerance = <5>; |
| 62 | }; |
| 63 | }; |
| 64 | |
Shawn Guo | 416fce8 | 2018-05-03 22:50:24 +0800 | [diff] [blame^] | 65 | clocks { |
| 66 | clk32 { |
| 67 | compatible = "fsl,imx-clk32", "fixed-clock"; |
| 68 | #clock-cells = <0>; |
| 69 | clock-frequency = <32000>; |
| 70 | }; |
| 71 | }; |
| 72 | |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 73 | soc { |
| 74 | #address-cells = <1>; |
| 75 | #size-cells = <1>; |
| 76 | compatible = "simple-bus"; |
| 77 | interrupt-parent = <&aitc>; |
| 78 | ranges; |
| 79 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 80 | aipi@200000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 81 | compatible = "fsl,aipi-bus", "simple-bus"; |
| 82 | #address-cells = <1>; |
| 83 | #size-cells = <1>; |
| 84 | reg = <0x00200000 0x10000>; |
| 85 | ranges; |
| 86 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 87 | gpt1: timer@202000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 88 | compatible = "fsl,imx1-gpt"; |
| 89 | reg = <0x00202000 0x1000>; |
| 90 | interrupts = <59>; |
| 91 | clocks = <&clks IMX1_CLK_HCLK>, |
| 92 | <&clks IMX1_CLK_PER1>; |
| 93 | clock-names = "ipg", "per"; |
| 94 | }; |
| 95 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 96 | gpt2: timer@203000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 97 | compatible = "fsl,imx1-gpt"; |
| 98 | reg = <0x00203000 0x1000>; |
| 99 | interrupts = <58>; |
| 100 | clocks = <&clks IMX1_CLK_HCLK>, |
| 101 | <&clks IMX1_CLK_PER1>; |
| 102 | clock-names = "ipg", "per"; |
| 103 | }; |
| 104 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 105 | fb: fb@205000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 106 | compatible = "fsl,imx1-fb"; |
| 107 | reg = <0x00205000 0x1000>; |
| 108 | interrupts = <14>; |
| 109 | clocks = <&clks IMX1_CLK_DUMMY>, |
| 110 | <&clks IMX1_CLK_DUMMY>, |
| 111 | <&clks IMX1_CLK_PER2>; |
| 112 | clock-names = "ipg", "ahb", "per"; |
| 113 | status = "disabled"; |
| 114 | }; |
| 115 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 116 | uart1: serial@206000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 117 | compatible = "fsl,imx1-uart"; |
| 118 | reg = <0x00206000 0x1000>; |
| 119 | interrupts = <30 29 26>; |
| 120 | clocks = <&clks IMX1_CLK_HCLK>, |
| 121 | <&clks IMX1_CLK_PER1>; |
| 122 | clock-names = "ipg", "per"; |
| 123 | status = "disabled"; |
| 124 | }; |
| 125 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 126 | uart2: serial@207000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 127 | compatible = "fsl,imx1-uart"; |
| 128 | reg = <0x00207000 0x1000>; |
| 129 | interrupts = <24 23 20>; |
| 130 | clocks = <&clks IMX1_CLK_HCLK>, |
| 131 | <&clks IMX1_CLK_PER1>; |
| 132 | clock-names = "ipg", "per"; |
| 133 | status = "disabled"; |
| 134 | }; |
| 135 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 136 | pwm: pwm@208000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 137 | #pwm-cells = <2>; |
| 138 | compatible = "fsl,imx1-pwm"; |
| 139 | reg = <0x00208000 0x1000>; |
| 140 | interrupts = <34>; |
| 141 | clocks = <&clks IMX1_CLK_DUMMY>, |
| 142 | <&clks IMX1_CLK_PER1>; |
| 143 | clock-names = "ipg", "per"; |
| 144 | }; |
| 145 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 146 | dma: dma@209000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 147 | compatible = "fsl,imx1-dma"; |
| 148 | reg = <0x00209000 0x1000>; |
| 149 | interrupts = <61 60>; |
| 150 | clocks = <&clks IMX1_CLK_HCLK>, |
| 151 | <&clks IMX1_CLK_DMA_GATE>; |
| 152 | clock-names = "ipg", "ahb"; |
| 153 | #dma-cells = <1>; |
| 154 | }; |
| 155 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 156 | uart3: serial@20a000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 157 | compatible = "fsl,imx1-uart"; |
| 158 | reg = <0x0020a000 0x1000>; |
| 159 | interrupts = <54 4 1>; |
| 160 | clocks = <&clks IMX1_CLK_UART3_GATE>, |
| 161 | <&clks IMX1_CLK_PER1>; |
| 162 | clock-names = "ipg", "per"; |
| 163 | status = "disabled"; |
| 164 | }; |
| 165 | }; |
| 166 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 167 | aipi@210000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 168 | compatible = "fsl,aipi-bus", "simple-bus"; |
| 169 | #address-cells = <1>; |
| 170 | #size-cells = <1>; |
| 171 | reg = <0x00210000 0x10000>; |
| 172 | ranges; |
| 173 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 174 | cspi1: cspi@213000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 175 | #address-cells = <1>; |
| 176 | #size-cells = <0>; |
| 177 | compatible = "fsl,imx1-cspi"; |
| 178 | reg = <0x00213000 0x1000>; |
| 179 | interrupts = <41>; |
| 180 | clocks = <&clks IMX1_CLK_DUMMY>, |
| 181 | <&clks IMX1_CLK_PER1>; |
| 182 | clock-names = "ipg", "per"; |
| 183 | status = "disabled"; |
| 184 | }; |
| 185 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 186 | i2c: i2c@217000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 187 | #address-cells = <1>; |
| 188 | #size-cells = <0>; |
| 189 | compatible = "fsl,imx1-i2c"; |
| 190 | reg = <0x00217000 0x1000>; |
| 191 | interrupts = <39>; |
| 192 | clocks = <&clks IMX1_CLK_HCLK>; |
| 193 | status = "disabled"; |
| 194 | }; |
| 195 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 196 | cspi2: cspi@219000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 197 | #address-cells = <1>; |
| 198 | #size-cells = <0>; |
| 199 | compatible = "fsl,imx1-cspi"; |
| 200 | reg = <0x00219000 0x1000>; |
| 201 | interrupts = <40>; |
| 202 | clocks = <&clks IMX1_CLK_DUMMY>, |
| 203 | <&clks IMX1_CLK_PER1>; |
| 204 | clock-names = "ipg", "per"; |
| 205 | status = "disabled"; |
| 206 | }; |
| 207 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 208 | clks: ccm@21b000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 209 | compatible = "fsl,imx1-ccm"; |
| 210 | reg = <0x0021b000 0x1000>; |
| 211 | #clock-cells = <1>; |
| 212 | }; |
| 213 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 214 | iomuxc: iomuxc@21c000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 215 | compatible = "fsl,imx1-iomuxc"; |
| 216 | reg = <0x0021c000 0x1000>; |
| 217 | #address-cells = <1>; |
| 218 | #size-cells = <1>; |
| 219 | ranges; |
| 220 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 221 | gpio1: gpio@21c000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 222 | compatible = "fsl,imx1-gpio"; |
| 223 | reg = <0x0021c000 0x100>; |
| 224 | interrupts = <11>; |
| 225 | gpio-controller; |
| 226 | #gpio-cells = <2>; |
| 227 | interrupt-controller; |
| 228 | #interrupt-cells = <2>; |
| 229 | }; |
| 230 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 231 | gpio2: gpio@21c100 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 232 | compatible = "fsl,imx1-gpio"; |
| 233 | reg = <0x0021c100 0x100>; |
| 234 | interrupts = <12>; |
| 235 | gpio-controller; |
| 236 | #gpio-cells = <2>; |
| 237 | interrupt-controller; |
| 238 | #interrupt-cells = <2>; |
| 239 | }; |
| 240 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 241 | gpio3: gpio@21c200 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 242 | compatible = "fsl,imx1-gpio"; |
| 243 | reg = <0x0021c200 0x100>; |
| 244 | interrupts = <13>; |
| 245 | gpio-controller; |
| 246 | #gpio-cells = <2>; |
| 247 | interrupt-controller; |
| 248 | #interrupt-cells = <2>; |
| 249 | }; |
| 250 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 251 | gpio4: gpio@21c300 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 252 | compatible = "fsl,imx1-gpio"; |
| 253 | reg = <0x0021c300 0x100>; |
| 254 | interrupts = <62>; |
| 255 | gpio-controller; |
| 256 | #gpio-cells = <2>; |
| 257 | interrupt-controller; |
| 258 | #interrupt-cells = <2>; |
| 259 | }; |
| 260 | }; |
| 261 | }; |
| 262 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 263 | weim: weim@220000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 264 | #address-cells = <2>; |
| 265 | #size-cells = <1>; |
| 266 | compatible = "fsl,imx1-weim"; |
| 267 | reg = <0x00220000 0x1000>; |
| 268 | clocks = <&clks IMX1_CLK_DUMMY>; |
| 269 | ranges = < |
| 270 | 0 0 0x10000000 0x02000000 |
| 271 | 1 0 0x12000000 0x01000000 |
| 272 | 2 0 0x13000000 0x01000000 |
| 273 | 3 0 0x14000000 0x01000000 |
| 274 | 4 0 0x15000000 0x01000000 |
| 275 | 5 0 0x16000000 0x01000000 |
| 276 | >; |
| 277 | status = "disabled"; |
| 278 | }; |
| 279 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 280 | esram: esram@300000 { |
Alexander Shiyan | d0eb8fc | 2014-07-26 13:45:29 +0400 | [diff] [blame] | 281 | compatible = "mmio-sram"; |
| 282 | reg = <0x00300000 0x20000>; |
| 283 | }; |
| 284 | }; |
| 285 | }; |