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