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