Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1553484pxb; Wed, 10 Feb 2021 10:59:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyTmEnj57plkVoZB5gF+jvxtSPfQ4dS1uqOwOWI/M7Wh1BkYhXpZ9B5y2Ye3EnMJxKkUYlL X-Received: by 2002:a17:906:b84d:: with SMTP id ga13mr4328020ejb.112.1612983558452; Wed, 10 Feb 2021 10:59:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612983558; cv=none; d=google.com; s=arc-20160816; b=fyXS3IuqIS5fe28BOLq69VJLKL99prYrOl7GSvcqRU5zHwTDdKycb8sk+02w4RCld9 hPYxwRF9rzX87T6UoCpqZL0tITtW6PmIQK+rq8WIS10musirFMBP9PtsD5iygTNwf6Pd Xs0SfIMHoPJjEmSNjt+1b77E7jSy61t87qUhR6Wpd7wcZRlGrTy9id0K08J+lVvJLKde bQgrxYy4PZpqiiXYuiW9qDASaHRW8l9rJDFn+/Bbg3YzChTEQjWpcAdUIBGM35aMItVj cRTjfgkReHA0oG4yPCwa2kucuo6D6uWRxvh/yUA683E0/aX/dRL0q6VYtbGA4grIkozX ZAMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=JejzfxMNj2xo0bt/wRZJWxoHT6npoPTxw4d0Weftx4c=; b=osR3TWL3kJs2ft2kZYRh3cNEA/4tRIWlsexx9WE/EdDWdonPKH5t7g69K7L6E0HxG8 VPVyZcuvayCU36lawafsqJ09VG7VllbA3kzX6+seaapRT4GfrDNI3iiFelQWtYoHkrQP aqM7Twys8fQKwvm7J7wS5qGjf9MGBKQPOIDqWSlryXjAAdTqduXFXroK9dif8D5ZRb5X 8IZHe9qKbTFrx85Nxv1v+f2rGiWxJYXopUQVJg/+yhOceHeOKo2U6SxgEDZaMm1n/SpQ QAOiGIX5HvK++gszq8Tikn3ob0eS0dfe9WIb2zyMOssupArvAKpSTMElpUqe5VlluKbi 8IIA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y16si2114567edq.459.2021.02.10.10.58.54; Wed, 10 Feb 2021 10:59:18 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234222AbhBJS6L (ORCPT + 99 others); Wed, 10 Feb 2021 13:58:11 -0500 Received: from relay05.th.seeweb.it ([5.144.164.166]:46815 "EHLO relay05.th.seeweb.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234028AbhBJS4Y (ORCPT ); Wed, 10 Feb 2021 13:56:24 -0500 Received: from IcarusMOD.eternityproject.eu (unknown [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by m-r2.th.seeweb.it (Postfix) with ESMTPSA id 10E853F350; Wed, 10 Feb 2021 19:55:38 +0100 (CET) Subject: Re: [PATCH v3] arm64: dts: qcom: sdm845-xiaomi-beryllium: Add DSI and panel bits To: Amit Pundir , Andy Gross , Bjorn Andersson , Konrad Dybcio , Rob Herring , John Stultz , Sumit Semwal Cc: linux-arm-msm , dt , lkml , phone-devel@vger.kernel.org References: <1612945128-23174-1-git-send-email-amit.pundir@linaro.org> From: AngeloGioacchino Del Regno Message-ID: <13bd5e9d-3f3b-0b97-aa48-9a7bc551ddf6@somainline.org> Date: Wed, 10 Feb 2021 19:55:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <1612945128-23174-1-git-send-email-amit.pundir@linaro.org> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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"; >