1*9800cfceSHans de Goede/* 2*9800cfceSHans de Goede * Copyright 2014 Siarhei Siamashka <siarhei.siamashka@xxxxxxxxx> 3*9800cfceSHans de Goede * 4*9800cfceSHans de Goede * This file is dual-licensed: you can use it either under the terms 5*9800cfceSHans de Goede * of the GPL or the X11 license, at your option. Note that this dual 6*9800cfceSHans de Goede * licensing only applies to this file, and not this project as a 7*9800cfceSHans de Goede * whole. 8*9800cfceSHans de Goede * 9*9800cfceSHans de Goede * a) This library is free software; you can redistribute it and/or 10*9800cfceSHans de Goede * modify it under the terms of the GNU General Public License as 11*9800cfceSHans de Goede * published by the Free Software Foundation; either version 2 of the 12*9800cfceSHans de Goede * License, or (at your option) any later version. 13*9800cfceSHans de Goede * 14*9800cfceSHans de Goede * This library is distributed in the hope that it will be useful, 15*9800cfceSHans de Goede * but WITHOUT ANY WARRANTY; without even the implied warranty of 16*9800cfceSHans de Goede * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17*9800cfceSHans de Goede * GNU General Public License for more details. 18*9800cfceSHans de Goede * 19*9800cfceSHans de Goede * You should have received a copy of the GNU General Public 20*9800cfceSHans de Goede * License along with this library; if not, write to the Free 21*9800cfceSHans de Goede * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, 22*9800cfceSHans de Goede * MA 02110-1301 USA 23*9800cfceSHans de Goede * 24*9800cfceSHans de Goede * Or, alternatively, 25*9800cfceSHans de Goede * 26*9800cfceSHans de Goede * b) Permission is hereby granted, free of charge, to any person 27*9800cfceSHans de Goede * obtaining a copy of this software and associated documentation 28*9800cfceSHans de Goede * files (the "Software"), to deal in the Software without 29*9800cfceSHans de Goede * restriction, including without limitation the rights to use, 30*9800cfceSHans de Goede * copy, modify, merge, publish, distribute, sublicense, and/or 31*9800cfceSHans de Goede * sell copies of the Software, and to permit persons to whom the 32*9800cfceSHans de Goede * Software is furnished to do so, subject to the following 33*9800cfceSHans de Goede * conditions: 34*9800cfceSHans de Goede * 35*9800cfceSHans de Goede * The above copyright notice and this permission notice shall be 36*9800cfceSHans de Goede * included in all copies or substantial portions of the Software. 37*9800cfceSHans de Goede * 38*9800cfceSHans de Goede * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 39*9800cfceSHans de Goede * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 40*9800cfceSHans de Goede * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 41*9800cfceSHans de Goede * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 42*9800cfceSHans de Goede * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 43*9800cfceSHans de Goede * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 44*9800cfceSHans de Goede * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 45*9800cfceSHans de Goede * OTHER DEALINGS IN THE SOFTWARE. 46*9800cfceSHans de Goede */ 47*9800cfceSHans de Goede 48*9800cfceSHans de Goede/dts-v1/; 49*9800cfceSHans de Goede#include "sun7i-a20.dtsi" 50*9800cfceSHans de Goede#include "sunxi-common-regulators.dtsi" 51*9800cfceSHans de Goede 52*9800cfceSHans de Goede/ { 53*9800cfceSHans de Goede model = "MSI Primo73 tablet"; 54*9800cfceSHans de Goede compatible = "msi,primo73", "allwinner,sun7i-a20"; 55*9800cfceSHans de Goede 56*9800cfceSHans de Goede aliases { 57*9800cfceSHans de Goede serial0 = &uart0; 58*9800cfceSHans de Goede }; 59*9800cfceSHans de Goede 60*9800cfceSHans de Goede chosen { 61*9800cfceSHans de Goede stdout-path = "serial0:115200n8"; 62*9800cfceSHans de Goede }; 63*9800cfceSHans de Goede 64*9800cfceSHans de Goede soc@01c00000 { 65*9800cfceSHans de Goede mmc0: mmc@01c0f000 { 66*9800cfceSHans de Goede pinctrl-names = "default"; 67*9800cfceSHans de Goede pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_reference_design>; 68*9800cfceSHans de Goede vmmc-supply = <®_vcc3v3>; 69*9800cfceSHans de Goede bus-width = <4>; 70*9800cfceSHans de Goede cd-gpios = <&pio 7 1 0>; /* PH1 */ 71*9800cfceSHans de Goede cd-inverted; 72*9800cfceSHans de Goede status = "okay"; 73*9800cfceSHans de Goede }; 74*9800cfceSHans de Goede 75*9800cfceSHans de Goede usbphy: phy@01c13400 { 76*9800cfceSHans de Goede usb2_vbus-supply = <®_usb2_vbus>; 77*9800cfceSHans de Goede status = "okay"; 78*9800cfceSHans de Goede }; 79*9800cfceSHans de Goede 80*9800cfceSHans de Goede ehci1: usb@01c1c000 { 81*9800cfceSHans de Goede /* rtl8188etv wifi is connected here */ 82*9800cfceSHans de Goede status = "okay"; 83*9800cfceSHans de Goede }; 84*9800cfceSHans de Goede 85*9800cfceSHans de Goede pinctrl@01c20800 { 86*9800cfceSHans de Goede usb2_vbus_pin_a: usb2_vbus_pin@0 { 87*9800cfceSHans de Goede allwinner,pins = "PH12"; 88*9800cfceSHans de Goede }; 89*9800cfceSHans de Goede }; 90*9800cfceSHans de Goede 91*9800cfceSHans de Goede uart0: serial@01c28000 { 92*9800cfceSHans de Goede pinctrl-names = "default"; 93*9800cfceSHans de Goede pinctrl-0 = <&uart0_pins_a>; 94*9800cfceSHans de Goede status = "okay"; 95*9800cfceSHans de Goede }; 96*9800cfceSHans de Goede }; 97*9800cfceSHans de Goede 98*9800cfceSHans de Goede reg_usb2_vbus: usb2-vbus { 99*9800cfceSHans de Goede gpio = <&pio 7 12 0>; /* PH12 */ 100*9800cfceSHans de Goede status = "okay"; 101*9800cfceSHans de Goede }; 102*9800cfceSHans de Goede}; 103