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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3412C636D4 for ; Wed, 1 Feb 2023 19:03:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231707AbjBATDE (ORCPT ); Wed, 1 Feb 2023 14:03:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231576AbjBATDB (ORCPT ); Wed, 1 Feb 2023 14:03:01 -0500 Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F3851BE5; Wed, 1 Feb 2023 11:02:56 -0800 (PST) Received: by mail-oi1-f169.google.com with SMTP id r205so16552003oib.9; Wed, 01 Feb 2023 11:02:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4b+yi8Fp+1mASD/1pRhb3B7vF/VozFmSyqUmTVg4Bn4=; b=VRVPfC6qtuQtFKHmVv+Q8Y1f+7TAhPpt27R3HlPk78v7Zf/jdl9rmh/RyXWgCtrQqk scvwvwb6qIkLwgR+p7CeeBpc+wA1YIfyNJ3WFalvTNxlXq24YnNFjtvjTLz/yLYMg4CT Vzemxm8sqOfT57a6b28NewEmyXgOjjG3WoeVn0Hcij5eI4lAhh6mbU4/uZ/DXRLKpeE+ 9AdMBUW34Pdq4bcjR483c1WbFGahL6qIZbbRgmmaYpi7cRm7aBYWeVhFx0L7UgL8F3ew 0g62ZyHJyCXY5JbW314jY3dUBxUiFqczMieCK6T+B4ZmGSCTVcAjUMbrxgVG60tUG2nC t3YQ== X-Gm-Message-State: AO0yUKWsx4j+669tgGNJ1jdGS5rwg8TltrUt2QES80nzQLmyYKk0Afmv 1QJSZYRPZWYTQusKntqEtA== X-Google-Smtp-Source: AK7set8b+PiYc6pLpzShiNd7msMWXoM09d/RSoo18jeec+ms7gx9k7OzvS1mK3PNrrfp7cLTFiJDBQ== X-Received: by 2002:a54:4619:0:b0:378:373e:e371 with SMTP id p25-20020a544619000000b00378373ee371mr1582023oip.50.1675278175131; Wed, 01 Feb 2023 11:02:55 -0800 (PST) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id m16-20020a9d7e90000000b0068bd5af9b82sm3515200otp.43.2023.02.01.11.02.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Feb 2023 11:02:54 -0800 (PST) Received: (nullmailer pid 4155631 invoked by uid 1000); Wed, 01 Feb 2023 19:02:53 -0000 Date: Wed, 1 Feb 2023 13:02:53 -0600 From: Rob Herring To: Frank Sae Cc: Peter Geis , Andrew Lunn , Heiner Kallweit , Russell King , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Krzysztof Kozlowski , yanhong.wang@starfivetech.com, xiaogang.fan@motor-comm.com, fei.zhang@motor-comm.com, hua.sun@motor-comm.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH net-next v4 1/5] dt-bindings: net: Add Motorcomm yt8xxx ethernet phy Message-ID: <20230201190253.GA4148490-robh@kernel.org> References: <20230201065811.3650-1-Frank.Sae@motor-comm.com> <20230201065811.3650-2-Frank.Sae@motor-comm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230201065811.3650-2-Frank.Sae@motor-comm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 01, 2023 at 02:58:07PM +0800, Frank Sae wrote: > Add a YAML binding document for the Motorcomm yt8xxx Ethernet phy. > > Signed-off-by: Frank Sae > --- > .../bindings/net/motorcomm,yt8xxx.yaml | 119 ++++++++++++++++++ > .../devicetree/bindings/vendor-prefixes.yaml | 2 + > MAINTAINERS | 1 + > 3 files changed, 122 insertions(+) > create mode 100644 Documentation/devicetree/bindings/net/motorcomm,yt8xxx.yaml > > diff --git a/Documentation/devicetree/bindings/net/motorcomm,yt8xxx.yaml b/Documentation/devicetree/bindings/net/motorcomm,yt8xxx.yaml > new file mode 100644 > index 000000000000..6ce93404e1f1 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/motorcomm,yt8xxx.yaml > @@ -0,0 +1,119 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/motorcomm,yt8xxx.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MotorComm yt8xxx Ethernet PHY > + > +maintainers: > + - frank sae Frank Sae > + > +allOf: > + - $ref: ethernet-phy.yaml# > + > +properties: > + compatible: > + oneOf: > + - const: ethernet-phy-id4f51.e91a > + description: Only needed for DT lint tools, yt8531s phy linting doesn't care, validation does. But just drop the description. > + - const: ethernet-phy-id4f51.e91b > + description: Only needed for DT lint tools, yt8531 phy > + > + rx-internal-delay-ps: > + description: | > + RGMII RX Clock Delay used only when PHY operates in RGMII mode with > + internal delay (phy-mode is 'rgmii-id' or 'rgmii-rxid') in pico-seconds. > + enum: [ 0, 150, 300, 450, 600, 750, 900, 1050, 1200, 1350, 1500, 1650, > + 1800, 1900, 1950, 2050, 2100, 2200, 2250, 2350, 2500, 2650, 2800, > + 2950, 3100, 3250, 3400, 3550, 3700, 3850, 4000, 4150 ] > + default: 1950 > + > + tx-internal-delay-ps: > + description: | > + RGMII TX Clock Delay used only when PHY operates in RGMII mode with > + internal delay (phy-mode is 'rgmii-id' or 'rgmii-txid') in pico-seconds. > + enum: [ 0, 150, 300, 450, 600, 750, 900, 1050, 1200, 1350, 1500, 1650, 1800, > + 1950, 2100, 2250 ] > + default: 1950 > + > + motorcomm,clk-out-frequency-hz: > + description: clock output on clock output pin. > + enum: [0, 25000000, 125000000] > + default: 0 > + > + motorcomm,keep-pll-enabled: > + description: | > + If set, keep the PLL enabled even if there is no link. Useful if you > + want to use the clock output without an ethernet link. > + type: boolean > + > + motorcomm,auto-sleep-disabled: > + description: | > + If set, PHY will not enter sleep mode and close AFE after unplug cable > + for a timer. > + type: boolean > + > + motorcomm,tx-clk-adj-enabled: > + description: | > + This configuration is mainly to adapt to VF2 with JH7110 SoC. > + Useful if you want to use tx-clk-xxxx-inverted to adj the delay of tx clk. > + type: boolean > + > + motorcomm,tx-clk-10-inverted: > + description: | > + Use original or inverted RGMII Transmit PHY Clock to drive the RGMII > + Transmit PHY Clock delay train configuration when speed is 10Mbps. > + type: boolean > + > + motorcomm,tx-clk-100-inverted: > + description: | > + Use original or inverted RGMII Transmit PHY Clock to drive the RGMII > + Transmit PHY Clock delay train configuration when speed is 100Mbps. > + type: boolean > + > + motorcomm,tx-clk-1000-inverted: > + description: | > + Use original or inverted RGMII Transmit PHY Clock to drive the RGMII > + Transmit PHY Clock delay train configuration when speed is 1000Mbps. > + type: boolean > + > +unevaluatedProperties: false > + > +examples: > + - | > + mdio { > + #address-cells = <1>; > + #size-cells = <0>; > + phy-mode = "rgmii-id"; > + ethernet-phy@4 { > + /* Only needed to make DT lint tools work. Do not copy/paste > + * into real DTS files. > + */ > + compatible = "ethernet-phy-id4f51.e91a"; > + > + reg = <4>; > + rx-internal-delay-ps = <2100>; > + tx-internal-delay-ps = <150>; > + motorcomm,clk-out-frequency-hz = <0>; > + motorcomm,keep-pll-enabled; > + motorcomm,auto-sleep-disabled; > + }; > + }; > + - | > + mdio { > + #address-cells = <1>; > + #size-cells = <0>; > + phy-mode = "rgmii"; > + ethernet-phy@5 { > + /* Only needed to make DT lint tools work. Do not copy/paste > + * into real DTS files. > + */ > + compatible = "ethernet-phy-id4f51.e91a"; > + > + reg = <5>; > + motorcomm,clk-out-frequency-hz = <125000000>; > + motorcomm,keep-pll-enabled; > + motorcomm,auto-sleep-disabled; > + }; > + }; > diff --git a/Documentation/devicetree/bindings/vendor-prefixes.yaml b/Documentation/devicetree/bindings/vendor-prefixes.yaml > index 161766b1de50..99bb8594753c 100644 > --- a/Documentation/devicetree/bindings/vendor-prefixes.yaml > +++ b/Documentation/devicetree/bindings/vendor-prefixes.yaml > @@ -847,6 +847,8 @@ patternProperties: > description: Moortec Semiconductor Ltd. > "^mosaixtech,.*": > description: Mosaix Technologies, Inc. > + "^motorcomm,.*": > + description: MotorComm, Inc. > "^motorola,.*": > description: Motorola, Inc. > "^moxa,.*": > diff --git a/MAINTAINERS b/MAINTAINERS > index 8cdba0580cb8..1da8c3b52108 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -14161,6 +14161,7 @@ M: Peter Geis > M: Frank > L: netdev@vger.kernel.org > S: Maintained > +F: Documentation/devicetree/bindings/net/motorcomm,yt8xxx.yaml > F: drivers/net/phy/motorcomm.c > > MOXA SMARTIO/INDUSTIO/INTELLIO SERIAL CARD > -- > 2.34.1 >