1/* 2 * Copyright 2015 Aleksei Mamlin 3 * Aleksei Mamlin <mamlinav@gmail.com> 4 * 5 * This file is dual-licensed: you can use it either under the terms 6 * of the GPL or the X11 license, at your option. Note that this dual 7 * licensing only applies to this file, and not this project as a 8 * whole. 9 * 10 * a) This file is free software; you can redistribute it and/or 11 * modify it under the terms of the GNU General Public License as 12 * published by the Free Software Foundation; either version 2 of the 13 * License, or (at your option) any later version. 14 * 15 * This file is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public 21 * License along with this file; if not, write to the Free 22 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, 23 * MA 02110-1301 USA 24 * 25 * Or, alternatively, 26 * 27 * b) Permission is hereby granted, free of charge, to any person 28 * obtaining a copy of this software and associated documentation 29 * files (the "Software"), to deal in the Software without 30 * restriction, including without limitation the rights to use, 31 * copy, modify, merge, publish, distribute, sublicense, and/or 32 * sell copies of the Software, and to permit persons to whom the 33 * Software is furnished to do so, subject to the following 34 * conditions: 35 * 36 * The above copyright notice and this permission notice shall be 37 * included in all copies or substantial portions of the Software. 38 * 39 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 40 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 41 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 42 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 43 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 44 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 45 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 46 * OTHER DEALINGS IN THE SOFTWARE. 47 */ 48 49/dts-v1/; 50#include "sun7i-a20.dtsi" 51#include "sunxi-common-regulators.dtsi" 52 53#include <dt-bindings/gpio/gpio.h> 54#include <dt-bindings/input/input.h> 55#include <dt-bindings/interrupt-controller/irq.h> 56 57/ { 58 model = "Wexler TAB7200"; 59 compatible = "wexler,tab7200", "allwinner,sun7i-a20"; 60 61 aliases { 62 serial0 = &uart0; 63 }; 64 65 chosen { 66 stdout-path = "serial0:115200n8"; 67 }; 68}; 69 70&cpu0 { 71 cpu-supply = <®_dcdc2>; 72}; 73 74&ehci0 { 75 status = "okay"; 76}; 77 78&ehci1 { 79 status = "okay"; 80}; 81 82&i2c0 { 83 pinctrl-names = "default"; 84 pinctrl-0 = <&i2c0_pins_a>; 85 status = "okay"; 86 87 axp209: pmic@34 { 88 reg = <0x34>; 89 interrupt-parent = <&nmi_intc>; 90 interrupts = <0 IRQ_TYPE_LEVEL_LOW>; 91 }; 92}; 93 94&i2c1 { 95 pinctrl-names = "default"; 96 pinctrl-0 = <&i2c1_pins_a>; 97 status = "okay"; 98}; 99 100&i2c2 { 101 pinctrl-names = "default"; 102 pinctrl-0 = <&i2c2_pins_a>; 103 status = "okay"; 104}; 105 106&lradc { 107 vref-supply = <®_vcc3v0>; 108 status = "okay"; 109 110 button@571 { 111 label = "Volume Up"; 112 linux,code = <KEY_VOLUMEUP>; 113 channel = <0>; 114 voltage = <571428>; 115 }; 116 117 button@761 { 118 label = "Volume Down"; 119 linux,code = <KEY_VOLUMEDOWN>; 120 channel = <0>; 121 voltage = <761904>; 122 }; 123}; 124 125&mmc0 { 126 pinctrl-names = "default"; 127 pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; 128 vmmc-supply = <®_vcc3v3>; 129 bus-width = <4>; 130 cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ 131 cd-inverted; 132 status = "okay"; 133}; 134 135&ohci0 { 136 status = "okay"; 137}; 138 139&ohci1 { 140 status = "okay"; 141}; 142 143#include "axp209.dtsi" 144 145®_dcdc2 { 146 regulator-always-on; 147 regulator-min-microvolt = <1000000>; 148 regulator-max-microvolt = <1450000>; 149 regulator-name = "vdd-cpu"; 150}; 151 152®_dcdc3 { 153 regulator-always-on; 154 regulator-min-microvolt = <1000000>; 155 regulator-max-microvolt = <1400000>; 156 regulator-name = "vdd-int-dll"; 157}; 158 159®_ldo1 { 160 regulator-name = "vdd-rtc"; 161}; 162 163®_ldo2 { 164 regulator-always-on; 165 regulator-min-microvolt = <3000000>; 166 regulator-max-microvolt = <3000000>; 167 regulator-name = "avcc"; 168}; 169 170®_usb1_vbus { 171 status = "okay"; 172}; 173 174®_usb2_vbus { 175 status = "okay"; 176}; 177 178&uart0 { 179 pinctrl-names = "default"; 180 pinctrl-0 = <&uart0_pins_a>; 181 status = "okay"; 182}; 183 184&usbphy { 185 usb1_vbus-supply = <®_usb1_vbus>; 186 usb2_vbus-supply = <®_usb2_vbus>; 187 status = "okay"; 188}; 189