xref: /linux/arch/mips/boot/dts/pic32/pic32mzda_sk.dts (revision d2912cb15bdda8ba4a5dd73396ad62641af2f520)
1*d2912cb1SThomas Gleixner// SPDX-License-Identifier: GPL-2.0-only
2842b6b16SJoshua Henderson/*
3842b6b16SJoshua Henderson * Copyright (C) 2015 Microchip Technology Inc.  All rights reserved.
4842b6b16SJoshua Henderson */
5842b6b16SJoshua Henderson
6842b6b16SJoshua Henderson/dts-v1/;
7842b6b16SJoshua Henderson
8842b6b16SJoshua Henderson#include <dt-bindings/gpio/gpio.h>
9842b6b16SJoshua Henderson#include <dt-bindings/interrupt-controller/irq.h>
10842b6b16SJoshua Henderson
11842b6b16SJoshua Henderson#include "pic32mzda.dtsi"
12842b6b16SJoshua Henderson
13842b6b16SJoshua Henderson/ {
14842b6b16SJoshua Henderson	compatible = "microchip,pic32mzda-sk", "microchip,pic32mzda";
15842b6b16SJoshua Henderson	model = "Microchip PIC32MZDA Starter Kit";
16842b6b16SJoshua Henderson
17842b6b16SJoshua Henderson	memory {
18842b6b16SJoshua Henderson		device_type = "memory";
19842b6b16SJoshua Henderson		reg = <0x08000000 0x08000000>;
20842b6b16SJoshua Henderson	};
21842b6b16SJoshua Henderson
22842b6b16SJoshua Henderson	chosen {
23842b6b16SJoshua Henderson		bootargs = "earlyprintk=ttyPIC1,115200n8r console=ttyPIC1,115200n8";
24842b6b16SJoshua Henderson	};
25842b6b16SJoshua Henderson
26842b6b16SJoshua Henderson	leds0 {
27842b6b16SJoshua Henderson		compatible = "gpio-leds";
28842b6b16SJoshua Henderson		pinctrl-names = "default";
29842b6b16SJoshua Henderson		pinctrl-0 = <&user_leds_s0>;
30842b6b16SJoshua Henderson
31842b6b16SJoshua Henderson		led@1 {
32842b6b16SJoshua Henderson			label = "pic32mzda_sk:red:led1";
33842b6b16SJoshua Henderson			gpios = <&gpio7 0 GPIO_ACTIVE_HIGH>;
34842b6b16SJoshua Henderson			linux,default-trigger = "heartbeat";
35842b6b16SJoshua Henderson		};
36842b6b16SJoshua Henderson
37842b6b16SJoshua Henderson		led@2 {
38842b6b16SJoshua Henderson			label = "pic32mzda_sk:yellow:led2";
39842b6b16SJoshua Henderson			gpios = <&gpio7 1 GPIO_ACTIVE_HIGH>;
40842b6b16SJoshua Henderson			linux,default-trigger = "mmc0";
41842b6b16SJoshua Henderson		};
42842b6b16SJoshua Henderson
43842b6b16SJoshua Henderson		led@3 {
44842b6b16SJoshua Henderson			label = "pic32mzda_sk:green:led3";
45842b6b16SJoshua Henderson			gpios = <&gpio7 2 GPIO_ACTIVE_HIGH>;
46842b6b16SJoshua Henderson			default-state = "on";
47842b6b16SJoshua Henderson		};
48842b6b16SJoshua Henderson	};
49842b6b16SJoshua Henderson
50842b6b16SJoshua Henderson	keys0 {
51842b6b16SJoshua Henderson		compatible = "gpio-keys";
52842b6b16SJoshua Henderson		pinctrl-0 = <&user_buttons_s0>;
53842b6b16SJoshua Henderson		pinctrl-names = "default";
54842b6b16SJoshua Henderson
55842b6b16SJoshua Henderson		#address-cells = <1>;
56842b6b16SJoshua Henderson		#size-cells = <0>;
57842b6b16SJoshua Henderson
58842b6b16SJoshua Henderson		button@sw1 {
59842b6b16SJoshua Henderson			label = "ESC";
60842b6b16SJoshua Henderson			linux,code = <1>;
61842b6b16SJoshua Henderson			gpios = <&gpio1 12 0>;
62842b6b16SJoshua Henderson		};
63842b6b16SJoshua Henderson
64842b6b16SJoshua Henderson		button@sw2 {
65842b6b16SJoshua Henderson			label = "Home";
66842b6b16SJoshua Henderson			linux,code = <102>;
67842b6b16SJoshua Henderson			gpios = <&gpio1 13 0>;
68842b6b16SJoshua Henderson		};
69842b6b16SJoshua Henderson
70842b6b16SJoshua Henderson		button@sw3 {
71842b6b16SJoshua Henderson			label = "Menu";
72842b6b16SJoshua Henderson			linux,code = <139>;
73842b6b16SJoshua Henderson			gpios = <&gpio1 14 0>;
74842b6b16SJoshua Henderson		};
75842b6b16SJoshua Henderson	};
76842b6b16SJoshua Henderson};
77842b6b16SJoshua Henderson
78842b6b16SJoshua Henderson&uart2 {
79842b6b16SJoshua Henderson	pinctrl-names = "default";
80842b6b16SJoshua Henderson	pinctrl-0 = <&pinctrl_uart2>;
81842b6b16SJoshua Henderson	status = "okay";
82842b6b16SJoshua Henderson};
83842b6b16SJoshua Henderson
84842b6b16SJoshua Henderson&uart4 {
85842b6b16SJoshua Henderson	pinctrl-names = "default";
86842b6b16SJoshua Henderson	pinctrl-0 = <&pinctrl_uart4>;
87842b6b16SJoshua Henderson	status = "okay";
88842b6b16SJoshua Henderson};
89842b6b16SJoshua Henderson
90842b6b16SJoshua Henderson&sdhci {
91842b6b16SJoshua Henderson	pinctrl-names = "default";
92842b6b16SJoshua Henderson	pinctrl-0 = <&pinctrl_sdhc1>;
93842b6b16SJoshua Henderson	status = "okay";
949125f19bSPurna Chandra Mandal	assigned-clocks = <&rootclk REF2CLK>, <&rootclk REF4CLK>,
959125f19bSPurna Chandra Mandal		<&rootclk REF5CLK>;
96842b6b16SJoshua Henderson	assigned-clock-rates = <50000000>, <25000000>, <40000000>;
97842b6b16SJoshua Henderson};
98842b6b16SJoshua Henderson
99842b6b16SJoshua Henderson&pic32_pinctrl {
100842b6b16SJoshua Henderson
101842b6b16SJoshua Henderson	pinctrl_sdhc1: sdhc1_pins0 {
102842b6b16SJoshua Henderson		pins = "A6", "D4", "G13", "G12", "G14", "A7", "A0";
103842b6b16SJoshua Henderson		microchip,digital;
104842b6b16SJoshua Henderson	};
105842b6b16SJoshua Henderson
106842b6b16SJoshua Henderson	user_leds_s0: user_leds_s0 {
107842b6b16SJoshua Henderson		pins = "H0", "H1", "H2";
108842b6b16SJoshua Henderson		output-low;
109842b6b16SJoshua Henderson		microchip,digital;
110842b6b16SJoshua Henderson	};
111842b6b16SJoshua Henderson
112842b6b16SJoshua Henderson	user_buttons_s0: user_buttons_s0 {
113842b6b16SJoshua Henderson		pins = "B12", "B13", "B14";
114842b6b16SJoshua Henderson		microchip,digital;
115842b6b16SJoshua Henderson		input-enable;
116842b6b16SJoshua Henderson		bias-pull-up;
117842b6b16SJoshua Henderson	};
118842b6b16SJoshua Henderson
119842b6b16SJoshua Henderson	pinctrl_uart2: pinctrl_uart2 {
120842b6b16SJoshua Henderson		uart2-tx {
121842b6b16SJoshua Henderson			pins = "G9";
122842b6b16SJoshua Henderson			function = "U2TX";
123842b6b16SJoshua Henderson			microchip,digital;
124842b6b16SJoshua Henderson			output-high;
125842b6b16SJoshua Henderson		};
126842b6b16SJoshua Henderson		uart2-rx {
127842b6b16SJoshua Henderson			pins = "B0";
128842b6b16SJoshua Henderson			function = "U2RX";
129842b6b16SJoshua Henderson			microchip,digital;
130842b6b16SJoshua Henderson			input-enable;
131842b6b16SJoshua Henderson		};
132842b6b16SJoshua Henderson	};
133842b6b16SJoshua Henderson
134842b6b16SJoshua Henderson	pinctrl_uart4: uart4-0 {
135842b6b16SJoshua Henderson		uart4-tx {
136842b6b16SJoshua Henderson			pins = "C3";
137842b6b16SJoshua Henderson			function = "U4TX";
138842b6b16SJoshua Henderson			microchip,digital;
139842b6b16SJoshua Henderson			output-high;
140842b6b16SJoshua Henderson		};
141842b6b16SJoshua Henderson		uart4-rx {
142842b6b16SJoshua Henderson			pins = "E8";
143842b6b16SJoshua Henderson			function = "U4RX";
144842b6b16SJoshua Henderson			microchip,digital;
145842b6b16SJoshua Henderson			input-enable;
146842b6b16SJoshua Henderson		};
147842b6b16SJoshua Henderson	};
148842b6b16SJoshua Henderson};
149