2 * Copyright (C) 2015 Microchip Technology Inc. All rights reserved.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
10 #include <dt-bindings/interrupt-controller/irq.h>
12 #include "pic32mzda-clk.dtsi"
17 interrupt-parent = <&evic>;
43 compatible = "mti,mips14KEc";
49 compatible = "microchip,pic32mzda-infra";
50 interrupts = <0 IRQ_TYPE_EDGE_RISING>;
53 evic: interrupt-controller@1f810000 {
54 compatible = "microchip,pic32mzda-evic";
56 #interrupt-cells = <2>;
57 reg = <0x1f810000 0x1000>;
58 microchip,external-irqs = <3 8 13 18 23>;
61 pic32_pinctrl: pinctrl@1f801400{
64 compatible = "microchip,pic32mzda-pinctrl";
65 reg = <0x1f801400 0x400>;
70 gpio0: gpio0@1f860000 {
71 compatible = "microchip,pic32mzda-gpio";
72 reg = <0x1f860000 0x100>;
73 interrupts = <118 IRQ_TYPE_LEVEL_HIGH>;
77 #interrupt-cells = <2>;
79 microchip,gpio-bank = <0>;
80 gpio-ranges = <&pic32_pinctrl 0 0 16>;
84 gpio1: gpio1@1f860100 {
85 compatible = "microchip,pic32mzda-gpio";
86 reg = <0x1f860100 0x100>;
87 interrupts = <119 IRQ_TYPE_LEVEL_HIGH>;
91 #interrupt-cells = <2>;
93 microchip,gpio-bank = <1>;
94 gpio-ranges = <&pic32_pinctrl 0 16 16>;
98 gpio2: gpio2@1f860200 {
99 compatible = "microchip,pic32mzda-gpio";
100 reg = <0x1f860200 0x100>;
101 interrupts = <120 IRQ_TYPE_LEVEL_HIGH>;
104 interrupt-controller;
105 #interrupt-cells = <2>;
107 microchip,gpio-bank = <2>;
108 gpio-ranges = <&pic32_pinctrl 0 32 16>;
112 gpio3: gpio3@1f860300 {
113 compatible = "microchip,pic32mzda-gpio";
114 reg = <0x1f860300 0x100>;
115 interrupts = <121 IRQ_TYPE_LEVEL_HIGH>;
118 interrupt-controller;
119 #interrupt-cells = <2>;
121 microchip,gpio-bank = <3>;
122 gpio-ranges = <&pic32_pinctrl 0 48 16>;
126 gpio4: gpio4@1f860400 {
127 compatible = "microchip,pic32mzda-gpio";
128 reg = <0x1f860400 0x100>;
129 interrupts = <122 IRQ_TYPE_LEVEL_HIGH>;
132 interrupt-controller;
133 #interrupt-cells = <2>;
135 microchip,gpio-bank = <4>;
136 gpio-ranges = <&pic32_pinctrl 0 64 16>;
140 gpio5: gpio5@1f860500 {
141 compatible = "microchip,pic32mzda-gpio";
142 reg = <0x1f860500 0x100>;
143 interrupts = <123 IRQ_TYPE_LEVEL_HIGH>;
146 interrupt-controller;
147 #interrupt-cells = <2>;
149 microchip,gpio-bank = <5>;
150 gpio-ranges = <&pic32_pinctrl 0 80 16>;
154 gpio6: gpio6@1f860600 {
155 compatible = "microchip,pic32mzda-gpio";
156 reg = <0x1f860600 0x100>;
157 interrupts = <124 IRQ_TYPE_LEVEL_HIGH>;
160 interrupt-controller;
161 #interrupt-cells = <2>;
163 microchip,gpio-bank = <6>;
164 gpio-ranges = <&pic32_pinctrl 0 96 16>;
168 gpio7: gpio7@1f860700 {
169 compatible = "microchip,pic32mzda-gpio";
170 reg = <0x1f860700 0x100>;
171 interrupts = <125 IRQ_TYPE_LEVEL_HIGH>;
174 interrupt-controller;
175 #interrupt-cells = <2>;
177 microchip,gpio-bank = <7>;
178 gpio-ranges = <&pic32_pinctrl 0 112 16>;
181 /* PORTI does not exist */
184 gpio8: gpio8@1f860800 {
185 compatible = "microchip,pic32mzda-gpio";
186 reg = <0x1f860800 0x100>;
187 interrupts = <126 IRQ_TYPE_LEVEL_HIGH>;
190 interrupt-controller;
191 #interrupt-cells = <2>;
193 microchip,gpio-bank = <8>;
194 gpio-ranges = <&pic32_pinctrl 0 128 16>;
198 gpio9: gpio9@1f860900 {
199 compatible = "microchip,pic32mzda-gpio";
200 reg = <0x1f860900 0x100>;
201 interrupts = <127 IRQ_TYPE_LEVEL_HIGH>;
204 interrupt-controller;
205 #interrupt-cells = <2>;
207 microchip,gpio-bank = <9>;
208 gpio-ranges = <&pic32_pinctrl 0 144 16>;
211 sdhci: sdhci@1f8ec000 {
212 compatible = "microchip,pic32mzda-sdhci";
213 reg = <0x1f8ec000 0x100>;
214 interrupts = <191 IRQ_TYPE_LEVEL_HIGH>;
215 clocks = <&REFCLKO4>, <&PBCLK5>;
216 clock-names = "base_clk", "sys_clk";
222 uart1: serial@1f822000 {
223 compatible = "microchip,pic32mzda-uart";
224 reg = <0x1f822000 0x50>;
225 interrupts = <112 IRQ_TYPE_LEVEL_HIGH>,
226 <113 IRQ_TYPE_LEVEL_HIGH>,
227 <114 IRQ_TYPE_LEVEL_HIGH>;
232 uart2: serial@1f822200 {
233 compatible = "microchip,pic32mzda-uart";
234 reg = <0x1f822200 0x50>;
235 interrupts = <145 IRQ_TYPE_LEVEL_HIGH>,
236 <146 IRQ_TYPE_LEVEL_HIGH>,
237 <147 IRQ_TYPE_LEVEL_HIGH>;
242 uart3: serial@1f822400 {
243 compatible = "microchip,pic32mzda-uart";
244 reg = <0x1f822400 0x50>;
245 interrupts = <157 IRQ_TYPE_LEVEL_HIGH>,
246 <158 IRQ_TYPE_LEVEL_HIGH>,
247 <159 IRQ_TYPE_LEVEL_HIGH>;
252 uart4: serial@1f822600 {
253 compatible = "microchip,pic32mzda-uart";
254 reg = <0x1f822600 0x50>;
255 interrupts = <170 IRQ_TYPE_LEVEL_HIGH>,
256 <171 IRQ_TYPE_LEVEL_HIGH>,
257 <172 IRQ_TYPE_LEVEL_HIGH>;
262 uart5: serial@1f822800 {
263 compatible = "microchip,pic32mzda-uart";
264 reg = <0x1f822800 0x50>;
265 interrupts = <179 IRQ_TYPE_LEVEL_HIGH>,
266 <180 IRQ_TYPE_LEVEL_HIGH>,
267 <181 IRQ_TYPE_LEVEL_HIGH>;
272 uart6: serial@1f822A00 {
273 compatible = "microchip,pic32mzda-uart";
274 reg = <0x1f822A00 0x50>;
275 interrupts = <188 IRQ_TYPE_LEVEL_HIGH>,
276 <189 IRQ_TYPE_LEVEL_HIGH>,
277 <190 IRQ_TYPE_LEVEL_HIGH>;