1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2/* 3 * DTS for Emlid Neutis N5 Dev board. 4 * 5 * Copyright (C) 2018 Aleksandr Aleksandrov <aleksandr.aleksandrov@emlid.com> 6 */ 7 8/dts-v1/; 9 10#include "sun50i-h5-emlid-neutis-n5.dtsi" 11 12/ { 13 model = "Emlid Neutis N5 Developer board"; 14 compatible = "emlid,neutis-n5-devboard", 15 "emlid,neutis-n5", 16 "allwinner,sun50i-h5"; 17 18 aliases { 19 serial0 = &uart0; 20 }; 21 22 chosen { 23 stdout-path = "serial0:115200n8"; 24 }; 25 26 connector { 27 compatible = "hdmi-connector"; 28 type = "a"; 29 30 port { 31 hdmi_con_in: endpoint { 32 remote-endpoint = <&hdmi_out_con>; 33 }; 34 }; 35 }; 36 37 reg_usb0_vbus: usb0-vbus { 38 compatible = "regulator-fixed"; 39 regulator-name = "usb0-vbus"; 40 regulator-min-microvolt = <5000000>; 41 regulator-max-microvolt = <5000000>; 42 enable-active-high; 43 gpio = <&r_pio 0 9 GPIO_ACTIVE_HIGH>; /* PL9 */ 44 status = "okay"; 45 }; 46 47 vdd_cpux: gpio-regulator { 48 compatible = "regulator-gpio"; 49 regulator-name = "vdd-cpux"; 50 regulator-type = "voltage"; 51 regulator-boot-on; 52 regulator-always-on; 53 regulator-min-microvolt = <1100000>; 54 regulator-max-microvolt = <1300000>; 55 regulator-ramp-delay = <50>; /* 4ms */ 56 gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */ 57 gpios-states = <0x1>; 58 states = <1100000 0>, <1300000 1>; 59 }; 60}; 61 62&codec { 63 allwinner,audio-routing = 64 "Line Out", "LINEOUT", 65 "LINEIN", "Line In", 66 "MIC1", "Mic", 67 "MIC2", "Mic", 68 "Mic", "MBIAS"; 69 status = "okay"; 70}; 71 72&de { 73 status = "okay"; 74}; 75 76&ehci0 { 77 status = "okay"; 78}; 79 80&ehci1 { 81 status = "okay"; 82}; 83 84&ehci2 { 85 status = "okay"; 86}; 87 88&ehci3 { 89 status = "okay"; 90}; 91 92&emac { 93 phy-handle = <&int_mii_phy>; 94 phy-mode = "mii"; 95 allwinner,leds-active-low; 96 status = "okay"; 97}; 98 99&hdmi { 100 status = "okay"; 101}; 102 103&hdmi_out { 104 hdmi_out_con: endpoint { 105 remote-endpoint = <&hdmi_con_in>; 106 }; 107}; 108 109&mmc0 { 110 vmmc-supply = <®_vcc3v3>; 111 bus-width = <4>; 112 cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ 113 status = "okay"; 114}; 115 116&ohci0 { 117 status = "okay"; 118}; 119 120&ohci1 { 121 status = "okay"; 122}; 123 124&ohci2 { 125 status = "okay"; 126}; 127 128&ohci3 { 129 status = "okay"; 130}; 131 132&uart0 { 133 pinctrl-names = "default"; 134 pinctrl-0 = <&uart0_pa_pins>; 135 status = "okay"; 136}; 137 138&usb_otg { 139 dr_mode = "otg"; 140 status = "okay"; 141}; 142 143&usbphy { 144 usb0_id_det-gpios = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */ 145 usb0_vbus-supply = <®_usb0_vbus>; 146 status = "okay"; 147}; 148