Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2803376pxb; Fri, 12 Feb 2021 01:29:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzigZ4dlTVfbHL0flemP5b+BZ28Wp8ycOEQXjIps9niwck6OmNtPJr4Jenrdbcl/I399hmb X-Received: by 2002:aa7:d297:: with SMTP id w23mr2417314edq.173.1613122150513; Fri, 12 Feb 2021 01:29:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613122150; cv=none; d=google.com; s=arc-20160816; b=cwi9kjHm0nvW9CZhlOAYVytlPDBjSlPtSBmmaaT8HkoIlAWfMWKCdHYEWNLawo4ieN eS0w/U8nkmDgURcN5IcLL2HY4C5hbVZEDkwvhW9Kdtsw5eDdQmpiXiAKzKyoBhYMFa0E 8ScOKlZKe8NesY6IXqSdfyMTPhRp7iqKR+2trr8Nn2a4KGExhta7uA0GRPVQByZ2mCXX H9HhLG4HbgtqKHI1xjcMbFMD0LexNeMij0SM0QpfhW1yPekqTuW146KOfDaPdAemAM8M /u1X0AZxm8/LYSxRPGqyvmHOTpmxei0zdSJmzwGfXUMT89AOqQu8hCv5y+FpKdzGfPko 4s1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Y0No0ONR6FUuFWuujJd79fK6HXBhAF9QPUsiKwkH7Y0=; b=BLv0iXM5CKLScNOWGgvpJHbD3kGRTNzkKV/d5Jcwc/cybgcfpKGcObviU3hDzDZiXb 92RiQynyNcET3Gdd2ewNifXJKViMhxDf1VnBbkozdDArAMD8Tr8OWdMyOpsfRr6TDynM HU8s/x4QQp6OvgzKz8IK65GGb6qcfxVN0Tsgdh9LvhXX6oDEE//eY8j1OvPr2hFV7K16 nVZTQoO/3/5uvWOpkG7fxWd2vbQZjq1t9pP+gU7FZFIWEiZx5O768QmQ+5ztEQ4eJ+Gm MIC+JbczG/CszmMwHNgPpJqoavsvJH1r5x7ZOLouolx9sdTa0aP0heM57X2FLdUhsBXE vrmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=J6MmOM83; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 k17si5892196ejg.72.2021.02.12.01.28.38; Fri, 12 Feb 2021 01:29:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=J6MmOM83; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229905AbhBLJZb (ORCPT + 99 others); Fri, 12 Feb 2021 04:25:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230039AbhBLJZW (ORCPT ); Fri, 12 Feb 2021 04:25:22 -0500 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DBC9C061786 for ; Fri, 12 Feb 2021 01:24:42 -0800 (PST) Received: by mail-yb1-xb33.google.com with SMTP id r2so8398830ybk.11 for ; Fri, 12 Feb 2021 01:24:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Y0No0ONR6FUuFWuujJd79fK6HXBhAF9QPUsiKwkH7Y0=; b=J6MmOM83V9YJ2fLjJv6qw5ny8k7dfibZTrMS/tOukhD9W0VWt8JSMxchBBgC7Pmc2H m7Hx+sK/6q7adee0PvddBj7StxLuKl3xcdhQmIjKUkL0HFTLelUZgGXaCfT600GCsvql O/UVe84S0XiD45Eq6nygIpU+zrP/uEJP0YznVtQKM1N7XkZKS5J9gI9jAS3+BG00uWVO BOBOxOChC9bBL6PhR99bg245OFWat3E1fggoCQWac0OaWgSyCmliBJ1RhsjAikhQ6Ke8 qykAHD6Nq1Ahjkr5akaCRyH0SPhju7X3Tmhs9GGeW0726BfcPpGNsqQy6SEEPP3ouQzR iOTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Y0No0ONR6FUuFWuujJd79fK6HXBhAF9QPUsiKwkH7Y0=; b=fCbG+dVak3HQE7v6jn2O8ZytZwed/Qvd18nkN9sua/cqhRj+41LcH7YixU/m6kRhF4 DFR7vni0CUndPT4Ew1+TLYBUwT/G13o8qrWbDcO0qNXXuJK2PhzTQf/p+Nt1VV7TIwE2 y1HwSpWFCyJergwEIFYmvW5ER3tJYYgufdIWiRuCfRPYqsv7D/XsNMv+22+5s7oNipJ0 bxh1ft7HtX+ei5iJHSJ6OcxApIPxAnNCXYD932TSpuITYn8YoRqyV0bTQMqpvVAoC1xR 9xDR9zsxHPgz2501iVh0RoCfPTwwK1A5yhOc1HJT3HDye4FMVAuVjGo+dNstK5O4nEFn Difg== X-Gm-Message-State: AOAM532Kydb/HojWesvrQjz9cuGe/T2FpSQXHxW9XnRlLMeSagkFb4gF FiRazl3a4OvNMMdeNxq/8Fue3XcNzmJvMgRRolFA+Q== X-Received: by 2002:a25:ca42:: with SMTP id a63mr2856231ybg.318.1613121881114; Fri, 12 Feb 2021 01:24:41 -0800 (PST) MIME-Version: 1.0 References: <1612945128-23174-1-git-send-email-amit.pundir@linaro.org> <13bd5e9d-3f3b-0b97-aa48-9a7bc551ddf6@somainline.org> In-Reply-To: <13bd5e9d-3f3b-0b97-aa48-9a7bc551ddf6@somainline.org> From: Amit Pundir Date: Fri, 12 Feb 2021 14:54:05 +0530 Message-ID: Subject: Re: [PATCH v3] arm64: dts: qcom: sdm845-xiaomi-beryllium: Add DSI and panel bits To: AngeloGioacchino Del Regno Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , John Stultz , Sumit Semwal , linux-arm-msm , dt , lkml , phone-devel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Thu, 11 Feb 2021 at 00:25, AngeloGioacchino Del Regno wrote: > > Il 10/02/21 09:18, Amit Pundir ha scritto: > > 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 > > --- > > Hello! > Your patch looks good, however, I have a few concerns... > > > 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 | 64 ++++++++++++++++++++++ > > 1 file changed, 64 insertions(+) > > > > diff --git a/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts b/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium.dts > > index 86cbae63eaf7..5ac049a247e1 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 @@ > > 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 @@ > > regulator-min-microvolt = <1200000>; > > regulator-max-microvolt = <1200000>; > > regulator-initial-mode = ; > > + regulator-boot-on; > > }; > > }; > > }; > > @@ -200,6 +209,43 @@ > > 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,24 @@ > > }; > > }; > > > > +&ibb { > > + regulator-min-microvolt = <4600000>; > > + regulator-max-microvolt = <6000000>; > > +}; > > + > > I think you want to also configure overvoltage and overcurrent > protection values for both LAB and IBB, as these regulators may be a bit > dangerous if used without. Can you point me to the relevant DT properties please. I didn't find any DT properties which set the over voltage/current protection properties explicitly in upstream as well as in downstream kernel. Plus I also do not see "regulator-min/max-microamp" values set downstream, otherwise I'd have used that as well atleast. Regards, Amit Pundir > Besides that, even if it wouldn't be that dangerous, since the > protection features are present, it would be nice to configure them > properly as in the rare event that something bad happens, you would be > able to save the hardware (or at least have a chance to!). > > > +&lab { > > + regulator-min-microvolt = <4600000>; > > + regulator-max-microvolt = <6000000>; > > +}; > > + > > Same here. > > Yours, > -- Angelo > > > +&mdss { > > + status = "okay"; > > +}; > > + > > +&mdss_mdp { > > + status = "okay"; > > +}; > > + > > &mss_pil { > > status = "okay"; > > firmware-name = "qcom/sdm845/mba.mbn", "qcom/sdm845/modem.mdt"; > > >