1*a1243f78SHans de Goede/* 2*a1243f78SHans de Goede * Copyright 2016 Hans de Goede <hdegoede@redhat.com> 3*a1243f78SHans de Goede * 4*a1243f78SHans de Goede * This file is dual-licensed: you can use it either under the terms 5*a1243f78SHans de Goede * of the GPL or the X11 license, at your option. Note that this dual 6*a1243f78SHans de Goede * licensing only applies to this file, and not this project as a 7*a1243f78SHans de Goede * whole. 8*a1243f78SHans de Goede * 9*a1243f78SHans de Goede * a) This file is free software; you can redistribute it and/or 10*a1243f78SHans de Goede * modify it under the terms of the GNU General Public License as 11*a1243f78SHans de Goede * published by the Free Software Foundation; either version 2 of the 12*a1243f78SHans de Goede * License, or (at your option) any later version. 13*a1243f78SHans de Goede * 14*a1243f78SHans de Goede * This file is distributed in the hope that it will be useful, 15*a1243f78SHans de Goede * but WITHOUT ANY WARRANTY; without even the implied warranty of 16*a1243f78SHans de Goede * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17*a1243f78SHans de Goede * GNU General Public License for more details. 18*a1243f78SHans de Goede * 19*a1243f78SHans de Goede * Or, alternatively, 20*a1243f78SHans de Goede * 21*a1243f78SHans de Goede * b) Permission is hereby granted, free of charge, to any person 22*a1243f78SHans de Goede * obtaining a copy of this software and associated documentation 23*a1243f78SHans de Goede * files (the "Software"), to deal in the Software without 24*a1243f78SHans de Goede * restriction, including without limitation the rights to use, 25*a1243f78SHans de Goede * copy, modify, merge, publish, distribute, sublicense, and/or 26*a1243f78SHans de Goede * sell copies of the Software, and to permit persons to whom the 27*a1243f78SHans de Goede * Software is furnished to do so, subject to the following 28*a1243f78SHans de Goede * conditions: 29*a1243f78SHans de Goede * 30*a1243f78SHans de Goede * The above copyright notice and this permission notice shall be 31*a1243f78SHans de Goede * included in all copies or substantial portions of the Software. 32*a1243f78SHans de Goede * 33*a1243f78SHans de Goede * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 34*a1243f78SHans de Goede * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 35*a1243f78SHans de Goede * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 36*a1243f78SHans de Goede * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 37*a1243f78SHans de Goede * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 38*a1243f78SHans de Goede * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 39*a1243f78SHans de Goede * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 40*a1243f78SHans de Goede * OTHER DEALINGS IN THE SOFTWARE. 41*a1243f78SHans de Goede */ 42*a1243f78SHans de Goede 43*a1243f78SHans de Goede/dts-v1/; 44*a1243f78SHans de Goede#include "sun6i-a31s.dtsi" 45*a1243f78SHans de Goede#include "sun6i-reference-design-tablet.dtsi" 46*a1243f78SHans de Goede 47*a1243f78SHans de Goede/ { 48*a1243f78SHans de Goede model = "iNet Q972 tablet"; 49*a1243f78SHans de Goede compatible = "inet-tek,inet-q972", "allwinner,sun6i-a31s"; 50*a1243f78SHans de Goede}; 51*a1243f78SHans de Goede 52*a1243f78SHans de Goede&ehci1 { 53*a1243f78SHans de Goede status = "okay"; 54*a1243f78SHans de Goede}; 55*a1243f78SHans de Goede 56*a1243f78SHans de Goede&i2c1 { 57*a1243f78SHans de Goede pinctrl-names = "default"; 58*a1243f78SHans de Goede pinctrl-0 = <&i2c1_pins_a>; 59*a1243f78SHans de Goede status = "okay"; 60*a1243f78SHans de Goede 61*a1243f78SHans de Goede ft5406ee8: touchscreen@38 { 62*a1243f78SHans de Goede compatible = "edt,edt-ft5406"; 63*a1243f78SHans de Goede reg = <0x38>; 64*a1243f78SHans de Goede interrupt-parent = <&pio>; 65*a1243f78SHans de Goede interrupts = <0 3 IRQ_TYPE_LEVEL_HIGH>; /* PA3 */ 66*a1243f78SHans de Goede touchscreen-size-x = <768>; 67*a1243f78SHans de Goede touchscreen-size-y = <1024>; 68*a1243f78SHans de Goede touchscreen-swapped-x-y; 69*a1243f78SHans de Goede }; 70*a1243f78SHans de Goede}; 71*a1243f78SHans de Goede 72*a1243f78SHans de Goede&lradc { 73*a1243f78SHans de Goede vref-supply = <®_aldo3>; 74*a1243f78SHans de Goede status = "okay"; 75*a1243f78SHans de Goede 76*a1243f78SHans de Goede button@200 { 77*a1243f78SHans de Goede label = "Volume Down"; 78*a1243f78SHans de Goede linux,code = <KEY_VOLUMEDOWN>; 79*a1243f78SHans de Goede channel = <0>; 80*a1243f78SHans de Goede voltage = <200000>; 81*a1243f78SHans de Goede }; 82*a1243f78SHans de Goede 83*a1243f78SHans de Goede button@900 { 84*a1243f78SHans de Goede label = "Volume Up"; 85*a1243f78SHans de Goede linux,code = <KEY_VOLUMEUP>; 86*a1243f78SHans de Goede channel = <0>; 87*a1243f78SHans de Goede voltage = <900000>; 88*a1243f78SHans de Goede }; 89*a1243f78SHans de Goede 90*a1243f78SHans de Goede button@1200 { 91*a1243f78SHans de Goede label = "Back"; 92*a1243f78SHans de Goede linux,code = <KEY_BACK>; 93*a1243f78SHans de Goede channel = <0>; 94*a1243f78SHans de Goede voltage = <1200000>; 95*a1243f78SHans de Goede }; 96*a1243f78SHans de Goede}; 97*a1243f78SHans de Goede 98*a1243f78SHans de Goede&ohci1 { 99*a1243f78SHans de Goede status = "okay"; 100*a1243f78SHans de Goede}; 101