Message ID | 20230217-topic-lenovo-panel-v2-1-2e2c64729330@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2429374wrd; Tue, 7 Mar 2023 05:30:42 -0800 (PST) X-Google-Smtp-Source: AK7set9YT2rYRLUOeOr6bLS0IflVC6ELJpRGXuHMg6jnoTcb8lObFx32IbHJZZlNw9Jy9vRXdtP6 X-Received: by 2002:a17:90b:1b48:b0:237:401c:9bd5 with SMTP id nv8-20020a17090b1b4800b00237401c9bd5mr14635218pjb.46.1678195842038; Tue, 07 Mar 2023 05:30:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678195842; cv=none; d=google.com; s=arc-20160816; b=mYyneynQNiHw7mOPDXtMEqkji2qhJC1kOBHseFq42ewDP3ACFN7AiupmaWuX9B9lmQ eDQGnm5fD73Lkq9GTzXEdS3cNsL1FpM3nOeeRkzJIv52Nz2SvQM7ElmIBsVEh7BJj/vG b+Z+0YD487SlV4b/RGn9elk4X8l1TyZeMHYc5lA1sxUegyyhRUPU/Unir2suyJYywPaX pMmPqBdcG4sDAlXIrJU5mBsOlY/3J+hGQs0rAZPKPU8nNkCHa8a+NeLhG/gL0PmNphUJ ef/7Hk00QrJxJdgZZcuArarijayoJ1WolQPgFCKQvK/RYJWc6tHbS++ZfitDYbVUOX3y a8Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=/83GeW+k79u272pQGTACZ8P8QoN5s3z+qgGSys7KadQ=; b=FjvHSAnfr3H1/sgVP2ch+bLFWk3NqtYIkoyEoBuNxW9XhlAm4tmaqJUzyoUVMWz4PD qd1JhcrlmYcv+wNW0bAlGfxGBEZt6ccWcA52DxGRxmfUbmf7P23r6asLxRQwiuobA/Zw BatDrhF895QXhShIj/kXwq32sBXXePvKc52llJ4k9TiHj8PcXvdtjImiuva8BzzHGq8P AoTo20DyRTir19TGgv/fEmNG2tCdxybmzWcn1MVn/vjy+E+Aw1lJlHfLO1bG9glJZXjl LpSGWskgnSsgOwbBR8t64ssoOw2NzhB3WeGOx2TZsVKtUzogPKWd9MQxoD1Ac1VN1F1L L+ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eLHscYxd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds5-20020a17090b08c500b00233399408e3si11966134pjb.86.2023.03.07.05.30.28; Tue, 07 Mar 2023 05:30:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eLHscYxd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230135AbjCGN1B (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Tue, 7 Mar 2023 08:27:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46444 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230429AbjCGN0t (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 7 Mar 2023 08:26:49 -0500 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B3432FCF8 for <linux-kernel@vger.kernel.org>; Tue, 7 Mar 2023 05:26:35 -0800 (PST) Received: by mail-lj1-x235.google.com with SMTP id x6so13164628ljq.1 for <linux-kernel@vger.kernel.org>; Tue, 07 Mar 2023 05:26:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678195593; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=/83GeW+k79u272pQGTACZ8P8QoN5s3z+qgGSys7KadQ=; b=eLHscYxdeTg0PAfjF3EYyc6US60bNrQVoEaNdN8SHJaMy1dQ0sqIuUtn57/gpd9Huc iQLE9HNHssAD6k/mFF9oyzToCvJomuxsC9vFPhJ1z7vQ369Tc8Pz+nV69MIma51mT1Hm TExMJ8qOU3KDTCEahwWQJrSK4grIYmOAy6Obld5y9SN66pc+IltBVl4ikHUia+HW4z/z bWQb8V50oGLxdbRYOKKoshDFuDg6q0HCYczARapfFurQn9ZbJFXzGKOPc6xJlH2kaJVL u4xlNvW5v2Owuxd/cCrck9s6bqEFOHhkPWxdYKOPV06Wzhp5Yhf/N0lwLqf5XWwGgQux 1mZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678195593; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/83GeW+k79u272pQGTACZ8P8QoN5s3z+qgGSys7KadQ=; b=jMROmeJeoGvQojOPNp5ztsNZBSYp05K0Pp4LXkpP5Lq3Hjae8paGnjCGEZxNQmESSq kc/lLleeflMmj7pShP3ukmNS5OiARMpWCuP0AsjRlw/DOhGqiBe3XueDJTSbVhdmr6VO bEdPc1zOqan9VlRs+1wX4BUMRdb6ox2Cq621l4KtF54uy6T/raZ/E8p+lO717ZczQwhi ZsQUS6LZocigd0zn5lQT+L8yeZSgKTKoXv0Mz5K5xAxRcxm+JMcq24WW3KB9TvhmQlJ7 QFEXv412MUUBh5vliacWcfNtxKOBvToVBqoa8wy6K7MSVEBD4bNmzKNzud6YQo9wDJ2h ntBg== X-Gm-Message-State: AO0yUKVbM1MQfE+11xGFaAIfOsjh8x8WtXlNhZSYM0pvG8ORRFEKu7V+ v5P0BpemuLEFZxIY1pfVoL5hburbND9jWMV6ogQ= X-Received: by 2002:a05:651c:112:b0:290:8289:8cba with SMTP id a18-20020a05651c011200b0029082898cbamr4799799ljb.8.1678195593555; Tue, 07 Mar 2023 05:26:33 -0800 (PST) Received: from [192.168.1.101] (abyj16.neoplus.adsl.tpnet.pl. [83.9.29.16]) by smtp.gmail.com with ESMTPSA id m22-20020ac24256000000b004dc53353d15sm2016169lfl.281.2023.03.07.05.26.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Mar 2023 05:26:33 -0800 (PST) From: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Tue, 07 Mar 2023 14:26:27 +0100 Subject: [PATCH v2 1/2] dt-bindings: display/panel: Add Lenovo NT36523W BOE panel MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230217-topic-lenovo-panel-v2-1-2e2c64729330@linaro.org> References: <20230217-topic-lenovo-panel-v2-0-2e2c64729330@linaro.org> In-Reply-To: <20230217-topic-lenovo-panel-v2-0-2e2c64729330@linaro.org> To: Thierry Reding <thierry.reding@gmail.com>, Sam Ravnborg <sam@ravnborg.org>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Neil Armstrong <neil.armstrong@linaro.org> Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org>, Rob Herring <robh@kernel.org> X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678195591; l=1971; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=BL6PgSWTw3k5Fir1Htah32UMjqvFC7StjU4GIG0OqbM=; b=rJQlwZtqp7lJNd9CtmzwgYa0SBSj0oonaAuJF9ITro8esekS7gxHnLDRqJ+Ou/NdexWOeXwAppaX q0NtCAiFDrC0eTEGaxL9o8xmirics2OUrimDr8L4geKq2E+krbVl X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_HTTP,RCVD_IN_SORBS_SOCKS,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759715882791792297?= X-GMAIL-MSGID: =?utf-8?q?1759715882791792297?= |
Series |
Add support for Lenovo NT36523W BOE panel
|
|
Commit Message
Konrad Dybcio
March 7, 2023, 1:26 p.m. UTC
Add bindings for the 2000x1200px IPS panel found on Lenovo Tab P11/ XiaoXin Pad devices. Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> --- .../display/panel/lenovo,nt36523w-boe-j606.yaml | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+)
Comments
On Tue, Mar 7, 2023 at 2:26 PM Konrad Dybcio <konrad.dybcio@linaro.org> wrote: > Add bindings for the 2000x1200px IPS panel found on Lenovo Tab P11/ > XiaoXin Pad devices. > > Reviewed-by: Rob Herring <robh@kernel.org> > Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> (...) > +$id: http://devicetree.org/schemas/display/panel/lenovo,nt36523w-boe-j606.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: NT36523W BOE panel found on Lenovo J606 devices It's a Novatek NT36523 display controller-based device isn't it? I would reflect that in the title or at least the description. > + > +maintainers: > + - Konrad Dybcio <konrad.dybcio@linaro.org> > + > +allOf: > + - $ref: panel-common.yaml# > + > +properties: > + compatible: > + const: lenovo,nt36523w-boe-j606 > + > + reg: > + maxItems: 1 > + description: DSI virtual channel > + > + vddio-supply: true > + reset-gpios: true > + rotation: true > + port: true This is clearly (as can be seen from the magic in the driver) a Novatek NT36523 display controller, just configured differently. https://lore.kernel.org/lkml/20230220121258.10727-1-lujianhua000@gmail.com/T/ Why can't you just modify the existing nt36523 binding from Jianhua Lu by e.g. making these two non-required: - vddpos-supply - vddneg-supply It would not be helpful for driver writers to have two different bindings for similar hardware hand having to write code to handle different properties depending on which binding is used, so please unify into one binding by cooperating with Jianhua. Would it help if we merged Jianhua's binding so you can build on top? Yours, Linus Walleij
On 7.03.2023 23:08, Linus Walleij wrote: > On Tue, Mar 7, 2023 at 2:26 PM Konrad Dybcio <konrad.dybcio@linaro.org> wrote: > >> Add bindings for the 2000x1200px IPS panel found on Lenovo Tab P11/ >> XiaoXin Pad devices. >> >> Reviewed-by: Rob Herring <robh@kernel.org> >> Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> > > (...) >> +$id: http://devicetree.org/schemas/display/panel/lenovo,nt36523w-boe-j606.yaml# >> +$schema: http://devicetree.org/meta-schemas/core.yaml# >> + >> +title: NT36523W BOE panel found on Lenovo J606 devices > > It's a Novatek NT36523 display controller-based device isn't it? > > I would reflect that in the title or at least the description. > >> + >> +maintainers: >> + - Konrad Dybcio <konrad.dybcio@linaro.org> >> + >> +allOf: >> + - $ref: panel-common.yaml# >> + >> +properties: >> + compatible: >> + const: lenovo,nt36523w-boe-j606 >> + >> + reg: >> + maxItems: 1 >> + description: DSI virtual channel >> + >> + vddio-supply: true >> + reset-gpios: true >> + rotation: true >> + port: true > > This is clearly (as can be seen from the magic in the driver) a > Novatek NT36523 display controller, just configured differently. > https://lore.kernel.org/lkml/20230220121258.10727-1-lujianhua000@gmail.com/T/ > > Why can't you just modify the existing nt36523 binding from > Jianhua Lu by e.g. making these two non-required: > > - vddpos-supply > - vddneg-supply > > It would not be helpful for driver writers to have two different bindings > for similar hardware hand having to write code to handle different > properties depending on which binding is used, so please unify into > one binding by cooperating with Jianhua. I'll look into Jianhua's patchset and try to work atop that! > > Would it help if we merged Jianhua's binding so you can build on topYes please, the less out-of-tree dependencies the better.. > > Yours, > Linus Walleij
On Wed, Mar 8, 2023 at 12:02 PM Konrad Dybcio <konrad.dybcio@linaro.org> wrote: > > It would not be helpful for driver writers to have two different bindings > > for similar hardware hand having to write code to handle different > > properties depending on which binding is used, so please unify into > > one binding by cooperating with Jianhua. > I'll look into Jianhua's patchset and try to work atop that! Jianhua's driver is merged to drm-misc-next so you can make your addendum now! https://cgit.freedesktop.org/drm/drm-misc/commit/?id=c61093b56a2ff15e449e8af56e96dc5a312baf25 https://cgit.freedesktop.org/drm/drm-misc/commit/?id=0993234a00451e0a5c3e47d8b0f2e01dac6cedbf Yours, Linus Walleij
diff --git a/Documentation/devicetree/bindings/display/panel/lenovo,nt36523w-boe-j606.yaml b/Documentation/devicetree/bindings/display/panel/lenovo,nt36523w-boe-j606.yaml new file mode 100644 index 000000000000..43dcbe3f9f30 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/lenovo,nt36523w-boe-j606.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/lenovo,nt36523w-boe-j606.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NT36523W BOE panel found on Lenovo J606 devices + +maintainers: + - Konrad Dybcio <konrad.dybcio@linaro.org> + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: lenovo,nt36523w-boe-j606 + + reg: + maxItems: 1 + description: DSI virtual channel + + vddio-supply: true + reset-gpios: true + rotation: true + port: true + +additionalProperties: false + +required: + - compatible + - reg + - vddio-supply + - reset-gpios + - port + +examples: + - | + #include <dt-bindings/gpio/gpio.h> + dsi { + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "lenovo,nt36523w-boe-j606"; + reg = <0>; + + reset-gpios = <&tlmm 82 GPIO_ACTIVE_LOW>; + vddio-supply = <&pm6125_l9>; + + rotation = <180>; + + port { + panel0_in: endpoint { + remote-endpoint = <&mdss_dsi0_out>; + }; + }; + }; + }; +...