Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3526464pxb; Mon, 16 Nov 2020 17:52:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJwtRULNEbL7YRj8vK1yvxxblHPBcssUvvkU77uvJaoCLfWT5oRASIFdikEbO06+yZevzzrV X-Received: by 2002:aa7:c30e:: with SMTP id l14mr18738993edq.315.1605577971674; Mon, 16 Nov 2020 17:52:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605577971; cv=none; d=google.com; s=arc-20160816; b=Ux7ecviJaTH5+ntEMUYsyL0xDhpyzqOV78kQTfEFVdu+rxNjXI7fHMoCtgVOtVbgGF pwjlnvl7xoILnkFf0O2/Efq5uyekxdKEJ5nBT522vQFrxz/3EHGa/xa0c5TQ5xSZTRPG KU/7g0xNv/Qf1ENLDhnJY3i+IdRE2A44gcu0Thqv9miJ0TYjiTHRcsVSxQJDdmY4Bqjp MJ2wJ7qCoj6olXmI8mlozY+QvLxnkER4qqDHLAx6TiN2O7dVYUb0+5kbtb3pmfqBtqEN JPstzhYxPA/ZGgs9UPTWrrwNswNM7AydUGWhF8Td6Zo/VzwC0gS9YbZOn7aQyR8vSZon oJ6g== 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=6FKs5LWi3CfnqMqEIY0TTQAgbNfsS+k9MsKXgT+oPpU=; b=nrNXF670n/HW4xtqrIGVNTxz4vQSLu383e8c0gtm1kt2ra9l4WEYYd2f7OVjMRd8hI HTJhSdubrhne6wikwrFfvLDTW8NZoLsA21fuNwqqe47bERF/xuvf4vM7rLVpIncAtvE1 JtjdJ3H5eFLH1b44xiQGEmbiLAhRT7mEl558tN0X7m1n3RKMi0AqPzTNlBcq+7In5LzS H2X1tsUCHJFUfiKc+zBDAjKLCeCNbIL89fOuQGSf4VRG+iI6aqtkwuRp5g7HXta9Z7V1 j/lL0LkcLVZ+qaAkduuxjui9koYkL7IYP0H1WTsXv+Sj8e0BPdwg6U9jfCD3QP5VKNBV KTzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a14si12645299ejf.629.2020.11.16.17.52.29; Mon, 16 Nov 2020 17:52:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730338AbgKPOpi (ORCPT + 99 others); Mon, 16 Nov 2020 09:45:38 -0500 Received: from mail-oi1-f196.google.com ([209.85.167.196]:33950 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728041AbgKPOpi (ORCPT ); Mon, 16 Nov 2020 09:45:38 -0500 Received: by mail-oi1-f196.google.com with SMTP id w188so19043868oib.1; Mon, 16 Nov 2020 06:45:37 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=6FKs5LWi3CfnqMqEIY0TTQAgbNfsS+k9MsKXgT+oPpU=; b=r7lgm21Bx/4HF5xWxAu/FEdT0N4bh6wiAVylsF948CU2MBcr1k7wyPvjNQGNhR69uc +z5QQKK8b7V/HTEqeqUC9vfh8G2IHcRllIxbjEQYF885QWr9HOy7B1mVaxxTA+Pj9Hhe vLvOEuxaNq2hgm1lsRxUgqrN5/v7cQeLoScYB2Z9TVNND3uwcDnlSYJn7XUlCW1WBTWB eezzbBSXC9bIsJ88TVIfavVZp4SQio6jgX4TClh2Q6wS+G+P2cIgN1X3GLmeewIfn3+S 5MhwbIfC6z1D6SOWdrM5pktEBwSfNtd7FIyh+kXKLH07y7WN6PPnDLL0GaoOQX4RF8tr dtKQ== X-Gm-Message-State: AOAM533PoDZb8FW3Zkq11QvMK7kCpkWF86snLz2sKIiiEYw4j0f5Kajo wz373qW9IBDZWXC0MDBetw== X-Received: by 2002:aca:492:: with SMTP id 140mr9463058oie.108.1605537936587; Mon, 16 Nov 2020 06:45:36 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id 12sm4927532oiq.9.2020.11.16.06.45.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 06:45:35 -0800 (PST) Received: (nullmailer pid 1623228 invoked by uid 1000); Mon, 16 Nov 2020 14:45:34 -0000 Date: Mon, 16 Nov 2020 08:45:34 -0600 From: Rob Herring To: Christian Eggers Cc: Vladimir Oltean , Jakub Kicinski , Andrew Lunn , Richard Cochran , Vivien Didelot , "David S . Miller" , Kurt Kanzenbach , George McCollister , Marek Vasut , Helmut Grohne , Paul Barker , Codrin Ciubotariu , Tristram Ha , Woojung Huh , Microchip Linux Driver Support , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v2 01/11] dt-bindings: net: dsa: convert ksz bindings document to yaml Message-ID: <20201116144534.GB1611573@bogus> References: <20201112153537.22383-1-ceggers@arri.de> <20201112153537.22383-2-ceggers@arri.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201112153537.22383-2-ceggers@arri.de> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 12, 2020 at 04:35:27PM +0100, Christian Eggers wrote: > Convert the bindings document for Microchip KSZ Series Ethernet switches > from txt to yaml. > > Signed-off-by: Christian Eggers > --- > .../devicetree/bindings/net/dsa/ksz.txt | 125 --------------- > .../bindings/net/dsa/microchip,ksz.yaml | 150 ++++++++++++++++++ > MAINTAINERS | 2 +- > 3 files changed, 151 insertions(+), 126 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/net/dsa/ksz.txt > create mode 100644 Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml [...] > diff --git a/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml > new file mode 100644 > index 000000000000..431ca5c498a8 > --- /dev/null > +++ b/Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml > @@ -0,0 +1,150 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/net/dsa/microchip,ksz.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Microchip KSZ Series Ethernet switches > + > +allOf: > + - $ref: dsa.yaml# > + > +maintainers: > + - Marek Vasut > + - Woojung Huh > + > +properties: > + # See Documentation/devicetree/bindings/net/dsa/dsa.yaml for a list of additional > + # required and optional properties. > + compatible: > + enum: > + - "microchip,ksz8765" > + - "microchip,ksz8794" > + - "microchip,ksz8795" > + - "microchip,ksz9477" > + - "microchip,ksz9897" > + - "microchip,ksz9896" > + - "microchip,ksz9567" > + - "microchip,ksz8565" > + - "microchip,ksz9893" > + - "microchip,ksz9563" > + - "microchip,ksz8563" Don't need quotes. > + > + reset-gpios: > + description: > + Should be a gpio specifier for a reset line. > + maxItems: 1 > + > + microchip,synclko-125: > + $ref: /schemas/types.yaml#/definitions/flag > + description: > + Set if the output SYNCLKO frequency should be set to 125MHz instead of 25MHz. > + > +required: > + - compatible > + - reg > + > +examples: > + - | > + #include > + > + // Ethernet switch connected via SPI to the host, CPU port wired to eth0: > + eth0 { > + fixed-link { > + speed = <1000>; > + full-duplex; > + }; > + }; > + > + spi0 { > + #address-cells = <1>; > + #size-cells = <0>; > + > + pinctrl-0 = <&pinctrl_spi_ksz>; > + cs-gpios = <&pioC 25 0>; > + id = <1>; > + > + ksz9477: switch@0 { > + compatible = "microchip,ksz9477"; > + reg = <0>; > + reset-gpios = <&gpio5 0 GPIO_ACTIVE_LOW>; > + > + spi-max-frequency = <44000000>; > + spi-cpha; > + spi-cpol; > + > + ethernet-ports { > + #address-cells = <1>; > + #size-cells = <0>; > + port@0 { > + reg = <0>; > + label = "lan1"; > + }; > + port@1 { > + reg = <1>; > + label = "lan2"; > + }; > + port@2 { > + reg = <2>; > + label = "lan3"; > + }; > + port@3 { > + reg = <3>; > + label = "lan4"; > + }; > + port@4 { > + reg = <4>; > + label = "lan5"; > + }; > + port@5 { > + reg = <5>; > + label = "cpu"; > + ethernet = <ð0>; > + fixed-link { > + speed = <1000>; > + full-duplex; > + }; > + }; > + }; > + }; > + > + ksz8565: switch@1 { > + compatible = "microchip,ksz8565"; > + reg = <1>; > + > + spi-max-frequency = <44000000>; > + spi-cpha; > + spi-cpol; > + > + ethernet-ports { > + #address-cells = <1>; > + #size-cells = <0>; > + port@0 { > + reg = <0>; > + label = "lan1"; > + }; > + port@1 { > + reg = <1>; > + label = "lan2"; > + }; > + port@2 { > + reg = <2>; > + label = "lan3"; > + }; > + port@3 { > + reg = <3>; > + label = "lan4"; > + }; > + port@6 { > + reg = <6>; > + label = "cpu"; > + ethernet = <ð0>; > + fixed-link { > + speed = <1000>; > + full-duplex; > + }; > + }; > + }; > + }; > + }; > +... > diff --git a/MAINTAINERS b/MAINTAINERS > index 1e7d1d71c125..3d173fcbf119 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -11518,7 +11518,7 @@ M: Woojung Huh > M: Microchip Linux Driver Support > L: netdev@vger.kernel.org > S: Maintained > -F: Documentation/devicetree/bindings/net/dsa/ksz.txt > +F: Documentation/devicetree/bindings/net/dsa/microchip,ksz.yaml > F: drivers/net/dsa/microchip/* > F: include/linux/platform_data/microchip-ksz.h > F: net/dsa/tag_ksz.c > -- > Christian Eggers > Embedded software developer > > Arnold & Richter Cine Technik GmbH & Co. Betriebs KG > Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRA 57918 > Persoenlich haftender Gesellschafter: Arnold & Richter Cine Technik GmbH > Sitz: Muenchen - Registergericht: Amtsgericht Muenchen - Handelsregisternummer: HRB 54477 > Geschaeftsfuehrer: Dr. Michael Neuhaeuser; Stephan Schenk; Walter Trauninger; Markus Zeiler >