From patchwork Tue Jun 16 19:11:09 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Karsten Merker X-Patchwork-Id: 485125 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 16C0814018C for ; Wed, 17 Jun 2015 05:12:31 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756957AbbFPTMV (ORCPT ); Tue, 16 Jun 2015 15:12:21 -0400 Received: from mout.kundenserver.de ([212.227.126.187]:54562 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756943AbbFPTMP (ORCPT ); Tue, 16 Jun 2015 15:12:15 -0400 Received: from excalibur.cnev.de ([78.34.114.70]) by mrelayeu.kundenserver.de (mreue005) with ESMTPSA (Nemesis) id 0MFOmu-1ZJBL60QJo-00EKzZ; Tue, 16 Jun 2015 21:11:48 +0200 Received: from localhost ([127.0.0.1] helo=excalibur.cnev.de) by excalibur.cnev.de with esmtp (Exim 4.84) (envelope-from ) id 1Z4wGw-0002So-TV; Tue, 16 Jun 2015 21:11:47 +0200 From: Karsten Merker To: Maxime Ripard , Siarhei Siamashka Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-sunxi@googlegroups.com, Karsten Merker Subject: [RFC PATCH V3] ARM: dts: sun6i: Add dts file for MSI Primo81 tablet Date: Tue, 16 Jun 2015 21:11:09 +0200 Message-Id: <1434481869-9432-2-git-send-email-merker@debian.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1434481869-9432-1-git-send-email-merker@debian.org> References: <20150616094026.GG11732@lukather> <1434481869-9432-1-git-send-email-merker@debian.org> In-Reply-To: <20150616094026.GG11732@lukather> References: <20150616094026.GG11732@lukather> X-Provags-ID: V03:K0:rYAKkUyfjbXEzE5jdtF4/XeFgrEtkxTi7uxiBfhuZuefdnf4KMk LcbDU/rlIyVcLUWmrgb0SBr+zOzHoXiCCoXWy3mngOsXfFTTSZVjkXfH9/PNZS+jhWsDFDj Z7HdmvFOMFWg0SJtIyu6zouAfL7gTAkuIB0p606cnz+UQwT37gI45ha6jbSjAKctNPuBgCi /9PK/QmLL34fe+FaGojTw== X-UI-Out-Filterresults: notjunk:1; V01:K0:6cePSC4FZkg=:KA2NdyWqS+TppQkvxy3d+X UPZaOoOVvolswVpcPaNcDxdKC6h9XhpDLKHlyblBaneE3VH/z8CI8GrlXjBfTYhiVjKR/wBJM jDCduaj+Qftzur2BqhGrYkPW62bLtEgtXWWj0C3meBpZDl8RHSrx7pQFusbGEOtAXLl0OG0Of K1+UIIEMEfgZV5KvmzyAjbsxMfUqmefSP7JRCKoiB4YDJMYbdoMKfnH2WDLyksuk5ffU0o0nt tyuxXSi0zeZGnf4VE866n6uYjS6lpZX9ViAmoDC7bMt92rUjTjp6r/zSJ/9r8hemGOnn9GDc2 2+9o1MtrHv0yHSnEs0jLwTRZw5RWaYw56UYaFRZ3z7dJBgRbfGlfg2JMNJWSJcindhfUzS9NW jvDoiPZimNUTR2MC2M8BNpl0Ji5tw8iWP6PNw8KRYpKy55AZJt7msxYqkey1Kd6+KRDptjJUp 1wILaFMlJqMHGySUljqNgRlCT6Rf28Jt8qPQlBuiyqfkVrmkcgS7j4qUpQoggU6KgLEuHcmHK A0bp8tgzqsRcHdW+5/yohuMKEGbybX/c37gf3CGplh/BorFPFiqoVaxx+0XyYR6HRYexWc7kY bmPky+b3DaA02EVKV52PV6UccQJeDyN9P4d9zf6ChTiOhW04V22H9jbAXJCbTh8isWwZftvY+ L0QeJ7wG0xDj00rgRFkeYvQkW Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The MSI Primo81 is an A31s based tablet, with 1G RAM, 16G NAND, 1024x768 IPS LCD display, mono speaker, 0.3 MP front camera, 2.0 MP rear camera, 3500 mAh battery, gt911 touchscreen, mma8452 accelerometer and rtl8188etv usb wifi. Has "power", "volume+" and "volume-" buttons (both volume buttons are also connected to the UBOOT_SEL pin). The external connectors are represented by MicroSD slot, MiniHDMI, MicroUSB OTG and 3.5mm headphone jack. More details are available at http://linux-sunxi.org/MSI_Primo81 This initial dts file only provides support for mmc, wifi and uart (there is no external connector for uart though). Graphics can be used via simplefb. However, without usb otg, there are no reasonable means to handle user input yet. Signed-off-by: Siarhei Siamashka Signed-off-by: Karsten Merker --- .../devicetree/bindings/vendor-prefixes.txt | 1 + arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/sun6i-a31s-primo81.dts | 94 ++++++++++++++++++++++ 3 files changed, 97 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/sun6i-a31s-primo81.dts diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 6a99dda..c415c2b 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt @@ -127,6 +127,7 @@ mitsubishi Mitsubishi Electric Corporation mosaixtech Mosaix Technologies, Inc. moxa Moxa mpl MPL AG +msi Micro-Star International Co. Ltd. mti Imagination Technologies Ltd. (formerly MIPS Technologies Inc.) mundoreader Mundo Reader S.L. murata Murata Manufacturing Co., Ltd. diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index 867e6e3..31686c7 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -552,7 +552,8 @@ dtb-$(CONFIG_MACH_SUN6I) += \ sun6i-a31-i7.dtb \ sun6i-a31-m9.dtb \ sun6i-a31-mele-a1000g-quad.dtb \ - sun6i-a31s-cs908.dtb + sun6i-a31s-cs908.dtb \ + sun6i-a31s-primo81.dtb dtb-$(CONFIG_MACH_SUN7I) += \ sun7i-a20-bananapi.dtb \ sun7i-a20-bananapro.dtb \ diff --git a/arch/arm/boot/dts/sun6i-a31s-primo81.dts b/arch/arm/boot/dts/sun6i-a31s-primo81.dts new file mode 100644 index 0000000..9c9b4bf --- /dev/null +++ b/arch/arm/boot/dts/sun6i-a31s-primo81.dts @@ -0,0 +1,94 @@ +/* + * Copyright 2014 Siarhei Siamashka + * Copyright 2015 Karsten Merker + * + * This file is dual-licensed: you can use it either under the terms + * of the GPL or the X11 license, at your option. Note that this dual + * licensing only applies to this file, and not this project as a + * whole. + * + * a) This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Or, alternatively, + * + * b) Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + */ + +/dts-v1/; +#include "sun6i-a31s.dtsi" +#include "sunxi-common-regulators.dtsi" + +/ { + model = "MSI Primo81 tablet"; + compatible = "msi,primo81", "allwinner,sun6i-a31s"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + +}; + +&ehci0 { + /* rtl8188etv wifi is connected here */ + status = "okay"; +}; + +&mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins_a>, <&mmc0_cd_pin_primo81>; + vmmc-supply = <®_vcc3v0>; + bus-width = <4>; + cd-gpios = <&pio 0 8 GPIO_ACTIVE_HIGH>; /* PA8 */ + cd-inverted; + status = "okay"; +}; + +&pio { + mmc0_cd_pin_primo81: mmc0_cd_pin@0 { + allwinner,pins = "PA8"; + allwinner,function = "gpio_in"; + allwinner,drive = ; + allwinner,pull = ; + }; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins_a>; + status = "okay"; +}; + +&usbphy { + status = "okay"; +};