Received: by 2002:a05:6a10:5594:0:0:0:0 with SMTP id ee20csp391255pxb; Mon, 25 Apr 2022 12:05:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyO4vVYDrqa65xSucETeH/JdDgQlmSMzFcdq6mi2mzBdYQslIMFdmlUC5xoKA3yI60aG7R/ X-Received: by 2002:a05:6402:e:b0:423:d5ff:8fce with SMTP id d14-20020a056402000e00b00423d5ff8fcemr20538175edu.407.1650913525668; Mon, 25 Apr 2022 12:05:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650913525; cv=none; d=google.com; s=arc-20160816; b=nPesJF1b/5AmwSo56C0QUOG014t/VquP/r4lrANDvkgbYxMxAHRdBSSR144Lur2ZWh +dU9u21u1WZj+8sdOUxF2NOr4lhEUENztrXo+YzJWqEuu/vv5FuSa0t2WEwd/npzjWCX +riXjyuV5Cm51GwP4W+OqckYK25D7RcHgQXoAlJH4rDe5wFXmhlZ8rx4O8Ol0rHeC4MN VR6bHLhO+ODqXYgCsxBZz9dRueviZZuiqvzvjD2/b+LMPinxDc4ynCkFSBH9DazKfhGf JuM39CaBmbYzrlhXX5EfY8BDcAXE+W+gjxlbFg/FaMJaqjIlRqdiWRMiaMyH663vKnHM B8+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Zxpt+P2/TjbAsFLFo9zxjw6TUQFtzK8CrPo1AAgUn9I=; b=Mx37PDkzTAX7fxWSUFDd3H8GSK/eigLgHO15oiov/3GC/OuJ654BFJfzSMxNLgb6MK EbqTtgNUF2VwOinq58hh8/GrKs+l3VIIq59yiVrdeEVk/+IvmLJYlDbfNoUOytJBcXBy u6gtIgpkqJiCppd3JBG+bsCOIeMyo6l8XuwGPQl0gC3mOf4lHHwVgs9Rvjy2txuFMUS6 Mi1kYwobAnHtJhKk6JDaQz2e44GII7kQlt4l7KZd7wep/uxRe2BX/UEkBs0L8MAiJkg3 IsaNv6W0HSzVoUp/+5JHenG1NPed8SKrc5zAG4unvaAhbwKtmPRFr0W7UcHi8aACIUIK qSCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=JkkjRENv; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp3-20020a1709073e0300b006e840554fdfsi7426193ejc.947.2022.04.25.12.05.01; Mon, 25 Apr 2022 12:05:25 -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=@walle.cc header.s=mail2016061301 header.b=JkkjRENv; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230398AbiDYOFk (ORCPT + 99 others); Mon, 25 Apr 2022 10:05:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbiDYOFb (ORCPT ); Mon, 25 Apr 2022 10:05:31 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 136078BF35; Mon, 25 Apr 2022 07:02:26 -0700 (PDT) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 267B922248; Mon, 25 Apr 2022 16:02:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1650895344; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Zxpt+P2/TjbAsFLFo9zxjw6TUQFtzK8CrPo1AAgUn9I=; b=JkkjRENvmm37PQILYRfSyk3KDcHOWnCUw5+wVDLkhGMfxR6Y6u2E3IyftnpRInVgLgHLlg +clgR21tFwJOaOIaTOTFC6/UKeFJnAn1qdoBZ0o1kDr31Mjkvv6YjXRCbfay3ng3YaIEBI wAtoYTC69BMGtZY4z9GCKQoLwupZNUY= From: Michael Walle To: Rob Herring , Krzysztof Kozlowski Cc: Li Yang , Michael Walle , Shawn Guo , Thomas Gleixner , Marc Zyngier , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] dt-bindings: fsl: convert fsl,layerscape-scfg to YAML Date: Mon, 25 Apr 2022 16:02:14 +0200 Message-Id: <20220425140214.32448-2-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220425140214.32448-1-michael@walle.cc> References: <20220425140214.32448-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS 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 Convert the fsl,layerscape-scfg binding to the new YAML format. In the device trees, the device node always have a "syscon" compatible, which wasn't mentioned in the previous binding. Also added, compared to the original binding, is the interrupt-controller subnode as used in arch/arm/boot/dts/ls1021a.dtsi as well as the litte-endian and big-endian properties. Signed-off-by: Michael Walle --- changes since v1: - moved to soc/fsl/fsl,layerscape-scfg.yaml - generic name for node in example - mention added "syscon" compatible in commit message - reference specific interrupt controller .../arm/freescale/fsl,layerscape-scfg.txt | 19 ------ .../bindings/soc/fsl/fsl,layerscape-scfg.yaml | 58 +++++++++++++++++++ 2 files changed, 58 insertions(+), 19 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/freescale/fsl,layerscape-scfg.txt create mode 100644 Documentation/devicetree/bindings/soc/fsl/fsl,layerscape-scfg.yaml diff --git a/Documentation/devicetree/bindings/arm/freescale/fsl,layerscape-scfg.txt b/Documentation/devicetree/bindings/arm/freescale/fsl,layerscape-scfg.txt deleted file mode 100644 index 0ab67b0b216d..000000000000 --- a/Documentation/devicetree/bindings/arm/freescale/fsl,layerscape-scfg.txt +++ /dev/null @@ -1,19 +0,0 @@ -Freescale SCFG - -SCFG is the supplemental configuration unit, that provides SoC specific -configuration and status registers for the chip. Such as getting PEX port -status. - -Required properties: - - compatible: Should contain a chip-specific compatible string, - Chip-specific strings are of the form "fsl,-scfg", - The following s are known to be supported: - ls1012a, ls1021a, ls1043a, ls1046a, ls2080a. - - - reg: should contain base address and length of SCFG memory-mapped registers - -Example: - scfg: scfg@1570000 { - compatible = "fsl,ls1021a-scfg"; - reg = <0x0 0x1570000 0x0 0x10000>; - }; diff --git a/Documentation/devicetree/bindings/soc/fsl/fsl,layerscape-scfg.yaml b/Documentation/devicetree/bindings/soc/fsl/fsl,layerscape-scfg.yaml new file mode 100644 index 000000000000..8d088b5fe823 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/fsl/fsl,layerscape-scfg.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/fsl/fsl,layerscape-scfg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale Layerscape Supplemental Configuration Unit + +maintainers: + - Shawn Guo + - Li Yang + +description: | + SCFG is the supplemental configuration unit, that provides SoC specific + configuration and status registers for the chip. Such as getting PEX port + status. + +properties: + compatible: + items: + - enum: + - fsl,ls1012a-scfg + - fsl,ls1021a-scfg + - fsl,ls1028a-scfg + - fsl,ls1043a-scfg + - fsl,ls1046a-scfg + - const: syscon + + reg: + maxItems: 1 + + little-endian: true + big-endian: true + + '#address-cells': + const: 1 + + '#size-cells': + const: 1 + + ranges: true + +patternProperties: + "^interrupt-controller@[a-z0-9]+$": + $ref: /schemas/interrupt-controller/fsl,ls-extirq.yaml# + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + syscon@1570000 { + compatible = "fsl,ls1021a-scfg", "syscon"; + reg = <0x1570000 0x10000>; + }; -- 2.30.2