From patchwork Sun Apr 4 19:44:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 415163 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3134110jai; Sun, 4 Apr 2021 12:45:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwoCGLspLE3IO8tfFF6uDTlL3zfkfvEVoNTVMvIOEJIeM3IQDBhi6ac3MO8dYSGUNVP9AH X-Received: by 2002:a17:906:c28f:: with SMTP id r15mr11831784ejz.314.1617565501116; Sun, 04 Apr 2021 12:45:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617565501; cv=none; d=google.com; s=arc-20160816; b=Gf02PLCtjjcNw4LrXaWkWkyqKUdFQ4z4mwq5MpRLHkY4GBVoLVgII/AnYIC8WcNFXS FHPV4lcZolYUNlHWpH+ZnvkE8KSieInt94Ht8znAd6jYTOWzsQvsNeDfr47OGkH/+Nu1 qxIDa6Pr0b/Zedm2Xu2h131GywxryB0wJNYPrEafqh/Axef0ZbQtaCyDqMMxw3MJwGTg iAHfclBGLW0uFF1aZNlYXZWzVBiSXbkXvgAFE2jTUHjXpZALzYwSxQzu5GHixYEYQ2yG L+sFuwWcRWUBBJnsoi58Upu2oiqMd1zWl4HYdqVbewbYWdt2kKwe6RIO0NDbe1Xx0msb egOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=1gVXYTt/wzzvsZpY0S8Ku5EMWZnneAZjbi5/gEN+9Z4=; b=ZPUVQsr6qtlmmL4t5lHSdwZPYNul6bszYH80ukc0KZmpmTsBvzeB6d00eibn3T4eRv uBb8P0hY1mib4tf7pT/2uRXLcAaLa4GZylMSi7P6S2A1uwshIhiox9T72oWg7aRN56mj iQ5c//d07A5g3j8E7BwbzVi2iIs5MOawr2dOFsalwkwbdIIgiGqng2duBwz4u8h+o27l o2se4x1EsIe4u2F1UI15XR+hZa4WEy9hKoZL89WYNH1sZmQiieUjyKceM57h/NfGUoat cEB9g/ddfILOvYII03P9g9QFIBfgb9uW8AhuHkK9yDLHvW/r6ajqveZGdicpgbPeManQ Ma1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Zhg0BOdZ; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cw12si534512edb.475.2021.04.04.12.45.00; Sun, 04 Apr 2021 12:45:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Zhg0BOdZ; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S231453AbhDDTo7 (ORCPT + 17 others); Sun, 4 Apr 2021 15:44:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52824 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231425AbhDDToz (ORCPT ); Sun, 4 Apr 2021 15:44:55 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5445FC061756 for ; Sun, 4 Apr 2021 12:44:43 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id x126so1923123pfc.13 for ; Sun, 04 Apr 2021 12:44:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1gVXYTt/wzzvsZpY0S8Ku5EMWZnneAZjbi5/gEN+9Z4=; b=Zhg0BOdZ9NRM5lmaM7rboPD1Z3jkVYbpRfCPSIf03TbB19dEc4nt5Qu73HvAsXp7vE HpHRkBCR3GB77aZ3m5SeMIe1fHGuLQuzzFuhiDsRyG1FrmVlITz4UP6XDyJDqxqW0QA2 ORfaLSRFmRz5dzkGOWdCBYwPQ3MWcvLm1lmhFOFcOw8022lRSJiij4Ppq33we3420/LP SeNq0qG9g5Rp2qVBb7ou553bcVIrwTr2CJEFfO80qmnu8rkh9OKZdnntZpOttRAzvyOU Yjhpc15wFJJC64b0h2p5JGttV+CU4i2r8VagqutGYiHWXEWLRMNtYtwxitHJFn6YlQC9 3Ddw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1gVXYTt/wzzvsZpY0S8Ku5EMWZnneAZjbi5/gEN+9Z4=; b=d3WovaxbbAJC/iPz6iLl1cEXMErnHe/VGAMBeOSAv+/k/gBvZq8NY2sUNe7IAja+OZ TS/cGr9pcLUCNc+dRV5EFkuL+sbgw5A45A318ibcHW6sjZy17SsGpzFjt31Y2JmvnJ5Y Kiv/oz8WjsDE6GUdQ5n/gUtj8fY/RM8bKLGuGF1LZR2W9orwdt7bhQTJGybXSTFpvRjY G68nf8cD7jsbs2fTbv5jCPYflO+cmqjODwjRgvSp23IHxL5Whe2xSUZyY2Gs5YAsG1JM 2/WoCRq46Mw/vl3FF21p55HNIOuWf1lDBgMGbr/9+Zs59LU5nqJtH6akU3bCuYStTXZE WFSQ== X-Gm-Message-State: AOAM533P3W+10xh4eiWr+FIFF1hgSURRdLhTFQJhP4ZjvATgTf+u1b41 HRE7UT1l18HjSZ0hE0eVAE0wzA== X-Received: by 2002:aa7:854c:0:b029:20a:68ac:7923 with SMTP id y12-20020aa7854c0000b029020a68ac7923mr21238420pfn.19.1617565482786; Sun, 04 Apr 2021 12:44:42 -0700 (PDT) Received: from localhost.localdomain ([49.207.217.34]) by smtp.gmail.com with ESMTPSA id r10sm1884057pjf.5.2021.04.04.12.44.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Apr 2021 12:44:42 -0700 (PDT) From: Amit Pundir To: Andy Gross , Bjorn Andersson , Konrad Dybcio , AngeloGioacchino Del Regno , Rob Herring , John Stultz , Sumit Semwal Cc: linux-arm-msm , dt , lkml , phone-devel@vger.kernel.org, Konrad Dybcio Subject: [PATCH v4] arm64: dts: qcom: sdm845-xiaomi-beryllium: Add DSI and panel bits Date: Mon, 5 Apr 2021 01:14:37 +0530 Message-Id: <20210404194437.537011-1-amit.pundir@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org From: Sumit Semwal Enabling the Display panel for beryllium requires DSI labibb regulators and panel dts nodes to be added. It is also required to keep some of the regulators as always-on. Signed-off-by: Sumit Semwal Signed-off-by: Amit Pundir Reviewed-by: Konrad Dybcio --- v4: Added Konrad's reviewed-by from v3. Added over current protection, pull-down and soft-start properties. Couldn't boot with downstream max-microamp values, so skipped it. Smoke tested on v5.12-rc5. v3: Addressed Konrad's concerns. Configured labibb regulators explicitly based on downstream microvolt values. Display comes up fine with default discharge-resistor-kohms and soft-start-us properties, so didn't touch them. Smoke tested on next-20210209. v2: Rebased to mainline (v5.11-rc6) and fixed build warnings. .../boot/dts/qcom/sdm845-xiaomi-beryllium.dts | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) -- 2.25.1 diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts index 86cbae63eaf7..7d029425336e 100644 --- a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts +++ b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts @@ -157,6 +157,14 @@ vreg_l13a_2p95: ldo13 { regulator-initial-mode = ; }; + vreg_l14a_1p8: ldo14 { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-initial-mode = ; + regulator-boot-on; + regulator-always-on; + }; + vreg_l17a_1p3: ldo17 { regulator-min-microvolt = <1304000>; regulator-max-microvolt = <1304000>; @@ -191,6 +199,7 @@ vreg_l26a_1p2: ldo26 { regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; regulator-initial-mode = ; + regulator-boot-on; }; }; }; @@ -200,6 +209,43 @@ &cdsp_pas { firmware-name = "qcom/sdm845/cdsp.mdt"; }; +&dsi0 { + status = "okay"; + vdda-supply = <&vreg_l26a_1p2>; + + #address-cells = <1>; + #size-cells = <0>; + + panel@0 { + compatible = "tianma,fhd-video"; + reg = <0>; + vddi0-supply = <&vreg_l14a_1p8>; + vddpos-supply = <&lab>; + vddneg-supply = <&ibb>; + + #address-cells = <1>; + #size-cells = <0>; + + reset-gpios = <&tlmm 6 GPIO_ACTIVE_LOW>; + + port { + tianma_nt36672a_in_0: endpoint { + remote-endpoint = <&dsi0_out>; + }; + }; + }; +}; + +&dsi0_out { + remote-endpoint = <&tianma_nt36672a_in_0>; + data-lanes = <0 1 2 3>; +}; + +&dsi0_phy { + status = "okay"; + vdds-supply = <&vreg_l1a_0p875>; +}; + &gcc { protected-clocks = , , @@ -215,6 +261,31 @@ zap-shader { }; }; +&ibb { + regulator-min-microvolt = <4600000>; + regulator-max-microvolt = <6000000>; + regulator-over-current-protection; + regulator-pull-down; + regulator-soft-start; + qcom,discharge-resistor-kohms = <300>; +}; + +&lab { + regulator-min-microvolt = <4600000>; + regulator-max-microvolt = <6000000>; + regulator-over-current-protection; + regulator-pull-down; + regulator-soft-start; +}; + +&mdss { + status = "okay"; +}; + +&mdss_mdp { + status = "okay"; +}; + &mss_pil { status = "okay"; firmware-name = "qcom/sdm845/mba.mbn", "qcom/sdm845/modem.mdt";