Fabio Estevam | 241f76b | 2018-05-07 15:23:40 -0300 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | // |
| 3 | // Copyright 2012 Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> |
Denis 'GNUtoo' Carikli | d2a37b3 | 2012-07-09 21:39:12 +0200 | [diff] [blame] | 4 | |
Denis 'GNUtoo' Carikli | d2a37b3 | 2012-07-09 21:39:12 +0200 | [diff] [blame] | 5 | / { |
Fabio Estevam | 7f10788 | 2016-11-12 13:30:35 -0200 | [diff] [blame] | 6 | #address-cells = <1>; |
| 7 | #size-cells = <1>; |
Fabio Estevam | a971c55 | 2017-01-23 14:54:10 -0200 | [diff] [blame] | 8 | /* |
| 9 | * The decompressor and also some bootloaders rely on a |
| 10 | * pre-existing /chosen node to be available to insert the |
| 11 | * command line and merge other ATAGS info. |
| 12 | * Also for U-Boot there must be a pre-existing /memory node. |
| 13 | */ |
| 14 | chosen {}; |
Marco Franchi | 7f08e6a | 2018-01-24 11:22:13 -0200 | [diff] [blame] | 15 | memory { device_type = "memory"; }; |
Fabio Estevam | 7f10788 | 2016-11-12 13:30:35 -0200 | [diff] [blame] | 16 | |
Denis 'GNUtoo' Carikli | d2a37b3 | 2012-07-09 21:39:12 +0200 | [diff] [blame] | 17 | aliases { |
| 18 | serial0 = &uart1; |
| 19 | serial1 = &uart2; |
| 20 | serial2 = &uart3; |
| 21 | serial3 = &uart4; |
| 22 | serial4 = &uart5; |
| 23 | }; |
| 24 | |
Fabio Estevam | 070bd7e | 2013-07-07 10:12:30 -0300 | [diff] [blame] | 25 | cpus { |
Fabio Estevam | d447dd8 | 2016-11-16 13:15:38 -0200 | [diff] [blame] | 26 | #address-cells = <1>; |
Fabio Estevam | 070bd7e | 2013-07-07 10:12:30 -0300 | [diff] [blame] | 27 | #size-cells = <0>; |
| 28 | |
Fabio Estevam | d447dd8 | 2016-11-16 13:15:38 -0200 | [diff] [blame] | 29 | cpu@0 { |
Vladimir Zapolskiy | bc6cde3 | 2015-09-25 20:35:30 +0300 | [diff] [blame] | 30 | compatible = "arm,arm1136jf-s"; |
Fabio Estevam | 070bd7e | 2013-07-07 10:12:30 -0300 | [diff] [blame] | 31 | device_type = "cpu"; |
Fabio Estevam | d447dd8 | 2016-11-16 13:15:38 -0200 | [diff] [blame] | 32 | reg = <0>; |
Fabio Estevam | 070bd7e | 2013-07-07 10:12:30 -0300 | [diff] [blame] | 33 | }; |
| 34 | }; |
| 35 | |
Vladimir Zapolskiy | af92305 | 2016-11-17 03:30:51 +0200 | [diff] [blame] | 36 | avic: interrupt-controller@68000000 { |
Denis 'GNUtoo' Carikli | d2a37b3 | 2012-07-09 21:39:12 +0200 | [diff] [blame] | 37 | compatible = "fsl,imx31-avic", "fsl,avic"; |
| 38 | interrupt-controller; |
| 39 | #interrupt-cells = <1>; |
Vladimir Zapolskiy | af92305 | 2016-11-17 03:30:51 +0200 | [diff] [blame] | 40 | reg = <0x68000000 0x100000>; |
Denis 'GNUtoo' Carikli | d2a37b3 | 2012-07-09 21:39:12 +0200 | [diff] [blame] | 41 | }; |
| 42 | |
| 43 | soc { |
| 44 | #address-cells = <1>; |
| 45 | #size-cells = <1>; |
| 46 | compatible = "simple-bus"; |
| 47 | interrupt-parent = <&avic>; |
| 48 | ranges; |
| 49 | |
| 50 | aips@43f00000 { /* AIPS1 */ |
| 51 | compatible = "fsl,aips-bus", "simple-bus"; |
| 52 | #address-cells = <1>; |
| 53 | #size-cells = <1>; |
| 54 | reg = <0x43f00000 0x100000>; |
| 55 | ranges; |
| 56 | |
| 57 | uart1: serial@43f90000 { |
| 58 | compatible = "fsl,imx31-uart", "fsl,imx21-uart"; |
| 59 | reg = <0x43f90000 0x4000>; |
| 60 | interrupts = <45>; |
Fabio Estevam | ef0e4a6 | 2012-11-22 17:10:46 -0200 | [diff] [blame] | 61 | clocks = <&clks 10>, <&clks 30>; |
| 62 | clock-names = "ipg", "per"; |
Denis 'GNUtoo' Carikli | d2a37b3 | 2012-07-09 21:39:12 +0200 | [diff] [blame] | 63 | status = "disabled"; |
| 64 | }; |
| 65 | |
| 66 | uart2: serial@43f94000 { |
| 67 | compatible = "fsl,imx31-uart", "fsl,imx21-uart"; |
| 68 | reg = <0x43f94000 0x4000>; |
| 69 | interrupts = <32>; |
Fabio Estevam | ef0e4a6 | 2012-11-22 17:10:46 -0200 | [diff] [blame] | 70 | clocks = <&clks 10>, <&clks 31>; |
| 71 | clock-names = "ipg", "per"; |
Denis 'GNUtoo' Carikli | d2a37b3 | 2012-07-09 21:39:12 +0200 | [diff] [blame] | 72 | status = "disabled"; |
| 73 | }; |
| 74 | |
Alexander Kurz | d8c8c70 | 2016-04-15 09:54:20 +0200 | [diff] [blame] | 75 | kpp: kpp@43fa8000 { |
| 76 | compatible = "fsl,imx31-kpp", "fsl,imx21-kpp"; |
| 77 | reg = <0x43fa8000 0x4000>; |
| 78 | interrupts = <24>; |
| 79 | clocks = <&clks 46>; |
| 80 | status = "disabled"; |
| 81 | }; |
| 82 | |
Denis 'GNUtoo' Carikli | d2a37b3 | 2012-07-09 21:39:12 +0200 | [diff] [blame] | 83 | uart4: serial@43fb0000 { |
| 84 | compatible = "fsl,imx31-uart", "fsl,imx21-uart"; |
| 85 | reg = <0x43fb0000 0x4000>; |
Fabio Estevam | ef0e4a6 | 2012-11-22 17:10:46 -0200 | [diff] [blame] | 86 | clocks = <&clks 10>, <&clks 49>; |
| 87 | clock-names = "ipg", "per"; |
Denis 'GNUtoo' Carikli | d2a37b3 | 2012-07-09 21:39:12 +0200 | [diff] [blame] | 88 | interrupts = <46>; |
| 89 | status = "disabled"; |
| 90 | }; |
| 91 | |
| 92 | uart5: serial@43fb4000 { |
| 93 | compatible = "fsl,imx31-uart", "fsl,imx21-uart"; |
| 94 | reg = <0x43fb4000 0x4000>; |
| 95 | interrupts = <47>; |
Fabio Estevam | ef0e4a6 | 2012-11-22 17:10:46 -0200 | [diff] [blame] | 96 | clocks = <&clks 10>, <&clks 50>; |
| 97 | clock-names = "ipg", "per"; |
Denis 'GNUtoo' Carikli | d2a37b3 | 2012-07-09 21:39:12 +0200 | [diff] [blame] | 98 | status = "disabled"; |
| 99 | }; |
| 100 | }; |
| 101 | |
| 102 | spba@50000000 { |
| 103 | compatible = "fsl,spba-bus", "simple-bus"; |
| 104 | #address-cells = <1>; |
| 105 | #size-cells = <1>; |
| 106 | reg = <0x50000000 0x100000>; |
| 107 | ranges; |
| 108 | |
| 109 | uart3: serial@5000c000 { |
| 110 | compatible = "fsl,imx31-uart", "fsl,imx21-uart"; |
| 111 | reg = <0x5000c000 0x4000>; |
| 112 | interrupts = <18>; |
Fabio Estevam | ef0e4a6 | 2012-11-22 17:10:46 -0200 | [diff] [blame] | 113 | clocks = <&clks 10>, <&clks 48>; |
| 114 | clock-names = "ipg", "per"; |
Denis 'GNUtoo' Carikli | d2a37b3 | 2012-07-09 21:39:12 +0200 | [diff] [blame] | 115 | status = "disabled"; |
| 116 | }; |
Fabio Estevam | ef0e4a6 | 2012-11-22 17:10:46 -0200 | [diff] [blame] | 117 | |
Sascha Hauer | 9c5d590 | 2013-06-25 15:51:49 +0200 | [diff] [blame] | 118 | iim: iim@5001c000 { |
| 119 | compatible = "fsl,imx31-iim", "fsl,imx27-iim"; |
| 120 | reg = <0x5001c000 0x1000>; |
| 121 | interrupts = <19>; |
| 122 | clocks = <&clks 25>; |
| 123 | }; |
Denis 'GNUtoo' Carikli | d2a37b3 | 2012-07-09 21:39:12 +0200 | [diff] [blame] | 124 | }; |
Sascha Hauer | a44eed9 | 2013-03-14 13:08:58 +0100 | [diff] [blame] | 125 | |
| 126 | aips@53f00000 { /* AIPS2 */ |
| 127 | compatible = "fsl,aips-bus", "simple-bus"; |
| 128 | #address-cells = <1>; |
| 129 | #size-cells = <1>; |
| 130 | reg = <0x53f00000 0x100000>; |
| 131 | ranges; |
| 132 | |
Vladimir Zapolskiy | 1f87aee | 2016-09-26 03:03:41 +0300 | [diff] [blame] | 133 | clks: ccm@53f80000{ |
| 134 | compatible = "fsl,imx31-ccm"; |
| 135 | reg = <0x53f80000 0x4000>; |
| 136 | interrupts = <31>, <53>; |
| 137 | #clock-cells = <1>; |
| 138 | }; |
| 139 | |
Sascha Hauer | a44eed9 | 2013-03-14 13:08:58 +0100 | [diff] [blame] | 140 | gpt: timer@53f90000 { |
| 141 | compatible = "fsl,imx31-gpt"; |
| 142 | reg = <0x53f90000 0x4000>; |
| 143 | interrupts = <29>; |
| 144 | clocks = <&clks 10>, <&clks 22>; |
| 145 | clock-names = "ipg", "per"; |
| 146 | }; |
| 147 | }; |
Denis 'GNUtoo' Carikli | d2a37b3 | 2012-07-09 21:39:12 +0200 | [diff] [blame] | 148 | }; |
| 149 | }; |