blob: 43cd7cf3047b6e71fbbb9c7395382b63a464f04d [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +05302/*
3 * Copyright 2015 Microchip Technology, Inc.
4 * Purna Chandra Mandal, <purna.mandal@microchip.com>
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +05305 */
6
7#include <dt-bindings/interrupt-controller/irq.h>
8#include <dt-bindings/clock/microchip,clock.h>
9#include <dt-bindings/gpio/gpio.h>
10#include "skeleton.dtsi"
11
12/ {
13 compatible = "microchip,pic32mzda", "microchip,pic32mz";
14
15 aliases {
16 gpio0 = &gpioA;
17 gpio1 = &gpioB;
18 gpio2 = &gpioC;
19 gpio3 = &gpioD;
20 gpio4 = &gpioE;
21 gpio5 = &gpioF;
22 gpio6 = &gpioG;
23 gpio7 = &gpioH;
24 gpio8 = &gpioJ;
25 gpio9 = &gpioK;
26 };
27
28 cpus {
John Robertson0723c2d2020-09-01 04:14:56 +000029 #address-cells = <1>;
30 #size-cells = <0>;
31
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +053032 cpu@0 {
33 compatible = "mips,mips14kc";
John Robertson0723c2d2020-09-01 04:14:56 +000034 device-type = "cpu";
35 reg = <0>;
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +053036 };
37 };
38
39 clock: clk@1f801200 {
40 compatible = "microchip,pic32mzda-clk";
41 reg = <0x1f801200 0x1000>;
42 #clock-cells = <1>;
43 };
44
45 uart1: serial@1f822000 {
46 compatible = "microchip,pic32mzda-uart";
47 reg = <0x1f822000 0x50>;
John Robertson0723c2d2020-09-01 04:14:56 +000048 interrupt-parent = <&evic>;
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +053049 interrupts = <112 IRQ_TYPE_LEVEL_HIGH>;
50 status = "disabled";
51 clocks = <&clock PB2CLK>;
52 };
53
54 uart2: serial@1f822200 {
55 compatible = "microchip,pic32mzda-uart";
56 reg = <0x1f822200 0x50>;
John Robertson0723c2d2020-09-01 04:14:56 +000057 interrupt-parent = <&evic>;
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +053058 interrupts = <145 IRQ_TYPE_LEVEL_HIGH>;
59 clocks = <&clock PB2CLK>;
60 status = "disabled";
61 };
62
63 uart6: serial@1f822a00 {
64 compatible = "microchip,pic32mzda-uart";
65 reg = <0x1f822a00 0x50>;
John Robertson0723c2d2020-09-01 04:14:56 +000066 interrupt-parent = <&evic>;
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +053067 interrupts = <188 IRQ_TYPE_LEVEL_HIGH>;
68 clocks = <&clock PB2CLK>;
69 status = "disabled";
70 };
71
72 evic: interrupt-controller@1f810000 {
73 compatible = "microchip,pic32mzda-evic";
74 interrupt-controller;
75 #interrupt-cells = <2>;
76 reg = <0x1f810000 0x1000>;
77 };
78
79 pinctrl: pinctrl@1f801400 {
John Robertson81b543a2020-09-01 18:02:13 +000080 #address-cells = <1>;
81 #size-cells = <1>;
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +053082 compatible = "microchip,pic32mzda-pinctrl";
83 reg = <0x1f801400 0x100>, /* in */
84 <0x1f801500 0x200>, /* out */
85 <0x1f860000 0xa00>; /* port */
86 reg-names = "ppsin","ppsout","port";
87 status = "disabled";
88
John Robertson81b543a2020-09-01 18:02:13 +000089 gpioA: gpio0@1f860000 {
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +053090 compatible = "microchip,pic32mzda-gpio";
John Robertson81b543a2020-09-01 18:02:13 +000091 reg = <0x1f860000 0xe0>;
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +053092 gpio-controller;
93 #gpio-cells = <2>;
94 };
95
John Robertson81b543a2020-09-01 18:02:13 +000096 gpioB: gpio1@1f860100 {
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +053097 compatible = "microchip,pic32mzda-gpio";
John Robertson81b543a2020-09-01 18:02:13 +000098 reg = <0x1f860100 0xe0>;
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +053099 gpio-controller;
100 #gpio-cells = <2>;
101 };
102
John Robertson81b543a2020-09-01 18:02:13 +0000103 gpioC: gpio2@1f860200 {
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +0530104 compatible = "microchip,pic32mzda-gpio";
John Robertson81b543a2020-09-01 18:02:13 +0000105 reg = <0x1f860200 0xe0>;
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +0530106 gpio-controller;
107 #gpio-cells = <2>;
108 };
109
John Robertson81b543a2020-09-01 18:02:13 +0000110 gpioD: gpio3@1f860300 {
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +0530111 compatible = "microchip,pic32mzda-gpio";
John Robertson81b543a2020-09-01 18:02:13 +0000112 reg = <0x1f860300 0xe0>;
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +0530113 gpio-controller;
114 #gpio-cells = <2>;
115 };
116
John Robertson81b543a2020-09-01 18:02:13 +0000117 gpioE: gpio4@1f860400 {
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +0530118 compatible = "microchip,pic32mzda-gpio";
John Robertson81b543a2020-09-01 18:02:13 +0000119 reg = <0x1f860400 0xe0>;
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +0530120 gpio-controller;
121 #gpio-cells = <2>;
122 };
123
John Robertson81b543a2020-09-01 18:02:13 +0000124 gpioF: gpio5@1f860500 {
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +0530125 compatible = "microchip,pic32mzda-gpio";
John Robertson81b543a2020-09-01 18:02:13 +0000126 reg = <0x1f860500 0xe0>;
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +0530127 gpio-controller;
128 #gpio-cells = <2>;
129 };
130
John Robertson81b543a2020-09-01 18:02:13 +0000131 gpioG: gpio6@1f860600 {
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +0530132 compatible = "microchip,pic32mzda-gpio";
John Robertson81b543a2020-09-01 18:02:13 +0000133 reg = <0x1f860600 0xe0>;
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +0530134 gpio-controller;
135 #gpio-cells = <2>;
136 };
137
John Robertson81b543a2020-09-01 18:02:13 +0000138 gpioH: gpio7@1f860700 {
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +0530139 compatible = "microchip,pic32mzda-gpio";
John Robertson81b543a2020-09-01 18:02:13 +0000140 reg = <0x1f860700 0xe0>;
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +0530141 gpio-controller;
142 #gpio-cells = <2>;
143 };
144
John Robertsonbd25f9a2020-09-01 18:02:20 +0000145 gpioJ: gpio9@1f860800 {
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +0530146 compatible = "microchip,pic32mzda-gpio";
John Robertson81b543a2020-09-01 18:02:13 +0000147 reg = <0x1f860800 0xe0>;
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +0530148 gpio-controller;
149 #gpio-cells = <2>;
150 };
151
John Robertsonbd25f9a2020-09-01 18:02:20 +0000152 gpioK: gpio10@1f860900 {
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +0530153 compatible = "microchip,pic32mzda-gpio";
John Robertson81b543a2020-09-01 18:02:13 +0000154 reg = <0x1f860900 0xe0>;
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +0530155 gpio-controller;
156 #gpio-cells = <2>;
157 };
158 };
Purna Chandra Mandalc76eb722016-01-28 15:30:19 +0530159
160 sdhci: sdhci@1f8ec000 {
161 compatible = "microchip,pic32mzda-sdhci";
162 reg = <0x1f8ec000 0x100>;
John Robertson0723c2d2020-09-01 04:14:56 +0000163 interrupt-parent = <&evic>;
Purna Chandra Mandalc76eb722016-01-28 15:30:19 +0530164 interrupts = <191 IRQ_TYPE_LEVEL_HIGH>;
165 clocks = <&clock REF4CLK>, <&clock PB5CLK>;
166 clock-names = "base_clk", "sys_clk";
167 clock-freq-min-max = <25000000>,<25000000>;
168 bus-width = <4>;
169 status = "disabled";
170 };
Purna Chandra Mandal7d514a72016-01-28 15:30:22 +0530171
172 ethernet: ethernet@1f882000 {
173 compatible = "microchip,pic32mzda-eth";
174 reg = <0x1f882000 0x1000>;
John Robertson0723c2d2020-09-01 04:14:56 +0000175 interrupt-parent = <&evic>;
Purna Chandra Mandal7d514a72016-01-28 15:30:22 +0530176 interrupts = <153 IRQ_TYPE_LEVEL_HIGH>;
177 clocks = <&clock PB5CLK>;
178 status = "disabled";
179 #address-cells = <1>;
180 #size-cells = <0>;
181 };
Purna Chandra Mandalac7eef72016-03-21 13:05:43 +0530182
183 usb: musb@1f8e3000 {
184 compatible = "microchip,pic32mzda-usb";
185 reg = <0x1f8e3000 0x1000>,
186 <0x1f884000 0x1000>;
187 reg-names = "mc", "control";
John Robertson0723c2d2020-09-01 04:14:56 +0000188 interrupt-parent = <&evic>;
Purna Chandra Mandalac7eef72016-03-21 13:05:43 +0530189 interrupts = <132 IRQ_TYPE_EDGE_RISING>,
190 <133 IRQ_TYPE_LEVEL_HIGH>;
191 clocks = <&clock PB5CLK>;
192 clock-names = "usb_clk";
193 status = "disabled";
194 };
Purna Chandra Mandalbe961fa2016-01-28 15:30:16 +0530195};