Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp364111rdb; Thu, 19 Oct 2023 06:51:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGdTRzlllPwAxqgDTcGZyIRG6WGS56xQpV7IcvxLWL0gbrKnl1ADY5qa/mpnttep1sdVNS9 X-Received: by 2002:a05:6a20:8e10:b0:161:7a0c:3c37 with SMTP id y16-20020a056a208e1000b001617a0c3c37mr2584981pzj.5.1697723495098; Thu, 19 Oct 2023 06:51:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697723495; cv=none; d=google.com; s=arc-20160816; b=w7Azgi4JdZSJHXhEo31GPQyTdc9dG4OQSc8CZAYdNxnJWu7onW4z8SFoU/mvg8D6UD Xk+uwdVMdsUNs+MmO+QXg/UY/Oojcz3Qankmd1JIwepp2yByp0Y/RkoJ7yurydukYxbQ Zxzaya1Q+mB0915uMr32Y9KFkvOhe3qcMTpRlxL+k1v76vCkFkLGKQ+Y0kz09Mlks6V8 vZnWaWXNL6JbKVyYSK8qq3ybXwado72I8ggfxcwHdaVCYOmH0CbNvAIcw+TwAXJYJ2W5 WWrNd+kvIsDWjqIf3YDqRUtVvskIbAOUiCVsXSHnVZSjHap9bP3EAVbkpLAfaup5yILQ h/+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=WXPDgRRQ6T5BPQS0IhBT47wS9hbtPGflBMHajnRGGOU=; fh=2buEcg5c3S58BvcJ6+rCIwnSBwfHiiV4u0IlZjL8eMU=; b=hp88T3h6mvVxGf1GbNitr2DJN8doWQt4dqip8K0FcNskQiY3q1fExXe22XX3YKJxpt 53ZzjClDbFBGAfJ9uRe7D9g8j5iY2pRFOZ8L9pVZqX4+F1z0xk1nnMB3VE5/mMXGt6qA 2kz3+8gfioumYAW1UG+6UuWmpO9yVPPEBdHwxPhnnjgqZwVaMp6Yxmx2y2umA4FbATD8 F7Ipm2ozyp+6u2GGMTa+nKBRA9W0e/kkmj+cWBFMaeGH4ylvliK2/5N8SUNIBY62klwJ TSMO0lIktV8Jjf0C4lcK0K3r3Qo5PKNsd6Oul40+kcu1fqh1gHI+kS8tMYerlPqZvvWm 1T/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id bw27-20020a056a02049b00b005775a0cd009si5535538pgb.331.2023.10.19.06.51.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 06:51:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 4BD3B819D1F5; Thu, 19 Oct 2023 06:51:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345819AbjJSNvK (ORCPT + 99 others); Thu, 19 Oct 2023 09:51:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345725AbjJSNvI (ORCPT ); Thu, 19 Oct 2023 09:51:08 -0400 Received: from mail-ot1-f43.google.com (mail-ot1-f43.google.com [209.85.210.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E881124; Thu, 19 Oct 2023 06:51:06 -0700 (PDT) Received: by mail-ot1-f43.google.com with SMTP id 46e09a7af769-6ce2add34c9so378282a34.1; Thu, 19 Oct 2023 06:51:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697723465; x=1698328265; 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=WXPDgRRQ6T5BPQS0IhBT47wS9hbtPGflBMHajnRGGOU=; b=n/fMgAEt+x7IO3K9zsUaa/mskzflaWXiDAASjl8Ky+8ZItJ2jmCziLNXRls1CJPn+G 6SKRpmLus2VyJeTnrvuCDm9CKE8z6OKzFRp2rI7/P79qtUlruSGbQFw3p9ADYd2bIQ3r 3FfGFG1lf8CEk4YogDLhnThbowdiC1ADgVzFFWn1sNEoregLWEmYhP80u/uqStJJSmcx DmdFHPpvj3KnTj/06RTNbYJx+MhkCaJluPrLOrpbxv3E2FXhyD3nOwpqDAmpT3ek9nKC zADGfVzNBt5n63e8IR90VlaxG0KrdoVPOG9yOaXmujpaMXEdsVtzo7qd59x07FkuXTfr EENw== X-Gm-Message-State: AOJu0YzRpUaC2bw2W7epasNJzp3bFJldEdK8I+9db+kV0xpeicgHKzcB 1tU5HzFcHfVPbu7yV2cZDQ== X-Received: by 2002:a9d:6a8f:0:b0:6bf:ef0:c69 with SMTP id l15-20020a9d6a8f000000b006bf0ef00c69mr2277189otq.34.1697723465201; Thu, 19 Oct 2023 06:51:05 -0700 (PDT) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id m46-20020a05683026ee00b006c4d38e12b9sm1040630otu.65.2023.10.19.06.51.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 06:51:04 -0700 (PDT) Received: (nullmailer pid 206032 invoked by uid 1000); Thu, 19 Oct 2023 13:51:03 -0000 Date: Thu, 19 Oct 2023 08:51:03 -0500 From: Rob Herring To: Linus Walleij Cc: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Krzysztof Kozlowski , Conor Dooley , Russell King , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Christian Marangi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next v4 6/7] dt-bindings: marvell: Rewrite MV88E6xxx in schema Message-ID: <20231019135103.GA203636-robh@kernel.org> References: <20231018-marvell-88e6152-wan-led-v4-0-3ee0c67383be@linaro.org> <20231018-marvell-88e6152-wan-led-v4-6-3ee0c67383be@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231018-marvell-88e6152-wan-led-v4-6-3ee0c67383be@linaro.org> X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, 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 agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 19 Oct 2023 06:51:32 -0700 (PDT) On Wed, Oct 18, 2023 at 11:03:45AM +0200, Linus Walleij wrote: > This is an attempt to rewrite the Marvell MV88E6xxx switch bindings > in YAML schema. > > The current text binding says: > WARNING: This binding is currently unstable. Do not program it into a > FLASH never to be changed again. Once this binding is stable, this > warning will be removed. > > Well that never happened before we switched to YAML markup, > we can't have it like this, what about fixing the mess? > > Signed-off-by: Linus Walleij > --- > .../bindings/net/dsa/marvell,mv88e6xxx.yaml | 225 +++++++++++++++++++++ > .../devicetree/bindings/net/dsa/marvell.txt | 109 ---------- > MAINTAINERS | 2 +- > 3 files changed, 226 insertions(+), 110 deletions(-) > > diff --git a/Documentation/devicetree/bindings/net/dsa/marvell,mv88e6xxx.yaml b/Documentation/devicetree/bindings/net/dsa/marvell,mv88e6xxx.yaml > new file mode 100644 > index 000000000000..8013ac411b15 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/dsa/marvell,mv88e6xxx.yaml > @@ -0,0 +1,225 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/dsa/marvell,mv88e6xxx.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Marvell MV88E6xxx DSA switch family > + > +maintainers: > + - Andrew Lunn > + > +description: > + The Marvell MV88E6xxx switch series has been produced and sold > + by Marvell since at least 2010. The switch has a few compatibles which > + just indicate the base address of the switch, then operating systems > + can investigate switch ID registers to find out which actual version > + of the switch it is dealing with. > + > +properties: > + compatible: > + enum: > + - marvell,mv88e6085 > + - marvell,mv88e6190 > + - marvell,mv88e6250 > + description: | > + marvell,mv88e6085: This switch uses base address 0x10. > + This switch and its siblings will be autodetected from > + ID registers found in the switch, so only "marvell,mv88e6085" should be > + specified. This includes the following list of MV88Exxxx switches: > + 6085, 6095, 6097, 6123, 6131, 6141, 6161, 6165, 6171, 6172, 6175, 6176, > + 6185, 6240, 6320, 6321, 6341, 6350, 6351, 6352 > + marvell,mv88e6190: This switch uses base address 0x00. > + This switch and its siblings will be autodetected from > + ID registers found in the switch, so only "marvell,mv88e6190" should be > + specified. This includes the following list of MV88Exxxx switches: > + 6190, 6190X, 6191, 6290, 6361, 6390, 6390X > + marvell,mv88e6250: This switch uses base address 0x08 or 0x18. > + This switch and its siblings will be autodetected from > + ID registers found in the switch, so only "marvell,mv88e6250" should be > + specified. This includes the following list of MV88Exxxx switches: > + 6220, 6250 > + > + reg: > + maxItems: 1 > + > + eeprom-length: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: Set to the length of an EEPROM connected to the switch. Must be > + set if the switch can not detect the presence and/or size of a connected > + EEPROM, otherwise optional. > + > + reset-gpios: > + description: > + GPIO to be used to reset the whole device > + maxItems: 1 > + > + interrupts: > + description: The switch provides an external interrupt line, but it is > + not always used by target systems. > + maxItems: 1 > + > + interrupt-controller: > + description: The switch has an internal interrupt controller used by > + the different sub-blocks. > + > + '#interrupt-cells': > + description: The internal interrupt controller only supports triggering > + on active high level interrupts so the second cell must alway be set to > + IRQ_TYPE_LEVEL_HIGH. > + const: 2 > + > + mdio: > + $ref: /schemas/net/mdio.yaml# > + unevaluatedProperties: false > + description: Marvell MV88E6xxx switches have an varying combination of > + internal and external MDIO buses, in some cases a combined bus that > + can be used both internally and externally. This node is for the > + primary bus, used internally and sometimes also externally. > + > + mdio-external: > + $ref: /schemas/net/mdio.yaml# > + unevaluatedProperties: false > + description: Marvell MV88E6xxx switches that have a separate external > + MDIO bus use this port to access external components on the MDIO bus. > + > + properties: > + compatible: > + const: marvell,mv88e6xxx-mdio-external > + > + required: > + - compatible > + > +$ref: dsa.yaml# Drop this. Covered by the line below. > + > +allOf: > + - $ref: dsa.yaml#/$defs/ethernet-ports