Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp8756532pxu; Sun, 27 Dec 2020 19:02:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDsWf7qjyZfMsWJBwap2D/9rzKWj16lJwxhzRVsxUeoa3KGqOlrYmWx/m2EMrmehuPF0fL X-Received: by 2002:a17:906:b2da:: with SMTP id cf26mr40945020ejb.176.1609124524044; Sun, 27 Dec 2020 19:02:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609124524; cv=none; d=google.com; s=arc-20160816; b=C2Dn3FP62fLjZjiojZ8mB05kulWmPtnYSAK2kAUaF/lqgum8m3/xuPFnxaDC+HLnAG SnV1ivFZXsJf9HTu943xKGZ2GOhKhS/6pNL6yziHJS5ikIMrdp/PxeFD0h2S9gQiOny0 Z+Lpi5+Q6hhOL+cMZAQIXVf9I8JqVgENEZN05oKj2o9fGWTHKswCmjhza5SnvILgtLp8 gzL/XaFru+Mrft8WPVf8tMTcXuX0WHeL1SGDlTu1r6qG46tKacs6hD9Y2t/olB4x45DW 89J0cPa2G/bQn9D6FfZSoMC/HMn2OuItJK2Qqa95jK1o4a3i+vsoePNl7fUXzC7u9FE0 f5fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=r6xwvoL7r4PRDGlbt3dpVKhXtPFVCP9oTgcTKDM/6AA=; b=cSIojZudsF0Z+BPhwEWzA2ygFpRLHtSmW00L7VLcz14M3cNLxGr1YNiTJXVY1N8mCC KD6/Ar0fQ6EzMJCHPQz2MGahQjhXMzNoEeXGIQfUkxh1jvXbplDReUsB3huRCVdJbZE5 B/zYpKagBugdYAdX7qc5Ym7NXNRnKGEGEbKdGcrWsFs9dJJ+VxQpIbW2+XJf0xtyEgqI 9EoMKn2OF7wDqwEk1+RGkciHIsk9e9RWsUwX6OEljaU5Lqvsc6pVDRle8vGtzR4mgaGD XxoBKtmMOPmfxV4ZbhiLSJ0Yv6KRWlgeJfrcfqAND734w2oKC5/p/5Sv1wlX1QetLJCG fEtw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s17si17920394eju.360.2020.12.27.19.01.42; Sun, 27 Dec 2020 19:02:04 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726396AbgL1DAd (ORCPT + 99 others); Sun, 27 Dec 2020 22:00:33 -0500 Received: from mail.loongson.cn ([114.242.206.163]:38128 "EHLO loongson.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726333AbgL1DAd (ORCPT ); Sun, 27 Dec 2020 22:00:33 -0500 Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxHzYdSulfznIGAA--.9S3; Mon, 28 Dec 2020 10:59:43 +0800 (CST) From: Qing Zhang To: Mark Brown , Rob Herring , ThomasBogendoerfer Cc: linux-spi@vger.kernel.org, Huacai Chen , Jiaxun Yang , yangtiezhu@loongson.cn, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v6 2/4] spi: ls7a: Add YAML schemas Date: Mon, 28 Dec 2020 10:59:39 +0800 Message-Id: <1609124381-9107-2-git-send-email-zhangqing@loongson.cn> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1609124381-9107-1-git-send-email-zhangqing@loongson.cn> References: <1609124381-9107-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IYs7xG6r1j6r1xMIIF0xvEx4 A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU 0xZFpf9x0JU3hL5UUUUU= X-CM-SenderInfo: x2kd0wptlqwqxorr0wxvrqhubq/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Switch the DT binding to a YAML schema to enable the DT validation. Reviewed-by: Huacai Chen Signed-off-by: Qing Zhang --- v4: - fix warnings/errors about running 'make dt_binding_check' v5: - remove num-chipelects v6: - No changes --- .../devicetree/bindings/spi/loongson,spi-ls7a.yaml | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/loongson,spi-ls7a.yaml diff --git a/Documentation/devicetree/bindings/spi/loongson,spi-ls7a.yaml b/Documentation/devicetree/bindings/spi/loongson,spi-ls7a.yaml new file mode 100644 index 0000000..b90b28b --- /dev/null +++ b/Documentation/devicetree/bindings/spi/loongson,spi-ls7a.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/spi/loongson,spi-ls7a.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Loongson LS7A PCH SPI Controller + +maintainers: + - Qing Zhang + +description: | + This controller can be found in Loongson-3 systems with LS7A PCH. + +properties: + compatible: + const: loongson,ls7a-spi + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + pci { + #address-cells = <3>; + #size-cells = <2>; + + spi@16,0 { + compatible = "pci0014,7a0b.0", + "pci0014,7a0b", + "pciclass088000", + "pciclass0800"; + + reg = <0xb000 0x0 0x0 0x0 0x0>; + }; + }; + +... -- 2.1.0