Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp467404pxk; Wed, 2 Sep 2020 06:38:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx8d9IOLJZFWhKB5OnIpJ2bxigEYxhxer0UJGfvEJkyU4B5lNj2L/nzhPaVbtc75md3lvv5 X-Received: by 2002:a17:906:480a:: with SMTP id w10mr60378ejq.372.1599053882627; Wed, 02 Sep 2020 06:38:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599053882; cv=none; d=google.com; s=arc-20160816; b=w/GtiEKGEXSeoBo22dFmfk6l4oIACnLf98vhCpOgZ0IFTUexPvvjhgo5fycVMovZrp 1RpI7CSvnclBStX519Xc4QbQDcJ0ZkLIZJaVWrmDJJpKYt4xnRhvZoCKUP7y7xXfoN3G bzmKH9IXlWDlUMMT15Cc4MmQFNNqN7I69uVWJtqQSpM0g+tjfyyUoFoOH7NMVdunqzo6 c3VqrPbJnWHbR0cLOj+dKJqm07ZfP6CxalZkpltvvfUZndHQlIc8C0gh29xkl1pCeWe1 w+ReJI62uGIro0pxK0wGZ2tLIzvvQJD/7Im5lg2O/Hzc2c0CSzNt17XUs2JObUGPZd8H QhYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=uIp6VDRg64f9Y6M9nC/GlDS6MEA5JCUpqgsb4/MPt3o=; b=pGaAc4qM+pYlMsk/qY5PgqyfspLpvlXEESLakowc9fuw1qx3bCu//X+N4unwv3c5Pj ZSwhICAMKm8/At9G4GFckmug8n8v3HwBXm5lt0FmyDU2xwClzGrHToTU9o6bW2UwFWWl QDWqv3P8vgKeGceWAfVGHF7b1p3GJ1+I0wtafx6b21mshukbSyrBLiZ/zbnUVOssPxAP YcFF0iD+qRRrykBwK/pY737M3PzwdQkO3FwUGhhibdoDWcSWyN6tstyURLEdz0UMQJa4 5oyHd4rHbOByca5iY75yOPycLfA/z071E+OD1U8yhlOPUHKVCxe+Lkh9nSE7TOwzZWvR 1QqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mgwLkogn; 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 qx20si2619458ejb.469.2020.09.02.06.37.40; Wed, 02 Sep 2020 06:38:02 -0700 (PDT) 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=mgwLkogn; 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 S1727020AbgIBN3p (ORCPT + 99 others); Wed, 2 Sep 2020 09:29:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726654AbgIBN2e (ORCPT ); Wed, 2 Sep 2020 09:28:34 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9E62C06125F for ; Wed, 2 Sep 2020 06:28:26 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id c18so5229595wrm.9 for ; Wed, 02 Sep 2020 06:28:26 -0700 (PDT) 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=uIp6VDRg64f9Y6M9nC/GlDS6MEA5JCUpqgsb4/MPt3o=; b=mgwLkognKuIAKnWCCfSlM7yPbF2hjfW3lrpvsVtLqikNxdc1g8HRBRf+01OXL/0zM+ Yc6BzQvEuMQRW7++14zWZOQO4knzah3KyyQ06HqnP1kT26c4eu2HhXDw6xjpsvyOBvJO JV7FxoqgcOsqsOECxm1Ii2GSYqR+rsZjUvyU1qhZutIEaVHRUux09hU8RfDH++383AL9 v79u6pcKn27u3TQfCcPbGMlvG6m1i92pkA0/KxauSZpmbTRybKqnRjvFurUDQBZuHkyH 7f8onN4/qVEYBJtFbcL/H9HKukRRV/+pArF9jLsJUlb0halFaAvNesLNJTZWkf+PxENN 48PA== 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=uIp6VDRg64f9Y6M9nC/GlDS6MEA5JCUpqgsb4/MPt3o=; b=Wf71/5Fbh8ReXPP1RP0w2RyJtaNDver3mUbQEc08sp7ljNvYWSI5xkJeXYoUY52pSp 7GD4kOwg4fq1tpxdI+jbXXcDIDD0umZPLzyaCdeV7thz/Pac8t0ZHj4bSYPitvRXtKhw 7muel1CxW78Fy+Lpr83aPHyzF7gAyN3nS4q5UHgD8++CeFnzo3s41mvbT3tUxXZkh8aQ wI7t5oTyR2HtwiPKXLrPHcjm5VcV/uMl+DSdA4/zanIwRki2WwtbRJIT+3IExkNxDlb4 29XZn0DOvwWrMUKgYZoTuHzK9MIqQv6O6NaMlDgeCPQIz/JCjBjQM4nU8z0z6ZFkH8iu wJ+Q== X-Gm-Message-State: AOAM531wMBmlQDKWrQObbzSId240ZLot6Zr89mBxLLPGGiQqgoqWyyxF Q7mmfodiuC92et0Ee+JDaTi2o85Wktsea7Nv6mAZUA== X-Received: by 2002:adf:c64d:: with SMTP id u13mr7583312wrg.114.1599053304932; Wed, 02 Sep 2020 06:28:24 -0700 (PDT) MIME-Version: 1.0 References: <1598851448-5493-1-git-send-email-amit.pundir@linaro.org> In-Reply-To: From: Amit Pundir Date: Wed, 2 Sep 2020 18:57:48 +0530 Message-ID: Subject: Re: [PATCH v6] arm64: dts: qcom: Add support for Xiaomi Poco F1 (Beryllium) To: Konrad Dybcio Cc: Andy Gross , Bjorn Andersson , Rob Herring , John Stultz , Sumit Semwal , linux-arm-msm , dt , lkml Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 31 Aug 2020 at 13:28, Konrad Dybcio wrote: > > > Hi Konrad, > > > > I couldn't find answer to your question around missing > > (regulatorname)-supply properties. Need help in figuring out that > > part. > > When the phone boots up and RPM(H) kicks in, you should see regulators > probing like "s1 supplied by foo". Without the *-supply stuff, you > will likely get "supplied by regulator-dummy". This happens here [1] > and to my knowledge it is the "eletrical wiring" for Linux, as in it > makes Linux aware of which regulators are connected electrically to > the same supply (so that kernel knows when the supply is on and what > voltage it's at). For qcom platforms, this is common per-pmic (afaik, > please check if you are able to!), so you can likely just copy-paste > that part from msm8998-mtp.dtsi, which also uses pm(i)8998. Thank you for the pointer. I dug around the vph_pwr fixed-regulator node used by fellow sdm845 devices. I assume it is safe to copy it from sdm845-mtp but I couldn't verify it in the downstream device-tree, so I'm a bit hesitant. My main concern is that I don't want to burn down my only device :) I did find a few regulator nodes downstream which matches with upstream sdm845-mtp but since I'm not using any of them in my beryllium dts, I'm going to skip them for now. As you pointed out, in case of regulator lookup failure Linux will fall back to dummy regulators, which is working fine for me so far. Also I see that vdd-*-supply properties are optional according to Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.txt, so I assume it is safe to skip them? Regards, Amit Pundir > > Konrad