From patchwork Fri Feb 17 11:29:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 58526 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp839801wrn; Fri, 17 Feb 2023 03:47:52 -0800 (PST) X-Google-Smtp-Source: AK7set+YKVd0Y1IkBExuZ2wZ/LXY9s9D+SZWpno1Mm6RA50mqmr/vJeJP73ov9UTITfo5kb2wXiT X-Received: by 2002:a17:906:d99:b0:8b2:e92:41e1 with SMTP id m25-20020a1709060d9900b008b20e9241e1mr1735050eji.9.1676634472522; Fri, 17 Feb 2023 03:47:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676634472; cv=none; d=google.com; s=arc-20160816; b=xA13+zSt3+wCd7Bxf8UQ+PymQav/dF676HdaPusrf4h3zA7FGo9VDeeO09DZczK0bZ Tbd8ZWslTg4pl9owK7toiP2EbYLld3U4qRy/MXpoysMaBmnhssmUAW9YETmfUOKdQNsF ohRN5WzzBv3vKejJnk+j8/aaVoubI4xjIdybzVatxN/JlAdwFO94uEQgVlIUbFVeclxR 0CRaamL+XwmodDaRX6L4w1o3gp1BzBwebAvX4h9U0q2U68lPMqlgoTV+FzXyQOA1VX8o Bkz9usMg9pwsYvJTSbp3A3JcJZ8zqUybKgdmd+6aFGfi23VTCSjsmcBeGZ12hxfsLTKt QulQ== 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=zNs2vQo3lLrcKzglv5bVhib1E0B0JYWJk13Jcuaahds=; b=GkR9aZDaGL22pfNCasKe2RLTBtMoY3+R93DEhEyzG9+NZYXYnNLrXehcly1gqZQZkN A9CstCDJrj2LMYJGb96BgMkko4gMKiuxEEnyPGBSwaBtqeHAEBruwCQziNXYTl2sVzf7 mITZRs3IFYQ5dveFhLHTZgKxfNctp7YIXl+AGspQObKKv2HB8UHX8TFEK1kqT293Vuzj hXlozKkR3tmRVoQeve45+b+ISI6nRQuPvUZTWLJDWK2wwFnXFsrJ9fOXLDPt4q39Vvz1 4Pi0NmbMdwQRKrH+Z3MYN6XsAOCDqNnUB5TgA1YjoOArSQ0WoyRIP3DYolYA9GseaJYm Hu2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Oqrocxrw; 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 um19-20020a170907cb1300b008b12c3ef2ccsi3231781ejc.486.2023.02.17.03.47.25; Fri, 17 Feb 2023 03:47:52 -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=Oqrocxrw; 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 S229949AbjBQL3Q (ORCPT + 99 others); Fri, 17 Feb 2023 06:29:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43936 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230133AbjBQL3O (ORCPT ); Fri, 17 Feb 2023 06:29:14 -0500 Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E24EE62431 for ; Fri, 17 Feb 2023 03:29:12 -0800 (PST) Received: by mail-lj1-x22c.google.com with SMTP id z10so654751ljq.2 for ; Fri, 17 Feb 2023 03:29:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=zNs2vQo3lLrcKzglv5bVhib1E0B0JYWJk13Jcuaahds=; b=OqrocxrwWYfL5lGbp6Ljezuz+33eJkd89GCGdKsCCuMzqRWPC5EJ2rKhvsiddg56cY 9VoBuMeO0i0uKqBtzl4snMImuVNFe3l2C2uhc9lY5qiCnETQrbHA9H5RU+6kQdexLVhs to8ajaKBXJjaFtzLCUMgjnBhUK9csj/DPF1/sP2RV+RaITnWUxWptlorrJj8SU85fdn1 oRuFbTuoi+e2gJGyBBY13kuC0MzyOgSh0LsKpbC2kuY9jrkF2f3j++8k3ZzE/NAob6at xM7m75h1lov/BQy4TaaGNpEkMsftlzkEuj4w4V8U1kYEHlu3fHrNblvycCkC4QNn2JkO NjdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=zNs2vQo3lLrcKzglv5bVhib1E0B0JYWJk13Jcuaahds=; b=WDwULnzHcRb/5pcxlMBml+28e5xKEaI+U1faKgfdy7DskuAg6QoZPyyIkgwIy3dwQB eOrAt3L/c/AdFFRL+r4HMrg//XSTLI5JEpUd0v/KQr6KmM74rsVAD67sCwsaQpL14rL6 EeZTFLY8AhAkKvlxpJTZXqpTflueDuGlj2fLTvDhqzA6UaSCFr3KMw8bUEURVX4dM4Pk 0JtfDHBN5RIbsod6R7JhDRjSuG6eVJ/u5mZuyBOuACA1VXi+cJpeN914raKypNwPIUXl rZuAFI5TU9ieU8WXsNXyjkDlZqD3EoDMOISxoTPjHGoJ0CMfujSnsW3glT5VIcAEzjIQ wI9w== X-Gm-Message-State: AO0yUKWrW/aeBsfcce0GeCkekzmExSA1Allba8AfjcvHVp8WX+YCvXN6 KSOTFR+gqG7mLBpV2oOH0uwisg== X-Received: by 2002:a2e:b5d9:0:b0:290:77e9:9bbd with SMTP id g25-20020a2eb5d9000000b0029077e99bbdmr2274283ljn.9.1676633351215; Fri, 17 Feb 2023 03:29:11 -0800 (PST) Received: from [192.168.1.101] (abxh117.neoplus.adsl.tpnet.pl. [83.9.1.117]) by smtp.gmail.com with ESMTPSA id t6-20020a2e9546000000b00267232d0652sm564505ljh.46.2023.02.17.03.29.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Feb 2023 03:29:10 -0800 (PST) From: Konrad Dybcio Date: Fri, 17 Feb 2023 12:29:07 +0100 Subject: [PATCH 1/2] dt-bindings: display/panel: Add Lenovo NT36523W BOE panel MIME-Version: 1.0 Message-Id: <20230217-topic-lenovo-panel-v1-1-9d7ee1602089@linaro.org> References: <20230217-topic-lenovo-panel-v1-0-9d7ee1602089@linaro.org> In-Reply-To: <20230217-topic-lenovo-panel-v1-0-9d7ee1602089@linaro.org> To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Neil Armstrong Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1676633349; l=1927; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=9RfuxhpRFz2/QmkCIpkPslVFnzg6JhJYl/h6DFFCsbE=; b=Q3iNOeETVlZOsQu8rH9tZfomlp4EESrQCCX5l11srlq88Bdmd8/XCtd+SK0wZf8bvZmgceCXR7NC VanJlPBqC1tQHu9ivaS+kb975TUDPfFWNRmGTnMZEIIMGTbynDsI X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758078668951397006?= X-GMAIL-MSGID: =?utf-8?q?1758078668951397006?= Add bindings for the 2000x1200px IPS panel found on Lenovo Tab P11/ XiaoXin Pad devices. Signed-off-by: Konrad Dybcio Reviewed-by: Rob Herring --- .../display/panel/lenovo,nt36523w-boe-j606.yaml | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) 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 + +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 + 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>; + }; + }; + }; + }; +... From patchwork Fri Feb 17 11:29:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 58527 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp840499wrn; Fri, 17 Feb 2023 03:49:53 -0800 (PST) X-Google-Smtp-Source: AK7set8oNZhlT5oJ27ifWmYnIQ9Pok+eDmBw1H3zBETNCM4w+VLS7W3clAXiKnB+It67E7bMRM+m X-Received: by 2002:a17:906:883:b0:87d:f29:3a16 with SMTP id n3-20020a170906088300b0087d0f293a16mr375238eje.34.1676634593263; Fri, 17 Feb 2023 03:49:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676634593; cv=none; d=google.com; s=arc-20160816; b=DmhyEtwleySLOEbsK25sPa3OuqNNNXVh/HkL22DTVmI1efv2TnwHdAXaX2240fB2GI LdhyP9H6EwRxRBkBikQCi5Zytd8m74cAJFiqfpYqX8hCF6JlQy0Ke+4O4qiSVbgEV2g3 6eKqyWJ49/NrgEuKxbSmW56FQlUpjyqRjmDE8HwXYCRC0298JmAXWd7aEUbFa9RVHXky 4eHJUow88Aw7VZSw+Krl9btqIlPBQCnqr/eS95Y+dod3d5hoMoxxFwbo/YyvR+6KYJto QGYiEcZ/6kiifUm6VtsHG45K+V5c+SfXEOpRROcg+QbKKmazP2QVU2aoW5TeRCKPES9T bo9w== 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=7AqLHjqWw3Y0LRj/PHpfrE4GfH6Ukw47h6oB0vSykns=; b=yf1qJVzdEMvz4+fmnBNv3aC0+B+HrF1RuuU+2wSB+wy1YuTwdEErsFv9kTK3C33glo mRDEXiaUSVxS0LgLr4KtvLUg/pE8SKIzOWapYMp+9eAuNPspxN5uPmcRuGkG0VcCsfea yKRraDnTTUbGK9f03nhFVXndYANcpAuC2YiV22MQjDW505VYigiS2SJz87vybFBWOoCH 1xR+3GKvNr4PazTeqwuRuJwKdMy/yZMFrM/E1EwJgTzWxEsSppLG1u2xgGRHDaEl78S9 dphNlx6AHIYWkTzEiauSvrdyfayp5WFJckrYf+Y83fIvaOc78pU3Sg6hIg3mDQ5ywvyR S6tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OE1WISk2; 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 we9-20020a170907234900b008b15a30137esi3886977ejb.53.2023.02.17.03.49.29; Fri, 17 Feb 2023 03:49:53 -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=OE1WISk2; 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 S229715AbjBQL3X (ORCPT + 99 others); Fri, 17 Feb 2023 06:29:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230160AbjBQL3S (ORCPT ); Fri, 17 Feb 2023 06:29:18 -0500 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DC576534F for ; Fri, 17 Feb 2023 03:29:14 -0800 (PST) Received: by mail-lj1-x231.google.com with SMTP id a18so906976ljp.7 for ; Fri, 17 Feb 2023 03:29:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=7AqLHjqWw3Y0LRj/PHpfrE4GfH6Ukw47h6oB0vSykns=; b=OE1WISk2/iDW9dWFPQHqKj8OWgqPwW8oe8DJRC+7DV9Aabe96DF3OX3l9Gty7sD7g6 fpyzuoBF8WD/telyfqYHaMcJdppawu8RNpCbSrIfTt5L4FPbkC1SV+h0q9qKGe/bIVmV JG/HAVam1GZl7XyQ4avp+XY0bdTzwuwSzsUbZHzpVM4VA10AYhMmxJPGwxfVoWqgSLNf VMHUyrOjV03dWl6gt1o7CbPBObnEYshRbMj3a9OdNTjcSOxeiXRTGwaDKxFxcMaUj1WC KU1Viyesa6zWyMN0IdpIH3tuW4eGPtS9mJz28bPetYURv5wiOZ6SukGUqGsfyVn/9WOm +xLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=7AqLHjqWw3Y0LRj/PHpfrE4GfH6Ukw47h6oB0vSykns=; b=l84ELEbwpX0fAAYPpGXsevdYWVGnpOLiGtw0iY5xtK/mgCMsRIRWl+MOr4G5fH5FxU mHL6YSc81r1RWkh0VdrUFMtEIFhp6dNum78zkt2txjz7LTNnHiviacfcBi0BIyBUfF1A RyRGXuYk7re0DTzRNxnJIUIGoYtcD+RUGLHfqWrVVjJQwYTISMHoScsu6+etO90GSeAZ qEoFOl3TqFUegtsarwe2fdKr37ljywgybP6X9/w83qli1EHUvQBbrUeniyniX6tmmHVw RDH6KD6/H9ezTZfAsL2AOEhKtQBM15z81OaFSyqWkmPcAii0TKT35WELo5cQ4JUSXR8/ 0KVA== X-Gm-Message-State: AO0yUKUxVIirlKyt43z2OUo1vEXhIp2ZDr3YMJVWJ35+3O5wSKPHkKYb ORXvQD4iNBzTaKAHb4z7b1O8Hw== X-Received: by 2002:a05:651c:554:b0:290:6533:42d4 with SMTP id q20-20020a05651c055400b00290653342d4mr150517ljp.37.1676633352640; Fri, 17 Feb 2023 03:29:12 -0800 (PST) Received: from [192.168.1.101] (abxh117.neoplus.adsl.tpnet.pl. [83.9.1.117]) by smtp.gmail.com with ESMTPSA id t6-20020a2e9546000000b00267232d0652sm564505ljh.46.2023.02.17.03.29.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Feb 2023 03:29:12 -0800 (PST) From: Konrad Dybcio Date: Fri, 17 Feb 2023 12:29:08 +0100 Subject: [PATCH 2/2] gpu/drm/panel: Add Lenovo NT36523W BOE panel MIME-Version: 1.0 Message-Id: <20230217-topic-lenovo-panel-v1-2-9d7ee1602089@linaro.org> References: <20230217-topic-lenovo-panel-v1-0-9d7ee1602089@linaro.org> In-Reply-To: <20230217-topic-lenovo-panel-v1-0-9d7ee1602089@linaro.org> To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Neil Armstrong Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1676633349; l=30303; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=2DK7q9EPSJ02gs0gALClr/HUDroTQsAHImFFwsWDmKY=; b=NVORirdoRdok4TjATgslLl3Oou7GCUbA5KgAOWV5T8rTV+MmtnD6qvCYVJmXzZFmuT5jKXXsU4+q mbEEjcRsA46b7NeyFLfefyCbDZT3VVcLmiUdT/PEq+EHEQp24A+M X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758078795041730498?= X-GMAIL-MSGID: =?utf-8?q?1758078795041730498?= Introduce support for the BOE panel with a NT36523W touch/driver IC found on some Lenovo Tab P11 devices. It's a 2000x1200, 24bit RGB MIPI DSI panel with integrated DCS-controlled backlight (that expects big-endian communication). Signed-off-by: Konrad Dybcio Reviewed-by: Neil Armstrong --- drivers/gpu/drm/panel/Kconfig | 12 + drivers/gpu/drm/panel/Makefile | 1 + drivers/gpu/drm/panel/panel-lenovo-nt36523w-boe.c | 751 ++++++++++++++++++++++ 3 files changed, 764 insertions(+) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 8eeee71c0000..2abc89284a77 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -297,6 +297,18 @@ config DRM_PANEL_LEADTEK_LTK500HD1829 24 bit RGB per pixel. It provides a MIPI DSI interface to the host and has a built-in LED backlight. +config DRM_PANEL_LENOVO_NT36523W_BOE + tristate "Lenovo NT36523W BOE panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for BOE display panel with + NT36523W driver/touch IC, found on some Lenovo Tab P11 devices. The + panel has a 2000x1200 resolution and uses 24 bit RGB per pixel. It + provides a MIPI DSI interface to the host and has a built-in LED + backlight. + config DRM_PANEL_SAMSUNG_LD9040 tristate "Samsung LD9040 RGB/SPI panel" depends on OF && SPI diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index c05aa9e23907..7ed908cc83a6 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -27,6 +27,7 @@ obj-$(CONFIG_DRM_PANEL_KHADAS_TS050) += panel-khadas-ts050.o obj-$(CONFIG_DRM_PANEL_KINGDISPLAY_KD097D04) += panel-kingdisplay-kd097d04.o obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK050H3146W) += panel-leadtek-ltk050h3146w.o obj-$(CONFIG_DRM_PANEL_LEADTEK_LTK500HD1829) += panel-leadtek-ltk500hd1829.o +obj-$(CONFIG_DRM_PANEL_LENOVO_NT36523W_BOE) += panel-lenovo-nt36523w-boe.o obj-$(CONFIG_DRM_PANEL_LG_LB035Q02) += panel-lg-lb035q02.o obj-$(CONFIG_DRM_PANEL_LG_LG4573) += panel-lg-lg4573.o obj-$(CONFIG_DRM_PANEL_NEC_NL8048HL11) += panel-nec-nl8048hl11.o diff --git a/drivers/gpu/drm/panel/panel-lenovo-nt36523w-boe.c b/drivers/gpu/drm/panel/panel-lenovo-nt36523w-boe.c new file mode 100644 index 000000000000..83478e471493 --- /dev/null +++ b/drivers/gpu/drm/panel/panel-lenovo-nt36523w-boe.c @@ -0,0 +1,751 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Copyright (c) 2023 Linaro Limited + * + * Generated with linux-mdss-dsi-panel-driver-generator with + * some manual adjustments. + */ +#include +#include +#include +#include +#include +#include + +#include