2 * Copyright (c) 2016 BayLibre, SAS.
3 * Author: Neil Armstrong <narmstrong@baylibre.com>
5 * Copyright (c) 2016 Endless Computers, Inc.
6 * Author: Carlo Caione <carlo@endlessm.com>
8 * This file is dual-licensed: you can use it either under the terms
9 * of the GPL or the X11 license, at your option. Note that this dual
10 * licensing only applies to this file, and not this project as a
13 * a) This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU General Public License as
15 * published by the Free Software Foundation; either version 2 of the
16 * License, or (at your option) any later version.
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
25 * b) Permission is hereby granted, free of charge, to any person
26 * obtaining a copy of this software and associated documentation
27 * files (the "Software"), to deal in the Software without
28 * restriction, including without limitation the rights to use,
29 * copy, modify, merge, publish, distribute, sublicense, and/or
30 * sell copies of the Software, and to permit persons to whom the
31 * Software is furnished to do so, subject to the following
34 * The above copyright notice and this permission notice shall be
35 * included in all copies or substantial portions of the Software.
37 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
38 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
39 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
40 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
41 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
42 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
43 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
44 * OTHER DEALINGS IN THE SOFTWARE.
49 #include "meson-gxm.dtsi"
52 compatible = "nexbox,a1", "amlogic,s912", "amlogic,meson-gxm";
60 stdout-path = "serial0:115200n8";
64 device_type = "memory";
65 reg = <0x0 0x0 0x0 0x80000000>;
68 vddio_boot: regulator-vddio-boot {
69 compatible = "regulator-fixed";
70 regulator-name = "VDDIO_BOOT";
71 regulator-min-microvolt = <1800000>;
72 regulator-max-microvolt = <1800000>;
75 vddao_3v3: regulator-vddao-3v3 {
76 compatible = "regulator-fixed";
77 regulator-name = "VDDAO_3V3";
78 regulator-min-microvolt = <3300000>;
79 regulator-max-microvolt = <3300000>;
82 vcc_3v3: regulator-vcc-3v3 {
83 compatible = "regulator-fixed";
84 regulator-name = "VCC_3V3";
85 regulator-min-microvolt = <3300000>;
86 regulator-max-microvolt = <3300000>;
89 emmc_pwrseq: emmc-pwrseq {
90 compatible = "mmc-pwrseq-emmc";
91 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
95 compatible = "composite-video-connector";
98 cvbs_connector_in: endpoint {
99 remote-endpoint = <&cvbs_vdac_out>;
105 compatible = "hdmi-connector";
109 hdmi_connector_in: endpoint {
110 remote-endpoint = <&hdmi_tx_tmds_out>;
118 pinctrl-0 = <&ao_cec_pins>;
119 pinctrl-names = "default";
120 hdmi-phandle = <&hdmi_tx>;
124 cvbs_vdac_out: endpoint {
125 remote-endpoint = <&cvbs_connector_in>;
132 pinctrl-0 = <ð_pins>;
133 pinctrl-names = "default";
135 /* Select external PHY by default */
136 phy-handle = <&external_phy>;
138 amlogic,tx-delay-ns = <2>;
140 snps,reset-gpio = <&gpio GPIOZ_14 0>;
141 snps,reset-delays-us = <0 10000 1000000>;
142 snps,reset-active-low;
144 /* External PHY is in RGMII */
149 external_phy: ethernet-phy@0 {
150 compatible = "ethernet-phy-id001c.c916", "ethernet-phy-ieee802.3-c22";
158 pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>;
159 pinctrl-names = "default";
163 hdmi_tx_tmds_out: endpoint {
164 remote-endpoint = <&hdmi_connector_in>;
170 pinctrl-0 = <&remote_input_ao_pins>;
171 pinctrl-names = "default";
177 pinctrl-0 = <&sdcard_pins>;
178 pinctrl-1 = <&sdcard_clk_gate_pins>;
179 pinctrl-names = "default", "clk-gate";
183 max-frequency = <100000000>;
186 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>;
189 vmmc-supply = <&vddao_3v3>;
190 vqmmc-supply = <&vddio_boot>;
196 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
197 pinctrl-1 = <&emmc_clk_gate_pins>;
198 pinctrl-names = "default", "clk-gate";
202 max-frequency = <200000000>;
208 mmc-pwrseq = <&emmc_pwrseq>;
209 vmmc-supply = <&vcc_3v3>;
210 vqmmc-supply = <&vddio_boot>;
215 pinctrl-0 = <&uart_ao_a_pins>;
216 pinctrl-names = "default";