2018-05-06 21:58:06 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0+
|
2016-01-28 10:00:16 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2015 Microchip Technology, Inc.
|
|
|
|
* Purna Chandra Mandal, <purna.mandal@microchip.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <dt-bindings/interrupt-controller/irq.h>
|
|
|
|
#include <dt-bindings/clock/microchip,clock.h>
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
#include "skeleton.dtsi"
|
|
|
|
|
|
|
|
/ {
|
|
|
|
compatible = "microchip,pic32mzda", "microchip,pic32mz";
|
|
|
|
|
|
|
|
aliases {
|
|
|
|
gpio0 = &gpioA;
|
|
|
|
gpio1 = &gpioB;
|
|
|
|
gpio2 = &gpioC;
|
|
|
|
gpio3 = &gpioD;
|
|
|
|
gpio4 = &gpioE;
|
|
|
|
gpio5 = &gpioF;
|
|
|
|
gpio6 = &gpioG;
|
|
|
|
gpio7 = &gpioH;
|
|
|
|
gpio8 = &gpioJ;
|
|
|
|
gpio9 = &gpioK;
|
|
|
|
};
|
|
|
|
|
|
|
|
cpus {
|
2020-09-01 04:14:56 +00:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2016-01-28 10:00:16 +00:00
|
|
|
cpu@0 {
|
|
|
|
compatible = "mips,mips14kc";
|
2020-09-01 04:14:56 +00:00
|
|
|
device-type = "cpu";
|
|
|
|
reg = <0>;
|
2016-01-28 10:00:16 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
clock: clk@1f801200 {
|
|
|
|
compatible = "microchip,pic32mzda-clk";
|
|
|
|
reg = <0x1f801200 0x1000>;
|
|
|
|
#clock-cells = <1>;
|
|
|
|
};
|
|
|
|
|
|
|
|
uart1: serial@1f822000 {
|
|
|
|
compatible = "microchip,pic32mzda-uart";
|
|
|
|
reg = <0x1f822000 0x50>;
|
2020-09-01 04:14:56 +00:00
|
|
|
interrupt-parent = <&evic>;
|
2016-01-28 10:00:16 +00:00
|
|
|
interrupts = <112 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
status = "disabled";
|
|
|
|
clocks = <&clock PB2CLK>;
|
|
|
|
};
|
|
|
|
|
|
|
|
uart2: serial@1f822200 {
|
|
|
|
compatible = "microchip,pic32mzda-uart";
|
|
|
|
reg = <0x1f822200 0x50>;
|
2020-09-01 04:14:56 +00:00
|
|
|
interrupt-parent = <&evic>;
|
2016-01-28 10:00:16 +00:00
|
|
|
interrupts = <145 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
clocks = <&clock PB2CLK>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
uart6: serial@1f822a00 {
|
|
|
|
compatible = "microchip,pic32mzda-uart";
|
|
|
|
reg = <0x1f822a00 0x50>;
|
2020-09-01 04:14:56 +00:00
|
|
|
interrupt-parent = <&evic>;
|
2016-01-28 10:00:16 +00:00
|
|
|
interrupts = <188 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
clocks = <&clock PB2CLK>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
|
|
|
|
|
|
|
evic: interrupt-controller@1f810000 {
|
|
|
|
compatible = "microchip,pic32mzda-evic";
|
|
|
|
interrupt-controller;
|
|
|
|
#interrupt-cells = <2>;
|
|
|
|
reg = <0x1f810000 0x1000>;
|
|
|
|
};
|
|
|
|
|
|
|
|
pinctrl: pinctrl@1f801400 {
|
2020-09-01 18:02:13 +00:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2016-01-28 10:00:16 +00:00
|
|
|
compatible = "microchip,pic32mzda-pinctrl";
|
|
|
|
reg = <0x1f801400 0x100>, /* in */
|
|
|
|
<0x1f801500 0x200>, /* out */
|
|
|
|
<0x1f860000 0xa00>; /* port */
|
|
|
|
reg-names = "ppsin","ppsout","port";
|
|
|
|
status = "disabled";
|
|
|
|
|
2020-09-01 18:02:13 +00:00
|
|
|
gpioA: gpio0@1f860000 {
|
2016-01-28 10:00:16 +00:00
|
|
|
compatible = "microchip,pic32mzda-gpio";
|
2020-09-01 18:02:13 +00:00
|
|
|
reg = <0x1f860000 0xe0>;
|
2016-01-28 10:00:16 +00:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
2020-09-01 18:02:13 +00:00
|
|
|
gpioB: gpio1@1f860100 {
|
2016-01-28 10:00:16 +00:00
|
|
|
compatible = "microchip,pic32mzda-gpio";
|
2020-09-01 18:02:13 +00:00
|
|
|
reg = <0x1f860100 0xe0>;
|
2016-01-28 10:00:16 +00:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
2020-09-01 18:02:13 +00:00
|
|
|
gpioC: gpio2@1f860200 {
|
2016-01-28 10:00:16 +00:00
|
|
|
compatible = "microchip,pic32mzda-gpio";
|
2020-09-01 18:02:13 +00:00
|
|
|
reg = <0x1f860200 0xe0>;
|
2016-01-28 10:00:16 +00:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
2020-09-01 18:02:13 +00:00
|
|
|
gpioD: gpio3@1f860300 {
|
2016-01-28 10:00:16 +00:00
|
|
|
compatible = "microchip,pic32mzda-gpio";
|
2020-09-01 18:02:13 +00:00
|
|
|
reg = <0x1f860300 0xe0>;
|
2016-01-28 10:00:16 +00:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
2020-09-01 18:02:13 +00:00
|
|
|
gpioE: gpio4@1f860400 {
|
2016-01-28 10:00:16 +00:00
|
|
|
compatible = "microchip,pic32mzda-gpio";
|
2020-09-01 18:02:13 +00:00
|
|
|
reg = <0x1f860400 0xe0>;
|
2016-01-28 10:00:16 +00:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
2020-09-01 18:02:13 +00:00
|
|
|
gpioF: gpio5@1f860500 {
|
2016-01-28 10:00:16 +00:00
|
|
|
compatible = "microchip,pic32mzda-gpio";
|
2020-09-01 18:02:13 +00:00
|
|
|
reg = <0x1f860500 0xe0>;
|
2016-01-28 10:00:16 +00:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
2020-09-01 18:02:13 +00:00
|
|
|
gpioG: gpio6@1f860600 {
|
2016-01-28 10:00:16 +00:00
|
|
|
compatible = "microchip,pic32mzda-gpio";
|
2020-09-01 18:02:13 +00:00
|
|
|
reg = <0x1f860600 0xe0>;
|
2016-01-28 10:00:16 +00:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
2020-09-01 18:02:13 +00:00
|
|
|
gpioH: gpio7@1f860700 {
|
2016-01-28 10:00:16 +00:00
|
|
|
compatible = "microchip,pic32mzda-gpio";
|
2020-09-01 18:02:13 +00:00
|
|
|
reg = <0x1f860700 0xe0>;
|
2016-01-28 10:00:16 +00:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
2020-09-01 18:02:20 +00:00
|
|
|
gpioJ: gpio9@1f860800 {
|
2016-01-28 10:00:16 +00:00
|
|
|
compatible = "microchip,pic32mzda-gpio";
|
2020-09-01 18:02:13 +00:00
|
|
|
reg = <0x1f860800 0xe0>;
|
2016-01-28 10:00:16 +00:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
|
2020-09-01 18:02:20 +00:00
|
|
|
gpioK: gpio10@1f860900 {
|
2016-01-28 10:00:16 +00:00
|
|
|
compatible = "microchip,pic32mzda-gpio";
|
2020-09-01 18:02:13 +00:00
|
|
|
reg = <0x1f860900 0xe0>;
|
2016-01-28 10:00:16 +00:00
|
|
|
gpio-controller;
|
|
|
|
#gpio-cells = <2>;
|
|
|
|
};
|
|
|
|
};
|
2016-01-28 10:00:19 +00:00
|
|
|
|
|
|
|
sdhci: sdhci@1f8ec000 {
|
|
|
|
compatible = "microchip,pic32mzda-sdhci";
|
|
|
|
reg = <0x1f8ec000 0x100>;
|
2020-09-01 04:14:56 +00:00
|
|
|
interrupt-parent = <&evic>;
|
2016-01-28 10:00:19 +00:00
|
|
|
interrupts = <191 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
clocks = <&clock REF4CLK>, <&clock PB5CLK>;
|
|
|
|
clock-names = "base_clk", "sys_clk";
|
|
|
|
clock-freq-min-max = <25000000>,<25000000>;
|
|
|
|
bus-width = <4>;
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2016-01-28 10:00:22 +00:00
|
|
|
|
|
|
|
ethernet: ethernet@1f882000 {
|
|
|
|
compatible = "microchip,pic32mzda-eth";
|
|
|
|
reg = <0x1f882000 0x1000>;
|
2020-09-01 04:14:56 +00:00
|
|
|
interrupt-parent = <&evic>;
|
2016-01-28 10:00:22 +00:00
|
|
|
interrupts = <153 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
clocks = <&clock PB5CLK>;
|
|
|
|
status = "disabled";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
};
|
2016-03-21 07:35:43 +00:00
|
|
|
|
|
|
|
usb: musb@1f8e3000 {
|
|
|
|
compatible = "microchip,pic32mzda-usb";
|
|
|
|
reg = <0x1f8e3000 0x1000>,
|
|
|
|
<0x1f884000 0x1000>;
|
|
|
|
reg-names = "mc", "control";
|
2020-09-01 04:14:56 +00:00
|
|
|
interrupt-parent = <&evic>;
|
2016-03-21 07:35:43 +00:00
|
|
|
interrupts = <132 IRQ_TYPE_EDGE_RISING>,
|
|
|
|
<133 IRQ_TYPE_LEVEL_HIGH>;
|
|
|
|
clocks = <&clock PB5CLK>;
|
|
|
|
clock-names = "usb_clk";
|
|
|
|
status = "disabled";
|
|
|
|
};
|
2016-01-28 10:00:16 +00:00
|
|
|
};
|