1/* 2 * Copyright (c) 2016 BayLibre, SAS. 3 * Author: Neil Armstrong <narmstrong@baylibre.com> 4 * 5 * Copyright (c) 2016 Endless Computers, Inc. 6 * Author: Carlo Caione <carlo@endlessm.com> 7 * 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 11 * whole. 12 * 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. 17 * 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. 22 * 23 * Or, alternatively, 24 * 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 32 * conditions: 33 * 34 * The above copyright notice and this permission notice shall be 35 * included in all copies or substantial portions of the Software. 36 * 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. 45 */ 46 47/dts-v1/; 48 49#include "meson-gxm.dtsi" 50 51/ { 52 compatible = "nexbox,a1", "amlogic,s912", "amlogic,meson-gxm"; 53 model = "NEXBOX A1"; 54 55 aliases { 56 serial0 = &uart_AO; 57 }; 58 59 chosen { 60 stdout-path = "serial0:115200n8"; 61 }; 62 63 memory@0 { 64 device_type = "memory"; 65 reg = <0x0 0x0 0x0 0x80000000>; 66 }; 67 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>; 73 }; 74 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>; 80 }; 81 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>; 87 }; 88 89 emmc_pwrseq: emmc-pwrseq { 90 compatible = "mmc-pwrseq-emmc"; 91 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; 92 }; 93}; 94 95/* This UART is brought out to the DB9 connector */ 96&uart_AO { 97 status = "okay"; 98 pinctrl-0 = <&uart_ao_a_pins>; 99 pinctrl-names = "default"; 100}; 101 102&ir { 103 status = "okay"; 104 pinctrl-0 = <&remote_input_ao_pins>; 105 pinctrl-names = "default"; 106}; 107 108/* SD card */ 109&sd_emmc_b { 110 status = "okay"; 111 pinctrl-0 = <&sdcard_pins>; 112 pinctrl-names = "default"; 113 114 bus-width = <4>; 115 cap-sd-highspeed; 116 max-frequency = <100000000>; 117 disable-wp; 118 119 cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>; 120 cd-inverted; 121 122 vmmc-supply = <&vddao_3v3>; 123 vqmmc-supply = <&vddio_boot>; 124}; 125 126/* eMMC */ 127&sd_emmc_c { 128 status = "okay"; 129 pinctrl-0 = <&emmc_pins>; 130 pinctrl-names = "default"; 131 132 bus-width = <8>; 133 cap-sd-highspeed; 134 cap-mmc-highspeed; 135 max-frequency = <200000000>; 136 non-removable; 137 disable-wp; 138 mmc-ddr-1_8v; 139 mmc-hs200-1_8v; 140 141 mmc-pwrseq = <&emmc_pwrseq>; 142 vmmc-supply = <&vcc_3v3>; 143 vqmmc-supply = <&vddio_boot>; 144}; 145 146ðmac { 147 status = "okay"; 148 149 pinctrl-0 = <ð_pins>; 150 pinctrl-names = "default"; 151 152 /* Select external PHY by default */ 153 phy-handle = <&external_phy>; 154 155 snps,reset-gpio = <&gpio GPIOZ_14 0>; 156 snps,reset-delays-us = <0 10000 1000000>; 157 snps,reset-active-low; 158 159 /* External PHY is in RGMII */ 160 phy-mode = "rgmii"; 161}; 162 163&external_mdio { 164 external_phy: ethernet-phy@0 { 165 compatible = "ethernet-phy-id001c.c916", "ethernet-phy-ieee802.3-c22"; 166 reg = <0>; 167 max-speed = <1000>; 168 }; 169}; 170