Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp1411438ybf; Thu, 27 Feb 2020 10:26:45 -0800 (PST) X-Google-Smtp-Source: APXvYqzd2UpsZnUFFBxFLE63R36cgJ58OjdgMrSY7zA4M8ZzxsyAWOJDdTjmtOqVr4OxnbTPEJcC X-Received: by 2002:aca:c692:: with SMTP id w140mr252011oif.139.1582828005036; Thu, 27 Feb 2020 10:26:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582828005; cv=none; d=google.com; s=arc-20160816; b=PNzGXr426TkYrvMKuMAiXCUtLAkQwobtDgOuNFekjeip389l7D7RkIuZdPOFO1hJcc AKRDsQnJ42U5Giq5NHjvfCyQK7o08AS5bY37RRwpE5SdgE1lwxGReUs0PRb+qLZvlfDl +FIEE60ewwTHOd1AHJdL23AvzjFIFO0J4jYHBRYIeT0utMndPgSramHw+KZdqR2ar8Ik 0Ugvu98I4f5hTA5DdmTPgmXTLKydJPD1SL127oQQkmGgKWEnNISUco50e9vA3hYEDLpI 7Gle4GAjMIJsR65O7CJ0P+RB3LNsyzQEe73ohcR37EDXpN6ZEo/bZSrimDvZkP01mZ27 O86w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=4htJ1WOGoY3dtIlFw923CP6fwXq4ayUleyjarNxBU1Q=; b=R9PC4gId1wMPAht+DlgIPoi33IrIhWrGyreeCYr09xp5UsywWnFrsV7FTD4rH8vRK6 CnzFInRmflQiUXrx+uGvl1/T/sf7lv1d5SqWLiDTBrNmPCfXkV/2kxy1jCCsBAwA/xVm GYZB1j3B2YlojRhaGx32LGl6eiV/GxtSH9bxGzZChNSeV4Hiv7bZp+2d8JOL1o141tTW kNLyhMIFvY3MH4GJ2O+wBEKrT31Vd1orrZgGLgy/DsHmO7mhf3SAVKX8jGZu2izKAoFI Qh4oD/CMKZHUIeh1Tk+R8zQzKO96nAzJfH57ukQObYdMl/klYwLQ5IYOUZWw8z3PHYq0 4vjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n21si328005oic.0.2020.02.27.10.26.33; Thu, 27 Feb 2020 10:26:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730812AbgB0SWg (ORCPT + 99 others); Thu, 27 Feb 2020 13:22:36 -0500 Received: from foss.arm.com ([217.140.110.172]:56690 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730799AbgB0SWe (ORCPT ); Thu, 27 Feb 2020 13:22:34 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 966D61FB; Thu, 27 Feb 2020 10:22:33 -0800 (PST) Received: from donnerap.arm.com (donnerap.cambridge.arm.com [10.1.197.25]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EBC5C3F73B; Thu, 27 Feb 2020 10:22:31 -0800 (PST) From: Andre Przywara To: Rob Herring , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Maxime Ripard , Robert Richter , soc@kernel.org, Jon Loeliger , Mark Langsdorf , Eric Auger , Will Deacon , Catalin Marinas Subject: [PATCH v2 07/13] dt-bindings: net: Convert Calxeda Ethernet binding to json-schema Date: Thu, 27 Feb 2020 18:22:04 +0000 Message-Id: <20200227182210.89512-8-andre.przywara@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200227182210.89512-1-andre.przywara@arm.com> References: <20200227182210.89512-1-andre.przywara@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the Calxeda XGMAC Ethernet device binding to DT schema format using json-schema. Signed-off-by: Andre Przywara --- .../devicetree/bindings/net/calxeda-xgmac.txt | 18 ------- .../bindings/net/calxeda-xgmac.yaml | 49 +++++++++++++++++++ 2 files changed, 49 insertions(+), 18 deletions(-) delete mode 100644 Documentation/devicetree/bindings/net/calxeda-xgmac.txt create mode 100644 Documentation/devicetree/bindings/net/calxeda-xgmac.yaml diff --git a/Documentation/devicetree/bindings/net/calxeda-xgmac.txt b/Documentation/devicetree/bindings/net/calxeda-xgmac.txt deleted file mode 100644 index c8ae996bd8f2..000000000000 --- a/Documentation/devicetree/bindings/net/calxeda-xgmac.txt +++ /dev/null @@ -1,18 +0,0 @@ -* Calxeda Highbank 10Gb XGMAC Ethernet - -Required properties: -- compatible : Should be "calxeda,hb-xgmac" -- reg : Address and length of the register set for the device -- interrupts : Should contain 3 xgmac interrupts. The 1st is main interrupt. - The 2nd is pwr mgt interrupt. The 3rd is low power state interrupt. - -Optional properties: -- dma-coherent : Present if dma operations are coherent - -Example: - -ethernet@fff50000 { - compatible = "calxeda,hb-xgmac"; - reg = <0xfff50000 0x1000>; - interrupts = <0 77 4 0 78 4 0 79 4>; -}; diff --git a/Documentation/devicetree/bindings/net/calxeda-xgmac.yaml b/Documentation/devicetree/bindings/net/calxeda-xgmac.yaml new file mode 100644 index 000000000000..a8c1f00cff0f --- /dev/null +++ b/Documentation/devicetree/bindings/net/calxeda-xgmac.yaml @@ -0,0 +1,49 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/calxeda-xgmac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Calxeda Highbank 10Gb XGMAC Ethernet controller + +description: | + The Calxeda XGMAC Ethernet controllers are directly connected to the + internal machine "network fabric", which is set up, initialised and + managed by the firmware. So there are no PHY properties in this + binding. Switches in the fabric take care of routing and mapping the + traffic to external network ports. + +maintainers: + - Andre Przywara + +properties: + compatible: + const: calxeda,hb-xgmac + + reg: + maxItems: 1 + + interrupts: + description: | + Can point to at most 3 xgmac interrupts. The 1st one is the main + interrupt, the 2nd one is used for power management. The optional + 3rd one is the low power state interrupt. + minItems: 2 + maxItems: 3 + + dma-coherent: true + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + ethernet@fff50000 { + compatible = "calxeda,hb-xgmac"; + reg = <0xfff50000 0x1000>; + interrupts = <0 77 4>, <0 78 4>, <0 79 4>; + }; -- 2.17.1