Received: by 10.213.65.68 with SMTP id h4csp88529imn; Wed, 21 Mar 2018 13:06:25 -0700 (PDT) X-Google-Smtp-Source: AG47ELt1+3wAcCL+sPw2pK/ZR7FtHrZOkPc4kVYdg7cz3zPajE418JI6HHdvKTu/t7GJ6cgJtd8E X-Received: by 2002:a17:902:28e3:: with SMTP id f90-v6mr13792201plb.250.1521662785165; Wed, 21 Mar 2018 13:06:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521662785; cv=none; d=google.com; s=arc-20160816; b=TY11l0JPHOvIDI7Kd1dDE3reGqbWNwDSiLIWVzl+08cBqCbISPo/BCIwj4s/AgvUmy xBLkhPfrLjs5xNtpvJrRIeEx+FbA1VLTxuC5vh11OhLf9NK4GejKFxOrN1F2wzbLQ9Ie ofJgPtrhGsZF8VfiaRbr3mg+T2mDnC4/zjb6AxYFmgvDtxLtXR4843luLzSGdvDyAD/2 vqkYYbkpBrCy6tKRudjPHlr4aWnddZNFp8fCtPL8k0HNYbw0x5Z1mgPcLd22gvWPI5t4 u+hm0BWVSnywyRWPP7b+hz4w4+KKbfgxboMB7+f9txD9eGFc4SXPmwf4GXneJifdbn+E cZjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=oyT+YSVZHOz/4TVSDZpmj2B3M80GO7DdZcoJl2iZ6rE=; b=tHEVRdTgBjfyi+/P5jNUWph6rcu/TyBbovc/ollNKrPGOTa+IVQKnJAOrbrxGvigRs emq4JWopS7YP5QvKV5Wd0SHmcyUOl7uMB54iKA8uqO30j6TzaIFPQ+zN/7CZ21nJKgGg oByYKGStiW9L4FAAsm9kjfdQHFp4RFRwDCuNGVxponZ5saMdwE6Us5vd21si4fbxJ6NF kkpSLAlm4geGMnlds55WNLxuDFGAVnaRt0YKZjkNe1ln6i3EMTBRcXj9eRwQ16Pd4BLM YQPdzO34JY1C7brpoAslYNDHSfWVvel3AJlg1xVkLD0Z57y4YwZfyZbBvrCNDPjOSPSO ZhsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=qAle4cOd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v3-v6si4439630plo.32.2018.03.21.13.06.10; Wed, 21 Mar 2018 13:06:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=qAle4cOd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753460AbeCUUEt (ORCPT + 99 others); Wed, 21 Mar 2018 16:04:49 -0400 Received: from mail.micronovasrl.com ([212.103.203.10]:45548 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753271AbeCUUED (ORCPT ); Wed, 21 Mar 2018 16:04:03 -0400 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id B3FF0B00A5A for ; Wed, 21 Mar 2018 21:04:01 +0100 (CET) Authentication-Results: mail.micronovasrl.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=micronovasrl.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=micronovasrl.com; h=references:in-reply-to:x-mailer:message-id:date:date:subject :subject:to:from:from; s=dkim; t=1521662641; x=1522526642; bh=og zFu67Mo3C1KdSbrDNo/FaaEO7cTYNVMNMQ6QvYImo=; b=qAle4cOdTDsIdEOe2K h8BUflyxLVhavQuI/R2RxPPhU1Iz1sltBjk7BS9/oF8SrTavR4G6+4+s1stqahkS 30s4vF0bjSzPCjWZpZs+oGIHylv6jIPvtDIgi+LUeOCf5jha3Vr+BD7loAoOIre6 6vxbteefM+zJPwpSHNOpMJpjY= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com X-Spam-Flag: NO X-Spam-Score: -2.9 X-Spam-Level: X-Spam-Status: No, score=-2.9 tagged_above=-10 required=4.5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9] autolearn=unavailable autolearn_force=no Received: from mail.micronovasrl.com ([127.0.0.1]) by mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id jUyq_Wox5QFf for ; Wed, 21 Mar 2018 21:04:01 +0100 (CET) Received: from localhost.localdomain (62-11-51-166.dialup.tiscali.it [62.11.51.166]) by mail.micronovasrl.com (Postfix) with ESMTPSA id 07FC7B00A10; Wed, 21 Mar 2018 21:03:57 +0100 (CET) From: Giulio Benetti To: Thierry Reding Cc: David Airlie , Maxime Ripard , Chen-Yu Tsai , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Giulio Benetti Subject: [PATCH 6/7] ARM: dts: sun7i: Add dts file for the A20-linova1-4_3 HMI Date: Wed, 21 Mar 2018 21:03:12 +0100 Message-Id: <1521662593-25468-6-git-send-email-giulio.benetti@micronovasrl.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521662593-25468-1-git-send-email-giulio.benetti@micronovasrl.com> References: <1521662593-25468-1-git-send-email-giulio.benetti@micronovasrl.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The A20-Linova1-4_3 HMI, also called Q027_2_A which is printed on production label, is an industrial Human Machine Interface. It features: - 512MB DDR RAM - 1 Sd-card >= 4GB - 1 Usb otg(programmable via software) with A-Usb Connector - 1 Usb host - 1 Buzzer - 1 Input for LiPo - 1 Relay to signal absence of power supply - 1 External Rtc with 56 bytes of ram + CR2032 battery - 1 4.3" 24-bits Tft 480x272 with PCap on - 1 Mono audio 1-watt amplifier - 1 RS485 port - 1 Power On Line through +12Vdc reaching 57.600baud, from where it can be supplied and placed in a network of 50 units - exposed jtag pins HMI is supplied from +12Vdc. Ethernet is absent, so for debugging, need to enable rndis on Usb otg port through an A-A usb cable. It comes in different flavours for connector types and can be found with umounted features as requested by customers. Signed-off-by: Giulio Benetti --- .../devicetree/bindings/arm/micronova.txt | 6 + arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/sun7i-a20-linova1-ctp-4_3i.dts | 192 +++++++++++++++++++++ 3 files changed, 199 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/micronova.txt create mode 100644 arch/arm/boot/dts/sun7i-a20-linova1-ctp-4_3i.dts diff --git a/Documentation/devicetree/bindings/arm/micronova.txt b/Documentation/devicetree/bindings/arm/micronova.txt new file mode 100644 index 0000000..35c4127 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/micronova.txt @@ -0,0 +1,6 @@ +Micronova Device Tree Bindings +--------------------------- + +A20-LiNova1-4_3 HMI +Required root node properties: + - compatible = "micronova,a20-linova1-ctp-4_3i", "allwinner,sun7i-a20"; diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index ade7a38..c45a4f25 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -941,6 +941,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \ sun7i-a20-lamobo-r1.dtb \ sun7i-a20-m3.dtb \ sun7i-a20-mk808c.dtb \ + sun7i-a20-linova1-ctp-4_3i.dtb\ sun7i-a20-olimex-som-evb.dtb \ sun7i-a20-olinuxino-lime.dtb \ sun7i-a20-olinuxino-lime2.dtb \ diff --git a/arch/arm/boot/dts/sun7i-a20-linova1-ctp-4_3i.dts b/arch/arm/boot/dts/sun7i-a20-linova1-ctp-4_3i.dts new file mode 100644 index 0000000..cd4ac73 --- /dev/null +++ b/arch/arm/boot/dts/sun7i-a20-linova1-ctp-4_3i.dts @@ -0,0 +1,192 @@ +/* + * This is based on sun7i-a20-linova1-ctp-4_3i.dts + * + * Copyright 2014 - Hans de Goede + * Copyright (c) 2014 FUKAUMI Naoki + * Copyright (c) 2018 Giulio Benetti + * + * 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 file 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 file 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 "sun7i-a20.dtsi" +#include "sunxi-common-regulators.dtsi" + +#include +#include + +/ { + model = "Micronova srl LiNova1 CTP 4.3i"; + compatible = "micronova,a20-linova1-ctp-4_3i", "allwinner,sun7i-a20"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + panel: panel { + compatible = "cdtech,s043wq26h-ct7", "simple-panel"; + power-supply = <®_vcc3v3>; + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + + panel_input: endpoint@0 { + reg = <0>; + remote-endpoint = <&tcon0_out_panel>; + }; + }; + }; +}; + +&ehci0 { + status = "okay"; +}; + +&ehci1 { + status = "okay"; +}; + +&i2c0 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c0_pins_a>; + status = "okay"; + + axp209: pmic@34 { + compatible = "x-powers,axp209"; + reg = <0x34>; + interrupt-parent = <&nmi_intc>; + interrupts = <0 IRQ_TYPE_LEVEL_LOW>; + + interrupt-controller; + #interrupt-cells = <1>; + }; +}; + +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_pins_a>; + status = "okay"; + + ft5x: touchscreen@38 { + compatible = "edt,edt-ft5306"; + reg = <0x38>; + interrupt-parent = <&pio>; + interrupts = <7 2 IRQ_TYPE_EDGE_FALLING>; /* PH2 */ + reset-gpios = <&pio 7 3 GPIO_ACTIVE_LOW>; /* PH3 */ + touchscreen-size-x = <480>; + touchscreen-size-y = <272>; + }; +}; + +&mmc0 { + pinctrl-names = "default"; + pinctrl-0 = <&mmc0_pins_a>; + vmmc-supply = <®_vcc3v3>; + bus-width = <4>; + cd-gpios = <&pio 7 1 GPIO_ACTIVE_HIGH>; /* PH1 */ + cd-inverted; + status = "okay"; +}; + +&ohci0 { + status = "okay"; +}; + +&ohci1 { + status = "okay"; +}; + +&otg_sram { + status = "okay"; +}; + +®_usb0_vbus { + status = "okay"; +}; + +®_usb1_vbus { + status = "okay"; +}; + +&uart0 { + pinctrl-names = "default"; + pinctrl-0 = <&uart0_pins_a>; + status = "okay"; +}; + +&usb_otg { + dr_mode = "otg"; + status = "okay"; +}; + +&usbphy { + pinctrl-names = "default"; + usb0_vbus-supply = <®_usb0_vbus>; + usb1_vbus-supply = <®_usb1_vbus>; + status = "okay"; +}; + +&be0 { + status = "okay"; +}; + +&de { + status = "okay"; +}; + +&tcon0 { + pinctrl-names = "default"; + pinctrl-0 = <&lcd0_rgb888_pins>; + status = "okay"; +}; + +&tcon0_out { + tcon0_out_panel: endpoint@0 { + reg = <0>; + remote-endpoint = <&panel_input>; + }; +}; -- 2.7.4