Message ID | 20230612092355.87937-3-brgl@bgdev.pl |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2460518vqr; Mon, 12 Jun 2023 02:33:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4J+SRb4lQ4awJAu/77NLfhAsSP5FHAqYNUTfyuOilNpMBiDObTkiSNEul8L6eKl7G/iWF4 X-Received: by 2002:a17:907:2ce1:b0:977:abac:9635 with SMTP id hz1-20020a1709072ce100b00977abac9635mr10630977ejc.20.1686562435999; Mon, 12 Jun 2023 02:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686562435; cv=none; d=google.com; s=arc-20160816; b=auQmYk4VH++aFrI1pZER3htfnukmqXuF4GUs2hIucP0Dl71f2GvpwsbvncRnSJqS3J 7zAKmR7Don1xrnCFs68cfQ4FZCjibTdSZcnjJfg8QRKiYCwj5i0IZCAv9JqtodH6pKZ/ +s7rOE/NlrXwo4D6KL0+iPuhMBQBkpS8fIejGlUJRU9K/hsL3WpkOmqizNJdf3wF3XYQ 6ecYGt4hyx7d2uvzClqv2meh8+mxIt2wEt6diJP4r4XEowgF6RTEa7iZ9BExrEoz9O75 24HSoEl8g4EbaWnZsKjuSs2ToezeFjctJ1sldVNaqsIe5QTJXC5/9TczAeQZlelsUQQw oPJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8Mia4wdvtEWv/Mc70nqXVtPO13y7zNqSpwQ13vNSfLE=; b=bSMfl/p5DuEf36OVQGWDwZYMB/e7s5n8TRtQdzl2LlIqgEmxNy3vWq7P3BxASrrIqZ N3RAXTnERE2CXQ37NAXDQDrkUMP6nE34eQtWdwA7vKJmrUk0KAoxtoywILQZOB6ERF8r tdR6VW2i7dmVHqnqt/jRi1lVANNfiFclrjdvQBhVBdRsyMR4YPvUFYTzsvECA2xX0aKD cxtslvMGeM9edyVXH8UinRbqwQsSIjZ2ADLhupchT1gPgmfutEIF/a1vW30Ok/6gwe4G NLvFT1RKvpxmig0SgB2ZXFMXaqv8yePh4sThDUQ0WbjeQH+KfBaYCSgWNfBoIjet+tZb 0rsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=W7uLoIKX; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fi1-20020a170906da0100b009746023de30si5036070ejb.458.2023.06.12.02.33.28; Mon, 12 Jun 2023 02:33:55 -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=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=W7uLoIKX; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234439AbjFLJa0 (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Mon, 12 Jun 2023 05:30:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233717AbjFLJ3j (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 12 Jun 2023 05:29:39 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1A26E4C for <linux-kernel@vger.kernel.org>; Mon, 12 Jun 2023 02:24:29 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-4f122ff663eso4643731e87.2 for <linux-kernel@vger.kernel.org>; Mon, 12 Jun 2023 02:24:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1686561868; x=1689153868; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=8Mia4wdvtEWv/Mc70nqXVtPO13y7zNqSpwQ13vNSfLE=; b=W7uLoIKXS7PAmiTERywWDbaMLHABZeojjIbT0BpPdVw/szDoWSLAhsDjiDhXxl4o0B N+mM9elzSP3JqtAq5iBMalhVzDLZAT3pgGrA4YH0qnHkzC5chXAFtZOuI8iB8RtRWpUk qOX25KL/ZPJsjCHVNrK5xFzMKBouPr39wPrNCJ/B1IYO0a5h4wx7RMpAIK3l/E/UnFKe dz6B6SoSKkxozrS8aYGNXN9zhyKDjdGgp5mZXmbuaHnXa5w2D/IMPaqTthkKHu/a1eea vPl6cgK054K85I0UCom0Hd9nIDiLDaTWrOXGQNcrNBsVHaU55BET5lMHbubFFmbZ6tzN s+SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686561868; x=1689153868; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8Mia4wdvtEWv/Mc70nqXVtPO13y7zNqSpwQ13vNSfLE=; b=FUHdDxJMHpz+zmS36BE77yjY7UTspxrl6ksrxEZYmt2gkGa80AaW0j2OB0ZROEk5+x 0oFM0E+c8dnirwCkDpF769uHBqzoPJjVlT071jNdrIUyaKhJkFcuKAIQKDfzmsDOqAmp uxkQpJSBjfK+fLrbiSjww1B413EV/ti27rlp87Jmkh85koJmrxzYPagyvD7ve2vcaKxA J4CsNsVzrAwGQlCabi+7NfbtjkklPnKSwmDJYlqwTYi+/yW76KXrwrp5kvN7Xgp0B9RQ BKhEgPuwSGW/gGwIbMQwXttmlMfIz/bZJmSdUIuaAMnhJmznfOPA+uPaKfEOj0CmATeZ B/5g== X-Gm-Message-State: AC+VfDzN/MTm/SOScJP9qeeraO594SWJPvNvkttqAs2U2HUTVLUczNja ZzsFhrI7seRCpXrsQL5s9ixh6enPHcPPBWNgW4w= X-Received: by 2002:ac2:464d:0:b0:4f4:c972:981f with SMTP id s13-20020ac2464d000000b004f4c972981fmr4212236lfo.54.1686561868039; Mon, 12 Jun 2023 02:24:28 -0700 (PDT) Received: from brgl-uxlite.home ([2a01:cb1d:334:ac00:a222:bbe9:c688:33ae]) by smtp.gmail.com with ESMTPSA id p14-20020a7bcc8e000000b003f727764b10sm10892044wma.4.2023.06.12.02.24.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 02:24:27 -0700 (PDT) From: Bartosz Golaszewski <brgl@bgdev.pl> To: Vinod Koul <vkoul@kernel.org>, Bhupesh Sharma <bhupesh.sharma@linaro.org>, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Kishon Vijay Abraham I <kishon@kernel.org>, Giuseppe Cavallaro <peppe.cavallaro@st.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Jose Abreu <joabreu@synopsys.com> Cc: netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Subject: [PATCH 02/26] dt-bindings: phy: describe the Qualcomm SGMII PHY Date: Mon, 12 Jun 2023 11:23:31 +0200 Message-Id: <20230612092355.87937-3-brgl@bgdev.pl> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230612092355.87937-1-brgl@bgdev.pl> References: <20230612092355.87937-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768488892958412681?= X-GMAIL-MSGID: =?utf-8?q?1768488892958412681?= |
Series |
arm64: qcom: sa8775p-ride: enable the first ethernet port
|
|
Commit Message
Bartosz Golaszewski
June 12, 2023, 9:23 a.m. UTC
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Describe the SGMII/SerDes PHY present on the sa8775p platforms. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> --- .../phy/qcom,sa8775p-dwmac-sgmii-phy.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml
Comments
On 12/06/2023 11:23, Bartosz Golaszewski wrote: > From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > > Describe the SGMII/SerDes PHY present on the sa8775p platforms. > > Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> > +properties: > + compatible: > + const: qcom,sa8775p-dwmac-sgmii-phy > + > + reg: > + items: > + - description: serdes > + > + clocks: > + maxItems: 1 > + > + clock-names: > + const: sgmi_ref > + > + "#phy-cells": > + const: 0 > + > +additionalProperties: false Please put it after required: block. > + > +required: > + - compatible > + - reg > + - "#phy-cells" > + - clocks > + - clock-names > + > +examples: > + - | > + #include <dt-bindings/clock/qcom,sa8775p-gcc.h> > + serdes_phy: phy@8901000 { > + compatible = "qcom,sa8775p-dwmac-sgmii-phy"; > + reg = <0x08901000 0xe10>; > + clocks = <&gcc GCC_SGMI_CLKREF_EN>; > + clock-names = "sgmi_ref"; > + #phy-cells = <0>; > + status = "disabled"; Drop the status. With above: Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > + }; Best regards, Krzysztof
diff --git a/Documentation/devicetree/bindings/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml new file mode 100644 index 000000000000..ba8d2bee1563 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/qcom,sa8775p-dwmac-sgmii-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm SerDes/SGMII ethernet PHY controller + +maintainers: + - Bartosz Golaszewski <bartosz.golaszewski@linaro.org> + +description: + The SerDes PHY sits between the MAC and the external PHY and provides + separate Rx Tx lines. + +properties: + compatible: + const: qcom,sa8775p-dwmac-sgmii-phy + + reg: + items: + - description: serdes + + clocks: + maxItems: 1 + + clock-names: + const: sgmi_ref + + "#phy-cells": + const: 0 + +additionalProperties: false + +required: + - compatible + - reg + - "#phy-cells" + - clocks + - clock-names + +examples: + - | + #include <dt-bindings/clock/qcom,sa8775p-gcc.h> + serdes_phy: phy@8901000 { + compatible = "qcom,sa8775p-dwmac-sgmii-phy"; + reg = <0x08901000 0xe10>; + clocks = <&gcc GCC_SGMI_CLKREF_EN>; + clock-names = "sgmi_ref"; + #phy-cells = <0>; + status = "disabled"; + };