From patchwork Wed Jun 21 11:21:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 110986 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp4289616vqr; Wed, 21 Jun 2023 04:29:20 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5tqE1lga4V1XO+L6l67ybQ3PSTKKeyrC4IxeKXUJXFj0qO8DiVJM7k7M+svyHW7U6EsnFf X-Received: by 2002:a05:6a20:840f:b0:112:5404:88cd with SMTP id c15-20020a056a20840f00b00112540488cdmr12470950pzd.60.1687346960136; Wed, 21 Jun 2023 04:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687346960; cv=none; d=google.com; s=arc-20160816; b=yw6zgY7D/Mtw2O4bz6Wqyq3tE/O9T6dwXK1q368iAnpsvbCLFAg50uQMOL81VfpD0T eUlDPmECoDl3Vk89hxkTqcmuW6Qco/k1JNHCEld29x2X6GRhXGWGPg6CQ19fZAnwWUHy FbZnrUzbOHPMRc3/fLauBRiTGF49U9g3skInsFW3evBi8xOCiGfYy5fcDaadbHx5nfkw Ha6v7eUcZ/zx5rx4rp8vvSl+qv28kHFX+I7Ah7iWyu2cbna8U1CLZ5FvRBagGMSeWQ2q iSbLK0yCfDpIOiuXOlGt83SKn73JB2MA8O34yTCqUAsKOAnA9J4a0ET2p95mtWXxhw+D XbVw== 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=UXNuFRDfRONCX2Ljf/J131jhsnM7rjkKz5kmnnhI4f0=; b=EO7rsfMzxpP3iwi2I3ftZ2dI+6ibVe8CBJuzXNIzfm8u7KmqxAP73WCULI3D85Wvos LfJ7tFkrrLgpCvk5JQlWXQoyMq7PRvDJ4lejhvOX+dIPhTHA56nlJCwY2Ui0EBmncMGT 7/DYbdGC01ecI/SA4jgXRTYrzMBsfEMqL4Og8tzNhc65XeZKfg5AYM87pGsDobOryS7B 0ybKCib4BueZSn3fb1xJYyRvIoINsBzI7JWUEQUZTXmYTha1sjdRGM10ZFVlO3jlTIkb iJGlS9cSYZPI0OhziJT3PdLwFami8+gYp2Lh7tLwAqrvilJsakpaRHHeom29vKMrBei2 dXlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OA71e0oH; 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 f29-20020aa79d9d000000b0066975f3a955si2831284pfq.74.2023.06.21.04.29.07; Wed, 21 Jun 2023 04:29:20 -0700 (PDT) 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=OA71e0oH; 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 S232521AbjFULWQ (ORCPT + 99 others); Wed, 21 Jun 2023 07:22:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232412AbjFULWL (ORCPT ); Wed, 21 Jun 2023 07:22:11 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 94F561BC for ; Wed, 21 Jun 2023 04:22:09 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 38308e7fff4ca-2b477e9d396so48699291fa.3 for ; Wed, 21 Jun 2023 04:22:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687346527; x=1689938527; 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=UXNuFRDfRONCX2Ljf/J131jhsnM7rjkKz5kmnnhI4f0=; b=OA71e0oH1ow3bddAkBl/4iC2nHVHVEQpNMXTXjy5q8oY6wN8onQYVYcPhvuYfuEhi/ F8133+NfNsU5h3vR3sEdZkOWF1nRjA3sZmHe7W9T1LZaa5zGg63FephQNEafhsKtQwQT Z4SioN7SBSq19Te7yasFLHX6JV3sIW327VG2DCa9TQcYV7yVYFDde6sgrZBkzeQC6ivx Jl3ZE90UOKvcIBOoq96mJE+I+wjacRvyg0Y3DszZIlddvV6ixg2xeaYWTOEJrhgOOFCf E+MpLQQwcuePQL+qF76ZtJpP7x+3FM/dJ6zTQOHCfGMKQZJDlNwQ4yKjFYqi5GycAj8Z +o0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687346527; x=1689938527; 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=UXNuFRDfRONCX2Ljf/J131jhsnM7rjkKz5kmnnhI4f0=; b=Bx8yM/k1hGM6E9uc+NVtwiPrfu9X1MXPxPFVcfwbTf7o0ChKRrQ//e52g5idnfqpE0 RzAess6pBfABVzVWkOjof1i32J2khjN9xyv6cK5Yd2daxixuapaftjFXVOB8fIqDyFsJ bNEED5Pz9ApFe60cdj4SZcEm7QjYNKkJpMdIrFFlDT4KyZdvEtRwVNhH0P+TcbmfI7fn 17VvOAMZObjR67wpL8CKm2FB4nMYClD4/9OtlTzchUE7xge6tCpLIrnGpoEyGVhmU03C G/6jSubBW4ttw7ltxcKA1GjdMXktmLAmj0axdvMiqtkM4v/sCz3Dhmf6m30HlVitWWde vUeQ== X-Gm-Message-State: AC+VfDwaDq3HCCIQGlgV9t/QoxRo38c75qLj/EDJkBaFnjcV1QUD0wXF doQVbEUDI8Kt38vThifc1QFrkA== X-Received: by 2002:a2e:8893:0:b0:2b1:e8f8:e0ff with SMTP id k19-20020a2e8893000000b002b1e8f8e0ffmr10305167lji.10.1687346527749; Wed, 21 Jun 2023 04:22:07 -0700 (PDT) Received: from [192.168.1.101] (abxj193.neoplus.adsl.tpnet.pl. [83.9.3.193]) by smtp.gmail.com with ESMTPSA id l4-20020a05651c10c400b002b22a1a21easm866171ljn.110.2023.06.21.04.22.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 04:22:07 -0700 (PDT) From: Konrad Dybcio Date: Wed, 21 Jun 2023 13:21:53 +0200 Subject: [PATCH v2 2/4] arm64: dts: qcom: sm6115p-j606f: Hook up display MIME-Version: 1.0 Message-Id: <20230620-topic-gpu_tablet_disp-v2-2-0538ea1beb0b@linaro.org> References: <20230620-topic-gpu_tablet_disp-v2-0-0538ea1beb0b@linaro.org> In-Reply-To: <20230620-topic-gpu_tablet_disp-v2-0-0538ea1beb0b@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=1687346515; l=2335; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=zqiuY9v4CCMTGwogxkI9VdCQQdRQbDXhOrWQh4SQdKg=; b=+Dsso/rqDQqEogRq4wvoXfyca4HLi/fgHhps6JAAQAZpGRyaHdEpa+BF81sYKtoiL3LPEBupJ ZjC13YcP6U/At8+a+AKsId2j1jnSnpLExr0dL+zHFbe9cgwzVEMgIsJ 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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?1769311526111387735?= X-GMAIL-MSGID: =?utf-8?q?1769311526111387735?= 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 Reviewed-by: Dmitry Baryshkov --- 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..667273ae0553 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 &mdss_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; + }; + + mdss_dsi_active: dsi-active-state { + pins = "gpio82"; + function = "gpio"; + drive-strength = <8>; + bias-disable; + }; }; &ufs_mem_hc {