1cc733bc9SAndreas Färber/*
2cc733bc9SAndreas Färber * Copyright (c) 2016 Andreas Färber
3cc733bc9SAndreas Färber *
4cc733bc9SAndreas Färber * This file is dual-licensed: you can use it either under the terms
5cc733bc9SAndreas Färber * of the GPL or the X11 license, at your option. Note that this dual
6cc733bc9SAndreas Färber * licensing only applies to this file, and not this project as a
7cc733bc9SAndreas Färber * whole.
8cc733bc9SAndreas Färber *
9cc733bc9SAndreas Färber *  a) This library is free software; you can redistribute it and/or
10cc733bc9SAndreas Färber *     modify it under the terms of the GNU General Public License as
11cc733bc9SAndreas Färber *     published by the Free Software Foundation; either version 2 of the
12cc733bc9SAndreas Färber *     License, or (at your option) any later version.
13cc733bc9SAndreas Färber *
14cc733bc9SAndreas Färber *     This library is distributed in the hope that it will be useful,
15cc733bc9SAndreas Färber *     but WITHOUT ANY WARRANTY; without even the implied warranty of
16cc733bc9SAndreas Färber *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17cc733bc9SAndreas Färber *     GNU General Public License for more details.
18cc733bc9SAndreas Färber *
19cc733bc9SAndreas Färber * Or, alternatively,
20cc733bc9SAndreas Färber *
21cc733bc9SAndreas Färber *  b) Permission is hereby granted, free of charge, to any person
22cc733bc9SAndreas Färber *     obtaining a copy of this software and associated documentation
23cc733bc9SAndreas Färber *     files (the "Software"), to deal in the Software without
24cc733bc9SAndreas Färber *     restriction, including without limitation the rights to use,
25cc733bc9SAndreas Färber *     copy, modify, merge, publish, distribute, sublicense, and/or
26cc733bc9SAndreas Färber *     sell copies of the Software, and to permit persons to whom the
27cc733bc9SAndreas Färber *     Software is furnished to do so, subject to the following
28cc733bc9SAndreas Färber *     conditions:
29cc733bc9SAndreas Färber *
30cc733bc9SAndreas Färber *     The above copyright notice and this permission notice shall be
31cc733bc9SAndreas Färber *     included in all copies or substantial portions of the Software.
32cc733bc9SAndreas Färber *
33cc733bc9SAndreas Färber *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
34cc733bc9SAndreas Färber *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
35cc733bc9SAndreas Färber *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
36cc733bc9SAndreas Färber *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
37cc733bc9SAndreas Färber *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
38cc733bc9SAndreas Färber *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
39cc733bc9SAndreas Färber *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
40cc733bc9SAndreas Färber *     OTHER DEALINGS IN THE SOFTWARE.
41cc733bc9SAndreas Färber */
42cc733bc9SAndreas Färber
43cc733bc9SAndreas Färber#include "meson-gxbb.dtsi"
44cc733bc9SAndreas Färber
45cc733bc9SAndreas Färber/ {
46cc733bc9SAndreas Färber	compatible = "tronsmart,vega-s95", "amlogic,meson-gxbb";
47cc733bc9SAndreas Färber
48962f271eSKevin Hilman	aliases {
49962f271eSKevin Hilman		serial0 = &uart_AO;
50962f271eSKevin Hilman	};
51962f271eSKevin Hilman
52cc733bc9SAndreas Färber	chosen {
53cc733bc9SAndreas Färber		stdout-path = "serial0:115200n8";
54cc733bc9SAndreas Färber	};
55c763eb82SMartin Blumenstingl
56c763eb82SMartin Blumenstingl	usb_vbus: regulator-usb0-vbus {
57c763eb82SMartin Blumenstingl		compatible = "regulator-fixed";
58c763eb82SMartin Blumenstingl
59c763eb82SMartin Blumenstingl		regulator-name = "USB0_VBUS";
60c763eb82SMartin Blumenstingl
61c763eb82SMartin Blumenstingl		regulator-min-microvolt = <5000000>;
62c763eb82SMartin Blumenstingl		regulator-max-microvolt = <5000000>;
63c763eb82SMartin Blumenstingl
64c763eb82SMartin Blumenstingl		gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>;
65c763eb82SMartin Blumenstingl		enable-active-high;
66c763eb82SMartin Blumenstingl	};
67c763eb82SMartin Blumenstingl
68cc733bc9SAndreas Färber};
69cc733bc9SAndreas Färber
70cc733bc9SAndreas Färber&uart_AO {
71cc733bc9SAndreas Färber	status = "okay";
72f40d437fSCarlo Caione	pinctrl-0 = <&uart_ao_a_pins>;
73f40d437fSCarlo Caione	pinctrl-names = "default";
74f40d437fSCarlo Caione
75cc733bc9SAndreas Färber};
76ae89ed79SMartin Blumenstingl
77ae89ed79SMartin Blumenstingl&ir {
78ae89ed79SMartin Blumenstingl	status = "okay";
79ae89ed79SMartin Blumenstingl	pinctrl-0 = <&remote_input_ao_pins>;
80ae89ed79SMartin Blumenstingl	pinctrl-names = "default";
81ae89ed79SMartin Blumenstingl};
82f59063aeSMartin Blumenstingl
83f59063aeSMartin Blumenstingl&ethmac {
84f59063aeSMartin Blumenstingl	status = "okay";
85f59063aeSMartin Blumenstingl	pinctrl-0 = <&eth_pins>;
86f59063aeSMartin Blumenstingl	pinctrl-names = "default";
87f59063aeSMartin Blumenstingl};
88c763eb82SMartin Blumenstingl
89c763eb82SMartin Blumenstingl&usb0_phy {
90c763eb82SMartin Blumenstingl	status = "okay";
91c763eb82SMartin Blumenstingl	phy-supply = <&usb_vbus>;
92c763eb82SMartin Blumenstingl};
93c763eb82SMartin Blumenstingl
94c763eb82SMartin Blumenstingl&usb1_phy {
95c763eb82SMartin Blumenstingl	status = "okay";
96c763eb82SMartin Blumenstingl};
97c763eb82SMartin Blumenstingl
98c763eb82SMartin Blumenstingl&usb0 {
99c763eb82SMartin Blumenstingl	status = "okay";
100c763eb82SMartin Blumenstingl};
101c763eb82SMartin Blumenstingl
102c763eb82SMartin Blumenstingl&usb1 {
103c763eb82SMartin Blumenstingl	status = "okay";
104c763eb82SMartin Blumenstingl};
105