2 * Copyright (c) 2016-2017 Andreas Färber
6 * Copyright (c) 2016 BayLibre, SAS.
7 * Author: Neil Armstrong <narmstrong@baylibre.com>
9 * Copyright (c) 2016 Endless Computers, Inc.
10 * Author: Carlo Caione <carlo@endlessm.com>
12 * This file is dual-licensed: you can use it either under the terms
13 * of the GPL or the X11 license, at your option. Note that this dual
14 * licensing only applies to this file, and not this project as a
17 * a) This library is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU General Public License as
19 * published by the Free Software Foundation; either version 2 of the
20 * License, or (at your option) any later version.
22 * This library is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25 * GNU General Public License for more details.
29 * b) Permission is hereby granted, free of charge, to any person
30 * obtaining a copy of this software and associated documentation
31 * files (the "Software"), to deal in the Software without
32 * restriction, including without limitation the rights to use,
33 * copy, modify, merge, publish, distribute, sublicense, and/or
34 * sell copies of the Software, and to permit persons to whom the
35 * Software is furnished to do so, subject to the following
38 * The above copyright notice and this permission notice shall be
39 * included in all copies or substantial portions of the Software.
41 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
42 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
43 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
44 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
45 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
46 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
47 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
48 * OTHER DEALINGS IN THE SOFTWARE.
53 #include "meson-gxm.dtsi"
56 compatible = "kingnovel,r-box-pro", "amlogic,s912", "amlogic,meson-gxm";
64 stdout-path = "serial0:115200n8";
68 device_type = "memory";
69 reg = <0x0 0x0 0x0 0x80000000>; /* 2 GiB or 3 GiB */
73 compatible = "gpio-leds";
76 label = "rbox-pro:blue:on";
77 gpios = <&gpio_ao GPIOAO_9 GPIO_ACTIVE_HIGH>;
82 label = "rbox-pro:red:standby";
83 gpios = <&gpio GPIODV_28 GPIO_ACTIVE_HIGH>;
84 default-state = "off";
85 retain-state-suspended;
90 vddio_boot: regulator-vddio-boot {
91 compatible = "regulator-fixed";
92 regulator-name = "VDDIO_BOOT";
93 regulator-min-microvolt = <1800000>;
94 regulator-max-microvolt = <1800000>;
97 vddao_3v3: regulator-vddao-3v3 {
98 compatible = "regulator-fixed";
99 regulator-name = "VDDAO_3V3";
100 regulator-min-microvolt = <3300000>;
101 regulator-max-microvolt = <3300000>;
104 vcc_3v3: regulator-vcc-3v3 {
105 compatible = "regulator-fixed";
106 regulator-name = "VCC_3V3";
107 regulator-min-microvolt = <3300000>;
108 regulator-max-microvolt = <3300000>;
111 emmc_pwrseq: emmc-pwrseq {
112 compatible = "mmc-pwrseq-emmc";
113 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
117 compatible = "pwm-clock";
119 clock-frequency = <32768>;
120 pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */
123 sdio_pwrseq: sdio-pwrseq {
124 compatible = "mmc-pwrseq-simple";
125 reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>;
127 clock-names = "ext_clock";
134 pinctrl-0 = <ð_pins>;
135 pinctrl-names = "default";
137 /* Select external PHY by default */
138 phy-handle = <&external_phy>;
140 snps,reset-gpio = <&gpio GPIOZ_14 0>;
141 snps,reset-delays-us = <0 10000 1000000>;
142 snps,reset-active-low;
144 amlogic,tx-delay-ns = <2>;
146 /* External PHY is in RGMII */
151 external_phy: ethernet-phy@0 {
152 compatible = "ethernet-phy-id001c.c916", "ethernet-phy-ieee802.3-c22";
160 pinctrl-0 = <&remote_input_ao_pins>;
161 pinctrl-names = "default";
166 pinctrl-0 = <&pwm_e_pins>;
167 pinctrl-names = "default";
168 clocks = <&clkc CLKID_FCLK_DIV4>;
169 clock-names = "clkin0";
172 /* Wireless SDIO Module */
175 pinctrl-0 = <&sdio_pins>;
176 pinctrl-names = "default";
177 #address-cells = <1>;
182 max-frequency = <100000000>;
187 mmc-pwrseq = <&sdio_pwrseq>;
189 vmmc-supply = <&vddao_3v3>;
190 vqmmc-supply = <&vddio_boot>;
194 compatible = "brcm,bcm4329-fmac";
201 pinctrl-0 = <&sdcard_pins>;
202 pinctrl-names = "default";
206 max-frequency = <100000000>;
209 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
212 vmmc-supply = <&vddao_3v3>;
213 vqmmc-supply = <&vddio_boot>;
219 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
220 pinctrl-names = "default";
224 max-frequency = <200000000>;
230 mmc-pwrseq = <&emmc_pwrseq>;
231 vmmc-supply = <&vcc_3v3>;
232 vqmmc-supply = <&vddio_boot>;
237 pinctrl-0 = <&uart_ao_a_pins>;
238 pinctrl-names = "default";