treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / arm64 / boot / dts / allwinner / sun50i-h5-emlid-neutis-n5-devboard.dts
blobc924090331d0b8960b60e00c80958dcad18eb2ca
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  */
8 /dts-v1/;
10 #include "sun50i-h5-emlid-neutis-n5.dtsi"
12 / {
13         model = "Emlid Neutis N5 Developer board";
14         compatible = "emlid,neutis-n5-devboard",
15                      "emlid,neutis-n5",
16                      "allwinner,sun50i-h5";
18         aliases {
19                 serial0 = &uart0;
20         };
22         chosen {
23                 stdout-path = "serial0:115200n8";
24         };
26         connector {
27                 compatible = "hdmi-connector";
28                 type = "a";
30                 port {
31                         hdmi_con_in: endpoint {
32                                 remote-endpoint = <&hdmi_out_con>;
33                         };
34                 };
35         };
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         };
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         };
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";
72 &de {
73         status = "okay";
76 &ehci0 {
77         status = "okay";
80 &ehci1 {
81         status = "okay";
84 &ehci2 {
85         status = "okay";
88 &ehci3 {
89         status = "okay";
92 &emac {
93         phy-handle = <&int_mii_phy>;
94         phy-mode = "mii";
95         allwinner,leds-active-low;
96         status = "okay";
99 &hdmi {
100         status = "okay";
103 &hdmi_out {
104         hdmi_out_con: endpoint {
105                 remote-endpoint = <&hdmi_con_in>;
106         };
109 &mmc0 {
110         vmmc-supply = <&reg_vcc3v3>;
111         bus-width = <4>;
112         cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
113         status = "okay";
116 &ohci0 {
117         status = "okay";
120 &ohci1 {
121         status = "okay";
124 &ohci2 {
125         status = "okay";
128 &ohci3 {
129         status = "okay";
132 &uart0 {
133         pinctrl-names = "default";
134         pinctrl-0 = <&uart0_pa_pins>;
135         status = "okay";
138 &usb_otg {
139         dr_mode = "otg";
140         status = "okay";
143 &usbphy {
144         usb0_id_det-gpios = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */
145         usb0_vbus-supply = <&reg_usb0_vbus>;
146         status = "okay";