From patchwork Fri Oct 5 16:58:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 148264 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp692674lji; Fri, 5 Oct 2018 10:02:18 -0700 (PDT) X-Google-Smtp-Source: ACcGV60Q/WMCiSTdJ7b+68NUakclkC0PQC6fgapGxBAcO2J0RLLyaADX9kBj5PavV/jLa1DmV5EU X-Received: by 2002:a63:ae4d:: with SMTP id e13-v6mr11041302pgp.315.1538758937968; Fri, 05 Oct 2018 10:02:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538758937; cv=none; d=google.com; s=arc-20160816; b=chDui/R5257M0uQi1f3LL+foswi7uRpzSryyX6Ibwn5u9+CdncBU6HEoCxoPuAiG/U eygTBHf+2Q3K8tZ5pIHUH+fN+GRm3pHJdzh/r48Zd4YIHInCbBc6WwX9N2L63O2QqXaR k00U+gbjT1/0sVxn3SfCRAmeNb45322vhjxXVp20Qz6fJPovGYg0Tjpa3B0lQrBfUuDv On+qFeM3iW+JWRyBREsuCgiGtkqy2taygfYdgH5489EE9hdZ4cPDFrO8DKI89d6Rrl1F ab9LZquEkjhMRHOnxgpsjyhNrszFO7U2jfCyiCfH94cqg9Lo/pCaW/CdXE3d/XuWdFi6 ebMQ== 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=XljLqX9eXIuRQosUM4KeYlmmSjpyha1rYixAv1GAi7w=; b=xhTayYnL8GXMKJG7M5jG5ojIkyk5/3kDZkATaFmvn7opaJ6ZiaaXfPgbUrjL+nV4rJ 4PeYaonMOdIeN4VKdTq+MjVyx0I/qAEOhgQkbUEZN84BgbKH2QWJyUJeB/QppGyfVy0e o4EwrzPdHcFB4pzS/PK/DGDKnT/rBRgLGOpbJn/c4P92RRjTMgxoK8bnDDLujEvDncKk pNgXEoPA+YHeuA8/GYE2/2VYs3ppBTCvWHKQxR4XV9Ceti9j3ELlvKwP4lMmc87MzUvr /xYnFXBf6ecq+I2rrn1DBsqWTEyqkBXZ3xf9Oiqv0T5xQ3s6VOQEKGtEjlGs4z6/75Xr dhKQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h25-v6si9146627pgn.567.2018.10.05.10.02.17; Fri, 05 Oct 2018 10:02:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729066AbeJEX6f (ORCPT + 6 others); Fri, 5 Oct 2018 19:58:35 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:45292 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729025AbeJEX6e (ORCPT ); Fri, 5 Oct 2018 19:58:34 -0400 Received: by mail-ot1-f65.google.com with SMTP id u22so13319911ota.12; Fri, 05 Oct 2018 09:59:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XljLqX9eXIuRQosUM4KeYlmmSjpyha1rYixAv1GAi7w=; b=r24DWzeFYwRTkESPr88ylKRYmTGpJTkBPL35QWTykWQDw9ilqw0V0r7BzXfZUM/jme l5kSxbTocGyIIHzC+jK2ZD0j8aPcFmcFOEVRkBK2tj8itRAYwbMDsGjo4+DU2/PNcXQh XSVB/rjyfTCmUbEmidJwoTv+F9+5Eyzk0JvICBCpXOc0w/LTbTZGTe7jFauKT5E/ab3n UZMQ8wNtrTh+cdP4QgbNrXOhgJ2GC+a+Z9ztS1eKuGoA6kPXBAjC8jZEH7bxtrs8qviF Fvk191YSdQD+AJTy0JDaSw3jf+H/2yU1Ht5yrkWK+ul2U7d2IQMiMoLxNQK9nTSkrqQw 2wpQ== X-Gm-Message-State: ABuFfoggLUTFaVSX2TkBcN7u4uJm6MtS+ORDawDOSDveJOIdRAvi8U0o 9LHBkpRC4Tzb5PomfIDELjqPzAvJDQ== X-Received: by 2002:a9d:308d:: with SMTP id s13mr7263505otc.359.1538758739965; Fri, 05 Oct 2018 09:58:59 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id u63-v6sm2904328ota.75.2018.10.05.09.58.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Oct 2018 09:58:59 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Cc: Grant Likely , Kumar Gala , Frank Rowand , Mark Rutland , Linus Walleij , Olof Johansson , Arnd Bergmann , Mark Brown , Tom Rini , Pantelis Antoniou , Geert Uytterhoeven , Jonathan Cameron , Bjorn Andersson , Jonathan Corbet , Masahiro Yamada , Michal Marek , linux-doc@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: [PATCH 07/36] kbuild: Add support for DT binding schema checks Date: Fri, 5 Oct 2018 11:58:19 -0500 Message-Id: <20181005165848.3474-8-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181005165848.3474-1-robh@kernel.org> References: <20181005165848.3474-1-robh@kernel.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This adds the build infrastructure for checking DT binding schema documents and validating dts files using the binding schema. Check DT binding schema documents: make dt_binding_check Build dts files and check using DT binding schema: make dtbs_check Currently, the validation targets are separate from a normal build to avoid a hard dependency on the external DT schema project and because there are lots of warnings generated. Cc: Jonathan Corbet Cc: Mark Rutland Cc: Masahiro Yamada Cc: Michal Marek Cc: linux-doc@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kbuild@vger.kernel.org Signed-off-by: Rob Herring --- .gitignore | 1 + Documentation/Makefile | 2 +- Documentation/devicetree/bindings/.gitignore | 2 ++ Documentation/devicetree/bindings/Makefile | 30 ++++++++++++++++++++ Makefile | 8 +++++- scripts/Makefile.lib | 24 ++++++++++++++-- 6 files changed, 63 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/.gitignore create mode 100644 Documentation/devicetree/bindings/Makefile -- 2.17.1 diff --git a/.gitignore b/.gitignore index 97ba6b79834c..a20ac26aa2f5 100644 --- a/.gitignore +++ b/.gitignore @@ -15,6 +15,7 @@ *.bin *.bz2 *.c.[012]*.* +*.dt.yaml *.dtb *.dtb.S *.dwo diff --git a/Documentation/Makefile b/Documentation/Makefile index 2ca77ad0f238..9786957c6a35 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -2,7 +2,7 @@ # Makefile for Sphinx documentation # -subdir-y := +subdir-y := devicetree/bindings/ # You can set these variables from the command line. SPHINXBUILD = sphinx-build diff --git a/Documentation/devicetree/bindings/.gitignore b/Documentation/devicetree/bindings/.gitignore new file mode 100644 index 000000000000..7e47316f1d7a --- /dev/null +++ b/Documentation/devicetree/bindings/.gitignore @@ -0,0 +1,2 @@ +*.example.dts +*.yaml.tmp diff --git a/Documentation/devicetree/bindings/Makefile b/Documentation/devicetree/bindings/Makefile new file mode 100644 index 000000000000..b57f0dec3fab --- /dev/null +++ b/Documentation/devicetree/bindings/Makefile @@ -0,0 +1,30 @@ +# SPDX-License-Identifier: GPL-2.0 +DT_DOC_CHECKER ?= dt-doc-validate +DT_EXTRACT_EX ?= dt-extract-example + +quiet_cmd_chk_binding = CHKDT $< + cmd_chk_binding = (set -e; \ + $(DT_DOC_CHECKER) $< ; \ + mkdir -p $(dir $@) ; \ + $(DT_EXTRACT_EX) $< > $@ ) + +$(obj)/%.example.dts: $(src)/%.yaml FORCE + $(call if_changed,chk_binding) + +DT_MK_SCHEMA ?= dt-mk-schema +DT_TMP_SCHEMA := .schema.yaml.tmp +extra-y += $(DT_TMP_SCHEMA) + +quiet_cmd_mk_schema = SCHEMA $@ + cmd_mk_schema = mkdir -p $(obj); \ + $(DT_MK_SCHEMA) -o $@ $(srctree)/$(src) + +DT_DOCS = $(shell cd $(srctree)/$(src) && find * -name '*.yaml') +DTS_EXAMPLES = $(patsubst %.yaml,%.example.dts, $(DT_DOCS)) +extra-y += $(DTS_EXAMPLES) + +DTBS = $(patsubst %.yaml,%.example.dtb, $(DT_DOCS)) +extra-y += $(DTBS) + +$(obj)/$(DT_TMP_SCHEMA): $(addprefix $(obj)/, $(DTBS)) FORCE + $(call if_changed,mk_schema) diff --git a/Makefile b/Makefile index 021e274c4b03..648f7238e883 100644 --- a/Makefile +++ b/Makefile @@ -1227,10 +1227,13 @@ ifneq ($(dtstree),) %.dtb: prepare3 scripts_dtc $(Q)$(MAKE) $(build)=$(dtstree) $(dtstree)/$@ -PHONY += dtbs dtbs_install +PHONY += dtbs dtbs_install dt_binding_check dtbs: prepare3 scripts_dtc $(Q)$(MAKE) $(build)=$(dtstree) +dtbs_check: prepare3 dt_binding_check + $(Q)$(MAKE) $(build)=$(dtstree) CHECK_DTBS=1 + dtbs_install: $(Q)$(MAKE) $(dtbinst)=$(dtstree) @@ -1244,6 +1247,9 @@ PHONY += scripts_dtc scripts_dtc: scripts_basic $(Q)$(MAKE) $(build)=scripts/dtc +dt_binding_check: scripts_dtc + $(Q)$(MAKE) $(build)=Documentation/devicetree/bindings + # --------------------------------------------------------------------------- # Modules diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 8fe4468f9bda..d1c5630ba24c 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -61,6 +61,11 @@ real-obj-m := $(foreach m, $(obj-m), $(if $(strip $($(m:.o=-objs)) $($(m:.o=-y)) extra-y += $(dtb-y) extra-$(CONFIG_OF_ALL_DTBS) += $(dtb-) +ifneq ($(CHECK_DTBS),) +extra-y += $(patsubst %.dtb,%.dt.yaml, $(dtb-y)) +extra-$(CONFIG_OF_ALL_DTBS) += $(patsubst %.dtb,%.dt.yaml, $(dtb-)) +endif + # Add subdir path extra-y := $(addprefix $(obj)/,$(extra-y)) @@ -284,13 +289,28 @@ $(obj)/%.dtb.S: $(obj)/%.dtb FORCE quiet_cmd_dtc = DTC $@ cmd_dtc = mkdir -p $(dir ${dtc-tmp}) ; \ $(HOSTCC) -E $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \ - $(DTC) -O dtb -o $@ -b 0 \ + $(DTC) -O $(2) -o $@ -b 0 \ $(addprefix -i,$(dir $<) $(DTC_INCLUDE)) $(DTC_FLAGS) \ -d $(depfile).dtc.tmp $(dtc-tmp) ; \ cat $(depfile).pre.tmp $(depfile).dtc.tmp > $(depfile) $(obj)/%.dtb: $(src)/%.dts $(DTC) FORCE - $(call if_changed_dep,dtc) + $(call if_changed_dep,dtc,dtb) + +DT_CHECKER ?= dt-validate +DT_BINDING_DIR := Documentation/devicetree/bindings +DT_TMP_SCHEMA := $(objtree)/$(DT_BINDING_DIR)/.schema.yaml.tmp + +quiet_cmd_dtb_check = CHECK $@ + cmd_dtb_check = $(DT_CHECKER) -p $(DT_TMP_SCHEMA) $@ ; + +define rule_dtc_dt_yaml + $(call cmd_and_fixdep,dtc,yaml) \ + $(call echo-cmd,dtb_check) $(cmd_dtb_check) +endef + +$(obj)/%.dt.yaml: $(src)/%.dts $(DTC) $(DT_TMP_SCHEMA) FORCE + $(call if_changed_rule,dtc_dt_yaml) dtc-tmp = $(subst $(comma),_,$(dot-target).dts.tmp) From patchwork Fri Oct 5 16:58:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 148240 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp689093lji; Fri, 5 Oct 2018 09:59:16 -0700 (PDT) X-Google-Smtp-Source: ACcGV616/OLsftmOv21mSOj9mzBxMGsXDk7LosqUEUUkokzWYKT49Np/J7d5cpy2TypiYujDroDi X-Received: by 2002:a65:5c81:: with SMTP id a1-v6mr6836334pgt.390.1538758756102; Fri, 05 Oct 2018 09:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538758756; cv=none; d=google.com; s=arc-20160816; b=Gm4ax+xbRAztkW2Rq3kpWiPABhYf2fuksRkZKW7lweW9vOWAFt2KB6JNNj/LNCSVQn KGg17q86qkPUR7xd0rsUFyQ5wtYlsaCNSSmGaVZQbzphu7SrJEDQlfIc1iw1gwmENai1 MJ7FEt6zOLVqjo8IW60Ut/JwqCFoxX3fE6fDcbAVuJfCg+YHlSG7WmyCxMPuAPkvcl+o MU02h/QYmtzS//cXxpjzlAeZyCT9rgeSiaW7E0ZVlviCprTkBZFDNFwRmefaqqsnX86j qlayG4qjJfywhYZs5plM5BkTJJb5/NTkcXv7xKblvWvBqlAR4kQTXY+j/BaMzUM+1YaO cG6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=CPjyBcDgH3rQvK5Topeu+rZwcMHC70P5llkoEmHzmYE=; b=ro98kZYfQ/v9RyBGYhXD/grc6dsaCBpOVzqLnblqk8lDMOBtIBG4svZcekpgz6c+iC yir05emi8UfYFFU0pYos/5CdHNh4q9thSsSkM2FpnXGhkMhI5gLsfmomCm4X9Oj9P9GF CffKSZrav9uc2nk5r2n8DKxbmcHtnvSNfVZtJPurULS3zDua+Qf5kGOoIKPbal9gmALy Qzt3XImyfZUXlFU4pQSQx82zy9Fq6fkYAXWL56YfH3QLm6TJgfnj1nppjSf8E/YPkyzn 7Q2eRpdCGwEVw++puenfNFgq5/zlWoWSzGa5FeLsGI9QIBGxTq+rWpYwHc2gzEsHNFCd GpDA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i4-v6si7781833pgk.564.2018.10.05.09.59.15; Fri, 05 Oct 2018 09:59:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729246AbeJEX6s (ORCPT + 6 others); Fri, 5 Oct 2018 19:58:48 -0400 Received: from mail-oi1-f195.google.com ([209.85.167.195]:34498 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728042AbeJEX6q (ORCPT ); Fri, 5 Oct 2018 19:58:46 -0400 Received: by mail-oi1-f195.google.com with SMTP id v69-v6so10975874oif.1; Fri, 05 Oct 2018 09:59:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CPjyBcDgH3rQvK5Topeu+rZwcMHC70P5llkoEmHzmYE=; b=n35/2+WrgZJw8tHlvTa6JCsMCg9+HE0UPfP3X9B5Jl8E8OEZFLqN3J/84bOZeIih9C eGnxyQNJ/T+EFNEZ3AwzMkXdVCy/YEXARhMireN/J+CV2hiQIc7WHND5souq5FhurC8z 8OPlKGCo91JS9cE0YbJpeiW9WnqB44qGmzIv6bW0XyBJvW6n5ZWKuPezG2PFDt+NkQ18 hTKEIg7Sv3FlsLQCYbhYvOFZPzLpqpiCiwX/qi0qwpzVyf9h25VMw1Rbdk3e/QpZdc+h mzIe5kBm57i0k8LFtVI6Zx3hilPqLYNhnm2l/cQYPRKEgPB03JhN9e05roqEhFG23Ec8 aIQw== X-Gm-Message-State: ABuFfoh7NfnliFgxHp1ctGs7ozMddzq7S1JXtStqziOlw/VfvzkzRSgv gdbkUQuzwuhm2U2vEnD+YraMfdBAeg== X-Received: by 2002:aca:3585:: with SMTP id c127-v6mr1661072oia.63.1538758751756; Fri, 05 Oct 2018 09:59:11 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id u63-v6sm2904328ota.75.2018.10.05.09.59.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Oct 2018 09:59:11 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Cc: Grant Likely , Kumar Gala , Frank Rowand , Mark Rutland , Linus Walleij , Olof Johansson , Arnd Bergmann , Mark Brown , Tom Rini , Pantelis Antoniou , Geert Uytterhoeven , Jonathan Cameron , Bjorn Andersson , =?utf-8?q?Andreas_F=C3=A4rber?= Subject: [PATCH 15/36] dt-bindings: arm: Convert Actions Semi bindings to jsonschema Date: Fri, 5 Oct 2018 11:58:27 -0500 Message-Id: <20181005165848.3474-16-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181005165848.3474-1-robh@kernel.org> References: <20181005165848.3474-1-robh@kernel.org> MIME-Version: 1.0 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert Actions Semi SoC bindings to DT schema format using json-schema. Cc: "Andreas Färber" Cc: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/actions.txt | 56 ------------------- .../devicetree/bindings/arm/actions.yaml | 34 +++++++++++ 2 files changed, 34 insertions(+), 56 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/actions.txt create mode 100644 Documentation/devicetree/bindings/arm/actions.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/arm/actions.txt b/Documentation/devicetree/bindings/arm/actions.txt deleted file mode 100644 index d54f33c4e0da..000000000000 --- a/Documentation/devicetree/bindings/arm/actions.txt +++ /dev/null @@ -1,56 +0,0 @@ -Actions Semi platforms device tree bindings -------------------------------------------- - - -S500 SoC -======== - -Required root node properties: - - - compatible : must contain "actions,s500" - - -Modules: - -Root node property compatible must contain, depending on module: - - - LeMaker Guitar: "lemaker,guitar" - - -Boards: - -Root node property compatible must contain, depending on board: - - - Allo.com Sparky: "allo,sparky" - - Cubietech CubieBoard6: "cubietech,cubieboard6" - - LeMaker Guitar Base Board rev. B: "lemaker,guitar-bb-rev-b", "lemaker,guitar" - - -S700 SoC -======== - -Required root node properties: - -- compatible : must contain "actions,s700" - - -Boards: - -Root node property compatible must contain, depending on board: - - - Cubietech CubieBoard7: "cubietech,cubieboard7" - - -S900 SoC -======== - -Required root node properties: - -- compatible : must contain "actions,s900" - - -Boards: - -Root node property compatible must contain, depending on board: - - - uCRobotics Bubblegum-96: "ucrobotics,bubblegum-96" diff --git a/Documentation/devicetree/bindings/arm/actions.yaml b/Documentation/devicetree/bindings/arm/actions.yaml new file mode 100644 index 000000000000..af9345a228b4 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/actions.yaml @@ -0,0 +1,34 @@ +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/arm/actions.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Actions Semi platforms device tree bindings + +maintainers: + - Andreas Färber + +description: | + The Actions Semi S500 is a quad-core ARM Cortex-A9 SoC. The Actions Semi + S900 is a quad-core ARM Cortex-A53 SoC. + +properties: + compatible: + oneOf: + - items: + - enum: + - lemaker,guitar-bb-rev-b + - enum: + - lemaker,guitar + - allo,sparky + - cubietech,cubieboard6 + - const: actions,s500 + minItems: 2 + maxItems: 3 + additionalItems: false + - items: + - const: cubietech,cubieboard7 + - const: actions,s700 + - items: + - const: ucrobotics,bubblegum-96 + - const: actions,s900 From patchwork Fri Oct 5 16:58:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 148241 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp689103lji; Fri, 5 Oct 2018 09:59:17 -0700 (PDT) X-Google-Smtp-Source: ACcGV63xrFmwatjWMthFhT1uN5vdUXZmWmVFB5++feMXTdPuW3Rr4UipXRyIbOI1XAtRTsvMrKuM X-Received: by 2002:a63:d805:: with SMTP id b5-v6mr10836682pgh.174.1538758756895; Fri, 05 Oct 2018 09:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538758756; cv=none; d=google.com; s=arc-20160816; b=hua57DUgAlhemdNriNqxxubdHAqjHLoesUBi96EFcHgSiTQk5POiV7uosjQmeLzroE qgvUiX01ezsKt9oaPjHIQOuqAiN3uY+Ypr9mmmovj58eLYmy1F1Sj5M1J2NKkDkEMNIH bwcVftoJM3ZBkjGLgOmt3E/kwTJMfgQXGxoViFUGm7KHkpfZyboXH7swctu/re2OSkZm xIkLxlI2ijYsCOpYJYJ9P+GZt/Uk3r6Wh5tzbpQQvCkyp4nJrxeHNMt4emB8BaRrIwid BQKOdIFX3e1AkHZByZavbWpFiX2fNFLzCRfdHwqE64LBkKSwuXK4YVZcaWC+g+lS8KNO OcQQ== 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=D7OkSebvuDu3GYBwaaAJvmjae/fS/q7Ybf2TAf/0foQ=; b=dcsGOiD6AAAeJIClA76D5J+2Jp+PGNOdc5clX+kx+hZl1sbUFXrJZrLztoLwNiglFf gGgEX8vvyxToZyODXhNcgFW8S8uS6UyAcODGe/Lp9fMZ+u7JbmhhEXYVbxLImcc0KTus OPHe9fOWhfctcApTKY8enoL4WVABStY6qnNSnwrKXzYmLz8DpThqWNp7ykeaEaaRhxZE H+k5K3icSg6ebkoR1bjrLl2SnYqmm3SehypfS1Cv+WNtmrdl4KI+W+VehHYSJqTYHiQl gMOHDjaV08zxnIHsA+V+MTqV/m657aYLd8TpfP8haxvYXSOnfBiDEXDANw7/HpFK1XR1 DU4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i4-v6si7781833pgk.564.2018.10.05.09.59.16; Fri, 05 Oct 2018 09:59:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729276AbeJEX6t (ORCPT + 6 others); Fri, 5 Oct 2018 19:58:49 -0400 Received: from mail-oi1-f196.google.com ([209.85.167.196]:45372 "EHLO mail-oi1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729164AbeJEX6s (ORCPT ); Fri, 5 Oct 2018 19:58:48 -0400 Received: by mail-oi1-f196.google.com with SMTP id e17-v6so10927721oig.12; Fri, 05 Oct 2018 09:59:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=D7OkSebvuDu3GYBwaaAJvmjae/fS/q7Ybf2TAf/0foQ=; b=GWuGDZygR9yg7YAkqsWsNPyvDCX9imsqibXW5ODmoZ+3jI6C1heEaRHPif+j/cmEE+ jhCbekJSNdIfSArOoqbIgpn6otyp56BoocsNwX6fHDiNBgHbGY9ckKJE2KS7VE3cM04+ 3w0LFgMivx7SL/6UM2/vyzt/f06p/03jSQBLLBDnQnsJXK0SxSuvd5KRQQdVcJdLPnFM 0HhLUiO2VZKrJg9UZi5ylW7Gsa9C+paj1T/8VNoHrfvOe7F39OFzkspdP13jy6k6BQ58 m8D38qt/7Eqp+8xdjFZLhRbsMvoETZwwmM4vIufJSnSn6WwaDHW9qyXQosJcGBo9p+iz jcMg== X-Gm-Message-State: ABuFfoiJm6vU6eVTccX7uOrxbXascF2JBUCgtLjx0aXyIIW1T8v4jWIW wD+ysT6wrTo1wS7pZcUwt9sdgayTLg== X-Received: by 2002:aca:b485:: with SMTP id d127-v6mr6011131oif.165.1538758753133; Fri, 05 Oct 2018 09:59:13 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id u63-v6sm2904328ota.75.2018.10.05.09.59.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Oct 2018 09:59:12 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Cc: Grant Likely , Kumar Gala , Frank Rowand , Mark Rutland , Linus Walleij , Olof Johansson , Arnd Bergmann , Mark Brown , Tom Rini , Pantelis Antoniou , Geert Uytterhoeven , Jonathan Cameron , Bjorn Andersson , Tsahee Zidenberg , Antoine Tenart Subject: [PATCH 16/36] dt-bindings: arm: Convert Alpine board/soc bindings to json-schema Date: Fri, 5 Oct 2018 11:58:28 -0500 Message-Id: <20181005165848.3474-17-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181005165848.3474-1-robh@kernel.org> References: <20181005165848.3474-1-robh@kernel.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert Alpine SoC bindings to DT schema format using json-schema. Cc: Tsahee Zidenberg Cc: Antoine Tenart Cc: Mark Rutland Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/al,alpine.txt | 16 -------------- .../devicetree/bindings/arm/al,alpine.yaml | 21 +++++++++++++++++++ 2 files changed, 21 insertions(+), 16 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/al,alpine.txt create mode 100644 Documentation/devicetree/bindings/arm/al,alpine.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/arm/al,alpine.txt b/Documentation/devicetree/bindings/arm/al,alpine.txt deleted file mode 100644 index d00debe2e86f..000000000000 --- a/Documentation/devicetree/bindings/arm/al,alpine.txt +++ /dev/null @@ -1,16 +0,0 @@ -Annapurna Labs Alpine Platform Device Tree Bindings ---------------------------------------------------------------- - -Boards in the Alpine family shall have the following properties: - -* Required root node properties: -compatible: must contain "al,alpine" - -* Example: - -/ { - model = "Annapurna Labs Alpine Dev Board"; - compatible = "al,alpine"; - - ... -} diff --git a/Documentation/devicetree/bindings/arm/al,alpine.yaml b/Documentation/devicetree/bindings/arm/al,alpine.yaml new file mode 100644 index 000000000000..95f8629f7b0a --- /dev/null +++ b/Documentation/devicetree/bindings/arm/al,alpine.yaml @@ -0,0 +1,21 @@ +# SPDX-License-Identifier: None +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bindings/arm/al,alpine.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Annapurna Labs Alpine Platform Device Tree Bindings + +maintainers: + - Tsahee Zidenberg +description: test + +properties: + compatible: + items: + - const: al,alpine + model: + items: + - const: "Annapurna Labs Alpine Dev Board" + +... From patchwork Fri Oct 5 16:58:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 148261 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp691046lji; Fri, 5 Oct 2018 10:01:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV61x0SFddAcBLIE7I+qyNXG8fynIAHX2FMo9Iz6jJCIaGgn20SpfoSINInYk+lJuVCZKLhfU X-Received: by 2002:a63:e30c:: with SMTP id f12-v6mr11127743pgh.263.1538758861128; Fri, 05 Oct 2018 10:01:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538758861; cv=none; d=google.com; s=arc-20160816; b=V1CP54i7cm2lXj2tCJmrKOxL4ZiM+qZ1sovkv1rNDHF566S+Qi6jzFcLrqA+s/rHJ9 AbtqDojzSkHtXLnPhhgo8KLIDXYsgb+QACWsD6xo73M3UveUTlUcIZrXPJwfh1DDQK6n FlLgOpdbMTQC7/x4lPmlU3RA/WRszMrNziWNh4vNT4kixGDWwuMiBuU5/3SELdcwDQPx q3Spm/FCOdzXLxTbAOnDTBEOD0x6PQEHEtuTM8SHJdFdGJkc2MA2wi87CvXw82rktrhW 8k25K4n4hmYf/lE4MCi3ZnKrq+052QWbOWxF026oZ/aL8cHfnRWgCmRHyA8A4l4ZVQ0L BZyQ== 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=vAcI980IVTgNbupxMoc9uNYhSqenj2+Wb2EWxNk+YTs=; b=wpzwLK77bc6cfKtfZP52GQUdf1p6q8iya0LMjPMusEQASh+v1VV1eLt12mrgMyBVsf gcAesZGwcBHMhScpZ8n0CXJPFXuQ3IcstrFezD0AaIIhaJzWdySWosk8s8QY4AEMHTjB eeQR2fRQKg/5BkJS6Qh5Q5F86IcrcsAu7A/XA3+3zTwyRkl2zwXLV6ADN0eZqx5iJHHt mKUT5/b531QrtnOhX7y95MisL+taMOzDHwYIdT99jKUPhsk3Eb3wYikTQ+8oFdEF1ZTH +H29CgELacrGW9CPoUqAbeNdpE8zyL+DwgkJg4GEIogLSGj8Lfa1BBXxYUBFjc+51YbX bpfA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b12-v6si8860280pgj.87.2018.10.05.10.01.00; Fri, 05 Oct 2018 10:01:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727941AbeJFAAe (ORCPT + 6 others); Fri, 5 Oct 2018 20:00:34 -0400 Received: from mail-oi1-f194.google.com ([209.85.167.194]:39899 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729340AbeJEX6z (ORCPT ); Fri, 5 Oct 2018 19:58:55 -0400 Received: by mail-oi1-f194.google.com with SMTP id y81-v6so10952769oia.6; Fri, 05 Oct 2018 09:59:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vAcI980IVTgNbupxMoc9uNYhSqenj2+Wb2EWxNk+YTs=; b=KP0h8m9yO2W98OkBk2qBDlDW8hVug+wsArlPtowkuQKObRC3V3D+d1UCiNJUz9UceX zKNgaZOYHwF05apN2LGy38mRLJBqLA4uVvF7vcjIDD4gi5x7QsdwiQAhK+rezU2Pb/8x TESYRefjW1Gh/1Ag6kxqRjCnbHZ70KQELcKbikU0qGVZmagxDt0i1x/TavVi8WaTatlD LhoD4nlIY1cMOgLxtJsgST/ncJRdIBvwmjfP+SpAJC3TcywW83WF8swW9iY1BygR7oeE xE8vem8uQPLzVF5WxS9PkVRgUsonDBtJ9IgHEBDBiIPBd9/iOwYBL6UXTkeq2m4176to 1cVw== X-Gm-Message-State: ABuFfojR4/jVIuZVatx9z1NQG05ovUSRYNSPnES6eoERH8vwcL2UiQF3 U6XY4O+iI7Zg6EYdRQdTbdYF3d5Qbg== X-Received: by 2002:aca:38d5:: with SMTP id f204-v6mr5981634oia.195.1538758760439; Fri, 05 Oct 2018 09:59:20 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id u63-v6sm2904328ota.75.2018.10.05.09.59.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Oct 2018 09:59:19 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Cc: Grant Likely , Kumar Gala , Frank Rowand , Mark Rutland , Linus Walleij , Olof Johansson , Arnd Bergmann , Mark Brown , Tom Rini , Pantelis Antoniou , Geert Uytterhoeven , Jonathan Cameron , Bjorn Andersson , Sekhar Nori , Kevin Hilman Subject: [PATCH 21/36] dt-bindings: arm: Convert TI davinci board/soc bindings to json-schema Date: Fri, 5 Oct 2018 11:58:33 -0500 Message-Id: <20181005165848.3474-22-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181005165848.3474-1-robh@kernel.org> References: <20181005165848.3474-1-robh@kernel.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert TI Davinci SoC bindings to DT schema format using json-schema. Cc: Sekhar Nori Cc: Kevin Hilman Cc: Mark Rutland Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/davinci.txt | 25 ------------------ .../bindings/arm/ti/ti,davinci.yaml | 26 +++++++++++++++++++ 2 files changed, 26 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/davinci.txt create mode 100644 Documentation/devicetree/bindings/arm/ti/ti,davinci.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/arm/davinci.txt b/Documentation/devicetree/bindings/arm/davinci.txt deleted file mode 100644 index 715622c36260..000000000000 --- a/Documentation/devicetree/bindings/arm/davinci.txt +++ /dev/null @@ -1,25 +0,0 @@ -Texas Instruments DaVinci Platforms Device Tree Bindings --------------------------------------------------------- - -DA850/OMAP-L138/AM18x Evaluation Module (EVM) board -Required root node properties: - - compatible = "ti,da850-evm", "ti,da850"; - -DA850/OMAP-L138/AM18x L138/C6748 Development Kit (LCDK) board -Required root node properties: - - compatible = "ti,da850-lcdk", "ti,da850"; - -EnBW AM1808 based CMC board -Required root node properties: - - compatible = "enbw,cmc", "ti,da850; - -LEGO MINDSTORMS EV3 (AM1808 based) -Required root node properties: - - compatible = "lego,ev3", "ti,da850"; - -Generic DaVinci Boards ----------------------- - -DA850/OMAP-L138/AM18x generic board -Required root node properties: - - compatible = "ti,da850"; diff --git a/Documentation/devicetree/bindings/arm/ti/ti,davinci.yaml b/Documentation/devicetree/bindings/arm/ti/ti,davinci.yaml new file mode 100644 index 000000000000..2675cae91a60 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/ti/ti,davinci.yaml @@ -0,0 +1,26 @@ +# SPDX-License-Identifier: None +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bindings/arm/davinci.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments DaVinci Platforms Device Tree Bindings + +maintainers: + - Sekhar Nori +description: | + DA850/OMAP-L138/AM18x based boards + + +properties: + $nodename: + const: '/' + compatible: + items: + - enum: + - ti,da850-evm + - ti,da850-lcdk + - enbw,cmc + - lego,ev3 + - const: ti,da850 +... From patchwork Fri Oct 5 16:58:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 148251 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp689425lji; Fri, 5 Oct 2018 09:59:34 -0700 (PDT) X-Google-Smtp-Source: ACcGV62b3RN7HFmLbVXbEPdPQw+m0oIseoY4+HpHq5WbLZ/h5UBx48QVVCByuvLVGnOkB0kfebMr X-Received: by 2002:a17:902:9047:: with SMTP id w7-v6mr12697076plz.291.1538758774322; Fri, 05 Oct 2018 09:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538758774; cv=none; d=google.com; s=arc-20160816; b=vjxiBGSW4hcDVbDe81fks4PaLQWU/jBZEs61L+auzsgH5stwBBEPs9h6pHm7H1t2or d7NAX0gK0O7aphW7zaYOa9cYdmxGXCJ0AkzjphKKsee7sfhbZlpSdLQAuY0E5iM8Fxrg LRwOoathyFRy6xQAXJMqirhXsF5jqAVkksOqtpKVEP4OakVBsDnIVikHP0NumnYtvvfk iaI2X+eERtF9TKuBlmsoVT5ZNqjLmZOsCShKnaMoUaG4Vv7ukSGN1re8A6IRN4uUvVtV yLfzMR1ndnegAAOe7zGwKgzzWg3v7MFcks21HxVaZp24ep98K0ya26uEJRBdtiDSyEbX D/bQ== 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=EPIowlgGfyNp5PCTy+WASDW3GgOog5WIid6GP4xkThs=; b=gTStoXoHyGK2o3i5xYbJUIPLnzs+Uk95Br1LGzCXaL1qu+23qz+xtXP9B3DDb9Zqac rs1aKYpTDYOxwP7dU3mIiMuK6mBYJxnqZCynqIEygGN7NRyfQRKtn68sDc3JLq9hC7bi Gfmg1bg7c0paY42yMLuVk/2ezBgzz9f2kXVRYLP4cBw2M5cPMO2FkTYwh2l54Gm0G0LT lAxL4UadMSh0m4TXH2VkjObvwjKq86lv+/P6DNz+pNsWxrr6p1kKMIXFDBoMznDlp1l2 TTx+R1SRvFimvvpVY2/nSE5Vv9Ehv1Ox0cN1x0/4qAObJdkDQ8Fr5d+Rp5jC9Es9vN3+ m2Mw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23-v6si8882406plr.127.2018.10.05.09.59.34; Fri, 05 Oct 2018 09:59:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729543AbeJEX7G (ORCPT + 6 others); Fri, 5 Oct 2018 19:59:06 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:36984 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729490AbeJEX7F (ORCPT ); Fri, 5 Oct 2018 19:59:05 -0400 Received: by mail-ot1-f67.google.com with SMTP id o13-v6so13351082otl.4; Fri, 05 Oct 2018 09:59:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EPIowlgGfyNp5PCTy+WASDW3GgOog5WIid6GP4xkThs=; b=OIQ0q50RnMqlpt9g1CYRSBbpkCL9JFw9gMYTfbizycQukfpYiqLAepYi2tTriFfWF3 Gnxk4zqTkxV4+TsGuTtvg3vJa+iP4WNssfnj/6tSjGTRBriD6CjEsdKrW+n14elWBAx5 8qu09VQpfpH4KaQP8LGaFcys9L7JPwx8eVsvaNH0XhB9h92nThp82ynPUO3mU1WKd7+Y 9dI/bGrZkSEGPXJfMTiF4bkBmYdLbMtXiLYNW84fxfTQfHlmt1p9KwlvMHT/x7My4psx 3GTXSVin2B8pujjg8IuGg4u6GzJaljO1gp4OPXUqJC2IAhrT9JdJqYr0vFSPbJida2Gh 1cTQ== X-Gm-Message-State: ABuFfohz5MtpjhiZS1D0W7mssHzdQyIa+NXz3bW6mZQZHoaPGRP1Xoa6 rsxsIH7r+KS8H6sHUz1BcnsgP/auQQ== X-Received: by 2002:a9d:2372:: with SMTP id k47mr6626136otd.98.1538758769842; Fri, 05 Oct 2018 09:59:29 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id u63-v6sm2904328ota.75.2018.10.05.09.59.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Oct 2018 09:59:29 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Cc: Grant Likely , Kumar Gala , Frank Rowand , Mark Rutland , Linus Walleij , Olof Johansson , Arnd Bergmann , Mark Brown , Tom Rini , Pantelis Antoniou , Geert Uytterhoeven , Jonathan Cameron , Bjorn Andersson , Heiko Stuebner , linux-rockchip@lists.infradead.org Subject: [PATCH 28/36] dt-bindings: arm: Convert Rockchip board/soc bindings to json-schema Date: Fri, 5 Oct 2018 11:58:40 -0500 Message-Id: <20181005165848.3474-29-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181005165848.3474-1-robh@kernel.org> References: <20181005165848.3474-1-robh@kernel.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert Rockchip SoC bindings to DT schema format using json-schema. Cc: Mark Rutland Cc: Heiko Stuebner Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-rockchip@lists.infradead.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/rockchip.txt | 220 ---------------- .../devicetree/bindings/arm/rockchip.yaml | 242 ++++++++++++++++++ 2 files changed, 242 insertions(+), 220 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/rockchip.txt create mode 100644 Documentation/devicetree/bindings/arm/rockchip.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/arm/rockchip.txt b/Documentation/devicetree/bindings/arm/rockchip.txt deleted file mode 100644 index acfd3c773dd0..000000000000 --- a/Documentation/devicetree/bindings/arm/rockchip.txt +++ /dev/null @@ -1,220 +0,0 @@ -Rockchip platforms device tree bindings ---------------------------------------- - -- 96boards RK3399 Ficus (ROCK960 Enterprise Edition) - Required root node properties: - - compatible = "vamrs,ficus", "rockchip,rk3399"; - -- Amarula Vyasa RK3288 board - Required root node properties: - - compatible = "amarula,vyasa-rk3288", "rockchip,rk3288"; - -- Asus Tinker board - Required root node properties: - - compatible = "asus,rk3288-tinker", "rockchip,rk3288"; - -- Kylin RK3036 board: - Required root node properties: - - compatible = "rockchip,kylin-rk3036", "rockchip,rk3036"; - -- MarsBoard RK3066 board: - Required root node properties: - - compatible = "haoyu,marsboard-rk3066", "rockchip,rk3066a"; - -- bq Curie 2 tablet: - Required root node properties: - - compatible = "mundoreader,bq-curie2", "rockchip,rk3066a"; - -- ChipSPARK Rayeager PX2 board: - Required root node properties: - - compatible = "chipspark,rayeager-px2", "rockchip,rk3066a"; - -- Radxa Rock board: - Required root node properties: - - compatible = "radxa,rock", "rockchip,rk3188"; - -- Radxa Rock2 Square board: - Required root node properties: - - compatible = "radxa,rock2-square", "rockchip,rk3288"; - -- Rikomagic MK808 v1 board: - Required root node properties: - - compatible = "rikomagic,mk808", "rockchip,rk3066a"; - -- Firefly Firefly-RK3288 board: - Required root node properties: - - compatible = "firefly,firefly-rk3288", "rockchip,rk3288"; - or - - compatible = "firefly,firefly-rk3288-beta", "rockchip,rk3288"; - -- Firefly Firefly-RK3288 Reload board: - Required root node properties: - - compatible = "firefly,firefly-rk3288-reload", "rockchip,rk3288"; - -- Firefly Firefly-RK3399 board: - Required root node properties: - - compatible = "firefly,firefly-rk3399", "rockchip,rk3399"; - -- Firefly roc-rk3328-cc board: - Required root node properties: - - compatible = "firefly,roc-rk3328-cc", "rockchip,rk3328"; - -- ChipSPARK PopMetal-RK3288 board: - Required root node properties: - - compatible = "chipspark,popmetal-rk3288", "rockchip,rk3288"; - -- Netxeon R89 board: - Required root node properties: - - compatible = "netxeon,r89", "rockchip,rk3288"; - -- GeekBuying GeekBox: - Required root node properties: - - compatible = "geekbuying,geekbox", "rockchip,rk3368"; - -- Google Bob (Asus Chromebook Flip C101PA): - Required root node properties: - compatible = "google,bob-rev13", "google,bob-rev12", - "google,bob-rev11", "google,bob-rev10", - "google,bob-rev9", "google,bob-rev8", - "google,bob-rev7", "google,bob-rev6", - "google,bob-rev5", "google,bob-rev4", - "google,bob", "google,gru", "rockchip,rk3399"; - -- Google Brain (dev-board): - Required root node properties: - - compatible = "google,veyron-brain-rev0", "google,veyron-brain", - "google,veyron", "rockchip,rk3288"; - -- Google Gru (dev-board): - Required root node properties: - - compatible = "google,gru-rev15", "google,gru-rev14", - "google,gru-rev13", "google,gru-rev12", - "google,gru-rev11", "google,gru-rev10", - "google,gru-rev9", "google,gru-rev8", - "google,gru-rev7", "google,gru-rev6", - "google,gru-rev5", "google,gru-rev4", - "google,gru-rev3", "google,gru-rev2", - "google,gru", "rockchip,rk3399"; - -- Google Jaq (Haier Chromebook 11 and more): - Required root node properties: - - compatible = "google,veyron-jaq-rev5", "google,veyron-jaq-rev4", - "google,veyron-jaq-rev3", "google,veyron-jaq-rev2", - "google,veyron-jaq-rev1", "google,veyron-jaq", - "google,veyron", "rockchip,rk3288"; - -- Google Jerry (Hisense Chromebook C11 and more): - Required root node properties: - - compatible = "google,veyron-jerry-rev7", "google,veyron-jerry-rev6", - "google,veyron-jerry-rev5", "google,veyron-jerry-rev4", - "google,veyron-jerry-rev3", "google,veyron-jerry", - "google,veyron", "rockchip,rk3288"; - -- Google Kevin (Samsung Chromebook Plus): - Required root node properties: - - compatible = "google,kevin-rev15", "google,kevin-rev14", - "google,kevin-rev13", "google,kevin-rev12", - "google,kevin-rev11", "google,kevin-rev10", - "google,kevin-rev9", "google,kevin-rev8", - "google,kevin-rev7", "google,kevin-rev6", - "google,kevin", "google,gru", "rockchip,rk3399"; - -- Google Mickey (Asus Chromebit CS10): - Required root node properties: - - compatible = "google,veyron-mickey-rev8", "google,veyron-mickey-rev7", - "google,veyron-mickey-rev6", "google,veyron-mickey-rev5", - "google,veyron-mickey-rev4", "google,veyron-mickey-rev3", - "google,veyron-mickey-rev2", "google,veyron-mickey-rev1", - "google,veyron-mickey-rev0", "google,veyron-mickey", - "google,veyron", "rockchip,rk3288"; - -- Google Minnie (Asus Chromebook Flip C100P): - Required root node properties: - - compatible = "google,veyron-minnie-rev4", "google,veyron-minnie-rev3", - "google,veyron-minnie-rev2", "google,veyron-minnie-rev1", - "google,veyron-minnie-rev0", "google,veyron-minnie", - "google,veyron", "rockchip,rk3288"; - -- Google Pinky (dev-board): - Required root node properties: - - compatible = "google,veyron-pinky-rev2", "google,veyron-pinky", - "google,veyron", "rockchip,rk3288"; - -- Google Speedy (Asus C201 Chromebook): - Required root node properties: - - compatible = "google,veyron-speedy-rev9", "google,veyron-speedy-rev8", - "google,veyron-speedy-rev7", "google,veyron-speedy-rev6", - "google,veyron-speedy-rev5", "google,veyron-speedy-rev4", - "google,veyron-speedy-rev3", "google,veyron-speedy-rev2", - "google,veyron-speedy", "google,veyron", "rockchip,rk3288"; - -- mqmaker MiQi: - Required root node properties: - - compatible = "mqmaker,miqi", "rockchip,rk3288"; - -- Phytec phyCORE-RK3288: Rapid Development Kit - Required root node properties: - - compatible = "phytec,rk3288-pcm-947", "phytec,rk3288-phycore-som", "rockchip,rk3288"; - -- Pine64 Rock64 board: - Required root node properties: - - compatible = "pine64,rock64", "rockchip,rk3328"; - -- Rockchip PX3 Evaluation board: - Required root node properties: - - compatible = "rockchip,px3-evb", "rockchip,px3", "rockchip,rk3188"; - -- Rockchip PX5 Evaluation board: - Required root node properties: - - compatible = "rockchip,px5-evb", "rockchip,px5", "rockchip,rk3368"; - -- Rockchip RV1108 Evaluation board - Required root node properties: - - compatible = "rockchip,rv1108-evb", "rockchip,rv1108"; - -- Rockchip RK3368 evb: - Required root node properties: - - compatible = "rockchip,rk3368-evb-act8846", "rockchip,rk3368"; - -- Rockchip R88 board: - Required root node properties: - - compatible = "rockchip,r88", "rockchip,rk3368"; - -- Rockchip RK3228 Evaluation board: - Required root node properties: - - compatible = "rockchip,rk3228-evb", "rockchip,rk3228"; - -- Rockchip RK3229 Evaluation board: - - compatible = "rockchip,rk3229-evb", "rockchip,rk3229"; - -- Rockchip RK3288 Fennec board: - Required root node properties: - - compatible = "rockchip,rk3288-fennec", "rockchip,rk3288"; - -- Rockchip RK3328 evb: - Required root node properties: - - compatible = "rockchip,rk3328-evb", "rockchip,rk3328"; - -- Rockchip RK3399 evb: - Required root node properties: - - compatible = "rockchip,rk3399-evb", "rockchip,rk3399"; - -- Rockchip RK3399 Sapphire board standalone: - Required root node properties: - - compatible = "rockchip,rk3399-sapphire", "rockchip,rk3399"; - -- Rockchip RK3399 Sapphire Excavator board: - Required root node properties: - - compatible = "rockchip,rk3399-sapphire-excavator", "rockchip,rk3399"; - -- Theobroma Systems RK3368-uQ7 Haikou Baseboard: - Required root node properties: - - compatible = "tsd,rk3368-uq7-haikou", "rockchip,rk3368"; - -- Theobroma Systems RK3399-Q7 Haikou Baseboard: - Required root node properties: - - compatible = "tsd,rk3399-q7-haikou", "rockchip,rk3399"; - -- Tronsmart Orion R68 Meta - Required root node properties: - - compatible = "tronsmart,orion-r68-meta", "rockchip,rk3368"; diff --git a/Documentation/devicetree/bindings/arm/rockchip.yaml b/Documentation/devicetree/bindings/arm/rockchip.yaml new file mode 100644 index 000000000000..4b4b892e5af7 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/rockchip.yaml @@ -0,0 +1,242 @@ +# SPDX-License-Identifier: None +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bindings/arm/rockchip.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Rockchip platforms device tree bindings + +maintainers: + - Beniamino Galvani + - Heiko Stuebner + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - items: + - enum: + - amarula,vyasa-rk3288 + - asus,rk3288-tinker + - radxa,rock2-square + - chipspark,popmetal-rk3288 + - netxeon,r89 + - firefly,firefly-rk3288 + - firefly,firefly-rk3288-beta + - firefly,firefly-rk3288-reload + - mqmaker,miqi + - rockchip,rk3288-fennec + - const: rockchip,rk3288 + + - description: Phytec phyCORE-RK3288 Rapid Development Kit + items: + - const: phytec,rk3288-pcm-947 + - const: phytec,rk3288-phycore-som + - const: rockchip,rk3288 + + - description: Google Mickey (Asus Chromebit CS10) + items: + - const: google,veyron-mickey-rev8 + - const: google,veyron-mickey-rev7 + - const: google,veyron-mickey-rev6 + - const: google,veyron-mickey-rev5 + - const: google,veyron-mickey-rev4 + - const: google,veyron-mickey-rev3 + - const: google,veyron-mickey-rev2 + - const: google,veyron-mickey-rev1 + - const: google,veyron-mickey-rev0 + - const: google,veyron-mickey + - const: google,veyron + - const: rockchip,rk3288 + + - description: Google Minnie (Asus Chromebook Flip C100P) + items: + - const: google,veyron-minnie-rev4 + - const: google,veyron-minnie-rev3 + - const: google,veyron-minnie-rev2 + - const: google,veyron-minnie-rev1 + - const: google,veyron-minnie-rev0 + - const: google,veyron-minnie + - const: google,veyron + - const: rockchip,rk3288 + + - description: Google Pinky (dev-board) + items: + - const: google,veyron-pinky-rev2 + - const: google,veyron-pinky + - const: google,veyron + - const: rockchip,rk3288 + + - description: Google Speedy (Asus C201 Chromebook) + items: + - const: google,veyron-speedy-rev9 + - const: google,veyron-speedy-rev8 + - const: google,veyron-speedy-rev7 + - const: google,veyron-speedy-rev6 + - const: google,veyron-speedy-rev5 + - const: google,veyron-speedy-rev4 + - const: google,veyron-speedy-rev3 + - const: google,veyron-speedy-rev2 + - const: google,veyron-speedy + - const: google,veyron + - const: rockchip,rk3288 + + - description: Google Jaq (Haier Chromebook 11 and more) + items: + - const: google,veyron-jaq-rev5 + - const: google,veyron-jaq-rev4 + - const: google,veyron-jaq-rev3 + - const: google,veyron-jaq-rev2 + - const: google,veyron-jaq-rev1 + - const: google,veyron-jaq + - const: google,veyron + - const: rockchip,rk3288 + + - description: Google Jerry (Hisense Chromebook C11 and more) + items: + - const: google,veyron-jerry-rev7 + - const: google,veyron-jerry-rev6 + - const: google,veyron-jerry-rev5 + - const: google,veyron-jerry-rev4 + - const: google,veyron-jerry-rev3 + - const: google,veyron-jerry + - const: google,veyron + - const: rockchip,rk3288 + + - description: Google Brain (dev-board) + items: + - const: google,veyron-brain-rev0 + - const: google,veyron-brain + - const: google,veyron + - const: rockchip,rk3288 + + - items: + - enum: + - rockchip,kylin-rk3036 + - const: rockchip,rk3036 + + - items: + - enum: + - haoyu,marsboard-rk3066 + - mundoreader,bq-curie2 + - chipspark,rayeager-px2 + - rikomagic,mk80 + - const: rockchip,rk3066a + + - items: + - enum: + - radxa,rock + - const: rockchip,rk3188 + + - items: + - const: rockchip,px3-evb + - const: rockchip,px3 + - const: rockchip,rk3188 + + - items: + - enum: + - firefly,roc-rk3328-cc + - pine64,rock64 + - rockchip,rk3328-evb + - const: rockchip,rk3328 + + - items: + - enum: + - geekbuying,geekbox + - rockchip,rk3368-evb-act8846 + - rockchip,r88 + - tsd,rk3368-uq7-haikou + - tronsmart,orion-r68-meta + - const: rockchip,rk3368 + + - items: + - enum: + - geekbuying,geekbox + - rockchip,rk3368-evb-act8846 + - rockchip,r88 + - tsd,rk3368-uq7-haikou + - tronsmart,orion-r68-meta + - const: rockchip,rk3368 + + - items: + - const: rockchip,px5-evb + - const: rockchip,px5 + - const: rockchip,rk3368 + + - items: + - enum: + - firefly,firefly-rk3399 + - rockchip,rk3399-evb + - rockchip,rk3399-sapphire + - rockchip,rk3399-sapphire-excavator + - tsd,rk3399-q7-haikou + - vamrs,ficus + - const: rockchip,rk3399 + + - description: Google Bob (Asus Chromebook Flip C101PA) + items: + - const: google,bob-rev13 + - const: google,bob-rev12 + - const: google,bob-rev11 + - const: google,bob-rev10 + - const: google,bob-rev9 + - const: google,bob-rev8 + - const: google,bob-rev7 + - const: google,bob-rev6 + - const: google,bob-rev5 + - const: google,bob-rev4 + - const: google,bob + - const: google,gru + - const: rockchip,rk3399 + + - description: Google Gru (dev-board) + items: + - const: google,gru-rev15 + - const: google,gru-rev14 + - const: google,gru-rev13 + - const: google,gru-rev12 + - const: google,gru-rev11 + - const: google,gru-rev10 + - const: google,gru-rev9 + - const: google,gru-rev8 + - const: google,gru-rev7 + - const: google,gru-rev6 + - const: google,gru-rev5 + - const: google,gru-rev4 + - const: google,gru-rev3 + - const: google,gru-rev2 + - const: google,gru + - const: rockchip,rk3399 + + - description: Google Kevin (Samsung Chromebook Plus) + items: + - const: google,kevin-rev15 + - const: google,kevin-rev14 + - const: google,kevin-rev13 + - const: google,kevin-rev12 + - const: google,kevin-rev11 + - const: google,kevin-rev10 + - const: google,kevin-rev9 + - const: google,kevin-rev8 + - const: google,kevin-rev7 + - const: google,kevin-rev6 + - const: google,kevin + - const: google,gru + - const: rockchip,rk3399 + + - items: + - enum: + - rockchip,rv1108-evb + - const: rockchip,rv1108 + + - items: + - enum: + - rockchip,rk3228-evb + - const: rockchip,rk3228 + + - items: + - enum: + - rockchip,rk3229-evb + - const: rockchip,rk3229 +... From patchwork Fri Oct 5 16:58:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 148252 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp689436lji; Fri, 5 Oct 2018 09:59:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV62gBLYZ6H4XzUIIUt6UlFd02Qwh32fROJbd1woJvg/+DtTYsjUJhasr2v9KpeeKzZ6UN5g4 X-Received: by 2002:a17:902:a606:: with SMTP id u6-v6mr12094558plq.69.1538758774920; Fri, 05 Oct 2018 09:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538758774; cv=none; d=google.com; s=arc-20160816; b=Te+FyRUnxXoQpruKM7VN+1cVhFJLQBc3S+NPk+9Fho9ejjXiuSyjBPh4kR49tKslEJ N9PiF9I+b9p3L4C9V9Y5DyjSWbJXUSz8iIl+KzY/nLsVNI+1gU4uRd30EJ2pxTtUFUE8 rKfWKuhc8hHZ1nJhSO47o490b97yuvLC6wcDwWyhM/b9e5kN7k5t9bEeu41YLdL0ef3e DnzRyNsdcbL38OXMMWN4N6EgxYXUykzSgnDGgb9qJwp6KGC2xWzJho3FupK5mQZNYqEB uID0th1zdVjmBvY4Wi5P/1KYHgls8vmuh/irqcDldZSdOcURW/PC1ilsC+p9eymXXfn6 dGZg== 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=3QaNxpesTBxVr/7vfmPYasCc5X/KE8pFik4kvCVqTlQ=; b=uNpNMuk4whk/5dVcjJXb08o08qJ9YQ/3ongZmLGWU2/YdXfiVWMLCXcfmZJoec3Mmc hs2VfqOhI8SmSxOFouuVr2OwoGZ5Mrfczbz79Ft/EYz/Nn0FHBT/V/TBpZ48ndPtLIIV 86IH9zDRkYt3318/crEg5NHkIhJ/1kHyH5lMLxZWc5U/6XgLrKhCiUn1sFVzU09c7IBJ 1SqYaI7A+A8ZAO0SRn7u3JqHyZWydjHTDstPGSJsi7WBu3m6bo9z2UbtZ1cgkdV+UBTi Pbpkeke3KYubAGoDsFQEPnae0W+H7LvUZRGtPooAjQZ7khabP/EsrNpzdClaX1cshGop Dhrg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d23-v6si8882406plr.127.2018.10.05.09.59.34; Fri, 05 Oct 2018 09:59:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729490AbeJEX7H (ORCPT + 6 others); Fri, 5 Oct 2018 19:59:07 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:34088 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729541AbeJEX7H (ORCPT ); Fri, 5 Oct 2018 19:59:07 -0400 Received: by mail-ot1-f66.google.com with SMTP id i12-v6so13401552otl.1; Fri, 05 Oct 2018 09:59:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=3QaNxpesTBxVr/7vfmPYasCc5X/KE8pFik4kvCVqTlQ=; b=ju0MXjpEbULJ3s9WGNRVvIjkcBOcUPF/QRLu6sKAzuqdbMvpo6RtfGPrqEjjVDkpyt xWCyZdJ5Yd3be0I/KVICcrQGQ4jwh/xWKxlgX3CNK2VIJjsOurr35kZ8cyyARmp7Zirp Q7OHLMfnMwZBIZRB4lgomLcRbT9sSCBKQK8skgKFOKLON2JoFxEWm8tTy6gfc/0aBaxP PyYWnSGoJxQxrp6VQ2wNK4eJLxzjoJ0DJaWBBDO0lpilV7kU2rwGlsRmj97dBz4eh7yS ZdzZIYwmlgWwWDoHzkkPoZVgbJAXbe6JJu7zl3nSduwCZldumW+4BCWxGrfud8pcorsF RG7g== X-Gm-Message-State: ABuFfoglhTx/OFePUkONuMI00BK4VQ4RwZ2MrVx87iE7Yr4AdDufC38c 3bDXYZIQIrsv44/OKiUt11d20uIiNw== X-Received: by 2002:a9d:3c1b:: with SMTP id q27mr7258445otc.103.1538758772490; Fri, 05 Oct 2018 09:59:32 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id u63-v6sm2904328ota.75.2018.10.05.09.59.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Oct 2018 09:59:31 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Cc: Grant Likely , Kumar Gala , Frank Rowand , Mark Rutland , Linus Walleij , Olof Johansson , Arnd Bergmann , Mark Brown , Tom Rini , Pantelis Antoniou , Geert Uytterhoeven , Jonathan Cameron , Bjorn Andersson , Barry Song Subject: [PATCH 30/36] dt-bindings: arm: Convert CSR SiRF board/soc bindings to json-schema Date: Fri, 5 Oct 2018 11:58:42 -0500 Message-Id: <20181005165848.3474-31-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181005165848.3474-1-robh@kernel.org> References: <20181005165848.3474-1-robh@kernel.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert CSR SiRF SoC bindings to DT schema format using json-schema. Cc: Mark Rutland Cc: Barry Song Cc: devicetree@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/sirf.txt | 11 -------- .../devicetree/bindings/arm/sirf.yaml | 27 +++++++++++++++++++ 2 files changed, 27 insertions(+), 11 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/sirf.txt create mode 100644 Documentation/devicetree/bindings/arm/sirf.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/arm/sirf.txt b/Documentation/devicetree/bindings/arm/sirf.txt deleted file mode 100644 index 7b28ee6fee91..000000000000 --- a/Documentation/devicetree/bindings/arm/sirf.txt +++ /dev/null @@ -1,11 +0,0 @@ -CSR SiRFprimaII and SiRFmarco device tree bindings. -======================================== - -Required root node properties: - - compatible: - - "sirf,atlas6-cb" : atlas6 "cb" evaluation board - - "sirf,atlas6" : atlas6 device based board - - "sirf,atlas7-cb" : atlas7 "cb" evaluation board - - "sirf,atlas7" : atlas7 device based board - - "sirf,prima2-cb" : prima2 "cb" evaluation board - - "sirf,prima2" : prima2 device based board diff --git a/Documentation/devicetree/bindings/arm/sirf.yaml b/Documentation/devicetree/bindings/arm/sirf.yaml new file mode 100644 index 000000000000..5675b3efda96 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/sirf.yaml @@ -0,0 +1,27 @@ +# SPDX-License-Identifier: None +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bindings/arm/sirf.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: CSR SiRFprimaII and SiRFmarco device tree bindings. + +maintainers: + - Binghua Duan + - Barry Song + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - items: + - const: sirf,atlas6-cb + - const: sirf,atlas6 + - items: + - const: sirf,atlas7-cb + - const: sirf,atlas7 + - items: + - const: sirf,prima2-cb + - const: sirf,prima2 +... From patchwork Fri Oct 5 16:58:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 148253 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp689478lji; Fri, 5 Oct 2018 09:59:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV61V9ovdBkmbpNOvfPFyZ2QyDvFA8DwZvcvRv+1QSRbSUsbGDHRRUFg+ESQ62LgyHIe88+vS X-Received: by 2002:a62:f20f:: with SMTP id m15-v6mr12649123pfh.244.1538758777757; Fri, 05 Oct 2018 09:59:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538758777; cv=none; d=google.com; s=arc-20160816; b=jFBYDchdmkexVI3BqD3iEkNI3bllnFM9OCVcuBnL4xsLFGoNFzCgbrdZBYtVb/0JBQ fUEsUvL+qbEdwPsP4DMCXbnKpZdB2ivteCyugcCpRWng3bEd9PGqKnYfk0shsMtytsNS nfU7ZQKrunW3nzg3pUJLfpv6EcOJg2pBsxH/dCFn3Ntz5ueKIx8OGOWCCeC9xAfmbzi1 BPqVBOMhVt2h8tzufTtfhqSz1Vt9Q9439ltEMuMAxZVAlFekeXDPfZ/LL2v2akcw6WjY cFMw+LIFkVZVK6teVSwSw0a7jgjPFi2+kfD7A8ZOB6JGbSBi7osCwQcfgJdiraafSdlE ztwA== 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=E0eCUxfOwBpipo7Bw/JN/xoyxB44uKaqnXkAgBBbYjI=; b=s5K8bo59e1j+dBnysVxqxH1orjaY0GjcfoDVS/xVbF8AQSPJjy6Aw3z+QbQnxRxjPp LxwMk3nVib+LQQ8N0umOECPq0HFCBbHdc0yl5IpC8rv3wBFzRuMRGxdovwLUFnSrn9tu mIHWDl+XE0MTw2ypz/PfMtSHeMRqmO3VMg/Ttefo8VlMXGVcHotgaofeFYE2R3pgOxRb fomFcikFf5uOnvmUZc8GMsFItV5xxqgiDlqWF2maR/zf7uXkNGWKVTJx7gRiA3R2sE+d YdRyTAjXzsCktXOweBBqaAj3kWUDFavoPJr5aeSrE0tzsll2/RpZFEIriUWle+4EOuGZ eprQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f62-v6si9756983pfb.218.2018.10.05.09.59.37; Fri, 05 Oct 2018 09:59:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729581AbeJEX7J (ORCPT + 6 others); Fri, 5 Oct 2018 19:59:09 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:36992 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729541AbeJEX7J (ORCPT ); Fri, 5 Oct 2018 19:59:09 -0400 Received: by mail-ot1-f68.google.com with SMTP id o13-v6so13351231otl.4; Fri, 05 Oct 2018 09:59:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=E0eCUxfOwBpipo7Bw/JN/xoyxB44uKaqnXkAgBBbYjI=; b=E9lYNO0xVTKnYGNG4vJdvL7B8RSNUN+dOsq+wcV1OhTXYmwEk2cy4xy/40v2uOK26U 9ahpZqFw07yw9eEHF65OvulGpAoWxEC0OKq8b7DK7UEVT++yRIeyL3ylviUPcatZES8J G6la/RBXOiZIsvgPbsJGKGu8v5qBdpvpCCBJbu1KY5obqraBeamk9Ooku/JrmJfm8DL2 y5mDE2I097it79sjZGYREz1FIx0eSwB6EcyQO9Q53iEHqY/rIfpU4vSRGtCpbDf6Xgn0 iAFj+Z18In12rZWj49EQ4mXx/ccwbc7OvufVVLQtLTxBrG2kD++eOdkYbSf8qIV94AFV Nznw== X-Gm-Message-State: ABuFfogIWyUm0TDwYI6AJAzRAryJGkrQfEmE2P+EudXN3mMVKHhSyukw N/RY/xiY/SjW6ruWEgc43PsTYUXlJg== X-Received: by 2002:a9d:3e54:: with SMTP id h20mr6321692otg.184.1538758773772; Fri, 05 Oct 2018 09:59:33 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id u63-v6sm2904328ota.75.2018.10.05.09.59.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Oct 2018 09:59:33 -0700 (PDT) From: Rob Herring To: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linuxppc-dev@lists.ozlabs.org Cc: Grant Likely , Kumar Gala , Frank Rowand , Mark Rutland , Linus Walleij , Olof Johansson , Arnd Bergmann , Mark Brown , Tom Rini , Pantelis Antoniou , Geert Uytterhoeven , Jonathan Cameron , Bjorn Andersson , Viresh Kumar , Shiraz Hashim Subject: [PATCH 31/36] dt-bindings: arm: Convert SPEAr board/soc bindings to json-schema Date: Fri, 5 Oct 2018 11:58:43 -0500 Message-Id: <20181005165848.3474-32-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181005165848.3474-1-robh@kernel.org> References: <20181005165848.3474-1-robh@kernel.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Convert SPEAr SoC bindings to DT schema format using json-schema. Cc: Viresh Kumar Cc: Shiraz Hashim Cc: Mark Rutland Cc: devicetree@vger.kernel.org Signed-off-by: Rob Herring --- .../devicetree/bindings/arm/spear.txt | 26 ------------------- .../devicetree/bindings/arm/spear.yaml | 25 ++++++++++++++++++ 2 files changed, 25 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/spear.txt create mode 100644 Documentation/devicetree/bindings/arm/spear.yaml -- 2.17.1 diff --git a/Documentation/devicetree/bindings/arm/spear.txt b/Documentation/devicetree/bindings/arm/spear.txt deleted file mode 100644 index 0d42949df6c2..000000000000 --- a/Documentation/devicetree/bindings/arm/spear.txt +++ /dev/null @@ -1,26 +0,0 @@ -ST SPEAr Platforms Device Tree Bindings ---------------------------------------- - -Boards with the ST SPEAr600 SoC shall have the following properties: -Required root node property: -compatible = "st,spear600"; - -Boards with the ST SPEAr300 SoC shall have the following properties: -Required root node property: -compatible = "st,spear300"; - -Boards with the ST SPEAr310 SoC shall have the following properties: -Required root node property: -compatible = "st,spear310"; - -Boards with the ST SPEAr320 SoC shall have the following properties: -Required root node property: -compatible = "st,spear320"; - -Boards with the ST SPEAr1310 SoC shall have the following properties: -Required root node property: -compatible = "st,spear1310"; - -Boards with the ST SPEAr1340 SoC shall have the following properties: -Required root node property: -compatible = "st,spear1340"; diff --git a/Documentation/devicetree/bindings/arm/spear.yaml b/Documentation/devicetree/bindings/arm/spear.yaml new file mode 100644 index 000000000000..6ce8ef979390 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/spear.yaml @@ -0,0 +1,25 @@ +# SPDX-License-Identifier: None +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bindings/arm/spear.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ST SPEAr Platforms Device Tree Bindings + +maintainers: + - Viresh Kumar + - Stefan Roese + +properties: + $nodename: + const: '/' + compatible: + items: + - enum: + - st,spear600 + - st,spear300 + - st,spear310 + - st,spear320 + - st,spear1310 + - st,spear1340 +...