1de300ea5SHans de Goede/* 2de300ea5SHans de Goede * Copyright (C) 2016 Hans de Goede <hdegoede@redhat.com> 3de300ea5SHans de Goede * 4de300ea5SHans de Goede * This file is dual-licensed: you can use it either under the terms 5de300ea5SHans de Goede * of the GPL or the X11 license, at your option. Note that this dual 6de300ea5SHans de Goede * licensing only applies to this file, and not this project as a 7de300ea5SHans de Goede * whole. 8de300ea5SHans de Goede * 9de300ea5SHans de Goede * a) This file is free software; you can redistribute it and/or 10de300ea5SHans de Goede * modify it under the terms of the GNU General Public License as 11de300ea5SHans de Goede * published by the Free Software Foundation; either version 2 of the 12de300ea5SHans de Goede * License, or (at your option) any later version. 13de300ea5SHans de Goede * 14de300ea5SHans de Goede * This file is distributed in the hope that it will be useful, 15de300ea5SHans de Goede * but WITHOUT ANY WARRANTY; without even the implied warranty of 16de300ea5SHans de Goede * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17de300ea5SHans de Goede * GNU General Public License for more details. 18de300ea5SHans de Goede * 19de300ea5SHans de Goede * Or, alternatively, 20de300ea5SHans de Goede * 21de300ea5SHans de Goede * b) Permission is hereby granted, free of charge, to any person 22de300ea5SHans de Goede * obtaining a copy of this software and associated documentation 23de300ea5SHans de Goede * files (the "Software"), to deal in the Software without 24de300ea5SHans de Goede * restriction, including without limitation the rights to use, 25de300ea5SHans de Goede * copy, modify, merge, publish, distribute, sublicense, and/or 26de300ea5SHans de Goede * sell copies of the Software, and to permit persons to whom the 27de300ea5SHans de Goede * Software is furnished to do so, subject to the following 28de300ea5SHans de Goede * conditions: 29de300ea5SHans de Goede * 30de300ea5SHans de Goede * The above copyright notice and this permission notice shall be 31de300ea5SHans de Goede * included in all copies or substantial portions of the Software. 32de300ea5SHans de Goede * 33de300ea5SHans de Goede * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 34de300ea5SHans de Goede * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 35de300ea5SHans de Goede * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 36de300ea5SHans de Goede * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 37de300ea5SHans de Goede * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 38de300ea5SHans de Goede * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 39de300ea5SHans de Goede * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 40de300ea5SHans de Goede * OTHER DEALINGS IN THE SOFTWARE. 41de300ea5SHans de Goede */ 42de300ea5SHans de Goede 43de300ea5SHans de Goede/* 44de300ea5SHans de Goede * The Orange Pi Plus 2E is an extended version of the Orange Pi PC Plus, 45de300ea5SHans de Goede * with 2G RAM and an external gbit ethernet phy. 46de300ea5SHans de Goede */ 47de300ea5SHans de Goede 48de300ea5SHans de Goede#include "sun8i-h3-orangepi-pc-plus.dts" 49de300ea5SHans de Goede 50de300ea5SHans de Goede/ { 51de300ea5SHans de Goede model = "Xunlong Orange Pi Plus 2E"; 52de300ea5SHans de Goede compatible = "xunlong,orangepi-plus2e", "allwinner,sun8i-h3"; 53de300ea5SHans de Goede 54de300ea5SHans de Goede reg_gmac_3v3: gmac-3v3 { 55de300ea5SHans de Goede compatible = "regulator-fixed"; 56de300ea5SHans de Goede regulator-name = "gmac-3v3"; 57de300ea5SHans de Goede regulator-min-microvolt = <3300000>; 58de300ea5SHans de Goede regulator-max-microvolt = <3300000>; 59de300ea5SHans de Goede startup-delay-us = <100000>; 60de300ea5SHans de Goede enable-active-high; 61*2d0c3d6bSAndre Przywara gpio = <&pio 3 6 GPIO_ACTIVE_HIGH>; /* PD6 */ 62de300ea5SHans de Goede }; 63de300ea5SHans de Goede}; 64de300ea5SHans de Goede 65de300ea5SHans de Goede&emac { 66de300ea5SHans de Goede pinctrl-names = "default"; 67de300ea5SHans de Goede pinctrl-0 = <&emac_rgmii_pins>; 68de300ea5SHans de Goede phy-supply = <®_gmac_3v3>; 69e88d2a57SAndre Przywara phy-handle = <&ext_rgmii_phy>; 70de300ea5SHans de Goede phy-mode = "rgmii"; 71*2d0c3d6bSAndre Przywara status = "okay"; 72e88d2a57SAndre Przywara}; 73e88d2a57SAndre Przywara 74e88d2a57SAndre Przywara&external_mdio { 75e88d2a57SAndre Przywara ext_rgmii_phy: ethernet-phy@1 { 76e88d2a57SAndre Przywara compatible = "ethernet-phy-ieee802.3-c22"; 77e88d2a57SAndre Przywara reg = <1>; 78e88d2a57SAndre Przywara }; 79de300ea5SHans de Goede}; 80