1d537d289SNeil Armstrong/*
2d537d289SNeil Armstrong * Copyright (c) 2016 BayLibre, Inc.
3d537d289SNeil Armstrong * Author: Neil Armstrong <narmstrong@baylibre.com>
4d537d289SNeil Armstrong *
5d537d289SNeil Armstrong * This file is dual-licensed: you can use it either under the terms
6d537d289SNeil Armstrong * of the GPL or the X11 license, at your option. Note that this dual
7d537d289SNeil Armstrong * licensing only applies to this file, and not this project as a
8d537d289SNeil Armstrong * whole.
9d537d289SNeil Armstrong *
10d537d289SNeil Armstrong *  a) This library is free software; you can redistribute it and/or
11d537d289SNeil Armstrong *     modify it under the terms of the GNU General Public License as
12d537d289SNeil Armstrong *     published by the Free Software Foundation; either version 2 of the
13d537d289SNeil Armstrong *     License, or (at your option) any later version.
14d537d289SNeil Armstrong *
15d537d289SNeil Armstrong *     This library is distributed in the hope that it will be useful,
16d537d289SNeil Armstrong *     but WITHOUT ANY WARRANTY; without even the implied warranty of
17d537d289SNeil Armstrong *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18d537d289SNeil Armstrong *     GNU General Public License for more details.
19d537d289SNeil Armstrong *
20d537d289SNeil Armstrong * Or, alternatively,
21d537d289SNeil Armstrong *
22d537d289SNeil Armstrong *  b) Permission is hereby granted, free of charge, to any person
23d537d289SNeil Armstrong *     obtaining a copy of this software and associated documentation
24d537d289SNeil Armstrong *     files (the "Software"), to deal in the Software without
25d537d289SNeil Armstrong *     restriction, including without limitation the rights to use,
26d537d289SNeil Armstrong *     copy, modify, merge, publish, distribute, sublicense, and/or
27d537d289SNeil Armstrong *     sell copies of the Software, and to permit persons to whom the
28d537d289SNeil Armstrong *     Software is furnished to do so, subject to the following
29d537d289SNeil Armstrong *     conditions:
30d537d289SNeil Armstrong *
31d537d289SNeil Armstrong *     The above copyright notice and this permission notice shall be
32d537d289SNeil Armstrong *     included in all copies or substantial portions of the Software.
33d537d289SNeil Armstrong *
34d537d289SNeil Armstrong *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
35d537d289SNeil Armstrong *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
36d537d289SNeil Armstrong *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
37d537d289SNeil Armstrong *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
38d537d289SNeil Armstrong *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
39d537d289SNeil Armstrong *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
40d537d289SNeil Armstrong *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
41d537d289SNeil Armstrong *     OTHER DEALINGS IN THE SOFTWARE.
42d537d289SNeil Armstrong */
43d537d289SNeil Armstrong
44d537d289SNeil Armstrong/dts-v1/;
45d537d289SNeil Armstrong
46d537d289SNeil Armstrong#include "meson-gxbb-p20x.dtsi"
47d537d289SNeil Armstrong
48d537d289SNeil Armstrong/ {
49d537d289SNeil Armstrong	compatible = "wetek,hub", "amlogic,meson-gxbb";
50d537d289SNeil Armstrong	model = "WeTek Hub";
51d537d289SNeil Armstrong
52d537d289SNeil Armstrong	leds {
53d537d289SNeil Armstrong		compatible = "gpio-leds";
54d537d289SNeil Armstrong
55d537d289SNeil Armstrong		system {
56d537d289SNeil Armstrong			label = "wetek-play:system-status";
57d537d289SNeil Armstrong			gpios = <&gpio_ao GPIOAO_13 GPIO_ACTIVE_HIGH>;
58d537d289SNeil Armstrong			default-state = "on";
59d537d289SNeil Armstrong			panic-indicator;
60d537d289SNeil Armstrong		};
61d537d289SNeil Armstrong	};
62d537d289SNeil Armstrong
63d537d289SNeil Armstrong	cvbs-connector {
64d537d289SNeil Armstrong		status = "disabled";
65d537d289SNeil Armstrong	};
66d537d289SNeil Armstrong};
67be5f7befSMartin Blumenstingl
68be5f7befSMartin Blumenstingl&ethmac {
69be5f7befSMartin Blumenstingl	status = "okay";
70be5f7befSMartin Blumenstingl	pinctrl-0 = <&eth_rgmii_pins>;
71be5f7befSMartin Blumenstingl	pinctrl-names = "default";
72be5f7befSMartin Blumenstingl
73be5f7befSMartin Blumenstingl	phy-handle = <&eth_phy0>;
74be5f7befSMartin Blumenstingl	phy-mode = "rgmii";
75be5f7befSMartin Blumenstingl
76be5f7befSMartin Blumenstingl	snps,reset-gpio = <&gpio GPIOZ_14 0>;
77be5f7befSMartin Blumenstingl	snps,reset-delays-us = <0 10000 1000000>;
78be5f7befSMartin Blumenstingl	snps,reset-active-low;
79be5f7befSMartin Blumenstingl
80be5f7befSMartin Blumenstingl	mdio {
81be5f7befSMartin Blumenstingl		compatible = "snps,dwmac-mdio";
82be5f7befSMartin Blumenstingl		#address-cells = <1>;
83be5f7befSMartin Blumenstingl		#size-cells = <0>;
84be5f7befSMartin Blumenstingl
85be5f7befSMartin Blumenstingl		eth_phy0: ethernet-phy@0 {
86be5f7befSMartin Blumenstingl			/* Realtek RTL8211F (0x001cc916) */
87be5f7befSMartin Blumenstingl			reg = <0>;
88be5f7befSMartin Blumenstingl		};
89be5f7befSMartin Blumenstingl	};
90be5f7befSMartin Blumenstingl};
91