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