Received: by 10.192.165.148 with SMTP id m20csp3503210imm; Mon, 23 Apr 2018 07:39:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx48VPLCat7ywlo5ElWb3ps3qYmVL30EycHjh/6Pe1EVapr2lcmGZrz9c8pnZnMLyYwF5GuIV X-Received: by 10.98.139.146 with SMTP id e18mr19670075pfl.60.1524494348948; Mon, 23 Apr 2018 07:39:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524494348; cv=none; d=google.com; s=arc-20160816; b=Qai3tFXZuyPS0c7GBREVlnqU41WDIrfuEqf/lx4LvxlkKaldRmdxqzFOZdCZWSE98D cN49rubbh8WZJJwht5D8Fnlm5lUuJ/mA2nP+xQ3cwm61cs2098sdgSTcMuP55ftlRMOl 1F7ORhlxJ5ffRXmkhZbt+vEaba1TivTDvPnj4bA/rOlIU1hJr39A4qOoTqe4Oiik9ilZ ZdH+6Xly8nqCsPoi37EmpTT9+cdSmSMbt35D3Mm2+58k81REn6l49fnea3vJqGe55FSu f0KcONeZI6IELUDSeUXNhUB9Vnwwkiq3oAnPLEMuSbEce7xa5e9J4o14YaqMA4Zu4u19 vCCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=952gpiLrlV97Fe2cWKOwzXlG00xkLKzOFpII3HSVSyI=; b=wJlhgOUsAWBjYB2BLvOnsTbR6dI3cYPImDpJzghusMnae1oqNOXgxGpRLEMPZYoM/T e7kaIeyEM++hw1OwwsH9ESds5DhbrONr0El2f+u9PRMTy0LNCzZ+LoeZcj7FuUN+CZRa 9KojEeIz7xCN/9VrWCH40vU0UBqwnHFnG7MwlkkNQP5hHS8k1VTm1jDtNGjzN5fT661y UkfYE3r1mKAFS9lQJkySL0AQvvXbYFyPB2E2ua7RbJANzyfKjjX0Ru7HDTnliNV41YfC eeEksb7poC3uWVcpZzCU1oYcy49kDLzJ4izpZTl5j7NemujSyNs54wzP2qwyeMjspcj1 hfpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=XnuQh+PU; 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 g185si9797729pgc.155.2018.04.23.07.38.54; Mon, 23 Apr 2018 07:39:08 -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=XnuQh+PU; 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 S1755478AbeDWOhk (ORCPT + 99 others); Mon, 23 Apr 2018 10:37:40 -0400 Received: from mail.micronovasrl.com ([212.103.203.10]:45938 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755376AbeDWOhh (ORCPT ); Mon, 23 Apr 2018 10:37:37 -0400 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id D61E6B00B3B for ; Mon, 23 Apr 2018 16:37:35 +0200 (CEST) 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=content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:to:subject:subject; s=dkim; t= 1524494255; x=1525358256; bh=DrPXGGtrEQRNlwGRfSvfNXz7uPS7MHu9fTA BoaPFn8M=; b=XnuQh+PU2SlJIOVRViB958U2ltLnxdj0DCXwbwMbplcypF9B+2Q ddCN48EE/eu+d6NCWKVb9AA4V6QOdQoafp2RBnzhiP8bznIZyp4mMvUSvhHQkbg9 sOGrl5OXU9s0SzlUZIUXtXyOhh85kxG+LoFwuSCj+5p1KGLZwjMz6mGg= 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 MDseX63as90J for ; Mon, 23 Apr 2018 16:37:35 +0200 (CEST) Received: from [192.168.123.60] (unknown [192.168.123.60]) by mail.micronovasrl.com (Postfix) with ESMTPSA id 6B3DDB00990; Mon, 23 Apr 2018 16:37:33 +0200 (CEST) Subject: Re: [PATCH 7/7] ARM: dts: sun7i: Add dts file for the A20-linova1-7 HMI To: Maxime Ripard Cc: Thierry Reding , David Airlie , Chen-Yu Tsai , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org References: <1521662593-25468-1-git-send-email-giulio.benetti@micronovasrl.com> <1521662593-25468-7-git-send-email-giulio.benetti@micronovasrl.com> <20180322180508.my64gobhh5rc2x2m@flea> From: Giulio Benetti Message-ID: <8ef3b259-03b4-6987-286e-36ff627a8b76@micronovasrl.com> Date: Mon, 23 Apr 2018 16:37:33 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180322180508.my64gobhh5rc2x2m@flea> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: it Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Il 22/03/2018 19:05, Maxime Ripard ha scritto: > On Wed, Mar 21, 2018 at 09:03:13PM +0100, Giulio Benetti wrote: >> The A20-Linova1-7 HMI, also called Q027_2_F 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 7" 24-bits Tft 800x480 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. > > So this is essentially the same board than in patch 6, but with a > different screen? > > You should have a single DT then, and handle the two different panels > using DT overlays. Ok for having different DT overlays. But do I have to submit them as patches? Or keep them in my company's repo? I ask you this because this involves sending also patches for displays and other little modifications to mainline ex: - rgb888 pins - 2 simple-panels - 1 uart iomux pins etc. If I don't submit those overlays, the other patches wouldn't make sense alone as I've seen, just like rgb888 pins. > >> Signed-off-by: Giulio Benetti >> --- >> .../devicetree/bindings/arm/micronova.txt | 4 + >> arch/arm/boot/dts/Makefile | 1 + >> arch/arm/boot/dts/sun7i-a20-linova1-ctp-7i.dts | 192 +++++++++++++++++++++ >> 3 files changed, 197 insertions(+) >> create mode 100644 arch/arm/boot/dts/sun7i-a20-linova1-ctp-7i.dts >> >> diff --git a/Documentation/devicetree/bindings/arm/micronova.txt b/Documentation/devicetree/bindings/arm/micronova.txt >> index 35c4127..9f5ac72 100644 >> --- a/Documentation/devicetree/bindings/arm/micronova.txt >> +++ b/Documentation/devicetree/bindings/arm/micronova.txt >> @@ -4,3 +4,7 @@ Micronova Device Tree Bindings >> A20-LiNova1-4_3 HMI >> Required root node properties: >> - compatible = "micronova,a20-linova1-ctp-4_3i", "allwinner,sun7i-a20"; >> + >> +A20-LiNova1-7 HMI >> +Required root node properties: >> + - compatible = "micronova,a20-linova1-ctp-7i", "allwinner,sun7i-a20"; > > These bindings are unnecessary, but the panel-simple bindings should > be sent to the DT maintainers as well. Ok, removed them and already sent the ones for display. > >> diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile >> index c45a4f25..eafa7cb 100644 >> --- a/arch/arm/boot/dts/Makefile >> +++ b/arch/arm/boot/dts/Makefile >> @@ -942,6 +942,7 @@ dtb-$(CONFIG_MACH_SUN7I) += \ >> sun7i-a20-m3.dtb \ >> sun7i-a20-mk808c.dtb \ >> sun7i-a20-linova1-ctp-4_3i.dtb\ >> + sun7i-a20-linova1-ctp-7i.dtb\ > > You should have a space after dtb, and it should be ordered > alphabetically. Done. > >> 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-7i.dts b/arch/arm/boot/dts/sun7i-a20-linova1-ctp-7i.dts >> new file mode 100644 >> index 0000000..7fd0d98 >> --- /dev/null >> +++ b/arch/arm/boot/dts/sun7i-a20-linova1-ctp-7i.dts >> @@ -0,0 +1,192 @@ >> +/* >> + * This is based on sun7i-a20-linova1-ctp-7i.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. >> + */ > > You should use an SPDX license header here. Done > >> + >> +/dts-v1/; >> +#include "sun7i-a20.dtsi" >> +#include "sunxi-common-regulators.dtsi" >> + >> +#include >> +#include >> + >> +/ { >> + model = "Micronova srl LiNova1 CTP 7i"; >> + compatible = "micronova,a20-linova1-ctp-7i", "allwinner,sun7i-a20"; >> + >> + aliases { >> + serial0 = &uart0; >> + }; >> + >> + chosen { >> + stdout-path = "serial0:115200n8"; >> + }; >> + >> + panel: panel { >> + compatible = "cdtech,s070wv95-ct16", "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-ft5206"; >> + 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 = <800>; >> + touchscreen-size-y = <480>; >> + }; >> +}; >> + >> +&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"; >> +}; > > Ideally you should be defining the regulators here too. Added. > >> +&uart0 { >> + pinctrl-names = "default"; >> + pinctrl-0 = <&uart0_pins_a>; >> + status = "okay"; >> +}; >> + >> +&usb_otg { >> + dr_mode = "otg"; > > You're saying that this is a USB-A connector? Then it's not OTG since > it doesn't have an ID pin, this is an host. Right, with a special overlay I will activate Usb Device for RNDIS, so modified as host > >> + status = "okay"; >> +}; >> + >> +&usbphy { >> + pinctrl-names = "default"; >> + usb0_vbus-supply = <®_usb0_vbus>; >> + usb1_vbus-supply = <®_usb1_vbus>; >> + status = "okay"; >> +}; >> + >> +&be0 { >> + status = "okay"; >> +}; >> + >> +&de { >> + status = "okay"; >> +}; > > The nodes should be ordered by alphabetical order. Done. One last question: now I have some patch already reviewed-by. Do I have to re-submit entire patchset? Thank you very much. -- Giulio Benetti CTO MICRONOVA SRL Sede: Via A. Niedda 3 - 35010 Vigonza (PD) Tel. 049/8931563 - Fax 049/8931346 Cod.Fiscale - P.IVA 02663420285 Capitale Sociale ? 26.000 i.v. Iscritta al Reg. Imprese di Padova N. 02663420285 Numero R.E.A. 258642 > > Thanks! > Maxime >