xref: /linux/scripts/dtc/include-prefixes/arm/allwinner/sun8i-h3-mapleboard-mp130.dts (revision cdd5b5a9761fd66d17586e4f4ba6588c70e640ea)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright (C) 2017 Centrum Embedded Systems, Jia-Bin Huang <jb@ces.com.tw>
4*724ba675SRob Herring * Copyright (C) 2018 Jonathan McDowell <noodles@earth.li>
5*724ba675SRob Herring */
6*724ba675SRob Herring
7*724ba675SRob Herring/dts-v1/;
8*724ba675SRob Herring#include "sun8i-h3.dtsi"
9*724ba675SRob Herring#include "sunxi-common-regulators.dtsi"
10*724ba675SRob Herring
11*724ba675SRob Herring#include <dt-bindings/gpio/gpio.h>
12*724ba675SRob Herring#include <dt-bindings/input/input.h>
13*724ba675SRob Herring
14*724ba675SRob Herring/ {
15*724ba675SRob Herring	model = "MapleBoard MP130";
16*724ba675SRob Herring	compatible = "mapleboard,mp130", "allwinner,sun8i-h3";
17*724ba675SRob Herring
18*724ba675SRob Herring	aliases {
19*724ba675SRob Herring		ethernet0 = &emac;
20*724ba675SRob Herring		serial0 = &uart0;
21*724ba675SRob Herring	};
22*724ba675SRob Herring
23*724ba675SRob Herring	chosen {
24*724ba675SRob Herring		stdout-path = "serial0:115200n8";
25*724ba675SRob Herring	};
26*724ba675SRob Herring
27*724ba675SRob Herring	leds {
28*724ba675SRob Herring		compatible = "gpio-leds";
29*724ba675SRob Herring
30*724ba675SRob Herring		pwr_led {
31*724ba675SRob Herring			label = "mp130:orange:pwr";
32*724ba675SRob Herring			gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>;
33*724ba675SRob Herring			default-state = "on";
34*724ba675SRob Herring		};
35*724ba675SRob Herring
36*724ba675SRob Herring		status_led {
37*724ba675SRob Herring			label = "mp130:orange:status";
38*724ba675SRob Herring			gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>;
39*724ba675SRob Herring		};
40*724ba675SRob Herring	};
41*724ba675SRob Herring
42*724ba675SRob Herring	gpio-keys {
43*724ba675SRob Herring		compatible = "gpio-keys";
44*724ba675SRob Herring
45*724ba675SRob Herring		key-power {
46*724ba675SRob Herring			label = "power";
47*724ba675SRob Herring			linux,code = <KEY_POWER>;
48*724ba675SRob Herring			gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>; /* PL3 */
49*724ba675SRob Herring		};
50*724ba675SRob Herring
51*724ba675SRob Herring		key-user {
52*724ba675SRob Herring			label = "user";
53*724ba675SRob Herring			linux,code = <BTN_0>;
54*724ba675SRob Herring			gpios = <&r_pio 0 4 GPIO_ACTIVE_LOW>;
55*724ba675SRob Herring		};
56*724ba675SRob Herring	};
57*724ba675SRob Herring};
58*724ba675SRob Herring
59*724ba675SRob Herring&codec {
60*724ba675SRob Herring	allwinner,audio-routing =
61*724ba675SRob Herring		"Line Out", "LINEOUT",
62*724ba675SRob Herring		"LINEIN", "Line In";
63*724ba675SRob Herring	status = "okay";
64*724ba675SRob Herring};
65*724ba675SRob Herring
66*724ba675SRob Herring&ehci1 {
67*724ba675SRob Herring	status = "okay";
68*724ba675SRob Herring};
69*724ba675SRob Herring
70*724ba675SRob Herring&ehci2 {
71*724ba675SRob Herring	status = "okay";
72*724ba675SRob Herring};
73*724ba675SRob Herring
74*724ba675SRob Herring&ehci3 {
75*724ba675SRob Herring	status = "okay";
76*724ba675SRob Herring};
77*724ba675SRob Herring
78*724ba675SRob Herring&emac {
79*724ba675SRob Herring	phy-handle = <&int_mii_phy>;
80*724ba675SRob Herring	phy-mode = "mii";
81*724ba675SRob Herring	allwinner,leds-active-low;
82*724ba675SRob Herring	status = "okay";
83*724ba675SRob Herring};
84*724ba675SRob Herring
85*724ba675SRob Herring&ir {
86*724ba675SRob Herring	pinctrl-names = "default";
87*724ba675SRob Herring	pinctrl-0 = <&r_ir_rx_pin>;
88*724ba675SRob Herring	status = "okay";
89*724ba675SRob Herring};
90*724ba675SRob Herring
91*724ba675SRob Herring&mmc0 {
92*724ba675SRob Herring	vmmc-supply = <&reg_vcc3v3>;
93*724ba675SRob Herring	bus-width = <4>;
94*724ba675SRob Herring	cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
95*724ba675SRob Herring	status = "okay";
96*724ba675SRob Herring};
97*724ba675SRob Herring
98*724ba675SRob Herring&mmc2 {
99*724ba675SRob Herring	pinctrl-names = "default";
100*724ba675SRob Herring	pinctrl-0 = <&mmc2_8bit_pins>;
101*724ba675SRob Herring	vmmc-supply = <&reg_vcc3v3>;
102*724ba675SRob Herring	bus-width = <8>;
103*724ba675SRob Herring	non-removable;
104*724ba675SRob Herring	cap-mmc-hw-reset;
105*724ba675SRob Herring	status = "okay";
106*724ba675SRob Herring};
107*724ba675SRob Herring
108*724ba675SRob Herring&ohci1 {
109*724ba675SRob Herring	status = "okay";
110*724ba675SRob Herring};
111*724ba675SRob Herring
112*724ba675SRob Herring&ohci2 {
113*724ba675SRob Herring	status = "okay";
114*724ba675SRob Herring};
115*724ba675SRob Herring
116*724ba675SRob Herring&ohci3 {
117*724ba675SRob Herring	status = "okay";
118*724ba675SRob Herring};
119*724ba675SRob Herring
120*724ba675SRob Herring&uart0 {
121*724ba675SRob Herring	pinctrl-names = "default";
122*724ba675SRob Herring	pinctrl-0 = <&uart0_pa_pins>;
123*724ba675SRob Herring	status = "okay";
124*724ba675SRob Herring};
125*724ba675SRob Herring
126*724ba675SRob Herring&uart1 {
127*724ba675SRob Herring	pinctrl-names = "default";
128*724ba675SRob Herring	pinctrl-0 = <&uart1_pins>;
129*724ba675SRob Herring	status = "disabled";
130*724ba675SRob Herring};
131*724ba675SRob Herring
132*724ba675SRob Herring&uart2 {
133*724ba675SRob Herring	pinctrl-names = "default";
134*724ba675SRob Herring	pinctrl-0 = <&uart2_pins>;
135*724ba675SRob Herring	status = "disabled";
136*724ba675SRob Herring};
137*724ba675SRob Herring
138*724ba675SRob Herring&uart3 {
139*724ba675SRob Herring	pinctrl-names = "default";
140*724ba675SRob Herring	pinctrl-0 = <&uart3_pins>;
141*724ba675SRob Herring	status = "disabled";
142*724ba675SRob Herring};
143*724ba675SRob Herring
144*724ba675SRob Herring&usb_otg {
145*724ba675SRob Herring	dr_mode = "peripheral";
146*724ba675SRob Herring	status = "okay";
147*724ba675SRob Herring};
148*724ba675SRob Herring
149*724ba675SRob Herring&usbphy {
150*724ba675SRob Herring	/* USB VBUS is always on */
151*724ba675SRob Herring	status = "okay";
152*724ba675SRob Herring};
153