1cd38e3d1SHans de Goede/* 2cd38e3d1SHans de Goede * Copyright 2016 Hans de Goede <hdegoede@redhat.com> 3cd38e3d1SHans de Goede * 4cd38e3d1SHans de Goede * This file is dual-licensed: you can use it either under the terms 5cd38e3d1SHans de Goede * of the GPL or the X11 license, at your option. Note that this dual 6cd38e3d1SHans de Goede * licensing only applies to this file, and not this project as a 7cd38e3d1SHans de Goede * whole. 8cd38e3d1SHans de Goede * 9cd38e3d1SHans de Goede * a) This file is free software; you can redistribute it and/or 10cd38e3d1SHans de Goede * modify it under the terms of the GNU General Public License as 11cd38e3d1SHans de Goede * published by the Free Software Foundation; either version 2 of the 12cd38e3d1SHans de Goede * License, or (at your option) any later version. 13cd38e3d1SHans de Goede * 14cd38e3d1SHans de Goede * This file is distributed in the hope that it will be useful, 15cd38e3d1SHans de Goede * but WITHOUT ANY WARRANTY; without even the implied warranty of 16cd38e3d1SHans de Goede * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17cd38e3d1SHans de Goede * GNU General Public License for more details. 18cd38e3d1SHans de Goede * 19cd38e3d1SHans de Goede * Or, alternatively, 20cd38e3d1SHans de Goede * 21cd38e3d1SHans de Goede * b) Permission is hereby granted, free of charge, to any person 22cd38e3d1SHans de Goede * obtaining a copy of this software and associated documentation 23cd38e3d1SHans de Goede * files (the "Software"), to deal in the Software without 24cd38e3d1SHans de Goede * restriction, including without limitation the rights to use, 25cd38e3d1SHans de Goede * copy, modify, merge, publish, distribute, sublicense, and/or 26cd38e3d1SHans de Goede * sell copies of the Software, and to permit persons to whom the 27cd38e3d1SHans de Goede * Software is furnished to do so, subject to the following 28cd38e3d1SHans de Goede * conditions: 29cd38e3d1SHans de Goede * 30cd38e3d1SHans de Goede * The above copyright notice and this permission notice shall be 31cd38e3d1SHans de Goede * included in all copies or substantial portions of the Software. 32cd38e3d1SHans de Goede * 33cd38e3d1SHans de Goede * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 34cd38e3d1SHans de Goede * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 35cd38e3d1SHans de Goede * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 36cd38e3d1SHans de Goede * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 37cd38e3d1SHans de Goede * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 38cd38e3d1SHans de Goede * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 39cd38e3d1SHans de Goede * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 40cd38e3d1SHans de Goede * OTHER DEALINGS IN THE SOFTWARE. 41cd38e3d1SHans de Goede */ 42cd38e3d1SHans de Goede 43cd38e3d1SHans de Goede/dts-v1/; 44cd38e3d1SHans de Goede#include "sun8i-a23.dtsi" 45860fbdd4SHans de Goede#include "sun8i-reference-design-tablet.dtsi" 46cd38e3d1SHans de Goede 47cd38e3d1SHans de Goede/ { 48cd38e3d1SHans de Goede model = "Polaroid MID2407PXE03 tablet"; 49cd38e3d1SHans de Goede compatible = "polaroid,mid2407pxe03", "allwinner,sun8i-a23"; 50cd38e3d1SHans de Goede 51cd38e3d1SHans de Goede aliases { 52860fbdd4SHans de Goede ethernet0 = &esp8089; 53cd38e3d1SHans de Goede }; 54cd38e3d1SHans de Goede 55860fbdd4SHans de Goede wifi_pwrseq: wifi_pwrseq { 56860fbdd4SHans de Goede compatible = "mmc-pwrseq-simple"; 57cd38e3d1SHans de Goede pinctrl-names = "default"; 58860fbdd4SHans de Goede pinctrl-0 = <&wifi_pwrseq_pin_mid2407>; 59860fbdd4SHans de Goede reset-gpios = <&r_pio 0 6 GPIO_ACTIVE_LOW>; /* PL6 */ 60860fbdd4SHans de Goede /* The esp8089 needs 200 ms after driving wifi-en high */ 61860fbdd4SHans de Goede post-power-on-delay-ms = <200>; 62cd38e3d1SHans de Goede }; 63cd38e3d1SHans de Goede}; 64cd38e3d1SHans de Goede 65*9ad93c0cSJagan Teki&i2c1 { 66*9ad93c0cSJagan Teki mma7660: accelerometer@4c { 67*9ad93c0cSJagan Teki reg = <0x4c>; 68*9ad93c0cSJagan Teki compatible = "fsl,mma7660"; 69*9ad93c0cSJagan Teki }; 70cd38e3d1SHans de Goede}; 71cd38e3d1SHans de Goede 72860fbdd4SHans de Goede&mmc1 { 73cd38e3d1SHans de Goede pinctrl-names = "default"; 74860fbdd4SHans de Goede pinctrl-0 = <&mmc1_pins_a>; 75860fbdd4SHans de Goede vmmc-supply = <®_dldo1>; 76860fbdd4SHans de Goede mmc-pwrseq = <&wifi_pwrseq>; 77cd38e3d1SHans de Goede bus-width = <4>; 78860fbdd4SHans de Goede non-removable; 79cd38e3d1SHans de Goede status = "okay"; 80860fbdd4SHans de Goede 81860fbdd4SHans de Goede esp8089: sdio_wifi@1 { 82860fbdd4SHans de Goede compatible = "esp,esp8089"; 83860fbdd4SHans de Goede reg = <1>; 84860fbdd4SHans de Goede esp,crystal-26M-en = <2>; 85860fbdd4SHans de Goede }; 86cd38e3d1SHans de Goede}; 87cd38e3d1SHans de Goede 88860fbdd4SHans de Goede&mmc1_pins_a { 89*9ad93c0cSJagan Teki bias-pull-up; 90cd38e3d1SHans de Goede}; 91cd38e3d1SHans de Goede 92860fbdd4SHans de Goede&r_pio { 93860fbdd4SHans de Goede wifi_pwrseq_pin_mid2407: wifi_pwrseq_pin@0 { 94*9ad93c0cSJagan Teki pins = "PL6"; 95*9ad93c0cSJagan Teki function = "gpio_out"; 96cd38e3d1SHans de Goede }; 97cd38e3d1SHans de Goede}; 98cd38e3d1SHans de Goede 99*9ad93c0cSJagan Teki&touchscreen { 100*9ad93c0cSJagan Teki reg = <0x40>; 101*9ad93c0cSJagan Teki compatible = "silead,gsl1680"; 102*9ad93c0cSJagan Teki firmware-name = "gsl1680-polaroid-mid2407pxe03.fw"; 103*9ad93c0cSJagan Teki touchscreen-size-x = <960>; 104*9ad93c0cSJagan Teki touchscreen-size-y = <640>; 105*9ad93c0cSJagan Teki touchscreen-inverted-x; 106*9ad93c0cSJagan Teki touchscreen-inverted-y; 107*9ad93c0cSJagan Teki vddio-supply = <®_ldo_io1>; 108cd38e3d1SHans de Goede status = "okay"; 109cd38e3d1SHans de Goede}; 110