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