From patchwork Tue Jun 20 13:17:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 694550 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2C3AAEB64D8 for ; Tue, 20 Jun 2023 13:18:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232889AbjFTNSx (ORCPT ); Tue, 20 Jun 2023 09:18:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231909AbjFTNSb (ORCPT ); Tue, 20 Jun 2023 09:18:31 -0400 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22F021996 for ; Tue, 20 Jun 2023 06:18:08 -0700 (PDT) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2b46773e427so48117141fa.3 for ; Tue, 20 Jun 2023 06:18:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687267084; x=1689859084; 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=MsrvnT9T0p/qV1sujN7cDQwrqF3l8gVITHQcDojMsfQ=; b=B7jJXdLbFY6JiGjClHRSSf6DZiVKMmjOXV5SnBGF5ad7z7XqKxtc+yQVNYmCN78BEi Ghzhgr9+YdfVBd/soZOVY3txRA9zpaNgqoEHkdis+Y5YQY0P949nAxsoeCMSWnARow+m 4h2cRedBOkHvRTZM3yt9zJTnooNZRICnMHa4F2FNT/qiQFLeLCdbKfT5xdDtsxUz+2uB w03xwn71stvluKNY+JLoa/ImThQ9NIMCkaBD5p19DMwdVcOGtHCZZjOmQbgL63loguPy qrzqyUMZWuspDDGSmIPHREYKKAgQm1SWWPbJjHb6SaUZyEsTqy1PW9c47zY4dEHNMCej yLqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687267084; x=1689859084; 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=MsrvnT9T0p/qV1sujN7cDQwrqF3l8gVITHQcDojMsfQ=; b=SmcG1f4fKbnkBHbXdLzsWt5T7WvM3lVmeKp5jOfo9pPVhoCehWVMNMIp8pEiuITE2z bfcGjXa4z02U0Xn6ZEP/R/oNhIdLL+jtzpJGJq76U8UO0wDBXRTbxBs6ib9gB1kvnt2W 0tjExHrQLLZqmrpbltu2ikRwuFR1NahtbR2R7p5kBYpgppE3gobMKnqNsfwMulfvgf1f +poqRq5COtQUHPABhpq6IOeSjSRLYdRggL2yLFUT0BryKerh8KFqUGffTGkeCAFUjenA BsUUMTeJEfJVIlCW3b0Dpg9bJlBLnjQH63tqwS3vK4I8a+WpcHw/s6cmovcSkI3V81gV dXbA== X-Gm-Message-State: AC+VfDxa3ywZSzMtnMlv6IUGIFqPPXatopP8TsYBxvLFPOpk/+b4srGI CGaB0HM3ST5TeqWdubDPAHVg2Q== X-Google-Smtp-Source: ACHHUZ4O93uhD9+Mj+NzZ+ELe/fBncbOUow7CyQrPsnk+x1A/Gm8tSYuWZS+WVV1vla4p/R7pM4I4A== X-Received: by 2002:a2e:300f:0:b0:2b4:7da2:bd8 with SMTP id w15-20020a2e300f000000b002b47da20bd8mr3486877ljw.12.1687267084397; Tue, 20 Jun 2023 06:18:04 -0700 (PDT) Received: from [192.168.1.101] (abxj193.neoplus.adsl.tpnet.pl. [83.9.3.193]) by smtp.gmail.com with ESMTPSA id h19-20020a2eb0f3000000b002b3318c8d6fsm414433ljl.28.2023.06.20.06.18.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 06:18:04 -0700 (PDT) From: Konrad Dybcio Date: Tue, 20 Jun 2023 15:17:46 +0200 Subject: [PATCH 2/4] arm64: dts: qcom: sm6115p-j606f: Hook up display MIME-Version: 1.0 Message-Id: <20230620-topic-gpu_tablet_disp-v1-2-7bb02bec8dc0@linaro.org> References: <20230620-topic-gpu_tablet_disp-v1-0-7bb02bec8dc0@linaro.org> In-Reply-To: <20230620-topic-gpu_tablet_disp-v1-0-7bb02bec8dc0@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1687267079; l=2332; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=zXpZVR1TGXql/mDZqvA9lCv4wOWep3YlYHv/GTPOx3A=; b=b8fOgcNhr6+pt9Mtgh02NY9s7QIx71BMaKS1KwfeVpAr5zsO+0lqv8OmYA1ruqfOGKh01glFk VAvS6XYVTiOCSBNqRrXOznP35sQvFLzmba1El2FVJgSTRpRdN0Qnq7u X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Enable the required nodes, add the required pins and tweak a regulator to enable non-simplefb display on the Tab P11. Do note that there exists a second SKU with a different panel+touch combo, but due to insufficient information, that will need to be handled separately. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts | 57 +++++++++++++++++++++-- 1 file changed, 52 insertions(+), 5 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts b/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts index 81fdcaf48926..a10ce676bd44 100644 --- a/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts +++ b/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts @@ -65,9 +65,41 @@ ramoops@ffc00000 { }; }; -&dispcc { - /* HACK: disable until a panel driver is ready to retain simplefb */ - status = "disabled"; +&mdss { + status = "okay"; +}; + +&mdss_dsi0 { + vdda-supply = <&pm6125_l18>; + status = "okay"; + + panel: panel@0 { + compatible = "lenovo,j606f-boe-nt36523w", "novatek,nt36523w"; + reg = <0>; + + reset-gpios = <&tlmm 82 GPIO_ACTIVE_LOW>; + vddio-supply = <&pm6125_l9>; + + pinctrl-names = "default"; + pinctrl-0 = <&te_active &sde_dsi_active>; + + rotation = <180>; /* Yep, it's mounted upside down! */ + + port { + panel_in: endpoint { + remote-endpoint = <&mdss_dsi0_out>; + }; + }; + }; +}; + +&mdss_dsi0_out { + data-lanes = <0 1 2 3>; + remote-endpoint = <&panel_in>; +}; + +&mdss_dsi0_phy { + status = "okay"; }; &pm6125_gpios { @@ -212,8 +244,9 @@ pm6125_l17: l17 { }; pm6125_l18: l18 { - regulator-min-microvolt = <1104000>; - regulator-max-microvolt = <1312000>; + /* 1.104V-1.312V fixed @ 1.232V for DSIPHY */ + regulator-min-microvolt = <1232000>; + regulator-max-microvolt = <1232000>; }; pm6125_l19: l19 { @@ -282,6 +315,20 @@ sdc2_gate_pin: sdc2-gate-state { bias-pull-up; output-high; }; + + te_active: te-active-state { + pins = "gpio81"; + function = "mdp_vsync"; + drive-strength = <2>; + bias-pull-down; + }; + + sde_dsi_active: te-active-state { + pins = "gpio82"; + function = "gpio"; + drive-strength = <8>; + bias-disable; + }; }; &ufs_mem_hc { From patchwork Tue Jun 20 13:17:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 694549 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 634D8C001B3 for ; Tue, 20 Jun 2023 13:18:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230490AbjFTNS4 (ORCPT ); Tue, 20 Jun 2023 09:18:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230050AbjFTNSc (ORCPT ); Tue, 20 Jun 2023 09:18:32 -0400 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 2228E198D for ; Tue, 20 Jun 2023 06:18:08 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2b470330145so39941511fa.3 for ; Tue, 20 Jun 2023 06:18:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687267085; x=1689859085; 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=RPPnIKrExyggPEKNdXPVOY3qQ/GVfzx50WZpVsmSHmQ=; b=Hlweeu0GJUtdMkguNd4fWK1oyhlBLF9vxka7Ps3d5tEO2RY5wYL7JbeMXSPVUAamb3 0MuO7jtPJbYTrMM9/U6ZwHT/Zra8H+lQ/N4OB5gNARM7ZaQcIsj9RNKLjGo+NxAAi+CF 3XUW3LGt++IvfB4yWNgdlhvVmE3qtGqFn7gwW5m3vQDtQi98J0bgZ170WVhmlQJ4PX8F kejLuFwbi51rZi/k4JD3EVNYr7sSLCtf1QCAiofX53NhXFy4Cf9F7Iw1aDA0/8cwnue6 AxUsBSkl5sc3ADrYUsdYRIuLm+Bu0OHOUjVcaeu6hOK1NIKVqC0bUEtbJEwLVnpc2IQ1 V55w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687267085; x=1689859085; 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=RPPnIKrExyggPEKNdXPVOY3qQ/GVfzx50WZpVsmSHmQ=; b=cZ6eJjDznVoeagnLmTggK/OHtVYR4/Exddd4VIqFp6qu+v2didLgL8WcjiEYlX72WV 0gw/QudPdt0zlPf+rM2HkMDGGYjvs8vxFtgmySDwJzQBeKZKkzZZ35RdNHWtaP9DMEzg zHgczG3VkD/G8xAErqCdnSSNkuW0J74OdI/M5OnVlxpMgd+UQDsLqqqq1DrXPuLKT4rL BhIdGhWIf0Bkp1unT5bYx0BIWWIlaRTGAm6qwWRVB+94IAHOe3w/apUYsumXvXJNyQSM 2ls+xYl7j3xeXUBPiJVnE+crU+U9BkXdvIeKCMSU51s4S/jsMfouxaXODhaZvSV45ywW hipw== X-Gm-Message-State: AC+VfDzIA0PZIrvphiAN0rdkTjHmhmkNeSoUQS/hqUfSZrqULjVPyBWC WkbQ8ynhHFVgfbBcDjyDkh1gyc5SmY8OBwWJ5Z8= X-Google-Smtp-Source: ACHHUZ6n5nt4M+U09pwWxJOfKT31kbWnL6NzNVxLYdM8tz4R3Pv+8R+tZgyf+WUvdgrC8VkN0YW0Yw== X-Received: by 2002:a2e:92d6:0:b0:2b4:7a19:afc9 with SMTP id k22-20020a2e92d6000000b002b47a19afc9mr3338692ljh.15.1687267085479; Tue, 20 Jun 2023 06:18:05 -0700 (PDT) Received: from [192.168.1.101] (abxj193.neoplus.adsl.tpnet.pl. [83.9.3.193]) by smtp.gmail.com with ESMTPSA id h19-20020a2eb0f3000000b002b3318c8d6fsm414433ljl.28.2023.06.20.06.18.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jun 2023 06:18:05 -0700 (PDT) From: Konrad Dybcio Date: Tue, 20 Jun 2023 15:17:47 +0200 Subject: [PATCH 3/4] arm64: dts: qcom: sm6115p-j606f: Enable GPU MIME-Version: 1.0 Message-Id: <20230620-topic-gpu_tablet_disp-v1-3-7bb02bec8dc0@linaro.org> References: <20230620-topic-gpu_tablet_disp-v1-0-7bb02bec8dc0@linaro.org> In-Reply-To: <20230620-topic-gpu_tablet_disp-v1-0-7bb02bec8dc0@linaro.org> To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1687267079; l=728; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=DG1Kku4Yif9zFLSt2SwuInTVyNCBfhoN7wmz9kKZ/L4=; b=oCLFeh19WhAGL2UmgNqWuA9WEkoZvHgmgC/XlRQxNwXsJ7KgtLyvQU5/tL6TbG7plaZfrIrJ2 LipkQHs8M+zDHwEN3nS1zEPp3NdwZ9kMtO/0c97/SUeMUsgxRDuI05u X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Enable the A610 GPU and provide a firmware path to the ZAP blob. Signed-off-by: Konrad Dybcio --- arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts b/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts index a10ce676bd44..ed745678fadd 100644 --- a/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts +++ b/arch/arm64/boot/dts/qcom/sm6115p-lenovo-j606f.dts @@ -65,6 +65,14 @@ ramoops@ffc00000 { }; }; +&gpu { + status = "okay"; + + zap-shader { + firmware-name = "qcom/sm6115/LENOVO/J606F/a610_zap.mbn"; + }; +}; + &mdss { status = "okay"; };