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