Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp10303822rwb; Fri, 25 Nov 2022 03:25:10 -0800 (PST) X-Google-Smtp-Source: AA0mqf44VDSTSIQRs0ms+YT7dFtRCaL4j+T5OMe4mS9257FmtN/bYuj/ICpmkfvOXcv6Ry1TTgia X-Received: by 2002:a17:906:6c7:b0:78d:4061:5e1b with SMTP id v7-20020a17090606c700b0078d40615e1bmr22999520ejb.47.1669375510464; Fri, 25 Nov 2022 03:25:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669375510; cv=none; d=google.com; s=arc-20160816; b=CnmpXUK7zAzoKEUlkF6/8Z3riPoKS4y9/tF6RKAatRVT1PKwc/dndffcIduX6D/rTH P8jYtYgm7eUyZcmtPutJPOzDlcE+1IuGRMZvy1gnF5rnvyrLxmwIJg3RhIygIB6eiHvc c1QyjexiVHv/s1Vxk5ipvU0KJPGBjysxmhng2wb1Usa/z5X8R03F/0lrYYVjvpdwUpj0 CjWKfl2SnAvQmfzPAzoHF/RiT2gc4yzvGjyOsShSgcMZKMb7nJ8jL4ETmciiKH0dUYh0 dV1lRix80rIGODmmIIk3WG8pbHWruXTwe3bqsEM7+bYPV8DcXrFyTQ37AbCt4HcGsIgi 1ICw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:from:subject:cc:to :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=5gBtKZ9zx2Pm/QswfVM6U5FT5WCTySCzVA2lRu0vZYg=; b=BZHYkEW45C1dEPG6gupiZ9RK7avBQsr07dSfRduw4wHKXvoYfnNsQZm+PWRg4yzufe NkL5bcB/JVDG5paXOjleMESOTkPEvl0MnGpFnsvDxWurUzrppesvK1Y5VOqDoWC6xEiQ c2qJbP5ncWtSRmvt/US8GPJJtwdj0f9htPj1L8u4+qi34/Weknf6h4opXQbtpH/uOTR+ UFjzAeVdu7dogYPB4/2jZdgZ9uUv/LI49cxRq8e4IR8hqP8gqPFLyOiPXqbvvnYGla1Z jvEgvcHeLZzAd1XmlsjG7MCKTU4XzGUydlUnX2wTQ5TB0nRr3IGCn8cQPbMM+4Ix0gun Xzyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=3JXZ9i2l; 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=fairphone.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ho44-20020a1709070eac00b007879808e995si3697819ejc.55.2022.11.25.03.24.49; Fri, 25 Nov 2022 03:25:10 -0800 (PST) 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=@fairphone.com header.s=fair header.b=3JXZ9i2l; 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=fairphone.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230038AbiKYJ5q (ORCPT + 86 others); Fri, 25 Nov 2022 04:57:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230032AbiKYJ5X (ORCPT ); Fri, 25 Nov 2022 04:57:23 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7C5C2CDFD for ; Fri, 25 Nov 2022 01:55:34 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id x2so5705745edd.2 for ; Fri, 25 Nov 2022 01:55:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=5gBtKZ9zx2Pm/QswfVM6U5FT5WCTySCzVA2lRu0vZYg=; b=3JXZ9i2lxLnQM0cikC8NLREGele7lN/5iPmgqRvmomvdJVd3s1P/7UI9EQqxvvYwBE oBJSlQNCRIXmr5I5hxZQR64jdXkpc9MGz811/HU+zsLeqMMJakrZozPCtn5rQnwIA1aV nt0ml934Gk+/97Q0m10njwYQcAI4aJDu37TymEtxLGCuFYDUN2pCG70SELy7KD4fMDve lfXddNnCv7FxahMPjdYDESyYgOS9udT4V/EeNHAuiYdmKOawyu4l+i/BLGFjS6x/XKF3 dWLU0zuE6Z7/yVTjH5sfMuP/y0ODr0gSXWKD9LffW3FHscv/Vs7QqCG+z8EOm6h56Tuu L+Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:references:from:subject:cc:to:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=5gBtKZ9zx2Pm/QswfVM6U5FT5WCTySCzVA2lRu0vZYg=; b=nrc4zdAhhJKJFcw8Y3TeBeYbvXOwYDgrxdbjDZqRkLiAQsT4sgrDSb928pTzN6wTgM P4n3qcqOLApTDXEErLgtysj7RDJrWTNm8uemJB8ijgfEj/NSVjAN5ytF/xQMkp7wMZNc ChrDTcP9ywui7m6Z+dm//1FLiu6sd9ocjwHLSNJkp+WcWVwhnjXNr9Ufz19N2EraBmx0 43ECa/xBOxPJt3ODjpl+cY/CWgFqxFdRXj/O5c5n0Xullt/mPn4gZLPMB04Dj2fiAkNy HixHjWfTNRoLyCgp9jPoeVhgo2WxotedbRdcYIHnFNyyfm7JetmVKcbvO2qYWEBXjdVb +TUQ== X-Gm-Message-State: ANoB5plDC8p9jX7yC+3C0uYlDz+DI9GLjJ2zau+LoFEClknMaa9XuOr7 dbQZNBlTc8UywaI9XVDLyMbFTw== X-Received: by 2002:aa7:cc8a:0:b0:464:1296:d5d4 with SMTP id p10-20020aa7cc8a000000b004641296d5d4mr33388969edt.83.1669370133372; Fri, 25 Nov 2022 01:55:33 -0800 (PST) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id c17-20020aa7c991000000b004619f024864sm1568627edt.81.2022.11.25.01.55.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Nov 2022 01:55:32 -0800 (PST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 25 Nov 2022 10:55:31 +0100 Message-Id: To: "Johan Hovold" Cc: , <~postmarketos/upstreaming@lists.sr.ht>, , "Andy Gross" , "Bjorn Andersson" , "Konrad Dybcio" , "Vinod Koul" , "Kishon Vijay Abraham I" , "Rob Herring" , "Krzysztof Kozlowski" , , , Subject: Re: [RFC PATCH v2 1/3] dt-bindings: phy: qcom,qmp-usb3-dp: Add sm6350 compatible From: "Luca Weiss" X-Mailer: aerc 0.13.0 References: <20221125092749.46073-1-luca.weiss@fairphone.com> In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,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 Johan, On Fri Nov 25, 2022 at 10:50 AM CET, Johan Hovold wrote: > On Fri, Nov 25, 2022 at 10:27:47AM +0100, Luca Weiss wrote: > > Add the compatible describing the combo phy found on SM6350. > >=20 > > Signed-off-by: Luca Weiss > > --- > > @Johan Hovold, I've sent this v2 as RFC because there are several thing= s > > where I have questions on how it should be done. > >=20 > > In this patch, you can see there's cfg_ahb (&xo_board) and power-domain= s > > is not set. In msm-4.19 &gcc_usb30_prim_gdsc is only used in the > > ssusb@a600000 node, or should I also add it to qmpphy? > > Yeah, you may need to add a platform specific section of the clocks, > which appear to be different, even if I'm not sure they are currently > described correctly (xo_board as cfg_ahb and "QLINK" as ref). How are > they named in the vendor's dts? This is the msm-4.19 dts: https://android.googlesource.com/kernel/msm-extra/devicetree/+/refs/heads/a= ndroid-msm-bramble-4.19-android11-qpr1/qcom/lagoon-usb.dtsi#354 > > It should be OK to include the power-domain also for the PHY node. Ack. > > > .../bindings/phy/qcom,sc8280xp-qmp-usb43dp-phy.yaml | 5 +++-- > > 1 file changed, 3 insertions(+), 2 deletions(-) > >=20 > > diff --git a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-us= b43dp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-us= b43dp-phy.yaml > > index 6f31693d9868..3e39e3e0504d 100644 > > --- a/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-p= hy.yaml > > +++ b/Documentation/devicetree/bindings/phy/qcom,sc8280xp-qmp-usb43dp-p= hy.yaml > > @@ -17,16 +17,18 @@ properties: > > compatible: > > enum: > > - qcom,sc8280xp-qmp-usb43dp-phy > > + - qcom,sm6350-qmp-usb3-dp-phy > > =20 > > reg: > > maxItems: 1 > > =20 > > clocks: > > - maxItems: 4 > > + maxItems: 5 > > =20 > > clock-names: > > items: > > - const: aux > > + - const: cfg_ahb > > - const: ref > > - const: com_aux > > - const: usb3_pipe > > So this would need to be moved to an allOf: construct at the end with > one section each for sc8280xp and sm6350. Ack. Thanks for the quick response! Regards, Luca > > > @@ -61,7 +63,6 @@ required: > > - reg > > - clocks > > - clock-names > > - - power-domains > > - resets > > - reset-names > > - vdda-phy-supply > > Johan