Received: by 10.192.165.148 with SMTP id m20csp1135253imm; Wed, 25 Apr 2018 13:10:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx48EC9T7Waz7yesh9rkfIVTuNt4j7IEhH8RFshBeQQUcLUQc3BzouAwrfUYEHXHEPfIVhKuF X-Received: by 2002:a17:902:4483:: with SMTP id l3-v6mr30853883pld.282.1524687000397; Wed, 25 Apr 2018 13:10:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524687000; cv=none; d=google.com; s=arc-20160816; b=o+zBdb7SFfweSi/v2FV3S77U1fUz9cygMdS6J/PPMiECZIdIhFMrLMMZVpSnart5rg jm7ibgn5iD/HtHFDrjJ0YSPq1YvVfxyLcGPsm9d/1XPxN9TeqBOLm0x+DbeggugvI5QQ YRYTtRiyPVzZGIAo4Cv2E1vB27n3xDw0M0V+0BvAypl2JuhoiRU+c4N4VFb888scObMc wTLvIFwlLK54QBHxE6nitvGqN3kVAP2Mj4UONA2rn8vaDrh/hd3L523642UeXAmR9o2x m+MMkk+npamWTr0HoI47fY2uUXi7GePyVgRff0AGW//x/J8o7/r7txe5Sq+s3rPu/Crt 1c5w== 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=HtAclONUCvfipSWij+0AXELpFiycovcail+qoKJEd3U=; b=jkShUqK5OiMQnMhqQrtvlqYjsOGgtRXDW5daicQqrvBOSduESFuZ24xGRpGdjgSZFI W+mlCBpBLOCM+iGrQtbOkCNapRG3/FSXlNz3OOJzuw02P9g20fGVXsrKiMDNczH6voSU 3lFMuz8Fdhc8lJErCdp7sfWKvxiqdvXmlg1nyqxgnJUkKwvkDWKdDIRvr+suQQb4ds5M CRh2gzARoYoqyOU/Yi93nqAEdnAHPlB9dPkHP4cbOgAmCZpZE0FfNGsx8VZiwx6oknAL DbRNCaERpc92cw72cmELEUjMlzYGovWEjh1ZeQ/ix86Ba61xH6zQGfD8BL9Ul5FszEvj xowQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=YZaTvkDA; 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 l27si11148121pgu.353.2018.04.25.13.09.46; Wed, 25 Apr 2018 13:10:00 -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=YZaTvkDA; 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 S1753057AbeDYUIK (ORCPT + 99 others); Wed, 25 Apr 2018 16:08:10 -0400 Received: from mail.micronovasrl.com ([212.103.203.10]:47248 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752710AbeDYUII (ORCPT ); Wed, 25 Apr 2018 16:08:08 -0400 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 541AAB00425 for ; Wed, 25 Apr 2018 22:08:07 +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= 1524686886; x=1525550887; bh=/25vp7Ub/37hqFa/hK8C2o+3Aarf0Ryg2NW O12o44Dg=; b=YZaTvkDAuea3gHNXcNLCMl1yMp9WT2FJxMJRwIOnNgdjjoHH80j iwZEL84cbKSiLbLuRk2IMILl7ZdaACtgrKLuJBYRsBrE2FsCQvshS2E04yaYQr9P aTBju6/+MWP5ZElEF2TWcW5gZnE1QxEMVkqb3x5P+Re9XKj8xeRzeBOo= 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 stKa00ZHZCeo for ; Wed, 25 Apr 2018 22:08:06 +0200 (CEST) Received: from [192.168.123.60] (unknown [192.168.123.60]) by mail.micronovasrl.com (Postfix) with ESMTPSA id 293E7B00142; Wed, 25 Apr 2018 22:08:05 +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> <8ef3b259-03b4-6987-286e-36ff627a8b76@micronovasrl.com> <20180424084137.7xfwji2gcibxavvt@flea> <03a02abb-e95c-b4ec-748f-907c0af67969@micronovasrl.com> <20180425184016.xktppxw7egddr7li@flea> From: Giulio Benetti Message-ID: <42feccc9-1d09-9ff2-3ccc-1dea63bacfb6@micronovasrl.com> Date: Wed, 25 Apr 2018 22:08:06 +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: <20180425184016.xktppxw7egddr7li@flea> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: it Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Maxime, Il 25/04/2018 20:40, Maxime Ripard ha scritto: > Hi Giulio, > > On Tue, Apr 24, 2018 at 08:31:44PM +0200, Giulio Benetti wrote: >> LiNova1 is not a board with various headers to connect other peripherals >> such display, pcap etc. >> It's an HMI that I would consider the same as a Tablet, because it has a >> plastic enclosure also. >> >> So I would like to understand how to manage it in the best way. >> Try to consider LiNova1 as a Tablet series, with following list: >> LiNova1 4.3" ctp >> LiNova1 7" ctp >> LiNova1 10.1" ctp >> LiNova1 4.3" rtp >> LiNova1 7" rtp >> LiNova1 10.1" rtp >> >> Every of those has a slightly different BOM, so they are 6 different >> boards with a common base(uP, ram). And same pcb. > > So the LiNova1 is exactly the same in all these setups, the only > difference is that it has a connector that you connect a different > display / touchscreen to? > > If so, that's definitely a case for device tree overlays. Yes it is that way. So I proceed with dt overlays. > >> So I don't know if submit only the common base and provide >> separately on our github DT-overlays, or provide as many dts patches >> as the HMI number with a base dtsi. > > That's really up to you, but the overlays will make this much simpler > to handle precisely because it will reduce the amount of combinations > you have. > > You can even reduce it in your case to 5 of them, 3 for each panel and > 2 for each touchscreen. Ah, that's right! Good idea, more "encapsulation". > >> Basically Micronova provides entire system without the capability to hack >> hardware adding shields of various type. >> >> There are also other 2 LiNova: >> LiNova2 and LiNova3 > > Which SoCs are these boards based on? A20 on all three. They are slightly between each other. Some RS485 more, 1 USB more etc. > >> So I understand that this could lead to 18 different dts files and 3 >> dtsi files. > > Yeah, I'd really like to keep this under control :) :) > >> But with Tablet it should be the same way. For sure people would be >> more interested on famous tablets instead of our HMI. >> >> In the case I need to use dt-overlays, you mean .dto files with >> fragments inside loaded by u-boot or runtime, right? > > You don't have to handcode the fragments anymore with the new syntax, > and U-Boot makes it really trivial to use if you use the FIT image > format to have multiple overlays bundled in the same image. You can > choose to apply them dynamically, for example based on an EEPROM or > some other metric to see which combination you have. Ah, this is interesting. I'm going to experiment with that. > >>>>>> +&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 >>> >>> That doesn't really make much sense. The USB OTG is wired only using a >>> daughter board? >> >> My fault, I've meant "peripheral" in one case and "host" in another case. >> Usually "host". >> Are there problem with this? >> There is no daughter board. > > If you have an ID pin and the ability to control VBUS, then you don't > need to change the device tree, it's done automatically at runtime by > Linux. Unfortanetely I don't have ID pin and a common mosfet to control VBUS. "peripheral" mode should be used only in debug mode, so right dt-overlay can be written to sd-card by ourself or some of our customers. Thank you very much for all clarifications! Giulio. > > Maxime >