Received: by 2002:ac2:48a3:0:0:0:0:0 with SMTP id u3csp553839lfg; Fri, 11 Mar 2022 13:05:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJy34TQAHR15vQWf04XC+HBJZGze1v3fpaP93QbgTcOSzer1A2avKyv0PuxBzcZmjoBQdwm3 X-Received: by 2002:a17:902:c407:b0:152:fd74:8a5 with SMTP id k7-20020a170902c40700b00152fd7408a5mr12261624plk.1.1647032700548; Fri, 11 Mar 2022 13:05:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1647032700; cv=none; d=google.com; s=arc-20160816; b=acB4Y/nweJ6oHvYLezFkh+Cijb/kxn5obTn4zlsMwFX55WuQkgfvqExoSm2s2880fP 6n2FDVSq+b9iV3/T9ZvBexBZLoLUQCx6lXHHiAGRqDNmYVu+Zw1ll5+hSTULa7xsQe0/ UGRciPNL9sDj4/+jpCiF1rN+ierYwTxGi+81n8FqT16gm0qT2+KCqq9GopCcU/SpohjU AmzJLEz/bN5AcakT9Wl1avFFIIKqtLcLuHZBRH32ZlQHQ6uGLTfzynNT0oGZNPysX4Xm qiQcJtinVzgyCrfBqbCGolK+OjgSnnKy4IsIi+W70f/5agOUteQUp3ao5LQg23GJLisv VdQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date :dkim-signature; bh=O7m9TXBNiZRYoA89hrhRuwOoSnJmPIkD1Cv1P/g9Zqs=; b=E5WVkS2/JmiXN/bPtMZKEVhmzsxgCleXzOmJHqIi1R5VKscU2mWBLQXfqIcOQPWQ55 tYCxc/Jl/kSHNw7IrKEabbMJLVl+0TONiVrP3uKW17kxjLtLPS9abzm0F6Bh24fGI2ip j2REVvNSQkGsZjkJ/9hHNCKX7ZMIa/4dfUfNy2NWTX89HsTFD5RFww3EstBQD33Uqopk eNHZB9pXJ+EMrytJzMeLAvG2FgXLELX/GzxMz1rKR6YgVC+kpS3LM9qOxSh4iLn7mVZw wXCurJHicDiJDlS/hEewfAmcB2OmR7J9CO8SzkrJxc/5w62+X+TD2npRSA1m06mSxO0l 4nkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=MERMw+6F; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d16-20020a17090a02d000b001bf8183e587si8816905pjd.157.2022.03.11.13.04.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Mar 2022 13:05:00 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=MERMw+6F; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5EF7C1768C7; Fri, 11 Mar 2022 12:49:59 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344709AbiCKNGc (ORCPT + 99 others); Fri, 11 Mar 2022 08:06:32 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236208AbiCKNGa (ORCPT ); Fri, 11 Mar 2022 08:06:30 -0500 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9F411C1AFB; Fri, 11 Mar 2022 05:05:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1647003923; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=O7m9TXBNiZRYoA89hrhRuwOoSnJmPIkD1Cv1P/g9Zqs=; b=MERMw+6FOV88njYAS6yz22ak8ZLlwjn5VZpMTKAo+HLXBEOKm9tjFjqVYBr5HezTJTCVX2 WRBxmoVcV7NWi80UA4LMICfxKThgDrkogBja1UfNQ8SdhiUBOoV1RlZzuNHmolr0Pekhvd oLLv5z7WMetYIiLObDiEy2M8urjYEIk= Date: Fri, 11 Mar 2022 13:05:13 +0000 From: Paul Cercueil Subject: Re: [PATCH v2 4/4] dt-bindings: display/panel: Add Leadtek ltk035c5444t To: Rob Herring Cc: Christophe Branchereau , David Airlie , Daniel Vetter , Thierry Reding , Sam Ravnborg , linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org Message-Id: In-Reply-To: References: <20220308130643.260683-1-cbranchereau@gmail.com> <20220308130643.260683-5-cbranchereau@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, Le jeu., mars 10 2022 at 16:30:26 -0600, Rob Herring =20 a =E9crit : > On Tue, Mar 08, 2022 at 02:06:43PM +0100, Christophe Branchereau=20 > wrote: >> Add binding for the leadtek ltk035c5444t, which is a 640x480 >> mipi-dbi over spi / 24-bit RGB panel based on the newvision >> NV03052C chipset. >>=20 >> It is found in the Anbernic RG350M mips handheld. >>=20 >> Signed-off-by: Christophe Branchereau >> --- >> .../panel/leadtek,ltk035c5444t-spi.yaml | 59=20 >> +++++++++++++++++++ >> 1 file changed, 59 insertions(+) >> create mode 100644=20 >> Documentation/devicetree/bindings/display/panel/leadtek,ltk035c5444t-spi= .yaml >=20 > We have 18 SPI based panels already: >=20 > $ git grep -i 'spi.* {'=20 > Documentation/devicetree/bindings/display/panel/ > Documentation/devicetree/bindings/display/panel/abt,y030xx067a.yaml: =20 > spi { > Documentation/devicetree/bindings/display/panel/ilitek,ili9163.yaml: =20 > spi { > Documentation/devicetree/bindings/display/panel/ilitek,ili9322.yaml: =20 > spi { > Documentation/devicetree/bindings/display/panel/ilitek,ili9341.yaml: =20 > spi { > Documentation/devicetree/bindings/display/panel/innolux,ej030na.yaml:=20 > spi { > Documentation/devicetree/bindings/display/panel/kingdisplay,kd035g6-54nt.= yaml:=20 > spi { > Documentation/devicetree/bindings/display/panel/lg,lg4573.yaml: =20 > spi { > Documentation/devicetree/bindings/display/panel/lgphilips,lb035q02.yaml:=20 > spi { > Documentation/devicetree/bindings/display/panel/nec,nl8048hl11.yaml: =20 > spi0 { > Documentation/devicetree/bindings/display/panel/samsung,ld9040.yaml: =20 > spi { > Documentation/devicetree/bindings/display/panel/samsung,lms380kf01.yaml:=20 > spi { > Documentation/devicetree/bindings/display/panel/samsung,lms397kf04.yaml:=20 > spi { > Documentation/devicetree/bindings/display/panel/samsung,s6d27a1.yaml:=20 > spi { > Documentation/devicetree/bindings/display/panel/samsung,s6e63m0.yaml:=20 > spi { > Documentation/devicetree/bindings/display/panel/sitronix,st7789v.yaml:=20 > spi { > Documentation/devicetree/bindings/display/panel/sony,acx565akm.yaml: =20 > spi { > Documentation/devicetree/bindings/display/panel/tpo,td.yaml: spi { > Documentation/devicetree/bindings/display/panel/tpo,tpg110.yaml: =20 > spi { >=20 > Most except for the Samsung ones look like they'd fit in our=20 > definition > of 'simple panels' which primarily means 1 supply. >=20 > So I think it is time for a panel-simple-spi.yaml binding to combine=20 > all > these. But I'm not going to make the person adding the 19th case to do > that, and this otherwise looks fine: >=20 > Reviewed-by: Rob Herring I actually thought you sent a patch for this already (I remember you=20 talking about it last a binding for a new SPI panel has been added). I will work on it next week - provided Cristophe's patch has been=20 merged before. Cheers, -Paul >=20 > With one nit fixed below: >=20 >>=20 >> diff --git=20 >> a/Documentation/devicetree/bindings/display/panel/leadtek,ltk035c5444t-s= pi.yaml=20 >> b/Documentation/devicetree/bindings/display/panel/leadtek,ltk035c5444t-s= pi.yaml >> new file mode 100644 >> index 000000000000..9b6f1810adab >> --- /dev/null >> +++=20 >> b/Documentation/devicetree/bindings/display/panel/leadtek,ltk035c5444t-s= pi.yaml >> @@ -0,0 +1,59 @@ >> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >> +%YAML 1.2 >> +--- >> +$id:=20 >> http://devicetree.org/schemas/display/panel/leadtek,ltk035c5444t-spi.yam= l# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: Leadtek ltk035c5444t 3.5" (640x480 pixels) 24-bit IPS LCD=20 >> panel >> + >> +maintainers: >> + - Paul Cercueil >> + - Christophe Branchereau >> + >> +allOf: >> + - $ref: panel-common.yaml# >> + - $ref: /schemas/spi/spi-peripheral-props.yaml# >> + >> +properties: >> + compatible: >> + const: leadtek,ltk035c5444t-spi >=20 > '-spi' is redundant, so drop. >=20 >> + >> + backlight: true >> + port: true >> + power-supply: true >> + reg: true >> + reset-gpios: true >> + >> +required: >> + - compatible >> + - power-supply >> + - reset-gpios >> + >> +unevaluatedProperties: false >> + >> +examples: >> + - | >> + #include >> + >> + spi { >> + #address-cells =3D <1>; >> + #size-cells =3D <0>; >> + panel@0 { >> + compatible =3D "leadtek,ltk035c5444t-spi"; >=20 > And update the example... >=20 >> + reg =3D <0>; >> + >> + spi-3wire; >> + spi-max-frequency =3D <3125000>; >> + >> + reset-gpios =3D <&gpe 2 GPIO_ACTIVE_LOW>; >> + >> + backlight =3D <&backlight>; >> + power-supply =3D <&vcc>; >> + >> + port { >> + panel_input: endpoint { >> + remote-endpoint =3D <&panel_output>; >> + }; >> + }; >> + }; >> + }; >> -- >> 2.34.1 >>=20 >>=20