0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003 * Copyright (C) 2017 Centrum Embedded Systems, Jia-Bin Huang <jb@ces.com.tw>
0004 * Copyright (C) 2018 Jonathan McDowell <noodles@earth.li>
0005 */
0006
0007 /dts-v1/;
0008 #include "sun8i-h3.dtsi"
0009 #include "sunxi-common-regulators.dtsi"
0010
0011 #include <dt-bindings/gpio/gpio.h>
0012 #include <dt-bindings/input/input.h>
0013
0014 / {
0015 model = "MapleBoard MP130";
0016 compatible = "mapleboard,mp130", "allwinner,sun8i-h3";
0017
0018 aliases {
0019 ethernet0 = &emac;
0020 serial0 = &uart0;
0021 };
0022
0023 chosen {
0024 stdout-path = "serial0:115200n8";
0025 };
0026
0027 leds {
0028 compatible = "gpio-leds";
0029
0030 pwr_led {
0031 label = "mp130:orange:pwr";
0032 gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>;
0033 default-state = "on";
0034 };
0035
0036 status_led {
0037 label = "mp130:orange:status";
0038 gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>;
0039 };
0040 };
0041
0042 gpio-keys {
0043 compatible = "gpio-keys";
0044
0045 key-power {
0046 label = "power";
0047 linux,code = <KEY_POWER>;
0048 gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>; /* PL3 */
0049 };
0050
0051 key-user {
0052 label = "user";
0053 linux,code = <BTN_0>;
0054 gpios = <&r_pio 0 4 GPIO_ACTIVE_LOW>;
0055 };
0056 };
0057 };
0058
0059 &codec {
0060 allwinner,audio-routing =
0061 "Line Out", "LINEOUT",
0062 "LINEIN", "Line In";
0063 status = "okay";
0064 };
0065
0066 &ehci1 {
0067 status = "okay";
0068 };
0069
0070 &ehci2 {
0071 status = "okay";
0072 };
0073
0074 &ehci3 {
0075 status = "okay";
0076 };
0077
0078 &emac {
0079 phy-handle = <&int_mii_phy>;
0080 phy-mode = "mii";
0081 allwinner,leds-active-low;
0082 status = "okay";
0083 };
0084
0085 &ir {
0086 pinctrl-names = "default";
0087 pinctrl-0 = <&r_ir_rx_pin>;
0088 status = "okay";
0089 };
0090
0091 &mmc0 {
0092 vmmc-supply = <®_vcc3v3>;
0093 bus-width = <4>;
0094 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
0095 status = "okay";
0096 };
0097
0098 &mmc2 {
0099 pinctrl-names = "default";
0100 pinctrl-0 = <&mmc2_8bit_pins>;
0101 vmmc-supply = <®_vcc3v3>;
0102 bus-width = <8>;
0103 non-removable;
0104 cap-mmc-hw-reset;
0105 status = "okay";
0106 };
0107
0108 &ohci1 {
0109 status = "okay";
0110 };
0111
0112 &ohci2 {
0113 status = "okay";
0114 };
0115
0116 &ohci3 {
0117 status = "okay";
0118 };
0119
0120 &uart0 {
0121 pinctrl-names = "default";
0122 pinctrl-0 = <&uart0_pa_pins>;
0123 status = "okay";
0124 };
0125
0126 &uart1 {
0127 pinctrl-names = "default";
0128 pinctrl-0 = <&uart1_pins>;
0129 status = "disabled";
0130 };
0131
0132 &uart2 {
0133 pinctrl-names = "default";
0134 pinctrl-0 = <&uart2_pins>;
0135 status = "disabled";
0136 };
0137
0138 &uart3 {
0139 pinctrl-names = "default";
0140 pinctrl-0 = <&uart3_pins>;
0141 status = "disabled";
0142 };
0143
0144 &usb_otg {
0145 dr_mode = "peripheral";
0146 status = "okay";
0147 };
0148
0149 &usbphy {
0150 /* USB VBUS is always on */
0151 status = "okay";
0152 };