Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp5750488imm; Sat, 19 May 2018 08:50:48 -0700 (PDT) X-Google-Smtp-Source: AB8JxZryFeWaAGIg3bnK9go8xhhWIDhgcNQsykjZrFLprAhjXrEK3tUFX45g7h9Ed8ie9rhMRcqP X-Received: by 2002:a17:902:6181:: with SMTP id u1-v6mr13753705plj.272.1526745048555; Sat, 19 May 2018 08:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526745048; cv=none; d=google.com; s=arc-20160816; b=jdoWknXpj9k6ryI1To81m4udwwoe0tWpBC/F5O6TTmuvVCLtvYhEAlrz1U4vwXNMtx 98HiUhX0oO34QvcqwpuyK+Wd2hMctLRqPT6lCibrNtWOPN4186Ggc5SXUSWjG+wl7ORa d/nX8P1ltgtnEx+P+le78NeyvChJozKxBMkC2/B8nhU2lpHzZU5aaXprXP4ErBOr+Rtl OVI0LKs015Glf8Ug7659zOlQ6AWHW1UFj/qUTKVbFFfB0V0eINJQ9LZ23JVINjdQfaUW sgk8MwVAZdpbX5WrwB1sTH1aQveER+svDRld/d4FWxDcyS+9f9ciXNBifU8KbjW44wik JN2w== 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=25qYCyLNDCTlSiLIUrl+KpQ7Z97sQe2IzP/U7Gogb/8=; b=PoV5MvF7gcgWAmP0e1r03zzBybDuFpHqgupMNI5F725KXYx0AsAm2aAl8LKn0u4VFl R6p1sIluKD/J7gErSFX+iEHJbu08za5gX1P0LzDhMbYCnyEg+/x9haAWDQLRLDdQByQl VhxHX0+1BoYChRSaDDfAptv7YUaa9iyEYJvs0m5KBSahH0o5wxXj3noF8pCMFgKF/Ie+ k6+iWfs1WnQWSUF9INc4+f+0lChiuiAjItvg6wgY1suLxZ/nZ1o2MGVefthiROmVzvDN 2Q24bw5hmRZqwRN1JLmCcBCOn8rlvgaGVsmHEvFn4+yIT4yjEG3nrGs4FIYzIYVJRxuV 4JxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lechnology.com header.s=default header.b=x6NECIur; 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 p80-v6si10032778pfi.345.2018.05.19.08.50.33; Sat, 19 May 2018 08:50:48 -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=fail header.i=@lechnology.com header.s=default header.b=x6NECIur; 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 S1752489AbeESPuX (ORCPT + 99 others); Sat, 19 May 2018 11:50:23 -0400 Received: from vern.gendns.com ([206.190.152.46]:43692 "EHLO vern.gendns.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752280AbeESPuV (ORCPT ); Sat, 19 May 2018 11:50:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lechnology.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=25qYCyLNDCTlSiLIUrl+KpQ7Z97sQe2IzP/U7Gogb/8=; b=x6NECIurqzgWKJr/YVo6APthU3 ljh6//QJY/JTW1M2g6u9uVKepFLCLE8hmrYU8tTQc9zB71qWBOR+MlLsJa3NvMFyORVgg7qefIiuF S60O0NLTmocLVvsaWhQ6GQHRo/GYo00CpQ3lXBTH0yWYyZcwkNLS6xcJ/IzrR8IN9A6JQUaZO1P6g NEcMzKDuOgQ1vIZcT0CkisxhQQAFqLHzEv+lG29xYFk6EcchvIEKwN1bumZX0W5mR6G5+OI7eeDDM 98kDpmp7lsoWQp9w7UODRSaoQ9MdC73c0QyOgkyJjWEeealicsieHL4WhsGbVmwL8rbhd6ztroNor GJZXEVdg==; Received: from 108-198-5-147.lightspeed.okcbok.sbcglobal.net ([108.198.5.147]:33310 helo=[192.168.0.134]) by vern.gendns.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.89_1) (envelope-from ) id 1fK47f-002EEd-A5; Sat, 19 May 2018 11:50:19 -0400 Subject: Re: [PATCH 2/3] dt-bindings: new binding for Ilitek ILI9341 display panels To: =?UTF-8?Q?Noralf_Tr=c3=b8nnes?= , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Cc: Rob Herring , Mark Rutland , limor@ladyada.net, Nitin Patil , linux-kernel@vger.kernel.org References: <20180515014349.26226-1-david@lechnology.com> <20180515014349.26226-3-david@lechnology.com> <50928486-822a-aff3-7c37-cc1c40cb62b8@tronnes.org> From: David Lechner Message-ID: Date: Sat, 19 May 2018 10:50:17 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <50928486-822a-aff3-7c37-cc1c40cb62b8@tronnes.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vern.gendns.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - lechnology.com X-Get-Message-Sender-Via: vern.gendns.com: authenticated_id: davidmain+lechnology.com/only user confirmed/virtual account not confirmed X-Authenticated-Sender: vern.gendns.com: davidmain@lechnology.com X-Source: X-Source-Args: X-Source-Dir: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/19/2018 08:37 AM, Noralf Trønnes wrote: > > Den 15.05.2018 03.43, skrev David Lechner: >> This adds a new binding for Ilitek ILI9341 display panels. It includes >> a compatible string for one display (more can be added in the future). >> >> The vendor prefix "noname" is used because the vendor is not known. >> The YX240QV29-T panel[1] is found, for example, in an Adafruit breakout >> board[2] and in Mindsensors' PiStorms[3]. >> >> [1]: https://cdn-learn.adafruit.com/assets/assets/000/046/879/original/SPEC-YX240QV29-T_Rev.A__1_.pdf >> [2]: https://www.adafruit.com/product/2478 >> [3]: http://www.mindsensors.com/stem-with-robotics/13-pistorms-v2-base-kit-raspberry-pi-brain-for-lego-robot >> >> Signed-off-by: David Lechner >> --- >>   .../bindings/display/ilitek,ili9341.txt       | 27 +++++++++++++++++++ >>   1 file changed, 27 insertions(+) >>   create mode 100644 Documentation/devicetree/bindings/display/ilitek,ili9341.txt >> >> diff --git a/Documentation/devicetree/bindings/display/ilitek,ili9341.txt b/Documentation/devicetree/bindings/display/ilitek,ili9341.txt >> new file mode 100644 >> index 000000000000..0fc90b2dd732 >> --- /dev/null >> +++ b/Documentation/devicetree/bindings/display/ilitek,ili9341.txt >> @@ -0,0 +1,27 @@ >> +Ilitek ILI9341 display panels >> + >> +This binding is for display panels using an Ilitek ILI9341 controller in SPI >> +mode. >> + >> +Required properties: >> +- compatible:    "noname,yx240qv29", "ilitek,ili9341" > > Calling a vendor 'noname' looks a bit odd and AFAICT it isn't used by > any other binding. A google search always mentions Adafruit in > connection with this panel, so I suggest we use Adafruit as vendor. I was hoping that someone might know the correct vendor, but barring that, I agree that adafruit is probably the best choice. > > I don't think we should use "ilitek,ili9341" as an option/fallback, > because panels varies in resolution (rarely) and initialization. A > generic ili9341 driver would probably not work with a random new panel. I'm just following the precedent set in the other bindings for similar displays that I have already done. References: * https://patchwork.freedesktop.org/patch/194648/ * https://patchwork.freedesktop.org/patch/195320/ I agree that it is probably not super-useful as a fallback. On the other hand, the vendors and models for these displays are pretty obscure and I think having the more well-known controller name _somewhere_ is useful. > >> +- dc-gpios:    D/C pin >> +- reset-gpios:    Reset pin >> + >> +The node for this driver must be a child node of a SPI controller, hence >> +all mandatory properties described in ../spi/spi-bus.txt must be specified. >> + >> +Optional properties: >> +- rotation:    panel rotation in degrees counter clockwise (0,90,180,270) >> +- backlight:    phandle of the backlight device attached to the panel > > You forgot to mention the regulator that you support in the driver. > > Noralf. > >> + >> +Example: >> +    display@0{ >> +        compatible = "noname,yx240qv29", "ilitek,ili9341"; >> +        reg = <0>; >> +        spi-max-frequency = <32000000>; >> +        dc-gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; >> +        reset-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>; >> +        rotation = <270>; >> +        backlight = <&backlight>; >> +    }; >