Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3311461rwa; Tue, 23 Aug 2022 02:33:15 -0700 (PDT) X-Google-Smtp-Source: AA6agR4opcaMJRzjFBTFL/LhblbeltoI8lZ++zKnU1ShybGlzskHQb3V8hb2+Z4lSkQhWbf7oboZ X-Received: by 2002:a17:907:a043:b0:73d:92f5:33ee with SMTP id gz3-20020a170907a04300b0073d92f533eemr3049936ejc.432.1661247195586; Tue, 23 Aug 2022 02:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661247195; cv=none; d=google.com; s=arc-20160816; b=bvgNA6DV56RZ63h0oxvvrfd3kOWAL/qKXXolAki8Xx9ww9pwfLYOcidRI4OW01AckO L6WR7eMNzQl0zuShJsevk1q2N6/TobmDjqoM78VeWroIKky3bYhQLcyQ06pv87aZl4p1 UqUZxy/hwaZr8hhCa0srDPcD92UDkLY0ttOdfXIPC5LTUYC5k/b3ETeOPuD7CkxPPraY j7PNspDvpfdVifP2AG9qUsMokb6DmOkpjyXhOrIQdu9IRdlR6jAYR06kB8eOiF96VM2U ZH5Z/QJX87I3OppOOHp7/cMs4fdoz5vmtPRLdFnBFuZLVF7fiKSDAe8/Q5DAFI1yODAa cymw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=+aSY9Y33CDXgz04lbF3PqxrBUx68k/v5JOdwfPTNsck=; b=Apic+XVc1Mgbl8HeeCSAq7KdqnarRSYz1b1a/014w0YFUbvYlqVllu04xN/d26K/bA lykom0utH+YS6sPl5snj5jE7iqNl4rRVoDIlYZX8IGabwNHAY9y/Z0bRCIIfTz3gy4AT Pwgu5G9fLjdAnrySmkAEOIjCRXhkq4Nxdk8Vv7SCz6kRERsvrWoxLlnY0AVvL2m65n1r 0FKIExExRvFM+4I+2oKtczy1ootDj3zb0gE2chSOSkmarKRlkvN/VYxSimklKLTYhKsq YoQbssiQ0MKrpEUZuVQ0/bfm4f3tyWlhfP6PCrnuWhQyjRMqQohwTLFiPXZpRAg5KFvy nHEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QkuAXN+U; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h4-20020aa7c944000000b0044722838384si856947edt.383.2022.08.23.02.32.48; Tue, 23 Aug 2022 02:33:15 -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=@linaro.org header.s=google header.b=QkuAXN+U; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350513AbiHWJaW (ORCPT + 99 others); Tue, 23 Aug 2022 05:30:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50872 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350048AbiHWJ1y (ORCPT ); Tue, 23 Aug 2022 05:27:54 -0400 Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12EAA91D11 for ; Tue, 23 Aug 2022 01:37:23 -0700 (PDT) Received: by mail-lj1-x234.google.com with SMTP id l21so12840274ljj.2 for ; Tue, 23 Aug 2022 01:37:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=+aSY9Y33CDXgz04lbF3PqxrBUx68k/v5JOdwfPTNsck=; b=QkuAXN+U7cnhI883/vPgSeyqlE+WERE888alAVsSQAP6K76e4Lq6scqjW5YP5gY4Zv gVD8rvePqRyUWnq08fWShX0UKGdz+64B0i1RmzOIMHquRKO34P4KjKVA1eQgbCOvET5c XLxKuXdMN7i7FrPlNniRLvaqe2MWHiMxe1+cKHpfOkn+zWrbYLoyoNUBJsvd/NsQRIxV 0PAJTxFQYRRA1GjSzaLlvTMnfy5dlgNal0BIxfiprXMoLEB+392bMAYUtrZkZdjn3QD4 aRNoqblddkQYhPC/kwhTpB8oFZ8tZvUr4aA/AJhU5tY5FrlelbEHmPwxWc2JqMxLkFl+ 3slw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=+aSY9Y33CDXgz04lbF3PqxrBUx68k/v5JOdwfPTNsck=; b=mc79AlqMUF+5Eq3hyyKc6K1MzQzqF9G4n5rCg4KGFQZcVGL0xeFWij/9hTr/fnXiL3 h7dkCRP1h/Jp9tHb23VWnUAF5vH+gnAri0pY0p6S8xPDSMAZ4k0gDrVvRYkhIBJT8o47 IWSWsPCaporjTtCRP8MjfoOGHUS9u64UNWYUHPlv73JVBw0PP0fFKExduhB3WoMZWIxi TGVUFU9Rk7NLoHaZ3gpXPrvDhYhwPSsuCeicKzzkzQ3BGN4ZvxPTEP9d1j9EzhcmwM6N CQtiTISUbmSy/+uxXfD3sCRpuNDWJPFwm0IH9gX8tR2R75SuMaSiNilr9O836V6V5yyS Gyhg== X-Gm-Message-State: ACgBeo37wm7IuXPI+GwXXMsitXvurfEDSKfyzcPzUD3ToBGE4veikOHr Y12aRqeSvsr4EadYqINkLX5sqw== X-Received: by 2002:a2e:9d06:0:b0:261:d208:7475 with SMTP id t6-20020a2e9d06000000b00261d2087475mr1683044lji.113.1661243791045; Tue, 23 Aug 2022 01:36:31 -0700 (PDT) Received: from [192.168.0.11] (89-27-92-210.bb.dnainternet.fi. [89.27.92.210]) by smtp.gmail.com with ESMTPSA id p18-20020a2eb992000000b00261ca006158sm1243319ljp.54.2022.08.23.01.36.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Aug 2022 01:36:30 -0700 (PDT) Message-ID: Date: Tue, 23 Aug 2022 11:36:29 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v1 1/1] dt-bindings: phy: ocelot-serdes: convert to YAML Content-Language: en-US To: Colin Foster , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-phy@lists.infradead.org Cc: UNGLinuxDriver@microchip.com, Alexandre Belloni , Krzysztof Kozlowski , Rob Herring , Vinod Koul , Kishon Vijay Abraham I References: <20220823060052.3921849-1-colin.foster@in-advantage.com> <20220823060052.3921849-2-colin.foster@in-advantage.com> From: Krzysztof Kozlowski In-Reply-To: <20220823060052.3921849-2-colin.foster@in-advantage.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On 23/08/2022 09:00, Colin Foster wrote: > Convert the phy-ocelot-serdes device tree binding to the new YAML format. > > Additionally, add the file to MAINTAINERS since the original file didn't > exist. > > Signed-off-by: Colin Foster > --- > .../bindings/phy/phy-ocelot-serdes.txt | 43 ------------- > .../bindings/phy/phy-ocelot-serdes.yaml | 61 +++++++++++++++++++ > MAINTAINERS | 1 + > 3 files changed, 62 insertions(+), 43 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/phy/phy-ocelot-serdes.txt > create mode 100644 Documentation/devicetree/bindings/phy/phy-ocelot-serdes.yaml Filename based on compatible, so mscc,vsc7514-serdes.yaml > > diff --git a/Documentation/devicetree/bindings/phy/phy-ocelot-serdes.yaml b/Documentation/devicetree/bindings/phy/phy-ocelot-serdes.yaml > new file mode 100644 > index 000000000000..0666974d886a > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/phy-ocelot-serdes.yaml > @@ -0,0 +1,61 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/phy/phy-ocelot-serdes.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Microsemi Ocelot SerDes muxing driver s/driver// Bindings are for hardware, not for Linux drivers. > + > +maintainers: > + - Alexandre Belloni > + - UNGLinuxDriver@microchip.com > + > +description: | > + On Microsemi Ocelot, there is a handful of registers in HSIO address > + space for setting up the SerDes to switch port muxing. > + > + A SerDes X can be "muxed" to work with switch port Y or Z for example. > + One specific SerDes can also be used as a PCIe interface. > + > + Hence, a SerDes represents an interface, be it an Ethernet or a PCIe one. > + > + There are two kinds of SerDes: SERDES1G supports 10/100Mbps in > + half/full-duplex and 1000Mbps in full-duplex mode while SERDES6G supports > + 10/100Mbps in half/full-duplex and 1000/2500Mbps in full-duplex mode. > + > + Also, SERDES6G number (aka "macro") 0 is the only interface supporting > + QSGMII. > + > + This is a child of the HSIO syscon ("mscc,ocelot-hsio", see > + Documentation/devicetree/bindings/mips/mscc.txt) on the Microsemi Ocelot. > + > +properties: > + compatible: > + enum: > + - mscc,vsc7514-serdes Missing blank line > + "#phy-cells": > + const: 2 > + description: | > + from the generic phy bindings, must be 2. Skip first sentence, it's obvious. The first number > + defines the input port to use for a given SerDes macro. The > + second defines the macro to use. They are defined in > + dt-bindings/phy/phy-ocelot-serdes.h > + > +required: > + - compatible > + - "#phy-cells" Missing additionalProperties: false Base your YAML on example-schema. > + > +examlpes: Typo. > + - | > + serdes: serdes { > + compatible = "mscc,vsc7514-serdes"; > + #phy-cells = <2>; > + }; > + > + ethernet { > + port1 { > + phy-handle = <&phy_foo>; > + /* Link SERDES1G_5 to port1 */ > + phys = <&serdes 1 SERDES1G_5>; > + }; > + }; Skip consumer examples in provider bindings. They're obvious. > diff --git a/MAINTAINERS b/MAINTAINERS > index 714fd8b45e5a..10dd3c6ad6ad 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -13481,6 +13481,7 @@ M: UNGLinuxDriver@microchip.com > L: linux-mips@vger.kernel.org > S: Supported > F: Documentation/devicetree/bindings/mips/mscc.txt > +F: Documentation/devicetree/bindings/phy/phy-ocelot-serdes.yaml > F: Documentation/devicetree/bindings/pinctrl/mscc,ocelot-pinctrl.yaml > F: Documentation/devicetree/bindings/power/reset/ocelot-reset.txt > F: arch/mips/boot/dts/mscc/ Best regards, Krzysztof