Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4051575pxb; Mon, 8 Feb 2021 06:51:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxFPYUCfcIFKV1BcQhVUL77LPyNKm3xFTMf084akLg6BCQ5dOE62BYh33jGP+RzuTQdLosh X-Received: by 2002:aa7:cb0d:: with SMTP id s13mr17302773edt.221.1612795915406; Mon, 08 Feb 2021 06:51:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612795915; cv=none; d=google.com; s=arc-20160816; b=mrfFiVSEJAWhA9wSMLzwflRpzAgu5qiJR9ZM4ilFQ5Qgg4I4C+0t4ECc0/r3WwWh7G V/P1zqR7HBCElDwf5g99r1mhrqpITCgbIiEr0P4WmlhCT+4YQEV5CjltgvUtaNN7JAXf kqfMzibFKDhVX7kCz312F99N3+/qLLAmoWgO8g3+o+NS8i50ZR/vJcml2lc8pHwpmWeP HTYemPcQPucPLkEJPAegJg8AxKyVzAk1iQq08Ec2jr6poQGdPd7CvNjTgtyjRgDuwEkz M9PazAEp6yrJqE9xbD1EEUD3Tq6TkV2R4vugh3CtIM15kNmRmWtrMrJZnQgtB0esUyfo lBUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=WwhlEKMnzCk1HchRwOFbHaKjo2LC44r2ulJ+ZMtQ7zM=; b=pLLKVaz07TDo4oSSmGagQ805mWPbJxYp6ihxnmf31teN7cwyoVGryG9h4U7bbdyXQQ a6dDgDiIKXVqPZwcpogfj3SIGOV5XUEgggzsBwNAkKN1J1GPd8qK1JrfKWvRntDCXvgz FCv/oXqRmKxA81EzqLibAzKHnbbK8aNeF040sC8FJbJTmjhEtsTuLJ05hMm/phx3IK/j EeQ7o8HdepgypuzBTfEg/59m4NG8NcFs+uOgDxXQ9y3FzMbCy/u0tUeV6tUqlVFjIwW+ eP02i9P3CU+bWeP2Ouj5RF9VH/JHtCq3bsnYlMgMRZqaLqCDzDReZ8Wu9FwwCTMbj7TC C8+g== 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 w13si11235845edc.122.2021.02.08.06.51.30; Mon, 08 Feb 2021 06:51:55 -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 S232532AbhBHOug (ORCPT + 99 others); Mon, 8 Feb 2021 09:50:36 -0500 Received: from relay04.th.seeweb.it ([5.144.164.165]:35505 "EHLO relay04.th.seeweb.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232728AbhBHOmf (ORCPT ); Mon, 8 Feb 2021 09:42:35 -0500 Received: from [192.168.1.101] (abad44.neoplus.adsl.tpnet.pl [83.6.167.44]) (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-r1.th.seeweb.it (Postfix) with ESMTPSA id DBFED1F671; Mon, 8 Feb 2021 15:41:28 +0100 (CET) Subject: Re: [PATCH v2] arm64: dts: qcom: sdm845-xiaomi-beryllium: Add DSI and panel bits To: Amit Pundir Cc: Andy Gross , Bjorn Andersson , Rob Herring , John Stultz , Sumit Semwal , linux-arm-msm , dt , lkml , phone-devel@vger.kernel.org References: <1612426177-6611-1-git-send-email-amit.pundir@linaro.org> <889e6ed8-133a-9416-be3b-5b2a97ea7fbb@somainline.org> From: Konrad Dybcio Message-ID: <9bbeb403-2937-aebd-91ff-5682f9112dee@somainline.org> Date: Mon, 8 Feb 2021 15:41:23 +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: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> + ports { >>> + port@1 { >>> + endpoint { >>> + remote-endpoint = <&tianma_nt36672a_in_0>; >>> + data-lanes = <0 1 2 3>; >>> + }; >>> + }; >>> + }; >> The endpoint has a label, you can simply use &dsi0_out {};. > I didn't get what you meant there. Care to point to some reference dts > snippet please? sdm845.dtsi, L4139 as of v5.11-rc7: port@1 {                         reg = <1>;                         dsi0_out: endpoint {                         };                     }; This means you can essentially do: &dsi0_out {     remote-endpoint = <&tianma_nt36672a_in_0>;     lanes = <0 1 2 3>; }; in your dt :) >>> + vddpos-supply = <&lab>; >>> + vddneg-supply = <&ibb>; >> With Angelo's latest series [1] merged in, I reckon you should explicitly configure lab/ibb (like in [2]), >> as wrong settings (which CAN BE SET BY THE BOOTLOADER in some instances!!) can lead to hardware damage. > So iirc in the case of beryllium device, these regulators are pre set > by the bootloader and I can't find any reference of we > setting/resetting it explicitly to switch ON the panel and display. So > far default lab/ibb nodes are working fine for us and I'm hesitant to > tinker around anything regulator related that can potentially damage > the hardware. Having said that, I do see lab/ibb nodes being set in > the downstream dts, with relevant soft-start and discharge-resistor > properties and I can try switching to that once the new lab/ibb > changes land upstream. > > Regards, > Amit Pundir > I understand your concerns, however we actually did find out that at least one device had LAB/IBB set up by the bootloader in a way that could potentially damage the electronics, so I'm just making you aware. If it works as-is, it's probably OK. Konrad