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