mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-12 06:12:58 +00:00
185 lines
4.1 KiB
Text
185 lines
4.1 KiB
Text
|
/*
|
||
|
* Copyright (C) 2018 Aleksandr Aleksandrov <aleksandr.aleksandrov@emlid.com>
|
||
|
*
|
||
|
* This file is dual-licensed: you can use it either under the terms
|
||
|
* of the GPL or the X11 license, at your option. Note that this dual
|
||
|
* licensing only applies to this file, and not this project as a
|
||
|
* whole.
|
||
|
*
|
||
|
* a) This library is free software; you can redistribute it and/or
|
||
|
* modify it under the terms of the GNU General Public License as
|
||
|
* published by the Free Software Foundation; either version 2 of the
|
||
|
* License, or (at your option) any later version.
|
||
|
*
|
||
|
* This library is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
* Or, alternatively,
|
||
|
*
|
||
|
* b) Permission is hereby granted, free of charge, to any person
|
||
|
* obtaining a copy of this software and associated documentation
|
||
|
* files (the "Software"), to deal in the Software without
|
||
|
* restriction, including without limitation the rights to use,
|
||
|
* copy, modify, merge, publish, distribute, sublicense, and/or
|
||
|
* sell copies of the Software, and to permit persons to whom the
|
||
|
* Software is furnished to do so, subject to the following
|
||
|
* conditions:
|
||
|
*
|
||
|
* The above copyright notice and this permission notice shall be
|
||
|
* included in all copies or substantial portions of the Software.
|
||
|
*
|
||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
|
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
||
|
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
|
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||
|
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
||
|
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
||
|
* OTHER DEALINGS IN THE SOFTWARE.
|
||
|
*/
|
||
|
|
||
|
/dts-v1/;
|
||
|
|
||
|
#include "sun50i-h5-emlid-neutis-n5.dtsi"
|
||
|
|
||
|
/ {
|
||
|
model = "Emlid Neutis N5 Developer board";
|
||
|
compatible = "emlid,emlid-neutis-n5-devboard",
|
||
|
"emlid,emlid-neutis-n5",
|
||
|
"allwinner,sun50i-h5";
|
||
|
|
||
|
aliases {
|
||
|
serial0 = &uart0;
|
||
|
};
|
||
|
|
||
|
chosen {
|
||
|
stdout-path = "serial0:115200n8";
|
||
|
};
|
||
|
|
||
|
connector {
|
||
|
compatible = "hdmi-connector";
|
||
|
type = "a";
|
||
|
|
||
|
port {
|
||
|
hdmi_con_in: endpoint {
|
||
|
remote-endpoint = <&hdmi_out_con>;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
reg_usb0_vbus: usb0-vbus {
|
||
|
compatible = "regulator-fixed";
|
||
|
regulator-name = "usb0-vbus";
|
||
|
regulator-min-microvolt = <5000000>;
|
||
|
regulator-max-microvolt = <5000000>;
|
||
|
enable-active-high;
|
||
|
gpio = <&r_pio 0 9 GPIO_ACTIVE_HIGH>; /* PL9 */
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
vdd_cpux: gpio-regulator {
|
||
|
compatible = "regulator-gpio";
|
||
|
pinctrl-names = "default";
|
||
|
regulator-name = "vdd-cpux";
|
||
|
regulator-type = "voltage";
|
||
|
regulator-boot-on;
|
||
|
regulator-always-on;
|
||
|
regulator-min-microvolt = <1100000>;
|
||
|
regulator-max-microvolt = <1300000>;
|
||
|
regulator-ramp-delay = <50>; /* 4ms */
|
||
|
gpios = <&r_pio 0 6 GPIO_ACTIVE_HIGH>; /* PL6 */
|
||
|
gpios-states = <0x1>;
|
||
|
states = <1100000 0x0
|
||
|
1300000 0x1>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&codec {
|
||
|
allwinner,audio-routing =
|
||
|
"Line Out", "LINEOUT",
|
||
|
"LINEIN", "Line In",
|
||
|
"MIC1", "Mic",
|
||
|
"MIC2", "Mic",
|
||
|
"Mic", "MBIAS";
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&de {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&ehci0 {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&ehci1 {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&ehci2 {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&ehci3 {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&ohci0 {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&ohci1 {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&ohci2 {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&ohci3 {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&emac {
|
||
|
phy-handle = <&int_mii_phy>;
|
||
|
phy-mode = "mii";
|
||
|
allwinner,leds-active-low;
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&hdmi {
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&hdmi_out {
|
||
|
hdmi_out_con: endpoint {
|
||
|
remote-endpoint = <&hdmi_con_in>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&mmc0 {
|
||
|
vmmc-supply = <®_vcc3v3>;
|
||
|
bus-width = <4>;
|
||
|
cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&uart0 {
|
||
|
pinctrl-names = "default";
|
||
|
pinctrl-0 = <&uart0_pins_a>;
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&usb_otg {
|
||
|
dr_mode = "otg";
|
||
|
status = "okay";
|
||
|
};
|
||
|
|
||
|
&usbphy {
|
||
|
usb0_id_det-gpios = <&r_pio 0 8 GPIO_ACTIVE_HIGH>; /* PL8 */
|
||
|
usb0_vbus-supply = <®_usb0_vbus>;
|
||
|
status = "okay";
|
||
|
};
|