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 {