1*2b1a3321SJagan Teki/* 2*2b1a3321SJagan Teki * Copyright (C) 2017 Icenowy Zheng <icenowy@aosc.io> 3*2b1a3321SJagan Teki * Copyright (C) 2017 Jagan Teki <jteki@openedev.com> 4*2b1a3321SJagan Teki * 5*2b1a3321SJagan Teki * This file is dual-licensed: you can use it either under the terms 6*2b1a3321SJagan Teki * of the GPL or the X11 license, at your option. Note that this dual 7*2b1a3321SJagan Teki * licensing only applies to this file, and not this project as a 8*2b1a3321SJagan Teki * whole. 9*2b1a3321SJagan Teki * 10*2b1a3321SJagan Teki * a) This library is free software; you can redistribute it and/or 11*2b1a3321SJagan Teki * modify it under the terms of the GNU General Public License as 12*2b1a3321SJagan Teki * published by the Free Software Foundation; either version 2 of the 13*2b1a3321SJagan Teki * License, or (at your option) any later version. 14*2b1a3321SJagan Teki * 15*2b1a3321SJagan Teki * This library is distributed in the hope that it will be useful, 16*2b1a3321SJagan Teki * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*2b1a3321SJagan Teki * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*2b1a3321SJagan Teki * GNU General Public License for more details. 19*2b1a3321SJagan Teki * 20*2b1a3321SJagan Teki * Or, alternatively, 21*2b1a3321SJagan Teki * 22*2b1a3321SJagan Teki * b) Permission is hereby granted, free of charge, to any person 23*2b1a3321SJagan Teki * obtaining a copy of this software and associated documentation 24*2b1a3321SJagan Teki * files (the "Software"), to deal in the Software without 25*2b1a3321SJagan Teki * restriction, including without limitation the rights to use, 26*2b1a3321SJagan Teki * copy, modify, merge, publish, distribute, sublicense, and/or 27*2b1a3321SJagan Teki * sell copies of the Software, and to permit persons to whom the 28*2b1a3321SJagan Teki * Software is furnished to do so, subject to the following 29*2b1a3321SJagan Teki * conditions: 30*2b1a3321SJagan Teki * 31*2b1a3321SJagan Teki * The above copyright notice and this permission notice shall be 32*2b1a3321SJagan Teki * included in all copies or substantial portions of the Software. 33*2b1a3321SJagan Teki * 34*2b1a3321SJagan Teki * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 35*2b1a3321SJagan Teki * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 36*2b1a3321SJagan Teki * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 37*2b1a3321SJagan Teki * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 38*2b1a3321SJagan Teki * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 39*2b1a3321SJagan Teki * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 40*2b1a3321SJagan Teki * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 41*2b1a3321SJagan Teki * OTHER DEALINGS IN THE SOFTWARE. 42*2b1a3321SJagan Teki */ 43*2b1a3321SJagan Teki 44*2b1a3321SJagan Teki/dts-v1/; 45*2b1a3321SJagan Teki 46*2b1a3321SJagan Teki#include "sun50i-h5.dtsi" 47*2b1a3321SJagan Teki 48*2b1a3321SJagan Teki#include <dt-bindings/gpio/gpio.h> 49*2b1a3321SJagan Teki 50*2b1a3321SJagan Teki/ { 51*2b1a3321SJagan Teki model = "FriendlyARM NanoPi NEO 2"; 52*2b1a3321SJagan Teki compatible = "friendlyarm,nanopi-neo2", "allwinner,sun50i-h5"; 53*2b1a3321SJagan Teki 54*2b1a3321SJagan Teki aliases { 55*2b1a3321SJagan Teki serial0 = &uart0; 56*2b1a3321SJagan Teki }; 57*2b1a3321SJagan Teki 58*2b1a3321SJagan Teki chosen { 59*2b1a3321SJagan Teki stdout-path = "serial0:115200n8"; 60*2b1a3321SJagan Teki }; 61*2b1a3321SJagan Teki 62*2b1a3321SJagan Teki reg_vcc3v3: vcc3v3 { 63*2b1a3321SJagan Teki compatible = "regulator-fixed"; 64*2b1a3321SJagan Teki regulator-name = "vcc3v3"; 65*2b1a3321SJagan Teki regulator-min-microvolt = <3300000>; 66*2b1a3321SJagan Teki regulator-max-microvolt = <3300000>; 67*2b1a3321SJagan Teki }; 68*2b1a3321SJagan Teki}; 69*2b1a3321SJagan Teki 70*2b1a3321SJagan Teki&mmc0 { 71*2b1a3321SJagan Teki compatible = "allwinner,sun50i-h5-mmc", 72*2b1a3321SJagan Teki "allwinner,sun50i-a64-mmc", 73*2b1a3321SJagan Teki "allwinner,sun5i-a13-mmc"; 74*2b1a3321SJagan Teki pinctrl-names = "default"; 75*2b1a3321SJagan Teki pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin>; 76*2b1a3321SJagan Teki vmmc-supply = <®_vcc3v3>; 77*2b1a3321SJagan Teki bus-width = <4>; 78*2b1a3321SJagan Teki cd-gpios = <&pio 5 6 GPIO_ACTIVE_LOW>; /* PF6 */ 79*2b1a3321SJagan Teki status = "okay"; 80*2b1a3321SJagan Teki}; 81*2b1a3321SJagan Teki 82*2b1a3321SJagan Teki&uart0 { 83*2b1a3321SJagan Teki pinctrl-names = "default"; 84*2b1a3321SJagan Teki pinctrl-0 = <&uart0_pins_a>; 85*2b1a3321SJagan Teki status = "okay"; 86*2b1a3321SJagan Teki}; 87