1724ba675SRob Herring/* 2724ba675SRob Herring * Copyright (C) 2017 Jagan Teki <jteki@openedev.com> 3724ba675SRob Herring * Copyright (C) 2018 Diego Rondini <diego.rondini@kynetics.com> 4724ba675SRob Herring * 5724ba675SRob Herring * This file is dual-licensed: you can use it either under the terms 6724ba675SRob Herring * of the GPL or the X11 license, at your option. Note that this dual 7724ba675SRob Herring * licensing only applies to this file, and not this project as a 8724ba675SRob Herring * whole. 9724ba675SRob Herring * 10724ba675SRob Herring * a) This file is free software; you can redistribute it and/or 11724ba675SRob Herring * modify it under the terms of the GNU General Public License as 12724ba675SRob Herring * published by the Free Software Foundation; either version 2 of the 13724ba675SRob Herring * License, or (at your option) any later version. 14724ba675SRob Herring * 15724ba675SRob Herring * This file is distributed in the hope that it will be useful, 16724ba675SRob Herring * but WITHOUT ANY WARRANTY; without even the implied warranty of 17724ba675SRob Herring * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18724ba675SRob Herring * GNU General Public License for more details. 19724ba675SRob Herring * 20724ba675SRob Herring * Or, alternatively, 21724ba675SRob Herring * 22724ba675SRob Herring * b) Permission is hereby granted, free of charge, to any person 23724ba675SRob Herring * obtaining a copy of this software and associated documentation 24724ba675SRob Herring * files (the "Software"), to deal in the Software without 25724ba675SRob Herring * restriction, including without limitation the rights to use, 26724ba675SRob Herring * copy, modify, merge, publish, distribute, sublicense, and/or 27724ba675SRob Herring * sell copies of the Software, and to permit persons to whom the 28724ba675SRob Herring * Software is furnished to do so, subject to the following 29724ba675SRob Herring * conditions: 30724ba675SRob Herring * 31724ba675SRob Herring * The above copyright notice and this permission notice shall be 32724ba675SRob Herring * included in all copies or substantial portions of the Software. 33724ba675SRob Herring * 34724ba675SRob Herring * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 35724ba675SRob Herring * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 36724ba675SRob Herring * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 37724ba675SRob Herring * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 38724ba675SRob Herring * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 39724ba675SRob Herring * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 40724ba675SRob Herring * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 41724ba675SRob Herring * OTHER DEALINGS IN THE SOFTWARE. 42724ba675SRob Herring */ 43724ba675SRob Herring 44724ba675SRob Herring/dts-v1/; 45724ba675SRob Herring 46724ba675SRob Herring#include "sun8i-h3.dtsi" 47724ba675SRob Herring 48724ba675SRob Herring#include <dt-bindings/gpio/gpio.h> 49724ba675SRob Herring 50724ba675SRob Herring/ { 51724ba675SRob Herring model = "OrangePi Zero Plus2 H3"; 52724ba675SRob Herring compatible = "xunlong,orangepi-zero-plus2-h3", "allwinner,sun8i-h3"; 53724ba675SRob Herring 54724ba675SRob Herring aliases { 55724ba675SRob Herring serial0 = &uart0; 56724ba675SRob Herring }; 57724ba675SRob Herring 58724ba675SRob Herring chosen { 59724ba675SRob Herring stdout-path = "serial0:115200n8"; 60724ba675SRob Herring }; 61724ba675SRob Herring 62724ba675SRob Herring connector { 63724ba675SRob Herring compatible = "hdmi-connector"; 64724ba675SRob Herring type = "a"; 65724ba675SRob Herring 66724ba675SRob Herring port { 67724ba675SRob Herring hdmi_con_in: endpoint { 68724ba675SRob Herring remote-endpoint = <&hdmi_out_con>; 69724ba675SRob Herring }; 70724ba675SRob Herring }; 71724ba675SRob Herring }; 72724ba675SRob Herring 73724ba675SRob Herring leds { 74724ba675SRob Herring compatible = "gpio-leds"; 75724ba675SRob Herring 76724ba675SRob Herring led-0 { 77724ba675SRob Herring label = "orangepi:green:pwr"; 78724ba675SRob Herring gpios = <&r_pio 0 10 GPIO_ACTIVE_HIGH>; 79724ba675SRob Herring default-state = "on"; 80724ba675SRob Herring }; 81724ba675SRob Herring 82724ba675SRob Herring led-1 { 83724ba675SRob Herring label = "orangepi:red:status"; 84724ba675SRob Herring gpios = <&pio 0 17 GPIO_ACTIVE_HIGH>; 85724ba675SRob Herring }; 86724ba675SRob Herring }; 87724ba675SRob Herring 88724ba675SRob Herring reg_vcc3v3: vcc3v3 { 89724ba675SRob Herring compatible = "regulator-fixed"; 90724ba675SRob Herring regulator-name = "vcc3v3"; 91724ba675SRob Herring regulator-min-microvolt = <3300000>; 92724ba675SRob Herring regulator-max-microvolt = <3300000>; 93724ba675SRob Herring }; 94724ba675SRob Herring 95*0f47ef3fSKrzysztof Kozlowski wifi_pwrseq: pwrseq { 96724ba675SRob Herring compatible = "mmc-pwrseq-simple"; 97724ba675SRob Herring reset-gpios = <&pio 0 9 GPIO_ACTIVE_LOW>; /* PA9 */ 98724ba675SRob Herring post-power-on-delay-ms = <200>; 99724ba675SRob Herring }; 100724ba675SRob Herring}; 101724ba675SRob Herring 102724ba675SRob Herring&de { 103724ba675SRob Herring status = "okay"; 104724ba675SRob Herring}; 105724ba675SRob Herring 106724ba675SRob Herring&ehci0 { 107724ba675SRob Herring status = "okay"; 108724ba675SRob Herring}; 109724ba675SRob Herring 110724ba675SRob Herring&hdmi { 111724ba675SRob Herring status = "okay"; 112724ba675SRob Herring}; 113724ba675SRob Herring 114724ba675SRob Herring&hdmi_out { 115724ba675SRob Herring hdmi_out_con: endpoint { 116724ba675SRob Herring remote-endpoint = <&hdmi_con_in>; 117724ba675SRob Herring }; 118724ba675SRob Herring}; 119724ba675SRob Herring 120724ba675SRob Herring&mmc0 { 121724ba675SRob Herring vmmc-supply = <®_vcc3v3>; 122724ba675SRob Herring bus-width = <4>; 123724ba675SRob Herring cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; 124724ba675SRob Herring status = "okay"; 125724ba675SRob Herring}; 126724ba675SRob Herring 127724ba675SRob Herring&mmc1 { 128724ba675SRob Herring vmmc-supply = <®_vcc3v3>; 129724ba675SRob Herring vqmmc-supply = <®_vcc3v3>; 130724ba675SRob Herring mmc-pwrseq = <&wifi_pwrseq>; 131724ba675SRob Herring bus-width = <4>; 132724ba675SRob Herring non-removable; 133724ba675SRob Herring status = "okay"; 134724ba675SRob Herring 135724ba675SRob Herring brcmf: wifi@1 { 136724ba675SRob Herring reg = <1>; 137724ba675SRob Herring compatible = "brcm,bcm4329-fmac"; 138724ba675SRob Herring interrupt-parent = <&r_pio>; 139724ba675SRob Herring interrupts = <0 7 IRQ_TYPE_LEVEL_LOW>; /* PL7 */ 140724ba675SRob Herring interrupt-names = "host-wake"; 141724ba675SRob Herring }; 142724ba675SRob Herring}; 143724ba675SRob Herring 144724ba675SRob Herring&mmc2 { 145724ba675SRob Herring pinctrl-names = "default"; 146724ba675SRob Herring pinctrl-0 = <&mmc2_8bit_pins>; 147724ba675SRob Herring vmmc-supply = <®_vcc3v3>; 148724ba675SRob Herring bus-width = <8>; 149724ba675SRob Herring non-removable; 150724ba675SRob Herring cap-mmc-hw-reset; 151724ba675SRob Herring status = "okay"; 152724ba675SRob Herring}; 153724ba675SRob Herring 154724ba675SRob Herring&ohci0 { 155724ba675SRob Herring status = "okay"; 156724ba675SRob Herring}; 157724ba675SRob Herring 158724ba675SRob Herring&uart0 { 159724ba675SRob Herring pinctrl-names = "default"; 160724ba675SRob Herring pinctrl-0 = <&uart0_pa_pins>; 161724ba675SRob Herring status = "okay"; 162724ba675SRob Herring}; 163724ba675SRob Herring 164724ba675SRob Herring&usb_otg { 165724ba675SRob Herring /* 166724ba675SRob Herring * According to schematics CN1 MicroUSB port can be used to take 167724ba675SRob Herring * external 5V to power up the board VBUS. On the contrary CN1 MicroUSB 168724ba675SRob Herring * port cannot provide power externally even if the board is powered 169724ba675SRob Herring * via GPIO pins. It thus makes sense to force peripheral mode. 170724ba675SRob Herring */ 171724ba675SRob Herring dr_mode = "peripheral"; 172724ba675SRob Herring status = "okay"; 173724ba675SRob Herring}; 174724ba675SRob Herring 175724ba675SRob Herring&usbphy { 176724ba675SRob Herring status = "okay"; 177724ba675SRob Herring}; 178