1ac40004dSKevin Hilman/* 2ac40004dSKevin Hilman * Copyright (c) 2016 Andreas Färber 3ac40004dSKevin Hilman * Copyright (c) 2016 BayLibre, Inc. 4ac40004dSKevin Hilman * Author: Kevin Hilman <khilman@kernel.org> 5ac40004dSKevin Hilman * 6ac40004dSKevin Hilman * This file is dual-licensed: you can use it either under the terms 7ac40004dSKevin Hilman * of the GPL or the X11 license, at your option. Note that this dual 8ac40004dSKevin Hilman * licensing only applies to this file, and not this project as a 9ac40004dSKevin Hilman * whole. 10ac40004dSKevin Hilman * 11ac40004dSKevin Hilman * a) This library is free software; you can redistribute it and/or 12ac40004dSKevin Hilman * modify it under the terms of the GNU General Public License as 13ac40004dSKevin Hilman * published by the Free Software Foundation; either version 2 of the 14ac40004dSKevin Hilman * License, or (at your option) any later version. 15ac40004dSKevin Hilman * 16ac40004dSKevin Hilman * This library is distributed in the hope that it will be useful, 17ac40004dSKevin Hilman * but WITHOUT ANY WARRANTY; without even the implied warranty of 18ac40004dSKevin Hilman * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19ac40004dSKevin Hilman * GNU General Public License for more details. 20ac40004dSKevin Hilman * 21ac40004dSKevin Hilman * Or, alternatively, 22ac40004dSKevin Hilman * 23ac40004dSKevin Hilman * b) Permission is hereby granted, free of charge, to any person 24ac40004dSKevin Hilman * obtaining a copy of this software and associated documentation 25ac40004dSKevin Hilman * files (the "Software"), to deal in the Software without 26ac40004dSKevin Hilman * restriction, including without limitation the rights to use, 27ac40004dSKevin Hilman * copy, modify, merge, publish, distribute, sublicense, and/or 28ac40004dSKevin Hilman * sell copies of the Software, and to permit persons to whom the 29ac40004dSKevin Hilman * Software is furnished to do so, subject to the following 30ac40004dSKevin Hilman * conditions: 31ac40004dSKevin Hilman * 32ac40004dSKevin Hilman * The above copyright notice and this permission notice shall be 33ac40004dSKevin Hilman * included in all copies or substantial portions of the Software. 34ac40004dSKevin Hilman * 35ac40004dSKevin Hilman * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 36ac40004dSKevin Hilman * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 37ac40004dSKevin Hilman * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 38ac40004dSKevin Hilman * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 39ac40004dSKevin Hilman * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 40ac40004dSKevin Hilman * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 41ac40004dSKevin Hilman * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 42ac40004dSKevin Hilman * OTHER DEALINGS IN THE SOFTWARE. 43ac40004dSKevin Hilman */ 44ac40004dSKevin Hilman 45ac40004dSKevin Hilman#include "meson-gxbb.dtsi" 46ac40004dSKevin Hilman 47ac40004dSKevin Hilman/ { 48ac40004dSKevin Hilman aliases { 49ac40004dSKevin Hilman serial0 = &uart_AO; 50ac40004dSKevin Hilman }; 51ac40004dSKevin Hilman 52ac40004dSKevin Hilman chosen { 53ac40004dSKevin Hilman stdout-path = "serial0:115200n8"; 54ac40004dSKevin Hilman }; 55ac40004dSKevin Hilman 56ac40004dSKevin Hilman memory@0 { 57ac40004dSKevin Hilman device_type = "memory"; 58ac40004dSKevin Hilman reg = <0x0 0x0 0x0 0x40000000>; 59ac40004dSKevin Hilman }; 608735053dSJerome Brunet 618735053dSJerome Brunet usb_pwr: regulator-usb-pwrs { 628735053dSJerome Brunet compatible = "regulator-fixed"; 638735053dSJerome Brunet 648735053dSJerome Brunet regulator-name = "USB_PWR"; 658735053dSJerome Brunet 668735053dSJerome Brunet regulator-min-microvolt = <5000000>; 678735053dSJerome Brunet regulator-max-microvolt = <5000000>; 688735053dSJerome Brunet 698735053dSJerome Brunet /* signal name in schematic: USB_PWR_EN */ 708735053dSJerome Brunet gpio = <&gpio GPIODV_24 GPIO_ACTIVE_HIGH>; 718735053dSJerome Brunet enable-active-high; 728735053dSJerome Brunet }; 73ef8d2ffeSKevin Hilman 74ef8d2ffeSKevin Hilman vddio_card: gpio-regulator { 75ef8d2ffeSKevin Hilman compatible = "regulator-gpio"; 76ef8d2ffeSKevin Hilman 77ef8d2ffeSKevin Hilman regulator-name = "VDDIO_CARD"; 78ef8d2ffeSKevin Hilman regulator-min-microvolt = <1800000>; 79ef8d2ffeSKevin Hilman regulator-max-microvolt = <3300000>; 80ef8d2ffeSKevin Hilman 81ef8d2ffeSKevin Hilman gpios = <&gpio_ao GPIOAO_5 GPIO_ACTIVE_HIGH>; 82ef8d2ffeSKevin Hilman gpios-states = <1>; 83ef8d2ffeSKevin Hilman 84ef8d2ffeSKevin Hilman /* Based on P200 schematics, signal CARD_1.8V/3.3V_CTR */ 85ef8d2ffeSKevin Hilman states = <1800000 0 86ef8d2ffeSKevin Hilman 3300000 1>; 875149616eSJerome Brunet 885149616eSJerome Brunet regulator-settling-time-up-us = <10000>; 895149616eSJerome Brunet regulator-settling-time-down-us = <150000>; 90ef8d2ffeSKevin Hilman }; 91ef8d2ffeSKevin Hilman 92ef8d2ffeSKevin Hilman vddio_boot: regulator-vddio_boot { 93ef8d2ffeSKevin Hilman compatible = "regulator-fixed"; 94ef8d2ffeSKevin Hilman regulator-name = "VDDIO_BOOT"; 95ef8d2ffeSKevin Hilman regulator-min-microvolt = <1800000>; 96ef8d2ffeSKevin Hilman regulator-max-microvolt = <1800000>; 97ef8d2ffeSKevin Hilman }; 98ef8d2ffeSKevin Hilman 99ef8d2ffeSKevin Hilman vddao_3v3: regulator-vddao_3v3 { 100ef8d2ffeSKevin Hilman compatible = "regulator-fixed"; 101ef8d2ffeSKevin Hilman regulator-name = "VDDAO_3V3"; 102ef8d2ffeSKevin Hilman regulator-min-microvolt = <3300000>; 103ef8d2ffeSKevin Hilman regulator-max-microvolt = <3300000>; 104ef8d2ffeSKevin Hilman }; 105ef8d2ffeSKevin Hilman 106ef8d2ffeSKevin Hilman vcc_3v3: regulator-vcc_3v3 { 107ef8d2ffeSKevin Hilman compatible = "regulator-fixed"; 108ef8d2ffeSKevin Hilman regulator-name = "VCC_3V3"; 109ef8d2ffeSKevin Hilman regulator-min-microvolt = <3300000>; 110ef8d2ffeSKevin Hilman regulator-max-microvolt = <3300000>; 111ef8d2ffeSKevin Hilman }; 112ef8d2ffeSKevin Hilman 113ef8d2ffeSKevin Hilman emmc_pwrseq: emmc-pwrseq { 114ef8d2ffeSKevin Hilman compatible = "mmc-pwrseq-emmc"; 115ef8d2ffeSKevin Hilman reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>; 116ef8d2ffeSKevin Hilman }; 117caafa69dSNeil Armstrong 118caafa69dSNeil Armstrong wifi32k: wifi32k { 119caafa69dSNeil Armstrong compatible = "pwm-clock"; 120caafa69dSNeil Armstrong #clock-cells = <0>; 121caafa69dSNeil Armstrong clock-frequency = <32768>; 122caafa69dSNeil Armstrong pwms = <&pwm_ef 0 30518 0>; /* PWM_E at 32.768KHz */ 123caafa69dSNeil Armstrong }; 124ab3943feSNeil Armstrong 125ab3943feSNeil Armstrong sdio_pwrseq: sdio-pwrseq { 126ab3943feSNeil Armstrong compatible = "mmc-pwrseq-simple"; 127ab3943feSNeil Armstrong reset-gpios = <&gpio GPIOX_6 GPIO_ACTIVE_LOW>; 128ab3943feSNeil Armstrong clocks = <&wifi32k>; 129ab3943feSNeil Armstrong clock-names = "ext_clock"; 130ab3943feSNeil Armstrong }; 131fafdbdf7SNeil Armstrong 132748a421dSAndreas Färber cvbs_connector: cvbs-connector { 133fafdbdf7SNeil Armstrong compatible = "composite-video-connector"; 134fafdbdf7SNeil Armstrong 135fafdbdf7SNeil Armstrong port { 136fafdbdf7SNeil Armstrong cvbs_connector_in: endpoint { 137fafdbdf7SNeil Armstrong remote-endpoint = <&cvbs_vdac_out>; 138fafdbdf7SNeil Armstrong }; 139fafdbdf7SNeil Armstrong }; 140fafdbdf7SNeil Armstrong }; 1416939db7eSNeil Armstrong 1426939db7eSNeil Armstrong hdmi-connector { 1436939db7eSNeil Armstrong compatible = "hdmi-connector"; 1446939db7eSNeil Armstrong type = "a"; 1456939db7eSNeil Armstrong 1466939db7eSNeil Armstrong port { 1476939db7eSNeil Armstrong hdmi_connector_in: endpoint { 1486939db7eSNeil Armstrong remote-endpoint = <&hdmi_tx_tmds_out>; 1496939db7eSNeil Armstrong }; 1506939db7eSNeil Armstrong }; 1516939db7eSNeil Armstrong }; 152ac40004dSKevin Hilman}; 153ac40004dSKevin Hilman 154b16c71c9SNeil Armstrong&cec_AO { 155b16c71c9SNeil Armstrong status = "okay"; 156b16c71c9SNeil Armstrong pinctrl-0 = <&ao_cec_pins>; 157b16c71c9SNeil Armstrong pinctrl-names = "default"; 158b16c71c9SNeil Armstrong hdmi-phandle = <&hdmi_tx>; 159b16c71c9SNeil Armstrong}; 160b16c71c9SNeil Armstrong 16167fe352fSAndreas Färber&cvbs_vdac_port { 16267fe352fSAndreas Färber cvbs_vdac_out: endpoint { 16367fe352fSAndreas Färber remote-endpoint = <&cvbs_connector_in>; 16467fe352fSAndreas Färber }; 16567fe352fSAndreas Färber}; 16667fe352fSAndreas Färber 16767fe352fSAndreas Färber&hdmi_tx { 168ac40004dSKevin Hilman status = "okay"; 16967fe352fSAndreas Färber pinctrl-0 = <&hdmi_hpd_pins>, <&hdmi_i2c_pins>; 170f40d437fSCarlo Caione pinctrl-names = "default"; 171ac40004dSKevin Hilman}; 1728c5509f0SKevin Hilman 17367fe352fSAndreas Färber&hdmi_tx_tmds_port { 17467fe352fSAndreas Färber hdmi_tx_tmds_out: endpoint { 17567fe352fSAndreas Färber remote-endpoint = <&hdmi_connector_in>; 17667fe352fSAndreas Färber }; 17767fe352fSAndreas Färber}; 17867fe352fSAndreas Färber 179ae89ed79SMartin Blumenstingl&ir { 180ae89ed79SMartin Blumenstingl status = "okay"; 181ae89ed79SMartin Blumenstingl pinctrl-0 = <&remote_input_ao_pins>; 182ae89ed79SMartin Blumenstingl pinctrl-names = "default"; 183ae89ed79SMartin Blumenstingl}; 1848735053dSJerome Brunet 18567fe352fSAndreas Färber&pwm_ef { 1868735053dSJerome Brunet status = "okay"; 18767fe352fSAndreas Färber pinctrl-0 = <&pwm_e_pins>; 18867fe352fSAndreas Färber pinctrl-names = "default"; 18967fe352fSAndreas Färber clocks = <&clkc CLKID_FCLK_DIV4>; 19067fe352fSAndreas Färber clock-names = "clkin0"; 1918735053dSJerome Brunet}; 192ef8d2ffeSKevin Hilman 193ef8d2ffeSKevin Hilman/* Wireless SDIO Module */ 194ef8d2ffeSKevin Hilman&sd_emmc_a { 195ef8d2ffeSKevin Hilman status = "okay"; 196ef8d2ffeSKevin Hilman pinctrl-0 = <&sdio_pins>; 197ef8d2ffeSKevin Hilman pinctrl-names = "default"; 198ef8d2ffeSKevin Hilman #address-cells = <1>; 199ef8d2ffeSKevin Hilman #size-cells = <0>; 200ef8d2ffeSKevin Hilman 201ef8d2ffeSKevin Hilman bus-width = <4>; 202ef8d2ffeSKevin Hilman cap-sd-highspeed; 203ef8d2ffeSKevin Hilman max-frequency = <100000000>; 204ef8d2ffeSKevin Hilman 205ef8d2ffeSKevin Hilman non-removable; 206ef8d2ffeSKevin Hilman disable-wp; 207ef8d2ffeSKevin Hilman 208ab3943feSNeil Armstrong mmc-pwrseq = <&sdio_pwrseq>; 209ab3943feSNeil Armstrong 210ef8d2ffeSKevin Hilman vmmc-supply = <&vddao_3v3>; 211ef8d2ffeSKevin Hilman vqmmc-supply = <&vddio_boot>; 212ab3943feSNeil Armstrong 213e0e216ebSAndreas Färber brcmf: wifi@1 { 214ab3943feSNeil Armstrong reg = <1>; 215ab3943feSNeil Armstrong compatible = "brcm,bcm4329-fmac"; 216ab3943feSNeil Armstrong }; 217ef8d2ffeSKevin Hilman}; 218ef8d2ffeSKevin Hilman 219ef8d2ffeSKevin Hilman/* SD card */ 220ef8d2ffeSKevin Hilman&sd_emmc_b { 221ef8d2ffeSKevin Hilman status = "okay"; 222ef8d2ffeSKevin Hilman pinctrl-0 = <&sdcard_pins>; 223ef8d2ffeSKevin Hilman pinctrl-names = "default"; 224ef8d2ffeSKevin Hilman 225ef8d2ffeSKevin Hilman bus-width = <4>; 226ef8d2ffeSKevin Hilman cap-sd-highspeed; 227ef8d2ffeSKevin Hilman max-frequency = <100000000>; 228ef8d2ffeSKevin Hilman disable-wp; 229ef8d2ffeSKevin Hilman 230ef8d2ffeSKevin Hilman cd-gpios = <&gpio CARD_6 GPIO_ACTIVE_HIGH>; 231ef8d2ffeSKevin Hilman cd-inverted; 232ef8d2ffeSKevin Hilman 233ef8d2ffeSKevin Hilman vmmc-supply = <&vddao_3v3>; 234ef8d2ffeSKevin Hilman vqmmc-supply = <&vddio_card>; 235ef8d2ffeSKevin Hilman}; 236ef8d2ffeSKevin Hilman 237ef8d2ffeSKevin Hilman/* eMMC */ 238ef8d2ffeSKevin Hilman&sd_emmc_c { 239ef8d2ffeSKevin Hilman status = "okay"; 240ef8d2ffeSKevin Hilman pinctrl-0 = <&emmc_pins>; 241ef8d2ffeSKevin Hilman pinctrl-names = "default"; 242ef8d2ffeSKevin Hilman 243ef8d2ffeSKevin Hilman bus-width = <8>; 244ef8d2ffeSKevin Hilman cap-sd-highspeed; 245ef8d2ffeSKevin Hilman cap-mmc-highspeed; 246ef8d2ffeSKevin Hilman max-frequency = <200000000>; 247ef8d2ffeSKevin Hilman non-removable; 248ef8d2ffeSKevin Hilman disable-wp; 249ef8d2ffeSKevin Hilman mmc-ddr-1_8v; 250ef8d2ffeSKevin Hilman mmc-hs200-1_8v; 251ef8d2ffeSKevin Hilman 252ef8d2ffeSKevin Hilman mmc-pwrseq = <&emmc_pwrseq>; 253ef8d2ffeSKevin Hilman vmmc-supply = <&vcc_3v3>; 254ef8d2ffeSKevin Hilman vqmmc-supply = <&vddio_boot>; 255ef8d2ffeSKevin Hilman}; 256caafa69dSNeil Armstrong 25767fe352fSAndreas Färber/* This UART is brought out to the DB9 connector */ 25867fe352fSAndreas Färber&uart_AO { 259caafa69dSNeil Armstrong status = "okay"; 26067fe352fSAndreas Färber pinctrl-0 = <&uart_ao_a_pins>; 2616939db7eSNeil Armstrong pinctrl-names = "default"; 2626939db7eSNeil Armstrong}; 2636939db7eSNeil Armstrong 26467fe352fSAndreas Färber&usb0_phy { 26567fe352fSAndreas Färber status = "okay"; 26667fe352fSAndreas Färber phy-supply = <&usb_pwr>; 2676939db7eSNeil Armstrong}; 26867fe352fSAndreas Färber 26967fe352fSAndreas Färber&usb1_phy { 27067fe352fSAndreas Färber status = "okay"; 27167fe352fSAndreas Färber}; 27267fe352fSAndreas Färber 27367fe352fSAndreas Färber&usb0 { 27467fe352fSAndreas Färber status = "okay"; 27567fe352fSAndreas Färber}; 27667fe352fSAndreas Färber 27767fe352fSAndreas Färber&usb1 { 27867fe352fSAndreas Färber status = "okay"; 2796939db7eSNeil Armstrong}; 280