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; 55226ab099SAndreas Färber serial1 = &uart1; 56226ab099SAndreas Färber serial2 = &uart2; 57226ab099SAndreas Färber serial3 = &uart3; 58226ab099SAndreas Färber serial4 = &uart4; 594e388608SAndre Przywara }; 604e388608SAndre Przywara 614e388608SAndre Przywara chosen { 624e388608SAndre Przywara stdout-path = "serial0:115200n8"; 634e388608SAndre Przywara }; 64ebe3ae29SAndre Przywara 65ebe3ae29SAndre Przywara reg_vcc3v3: vcc3v3 { 66ebe3ae29SAndre Przywara compatible = "regulator-fixed"; 67ebe3ae29SAndre Przywara regulator-name = "vcc3v3"; 68ebe3ae29SAndre Przywara regulator-min-microvolt = <3300000>; 69ebe3ae29SAndre Przywara regulator-max-microvolt = <3300000>; 70ebe3ae29SAndre Przywara }; 714e388608SAndre Przywara}; 724e388608SAndre Przywara 738543e620SIcenowy Zheng&ehci0 { 748543e620SIcenowy Zheng status = "okay"; 758543e620SIcenowy Zheng}; 768543e620SIcenowy Zheng 77d49f9dbcSIcenowy Zheng&ehci1 { 78d49f9dbcSIcenowy Zheng status = "okay"; 79d49f9dbcSIcenowy Zheng}; 80d49f9dbcSIcenowy Zheng 8197023943SCorentin Labbe&emac { 8297023943SCorentin Labbe pinctrl-names = "default"; 8397023943SCorentin Labbe pinctrl-0 = <&rmii_pins>; 8497023943SCorentin Labbe phy-mode = "rmii"; 8597023943SCorentin Labbe phy-handle = <&ext_rmii_phy1>; 8697023943SCorentin Labbe status = "okay"; 8797023943SCorentin Labbe 8897023943SCorentin Labbe}; 8997023943SCorentin Labbe 904e388608SAndre Przywara&i2c1 { 914e388608SAndre Przywara pinctrl-names = "default"; 924e388608SAndre Przywara pinctrl-0 = <&i2c1_pins>; 934e388608SAndre Przywara status = "okay"; 944e388608SAndre Przywara}; 954e388608SAndre Przywara 964e388608SAndre Przywara&i2c1_pins { 974e388608SAndre Przywara bias-pull-up; 984e388608SAndre Przywara}; 99ac93c09cSIcenowy Zheng 10097023943SCorentin Labbe&mdio { 10197023943SCorentin Labbe ext_rmii_phy1: ethernet-phy@1 { 10297023943SCorentin Labbe compatible = "ethernet-phy-ieee802.3-c22"; 10397023943SCorentin Labbe reg = <1>; 10497023943SCorentin Labbe }; 10597023943SCorentin Labbe}; 10697023943SCorentin Labbe 107ebe3ae29SAndre Przywara&mmc0 { 108ebe3ae29SAndre Przywara pinctrl-names = "default"; 109ebe3ae29SAndre Przywara pinctrl-0 = <&mmc0_pins>; 110ebe3ae29SAndre Przywara vmmc-supply = <®_vcc3v3>; 111ebe3ae29SAndre Przywara cd-gpios = <&pio 5 6 GPIO_ACTIVE_HIGH>; 112ebe3ae29SAndre Przywara cd-inverted; 113ebe3ae29SAndre Przywara disable-wp; 114ebe3ae29SAndre Przywara bus-width = <4>; 115ebe3ae29SAndre Przywara status = "okay"; 116ebe3ae29SAndre Przywara}; 117ebe3ae29SAndre Przywara 1188543e620SIcenowy Zheng&ohci0 { 1198543e620SIcenowy Zheng status = "okay"; 1208543e620SIcenowy Zheng}; 1218543e620SIcenowy Zheng 122d49f9dbcSIcenowy Zheng&ohci1 { 123d49f9dbcSIcenowy Zheng status = "okay"; 124d49f9dbcSIcenowy Zheng}; 125d49f9dbcSIcenowy Zheng 1262273aa16SAndreas Färber/* On Exp and Euler connectors */ 127ac93c09cSIcenowy Zheng&uart0 { 128ac93c09cSIcenowy Zheng pinctrl-names = "default"; 129ac93c09cSIcenowy Zheng pinctrl-0 = <&uart0_pins_a>; 130ac93c09cSIcenowy Zheng status = "okay"; 131ac93c09cSIcenowy Zheng}; 132d49f9dbcSIcenowy Zheng 1332273aa16SAndreas Färber/* On Wifi/BT connector, with RTS/CTS */ 1342273aa16SAndreas Färber&uart1 { 1352273aa16SAndreas Färber pinctrl-names = "default"; 1362273aa16SAndreas Färber pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; 1372273aa16SAndreas Färber status = "disabled"; 1382273aa16SAndreas Färber}; 1392273aa16SAndreas Färber 1402273aa16SAndreas Färber/* On Pi-2 connector */ 1412273aa16SAndreas Färber&uart2 { 1422273aa16SAndreas Färber pinctrl-names = "default"; 1432273aa16SAndreas Färber pinctrl-0 = <&uart2_pins>; 1442273aa16SAndreas Färber status = "disabled"; 1452273aa16SAndreas Färber}; 1462273aa16SAndreas Färber 1472273aa16SAndreas Färber/* On Euler connector */ 1482273aa16SAndreas Färber&uart3 { 1492273aa16SAndreas Färber pinctrl-names = "default"; 1502273aa16SAndreas Färber pinctrl-0 = <&uart3_pins>; 1512273aa16SAndreas Färber status = "disabled"; 1522273aa16SAndreas Färber}; 1532273aa16SAndreas Färber 1542273aa16SAndreas Färber/* On Euler connector, RTS/CTS optional */ 1552273aa16SAndreas Färber&uart4 { 1562273aa16SAndreas Färber pinctrl-names = "default"; 1572273aa16SAndreas Färber pinctrl-0 = <&uart4_pins>; 1582273aa16SAndreas Färber status = "disabled"; 1592273aa16SAndreas Färber}; 1602273aa16SAndreas Färber 161f57e8384SIcenowy Zheng&usb_otg { 162f57e8384SIcenowy Zheng dr_mode = "host"; 163f57e8384SIcenowy Zheng status = "okay"; 164f57e8384SIcenowy Zheng}; 165f57e8384SIcenowy Zheng 166d49f9dbcSIcenowy Zheng&usbphy { 167d49f9dbcSIcenowy Zheng status = "okay"; 168d49f9dbcSIcenowy Zheng}; 169