14e388608SAndre Przywara/* 24e388608SAndre Przywara * Copyright (c) 2016 ARM Ltd. 34e388608SAndre Przywara * 44e388608SAndre Przywara * This file is dual-licensed: you can use it either under the terms 54e388608SAndre Przywara * of the GPL or the X11 license, at your option. Note that this dual 64e388608SAndre Przywara * licensing only applies to this file, and not this project as a 74e388608SAndre Przywara * whole. 84e388608SAndre Przywara * 94e388608SAndre Przywara * a) This library is free software; you can redistribute it and/or 104e388608SAndre Przywara * modify it under the terms of the GNU General Public License as 114e388608SAndre Przywara * published by the Free Software Foundation; either version 2 of the 124e388608SAndre Przywara * License, or (at your option) any later version. 134e388608SAndre Przywara * 144e388608SAndre Przywara * This library is distributed in the hope that it will be useful, 154e388608SAndre Przywara * but WITHOUT ANY WARRANTY; without even the implied warranty of 164e388608SAndre Przywara * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 174e388608SAndre Przywara * GNU General Public License for more details. 184e388608SAndre Przywara * 194e388608SAndre Przywara * Or, alternatively, 204e388608SAndre Przywara * 214e388608SAndre Przywara * b) Permission is hereby granted, free of charge, to any person 224e388608SAndre Przywara * obtaining a copy of this software and associated documentation 234e388608SAndre Przywara * files (the "Software"), to deal in the Software without 244e388608SAndre Przywara * restriction, including without limitation the rights to use, 254e388608SAndre Przywara * copy, modify, merge, publish, distribute, sublicense, and/or 264e388608SAndre Przywara * sell copies of the Software, and to permit persons to whom the 274e388608SAndre Przywara * Software is furnished to do so, subject to the following 284e388608SAndre Przywara * conditions: 294e388608SAndre Przywara * 304e388608SAndre Przywara * The above copyright notice and this permission notice shall be 314e388608SAndre Przywara * included in all copies or substantial portions of the Software. 324e388608SAndre Przywara * 334e388608SAndre Przywara * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 344e388608SAndre Przywara * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 354e388608SAndre Przywara * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 364e388608SAndre Przywara * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 374e388608SAndre Przywara * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 384e388608SAndre Przywara * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 394e388608SAndre Przywara * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 404e388608SAndre Przywara * OTHER DEALINGS IN THE SOFTWARE. 414e388608SAndre Przywara */ 424e388608SAndre Przywara 434e388608SAndre Przywara/dts-v1/; 444e388608SAndre Przywara 454e388608SAndre Przywara#include "sun50i-a64.dtsi" 464e388608SAndre Przywara 47ebe3ae29SAndre Przywara#include <dt-bindings/gpio/gpio.h> 48ebe3ae29SAndre Przywara 494e388608SAndre Przywara/ { 504e388608SAndre Przywara model = "Pine64"; 514e388608SAndre Przywara compatible = "pine64,pine64", "allwinner,sun50i-a64"; 524e388608SAndre Przywara 534e388608SAndre Przywara aliases { 544e388608SAndre Przywara serial0 = &uart0; 554e388608SAndre Przywara }; 564e388608SAndre Przywara 574e388608SAndre Przywara chosen { 584e388608SAndre Przywara stdout-path = "serial0:115200n8"; 594e388608SAndre Przywara }; 60ebe3ae29SAndre Przywara 61ebe3ae29SAndre Przywara reg_vcc3v3: vcc3v3 { 62ebe3ae29SAndre Przywara compatible = "regulator-fixed"; 63ebe3ae29SAndre Przywara regulator-name = "vcc3v3"; 64ebe3ae29SAndre Przywara regulator-min-microvolt = <3300000>; 65ebe3ae29SAndre Przywara regulator-max-microvolt = <3300000>; 66ebe3ae29SAndre Przywara }; 674e388608SAndre Przywara}; 684e388608SAndre Przywara 69d49f9dbcSIcenowy Zheng&ehci1 { 70d49f9dbcSIcenowy Zheng status = "okay"; 71d49f9dbcSIcenowy Zheng}; 72d49f9dbcSIcenowy Zheng 734e388608SAndre Przywara&i2c1 { 744e388608SAndre Przywara pinctrl-names = "default"; 754e388608SAndre Przywara pinctrl-0 = <&i2c1_pins>; 764e388608SAndre Przywara status = "okay"; 774e388608SAndre Przywara}; 784e388608SAndre Przywara 794e388608SAndre Przywara&i2c1_pins { 804e388608SAndre Przywara bias-pull-up; 814e388608SAndre Przywara}; 82ac93c09cSIcenowy Zheng 83ebe3ae29SAndre Przywara&mmc0 { 84ebe3ae29SAndre Przywara pinctrl-names = "default"; 85ebe3ae29SAndre Przywara pinctrl-0 = <&mmc0_pins>; 86ebe3ae29SAndre Przywara vmmc-supply = <®_vcc3v3>; 87ebe3ae29SAndre Przywara cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; 88ebe3ae29SAndre Przywara cd-inverted; 89ebe3ae29SAndre Przywara disable-wp; 90ebe3ae29SAndre Przywara bus-width = <4>; 91ebe3ae29SAndre Przywara status = "okay"; 92ebe3ae29SAndre Przywara}; 93ebe3ae29SAndre Przywara 94d49f9dbcSIcenowy Zheng&ohci1 { 95d49f9dbcSIcenowy Zheng status = "okay"; 96d49f9dbcSIcenowy Zheng}; 97d49f9dbcSIcenowy Zheng 98ac93c09cSIcenowy Zheng&uart0 { 99ac93c09cSIcenowy Zheng pinctrl-names = "default"; 100ac93c09cSIcenowy Zheng pinctrl-0 = <&uart0_pins_a>; 101ac93c09cSIcenowy Zheng status = "okay"; 102ac93c09cSIcenowy Zheng}; 103d49f9dbcSIcenowy Zheng 104f57e8384SIcenowy Zheng&usb_otg { 105f57e8384SIcenowy Zheng dr_mode = "host"; 106f57e8384SIcenowy Zheng status = "okay"; 107f57e8384SIcenowy Zheng}; 108f57e8384SIcenowy Zheng 109d49f9dbcSIcenowy Zheng&usbphy { 110d49f9dbcSIcenowy Zheng status = "okay"; 111d49f9dbcSIcenowy Zheng}; 112