Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1144517pxb; Wed, 10 Feb 2021 00:47:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJz82zZRlGoqqaSYyW5eXvcnr67IUNmQCLOZRAXdqgn6A3xbqYtMJ+ylFMrYoq2cwFAq/nuL X-Received: by 2002:aa7:cd62:: with SMTP id ca2mr2215741edb.94.1612946869291; Wed, 10 Feb 2021 00:47:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612946869; cv=none; d=google.com; s=arc-20160816; b=pkEIm4HuHaM5MUi1fDFFYBknxPxDjp+fgbA7q5ccK4wJE4j7fEXBGU/ouvleRuMAWx GmPTC1wxclx56cla75Temn8FM3MmcVWboKeNysd5Rx460zEbng5ef0JTA0lFAPjXCI7W ZopymGaqK/+zjTReDz5GwBRYNsnWOoY32Ftd9vNj+5eqJcOTIZXAEJhZhXvfQiPSzj8I kdigFf6rS28E/nxIqtAJltRmONcTfxSv4Zj1mIse099b7Ha3ej1diXyK60vjAv2V2WOM uSed53fMNUklItZ8kUr1xgEfQ5c3IshHDwe2Fkh0nj3w3uog8G4SEOrAdNGRR7Qkuqci l2Qg== 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=65vR6SG2Bxgu7fYiRhCh88Vjzb2irw6GGGy0yalIXkM=; b=eFRnSWfZnXbHiwcVQcnBuRO8f5DdSRlEOpPnCSaibCgEKQnemDhq0A5e9C1uLPQqrB qVJf+5RnXJVINzWX97n7Rd89nrksk90Zrmxayk2/3Y5oJfR1jYBxFJ0gfMq6auezui47 Nxq2y2dqDsRL/+3msYXoXNgQrbZ74avI20Ei043e21kNA1sf4w5Bpau2F5oDwST6ZCw5 x3Ho2tG3FN1AeCa5SQhP4+La1NkGIKm2jw2DwO3i6hck1ZsS8nrkvcF+oD7wwVvaYZDw MqupjyOKtUFKEZkHDdfqmywkJTkiOekpDSuNMVQLfiJfvzMdoZRlilzf5wkP14U0eJdI sSSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LPbRwhPQ; 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 u10si1028713eda.107.2021.02.10.00.47.25; Wed, 10 Feb 2021 00:47:49 -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=LPbRwhPQ; 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 S233872AbhBJIXC (ORCPT + 99 others); Wed, 10 Feb 2021 03:23:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233870AbhBJIWd (ORCPT ); Wed, 10 Feb 2021 03:22:33 -0500 Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02825C061756 for ; Wed, 10 Feb 2021 00:21:53 -0800 (PST) Received: by mail-yb1-xb30.google.com with SMTP id i71so1170452ybg.7 for ; Wed, 10 Feb 2021 00:21:52 -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=65vR6SG2Bxgu7fYiRhCh88Vjzb2irw6GGGy0yalIXkM=; b=LPbRwhPQ6/yQZRRqLwpjkO9i9cYhEEfxPQrDEn0JhbQhI/zaZgHbTrB1WOrAsW48Nm 8DnAO761rA7a0hr8Kz+pzOWJBzU9mEZn+REW8D/LtHnD07SW/TW6j48zTLeiUdla/XLj iJOCcCOU+O7dIIVzKrW2UwvoyFOcZSTDkOeTMjPls9pF2UcFI39WS7De+VRQk0QFQgwW IosoVwgFpBw0afved4rHh9++rElFdWER0kM9K55YZtccijBsujCCeVQyCavCVbjFcvHx znEXnaFjysy0sU1GlufpmXpMW4w2cb3O2PlTHXkMTJ6WqsDnhq97jj8a/U+dj5SRxv7F BpBA== 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=65vR6SG2Bxgu7fYiRhCh88Vjzb2irw6GGGy0yalIXkM=; b=fZ+GQD9p6lb4qqo7Ks1x0KljoMZeVdnXs/hikpqRLw40A9C74+QyUmJ+7GKBJGSXZt n8aUghqq5B2OEQ3TTBbZP8k0wXX+vRkHac6gp1vq7ovTGMYLnBfYFPiOpDOdPRRfOoq2 nzhVspjEzRk7Ew1D0uqPGcGYnSwthnzEnjI+fJJdfd/lrH+D9zYLMyQgrxzR72VHcJGp DQAz/LScnuWcuOzAuwUUjRmVX1QHmlNzaDyJgmBHYarTmBPuCWNzZLtrxWHF2k4nCb7u o15MxJuUM6jBXKgENAklzkVRbkDv35Os+mPU8A65Bq7jWpVIDhjCLC+pkOhwMnXF09qy KQhA== X-Gm-Message-State: AOAM5324tau1IfjoIQbtneEcG6/wBW/p9HGjrgxd+6hQ8zOtLrei9eoX ck9dN9iOToQhaOoJpxDV55xoQrG0yp1qqVc0e4ERRA== X-Received: by 2002:a25:2a84:: with SMTP id q126mr2506790ybq.167.1612945312267; Wed, 10 Feb 2021 00:21:52 -0800 (PST) MIME-Version: 1.0 References: <1612426177-6611-1-git-send-email-amit.pundir@linaro.org> <889e6ed8-133a-9416-be3b-5b2a97ea7fbb@somainline.org> <9bbeb403-2937-aebd-91ff-5682f9112dee@somainline.org> In-Reply-To: <9bbeb403-2937-aebd-91ff-5682f9112dee@somainline.org> From: Amit Pundir Date: Wed, 10 Feb 2021 13:51:16 +0530 Message-ID: Subject: Re: [PATCH v2] arm64: dts: qcom: sdm845-xiaomi-beryllium: Add DSI and panel bits To: Konrad Dybcio Cc: Andy Gross , Bjorn Andersson , 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 Mon, 8 Feb 2021 at 20:11, Konrad Dybcio wrote: > > > >>> + 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 :) > Thank you. Added in v3. > > >>> + 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. Device seem to be booting fine with downstream labibb regulator node changes, hence added them in v3 as well. Smoke tested on 5.11.0-rc7-next-20210209. Regards, Amit Pundir > > > Konrad >