180e5f83cSHans de Goede/* 280e5f83cSHans de Goede * Copyright 2015 Stefan Roese <sr@denx.de> 380e5f83cSHans de Goede * 480e5f83cSHans de Goede * This file is dual-licensed: you can use it either under the terms 580e5f83cSHans de Goede * of the GPL or the X11 license, at your option. Note that this dual 680e5f83cSHans de Goede * licensing only applies to this file, and not this project as a 780e5f83cSHans de Goede * whole. 880e5f83cSHans de Goede * 980e5f83cSHans de Goede * a) This file is free software; you can redistribute it and/or 1080e5f83cSHans de Goede * modify it under the terms of the GNU General Public License as 1180e5f83cSHans de Goede * published by the Free Software Foundation; either version 2 of the 1280e5f83cSHans de Goede * License, or (at your option) any later version. 1380e5f83cSHans de Goede * 1480e5f83cSHans de Goede * This file is distributed in the hope that it will be useful, 1580e5f83cSHans de Goede * but WITHOUT ANY WARRANTY; without even the implied warranty of 1680e5f83cSHans de Goede * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1780e5f83cSHans de Goede * GNU General Public License for more details. 1880e5f83cSHans de Goede * 1980e5f83cSHans de Goede * Or, alternatively, 2080e5f83cSHans de Goede * 2180e5f83cSHans de Goede * b) Permission is hereby granted, free of charge, to any person 2280e5f83cSHans de Goede * obtaining a copy of this software and associated documentation 2380e5f83cSHans de Goede * files (the "Software"), to deal in the Software without 2480e5f83cSHans de Goede * restriction, including without limitation the rights to use, 2580e5f83cSHans de Goede * copy, modify, merge, publish, distribute, sublicense, and/or 2680e5f83cSHans de Goede * sell copies of the Software, and to permit persons to whom the 2780e5f83cSHans de Goede * Software is furnished to do so, subject to the following 2880e5f83cSHans de Goede * conditions: 2980e5f83cSHans de Goede * 3080e5f83cSHans de Goede * The above copyright notice and this permission notice shall be 3180e5f83cSHans de Goede * included in all copies or substantial portions of the Software. 3280e5f83cSHans de Goede * 3380e5f83cSHans de Goede * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 3480e5f83cSHans de Goede * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 3580e5f83cSHans de Goede * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 3680e5f83cSHans de Goede * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 3780e5f83cSHans de Goede * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 3880e5f83cSHans de Goede * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 3980e5f83cSHans de Goede * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 4080e5f83cSHans de Goede * OTHER DEALINGS IN THE SOFTWARE. 4180e5f83cSHans de Goede */ 4280e5f83cSHans de Goede 4380e5f83cSHans de Goede/dts-v1/; 4480e5f83cSHans de Goede#include "sun7i-a20.dtsi" 4580e5f83cSHans de Goede#include "sunxi-common-regulators.dtsi" 4680e5f83cSHans de Goede 4780e5f83cSHans de Goede#include <dt-bindings/gpio/gpio.h> 4880e5f83cSHans de Goede#include <dt-bindings/interrupt-controller/irq.h> 4980e5f83cSHans de Goede 5080e5f83cSHans de Goede/ { 5180e5f83cSHans de Goede model = "ICnova-A20 SWAC"; 5280e5f83cSHans de Goede compatible = "swac,icnova-a20-swac", "incircuit,icnova-a20", "allwinner,sun7i-a20"; 5380e5f83cSHans de Goede 5480e5f83cSHans de Goede aliases { 5580e5f83cSHans de Goede serial0 = &uart0; 5680e5f83cSHans de Goede }; 5780e5f83cSHans de Goede 5880e5f83cSHans de Goede chosen { 5980e5f83cSHans de Goede stdout-path = "serial0:115200n8"; 6080e5f83cSHans de Goede }; 6180e5f83cSHans de Goede}; 6280e5f83cSHans de Goede 6380e5f83cSHans de Goede&cpu0 { 6480e5f83cSHans de Goede cpu-supply = <®_dcdc2>; 6580e5f83cSHans de Goede}; 6680e5f83cSHans de Goede 6780e5f83cSHans de Goede&ehci0 { 6880e5f83cSHans de Goede status = "okay"; 6980e5f83cSHans de Goede}; 7080e5f83cSHans de Goede 7180e5f83cSHans de Goede&ehci1 { 7280e5f83cSHans de Goede status = "okay"; 7380e5f83cSHans de Goede}; 7480e5f83cSHans de Goede 7580e5f83cSHans de Goede&gmac { 7680e5f83cSHans de Goede pinctrl-names = "default"; 7780e5f83cSHans de Goede pinctrl-0 = <&gmac_pins_mii_a>; 7880e5f83cSHans de Goede phy = <&phy1>; 7980e5f83cSHans de Goede phy-mode = "mii"; 8080e5f83cSHans de Goede status = "okay"; 8180e5f83cSHans de Goede 8280e5f83cSHans de Goede phy1: ethernet-phy@1 { 8380e5f83cSHans de Goede reg = <1>; 8480e5f83cSHans de Goede }; 8580e5f83cSHans de Goede}; 8680e5f83cSHans de Goede 8780e5f83cSHans de Goede&i2c0 { 8880e5f83cSHans de Goede pinctrl-names = "default"; 8980e5f83cSHans de Goede pinctrl-0 = <&i2c0_pins_a>; 9080e5f83cSHans de Goede status = "okay"; 9180e5f83cSHans de Goede 9280e5f83cSHans de Goede axp209: pmic@34 { 9380e5f83cSHans de Goede reg = <0x34>; 9480e5f83cSHans de Goede interrupt-parent = <&nmi_intc>; 9580e5f83cSHans de Goede interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 9680e5f83cSHans de Goede }; 9780e5f83cSHans de Goede}; 9880e5f83cSHans de Goede 9980e5f83cSHans de Goede&i2c1 { 10080e5f83cSHans de Goede pinctrl-names = "default"; 10180e5f83cSHans de Goede pinctrl-0 = <&i2c1_pins_a>; 10280e5f83cSHans de Goede status = "okay"; 10380e5f83cSHans de Goede}; 10480e5f83cSHans de Goede 10580e5f83cSHans de Goede&mmc0 { 10680e5f83cSHans de Goede pinctrl-names = "default"; 107*b9d59d08SJagan Teki pinctrl-0 = <&mmc0_pins_a>; 10880e5f83cSHans de Goede vmmc-supply = <®_vcc3v3>; 10980e5f83cSHans de Goede bus-width = <4>; 110*b9d59d08SJagan Teki cd-gpios = <&pio 8 5 GPIO_ACTIVE_LOW>; /* PI5 */ 11180e5f83cSHans de Goede status = "okay"; 11280e5f83cSHans de Goede}; 11380e5f83cSHans de Goede 11480e5f83cSHans de Goede&ohci0 { 11580e5f83cSHans de Goede status = "okay"; 11680e5f83cSHans de Goede}; 11780e5f83cSHans de Goede 11880e5f83cSHans de Goede&ohci1 { 11980e5f83cSHans de Goede status = "okay"; 12080e5f83cSHans de Goede}; 12180e5f83cSHans de Goede 12280e5f83cSHans de Goede#include "axp209.dtsi" 12380e5f83cSHans de Goede 12480e5f83cSHans de Goede®_dcdc2 { 12580e5f83cSHans de Goede regulator-always-on; 12680e5f83cSHans de Goede regulator-min-microvolt = <1000000>; 12780e5f83cSHans de Goede regulator-max-microvolt = <1400000>; 12880e5f83cSHans de Goede regulator-name = "vdd-cpu"; 12980e5f83cSHans de Goede}; 13080e5f83cSHans de Goede 13180e5f83cSHans de Goede®_dcdc3 { 13280e5f83cSHans de Goede regulator-always-on; 13380e5f83cSHans de Goede regulator-min-microvolt = <1000000>; 13480e5f83cSHans de Goede regulator-max-microvolt = <1400000>; 13580e5f83cSHans de Goede regulator-name = "vdd-int-dll"; 13680e5f83cSHans de Goede}; 13780e5f83cSHans de Goede 13880e5f83cSHans de Goede®_ldo1 { 13980e5f83cSHans de Goede regulator-name = "vdd-rtc"; 14080e5f83cSHans de Goede}; 14180e5f83cSHans de Goede 14280e5f83cSHans de Goede®_ldo2 { 14380e5f83cSHans de Goede regulator-always-on; 14480e5f83cSHans de Goede regulator-min-microvolt = <3000000>; 14580e5f83cSHans de Goede regulator-max-microvolt = <3000000>; 14680e5f83cSHans de Goede regulator-name = "avcc"; 14780e5f83cSHans de Goede}; 14880e5f83cSHans de Goede 14980e5f83cSHans de Goede®_usb1_vbus { 15080e5f83cSHans de Goede status = "okay"; 15180e5f83cSHans de Goede}; 15280e5f83cSHans de Goede 15380e5f83cSHans de Goede®_usb2_vbus { 15480e5f83cSHans de Goede status = "okay"; 15580e5f83cSHans de Goede}; 15680e5f83cSHans de Goede 15780e5f83cSHans de Goede&uart0 { 15880e5f83cSHans de Goede pinctrl-names = "default"; 15980e5f83cSHans de Goede pinctrl-0 = <&uart0_pins_a>; 16080e5f83cSHans de Goede status = "okay"; 16180e5f83cSHans de Goede}; 16280e5f83cSHans de Goede 16380e5f83cSHans de Goede&usbphy { 16480e5f83cSHans de Goede usb1_vbus-supply = <®_usb1_vbus>; 16580e5f83cSHans de Goede usb2_vbus-supply = <®_usb2_vbus>; 16680e5f83cSHans de Goede status = "okay"; 16780e5f83cSHans de Goede}; 168