Received: by 2002:a05:6602:2086:0:0:0:0 with SMTP id a6csp3382704ioa; Tue, 26 Apr 2022 02:28:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzR4Fp5g4c9MR02BciA2Xah9DURLqcWGhBMn46JRmipHV1hQPUtn/0etwH9ZmE0BADd/PQN X-Received: by 2002:a05:6a00:b48:b0:50c:f2de:6811 with SMTP id p8-20020a056a000b4800b0050cf2de6811mr19888353pfo.80.1650965283399; Tue, 26 Apr 2022 02:28:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650965283; cv=none; d=google.com; s=arc-20160816; b=WWILofYQAyroQeCVy3BAASKv2s2xku/jf8cUYDZpe/XL+zOPPgIWJqPeRAInWR5ldO bpkQH9IzH5xtO3fIfI5F3HeDd1PYS5sra6PSwtGaksxnRg7dWbLEeuOxnfU/Vrsueedj PDv8GGEWF8P5r1wUjeeCMId66k1y2FjAJ3Z0hQLUSsOjCzYmMdO3ElezZtks+ZILE17S Clv5KR8DiaYLxS5FBirnv0VvmbboVhBkAGGOlxmdSZWpZ4IbnQekVx1KArs6+bwfrshr M5FsILMgfHgOWfApVaGkVD6fZXwStsD6gFv98o5uTA06caOH/66TmqbocwefPK+zy3Jy IYoQ== 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=24iOF1MSGz5s6cCyjfamucZLvCAzW+z+udRAosCU0zY=; b=aEbDoIjULuVMFJIkT4bf3jo4u1FxNlwBkWqb1p56pxv5FhD0UYsWZcRkkrqzEQpthQ /x1XAO2Pdzd2jjGCAPwwRhVNqEiWXmK5f4uyyJ87xT+BW2E2cETLKy3pW1Ug1svLVQMr blcpyxKI+8cTh1g43IkFLTw7AJuH6fASBMmDIS/9mlwiLV9acPjRh9ssSfbG+B90BKIr 1s28t6G/jILGXBbDKNcULPaIHOjQncbroTSpzvtaOAXrn3ycJ1i79ihpuOHW07stylyO FO6o6ZWVPObnuStIDeVEB3ax9pmhkaKT+V3Wpt9+hHIC5T2eOaivcxaLW+3Onljtn51S i74g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IKCjLomd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g4-20020a63dd44000000b003aad793dddcsi11401780pgj.183.2022.04.26.02.27.49; Tue, 26 Apr 2022 02:28:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=IKCjLomd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245739AbiDYVWL (ORCPT + 99 others); Mon, 25 Apr 2022 17:22:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236884AbiDYVWJ (ORCPT ); Mon, 25 Apr 2022 17:22:09 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A26F9D3AF7 for ; Mon, 25 Apr 2022 14:19:04 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id g20so20014990edw.6 for ; Mon, 25 Apr 2022 14:19:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=24iOF1MSGz5s6cCyjfamucZLvCAzW+z+udRAosCU0zY=; b=IKCjLomd/fBFKtHP7jTm5t+W2FCOv7AOIpQTxPrtj949PY1Tsrb/D6jZuxB1xNoSYP GWBX5KG9TOQnKlzchsow3SoefF2kBW7rQ2HKQYl95HTmbBgI32JNTGqDNermeWSyTZtL Hf42Do0mf0k3Q96cMYnFlH/CAVL53m+8sBlv8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=24iOF1MSGz5s6cCyjfamucZLvCAzW+z+udRAosCU0zY=; b=oY5JoMoiTGaO+psadONcjnaHU0Nij5s22ZVPa7u9MEdHCzhL5WyyBzjjEUHieG3Fyf XzoNapB6M7f0ceyCaZyCjHelgVn4xwBtFkGEDIz7mNlgc54Y1td8MwDxk16nVTPja2wL kq7cdYKnS8oFVrggOSxcY2e7BTJ4Y0qkAU89YIpOtO+m/U5cm0IfOeOT47ylE98jJz8w Fi6UvVlfMP50wGaw5Nm5DrsXoAf+JeLxm9XjIz4CFKjkE+HlkwDwjvYrcje5RX5+4Qby biLD5RfW/q5hxODLWnrxdc32bPADgmVmKvMj4uOC/vW5ThFs9NBXJbZ/uw5fbLd9hGAA pg7Q== X-Gm-Message-State: AOAM530+m3Pf1Ajxa1H21UJPoZTXo8NYx5xUFmImHbibHtKCHauDTQp9 7yOcVWwKvrHZT37TMDhgzrDyYhDtuK4/dufP X-Received: by 2002:aa7:d9d6:0:b0:425:dafc:2fc6 with SMTP id v22-20020aa7d9d6000000b00425dafc2fc6mr9131370eds.340.1650921542813; Mon, 25 Apr 2022 14:19:02 -0700 (PDT) Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com. [209.85.128.44]) by smtp.gmail.com with ESMTPSA id lb18-20020a170907785200b006efe7bb40b0sm3963836ejc.74.2022.04.25.14.19.02 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Apr 2022 14:19:02 -0700 (PDT) Received: by mail-wm1-f44.google.com with SMTP id u9-20020a05600c00c900b00393e729e655so367103wmm.0 for ; Mon, 25 Apr 2022 14:19:02 -0700 (PDT) X-Received: by 2002:a05:600c:3d0e:b0:38f:f83b:e7dc with SMTP id bh14-20020a05600c3d0e00b0038ff83be7dcmr26954889wmb.29.1650921531776; Mon, 25 Apr 2022 14:18:51 -0700 (PDT) MIME-Version: 1.0 References: <20220425210643.2420919-1-dianders@chromium.org> <20220425140619.1.Ibfde5a26a7182c4b478d570c23d2649823ac2cce@changeid> In-Reply-To: From: Doug Anderson Date: Mon, 25 Apr 2022 14:18:39 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] dt-bindings: msm/dp: List supplies in the bindings To: Stephen Boyd Cc: Bjorn Andersson , Dmitry Baryshkov , Rob Clark , Rob Herring , Vinod Koul , Abhinav Kumar , linux-phy@lists.infradead.org, dri-devel , freedreno , Kishon Vijay Abraham I , Sankeerth Billakanti , Krzysztof Kozlowski , linux-arm-msm , quic_kalyant , Kuogee Hsieh , Daniel Vetter , David Airlie , Rob Clark , Sean Paul , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Apr 25, 2022 at 2:14 PM Stephen Boyd wrote: > > Quoting Douglas Anderson (2022-04-25 14:06:42) > > We're supposed to list the supplies in the dt bindings but there are > > none in the DP controller bindings. Looking at the Linux driver and > > existing device trees, we can see that two supplies are expected: > > - vdda-0p9-supply > > - vdda-1p2-supply > > > > Let's list them both in the bindings. Note that the datasheet for > > sc7280 doesn't describe these supplies very verbosely. For the 0p9 > > supply, for instance, it says "Power for eDP 0.9 V circuits". This > > this is obvious from the property name, we don't bother cluttering the > > bindings with a description. > > > > Signed-off-by: Douglas Anderson > > --- > > > > .../devicetree/bindings/display/msm/dp-controller.yaml | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml > > index cd05cfd76536..dba31108db51 100644 > > --- a/Documentation/devicetree/bindings/display/msm/dp-controller.yaml > > +++ b/Documentation/devicetree/bindings/display/msm/dp-controller.yaml > > @@ -76,6 +76,9 @@ properties: > > "#sound-dai-cells": > > const: 0 > > > > + vdda-0p9-supply: true > > + vdda-1p2-supply: true > > + > > ports: > > $ref: /schemas/graph.yaml#/properties/ports > > properties: > > @@ -137,6 +140,9 @@ examples: > > > > power-domains = <&rpmhpd SC7180_CX>; > > > > + vdda-0p9-supply = <&vdda_usb_ss_dp_core>; > > Having 'a' in 'vdda' typically means 'analog' for 'analog' circuits, so > I'd expect this to only matter for the phy that contains the analog > circuitry. It would be great to remove the regulator code from > drivers/gpu/drm/msm/dp/dp_power.c and move the regulator_set_load() call > to the phy driver if possible. Hopefully qcom folks can help clarify > here. Interesting. Oddly enough, the sc7280 datasheet doesn't list the "_A". It calls these "VDD_VREF_0P9" and "VDD_VREF_1P2". However, on the schematic in front of me someone labeled these pins on the sc7280 with the "A". ...and the driver looks for a supply with the "a". :-/ It would be good to get clarification from someone with better information. -Doug