From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2501EC7618A for ; Fri, 17 Mar 2023 08:39:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4vhJh8ZYYX8ZaiavAJlOBj+QOizLV5BiT7kw0u86vv8=; b=vt29/EZ85Eu+Jd wL2sPyaXdby+vJ3a8zUMQj8ExUA/yLEUzicFQM7DXWmgFKfjUparSYjEN1LC13AnXysVgL/KCmQ4j XRgJzTNnDe6aQ1vM47HtWNWI4ahzmAWBOG4h1kqK6b1fCJtvi80MGl6M5+gJcpkVuHVIdbNjW8PBB mTEssrbunkzhaVEc5Gmgie4nPkonantZ4+4MYL+XJnMAN48ATs3jMTGnSGXQeqoNJr6B1kFlDhHhY PaiBCGzncDbel3+Jz1Ccb6iXjcOr8P2axwT+u5bWMzqQAecrwqfxP6ulkUmXtkTyXMYP27fjJfCox cRkmHPMnboXoJEHXjW+g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1pd5cS-001WvC-2H; Fri, 17 Mar 2023 08:39:24 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1pd5cP-001Wsk-2b for linux-phy@lists.infradead.org; Fri, 17 Mar 2023 08:39:23 +0000 Received: by mail-ed1-x52e.google.com with SMTP id ek18so17417549edb.6 for ; Fri, 17 Mar 2023 01:39:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679042357; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=3EomA/n20CDkYUZt9tuM0ynxqq+YecAeDoRjuMt6INc=; b=vaTOc9LH+cgYLqY/Rz77mcA4ZJWgSa001RXDNFebWbrvOMPdPznT7zAb6TnMDY4Vyr Nlw1gvG7zdomDE728zHu65C2GZs3dVyYh5TcTvEgK6r2hG5VIPnH2BlIxgrhfl7arkPH bx1/o+OOUbWh541mcbCTVAMpncadXVlwEA9L82v9luOwVO9O+7WrBHz2zw4H0e/ZkA8m utgXErJ2DQh3+t6OxeOgVWfPaDtxbuUUdSqewUe290atzi9Y3dsVP1DiSdGreX7EV1mE A4mm2ZpXTMRPhEmue+RRLHBRQA8F2WJY4VXGIDkxDQg605ENdtwgHJV0Oor0AeOhrPH2 +ZJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679042357; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3EomA/n20CDkYUZt9tuM0ynxqq+YecAeDoRjuMt6INc=; b=mLxqujgjf+X0d36/RQ4JJG8qlG5fSnt3vjRz/5enQ9qLE/cGz95d1hEQJlkA/LQGS+ 6IIO1hY3uOB2rU79HSN1buvOTj/pEx2I7rWSs9+Ux+TA8OEX+6DoNQMW6UGxVGLPzBqO RfKofMCLjohJrkVYb/0Iwf6ltVJmviq/ra+ciJR8N3iEAtLp9cqLvj19sLIgufeB/jZ4 GvdrLpMvu35yaYf+4MLRUAIUL77/0S7Wp4tG0988boD5hmRMd64qhDLkXaLs8yLBDNwo PQvZNpa640day8rW5A6sGDiWEDbjxiJ9Xrqbmc/wp1AG3YwaTyQpayiG6apqrqeHLbBn uceQ== X-Gm-Message-State: AO0yUKVXgIEvZm4XgPhCs10I0yoqS4DT6g2ZsEIfHifTKfJXdg2zn7y6 BTta0qX1+JRzyt8UUoL22Opoew== X-Google-Smtp-Source: AK7set9abg8fHSCfxU3N0o6BHt3OijsaEDSIA5zOwAbtKTKRYcKlml4Ijs9Yr5PZKkZvc+5L3W0kBA== X-Received: by 2002:a17:907:b021:b0:92f:b8d0:746c with SMTP id fu33-20020a170907b02100b0092fb8d0746cmr5663825ejc.20.1679042357510; Fri, 17 Mar 2023 01:39:17 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:848a:1971:93e0:b465? ([2a02:810d:15c0:828:848a:1971:93e0:b465]) by smtp.gmail.com with ESMTPSA id j10-20020a170906094a00b008cafeec917dsm701864ejd.101.2023.03.17.01.39.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Mar 2023 01:39:16 -0700 (PDT) Message-ID: Date: Fri, 17 Mar 2023 09:39:14 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v3 1/5] dt-bindings: phy: Add StarFive JH7110 USB/PCIe document Content-Language: en-US To: Minda Chen , Emil Renner Berthing , Conor Dooley , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Pawel Laszczak , Greg Kroah-Hartman , Peter Chen , Roger Quadros , Philipp Zabel Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-usb@vger.kernel.org, linux-riscv@lists.infradead.org, Paul Walmsley , Palmer Dabbelt , Albert Ou References: <20230315104411.73614-1-minda.chen@starfivetech.com> <20230315104411.73614-2-minda.chen@starfivetech.com> From: Krzysztof Kozlowski In-Reply-To: <20230315104411.73614-2-minda.chen@starfivetech.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230317_013921_847448_A8C70543 X-CRM114-Status: GOOD ( 15.32 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org On 15/03/2023 11:44, Minda Chen wrote: > Add StarFive JH7110 SoC USB 2.0/3.0 and PCIe 2.0 PHY dt-binding. > PCIe 2.0 phy can use as USB 3.0 PHY. > > Signed-off-by: Minda Chen > --- > .../phy/starfive,jh7110-usb-pcie-phy.yaml | 62 +++++++++++++++++++ > 1 file changed, 62 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/starfive,jh7110-usb-pcie-phy.yaml > > diff --git a/Documentation/devicetree/bindings/phy/starfive,jh7110-usb-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/starfive,jh7110-usb-pcie-phy.yaml > new file mode 100644 > index 000000000000..aa1c3fe93100 > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/starfive,jh7110-usb-pcie-phy.yaml > @@ -0,0 +1,62 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/phy/starfive,jh7110-usb-pcie-phy.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: StarFive USB 2.0 and PCIe 2.0 PHY > + > +maintainers: > + - Minda Chen > + > +properties: > + compatible: > + enum: > + - starfive,jh7110-usb-phy > + - starfive,jh7110-pcie-phy > + > + reg: > + maxItems: 1 > + > + "#phy-cells": > + const: 0 > + > + clocks: > + items: > + - description: usb 125m clock > + - description: app 125m clock > + > + clock-names: > + items: > + - const: 125m > + - const: app_125 > + > +required: > + - compatible > + - reg > + - "#phy-cells" > + It seems pci phy does not take these clocks, thus you should have allOf:if:then which will customize it per variant. Otherwise binding is incorrect for the pci. > +additionalProperties: false > + > +examples: > + - | > + phy@10200000 { > + compatible = "starfive,jh7110-usb-phy"; > + reg = <0x10200000 0x10000>; > + clocks = <&syscrg 95>, > + <&stgcrg 6>; > + clock-names = "125m", "app_125"; > + #phy-cells = <0>; > + }; > + > + phy@10210000 { > + compatible = "starfive,jh7110-pcie-phy"; > + reg = <0x10210000 0x10000>; > + #phy-cells = <0>; > + }; > + > + phy@10220000 { > + compatible = "starfive,jh7110-pcie-phy"; > + reg = <0x10220000 0x10000>; > + #phy-cells = <0>; > + }; Drop duplicated examples. Keep usb and maybe one phy. Best regards, Krzysztof -- linux-phy mailing list linux-phy@lists.infradead.org https://lists.infradead.org/mailman/listinfo/linux-phy