Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp5945302ybx; Mon, 11 Nov 2019 01:06:01 -0800 (PST) X-Google-Smtp-Source: APXvYqx3eMUiwGY0weDIKmfYVkGKiIChhemi7Wbzt+p23YQiaAtduiQiKVNEpOviUvJTgnIcd5vN X-Received: by 2002:aa7:c1d4:: with SMTP id d20mr24952404edp.273.1573463161316; Mon, 11 Nov 2019 01:06:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573463161; cv=none; d=google.com; s=arc-20160816; b=SdaPGz0466QLHzy6/dGR6flv/vF+vwvRl1wceslBY5BIjUXAB7XX2WTnmHqFaxtpKv Tr2jHtd3Q7ejhlCgZP9VxUxqt6wvG4NzoLmGLBi8eg0Z5asPsPUPtkc4Rw/oRo6vnrJl QSD26TnXCkDuoq+EazJ1PoiFpJ5svBdlLAY1idySm5fscpf7FYufdyybhsaaAxkBejD3 vmUpq5HosDk6n8kuKdNBrqfjC37guZd9+XJIgUqFcUI/1s+bYNjTix70YxUWfRf2tVAf ICGiHnQO3b6fX8UUmrUFbQMDVLv2b8y4VKhRLmA59I83rfAB9tAnvWlrcJciV6WLjIjj a8ag== 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=CyH/hYK2VVtFZc7hCAA8xe4Y5OTg29A3G5zixZsEBGk=; b=pgH3vDKKVD0uOWpMFe8C9OsH8QOBTegY7HhCj4wHTnkdogXnxxLkIu0Ai3WzCNX5kN SwOG6qRHphFG6Ba/VbYnz4lf40X4W0A6/kHSou994n61QT9KPOdskMMCsHmiz67VgGS1 0e0ppCv9rJfyM2yKQsTK0vsutOgDnUTXQffwyRB5Z1TUE+6vpG0vlfxgTbhn7tTAuOhW WrR743/l9Od55BKhIDIycQg0yo3KxB7tojkvAkrFuaRCHJzontsMdle7xQKukES59WNq Lp2oj1L3ExhjBLvI9sLGUamRDolVOm3FwzIZMxG0xjOzh4dfBJQlC2Zf6phm6S8h0vaG nRbg== 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 l8si9778337edb.234.2019.11.11.01.05.38; Mon, 11 Nov 2019 01:06:01 -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 S1727036AbfKKJDw (ORCPT + 99 others); Mon, 11 Nov 2019 04:03:52 -0500 Received: from sci-ig2.spreadtrum.com ([222.66.158.135]:40280 "EHLO SHSQR01.spreadtrum.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726768AbfKKJDw (ORCPT ); Mon, 11 Nov 2019 04:03:52 -0500 Received: from ig2.spreadtrum.com (bjmbx01.spreadtrum.com [10.0.64.7]) by SHSQR01.spreadtrum.com with ESMTPS id xAB937D7060732 (version=TLSv1 cipher=AES256-SHA bits=256 verify=NO); Mon, 11 Nov 2019 17:03:08 +0800 (CST) (envelope-from Chunyan.Zhang@unisoc.com) Received: from localhost (10.0.74.88) by BJMBX01.spreadtrum.com (10.0.64.7) with Microsoft SMTP Server (TLS) id 15.0.847.32; Mon, 11 Nov 2019 17:03:26 +0800 From: Chunyan Zhang To: Rob Herring , Mark Rutland CC: , , Orson Zhai , Baolin Wang , Chunyan Zhang , Chunyan Zhang Subject: [PATCH v2 1/5] dt-bindings: arm: Convert sprd board/soc bindings to json-schema Date: Mon, 11 Nov 2019 17:02:26 +0800 Message-ID: <20191111090230.3402-2-chunyan.zhang@unisoc.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191111090230.3402-1-chunyan.zhang@unisoc.com> References: <20191111090230.3402-1-chunyan.zhang@unisoc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.0.74.88] X-ClientProxiedBy: shcas04.spreadtrum.com (10.29.35.89) To BJMBX01.spreadtrum.com (10.0.64.7) X-MAIL: SHSQR01.spreadtrum.com xAB937D7060732 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert Unisoc (formerly Spreadtrum) SoC bindings to DT schema format using json-schema. Signed-off-by: Chunyan Zhang --- .../devicetree/bindings/arm/sprd.txt | 14 --------- .../devicetree/bindings/arm/sprd.yaml | 29 +++++++++++++++++++ 2 files changed, 29 insertions(+), 14 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/sprd.txt create mode 100644 Documentation/devicetree/bindings/arm/sprd.yaml diff --git a/Documentation/devicetree/bindings/arm/sprd.txt b/Documentation/devicetree/bindings/arm/sprd.txt deleted file mode 100644 index 3df034b13e28..000000000000 --- a/Documentation/devicetree/bindings/arm/sprd.txt +++ /dev/null @@ -1,14 +0,0 @@ -Spreadtrum SoC Platforms Device Tree Bindings ----------------------------------------------------- - -SC9836 openphone Board -Required root node properties: - - compatible = "sprd,sc9836-openphone", "sprd,sc9836"; - -SC9860 SoC -Required root node properties: - - compatible = "sprd,sc9860" - -SP9860G 3GFHD Board -Required root node properties: - - compatible = "sprd,sp9860g-1h10", "sprd,sc9860"; diff --git a/Documentation/devicetree/bindings/arm/sprd.yaml b/Documentation/devicetree/bindings/arm/sprd.yaml new file mode 100644 index 000000000000..8540758188d8 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/sprd.yaml @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: GPL-2.0 +# Copyright 2019 Unisoc Inc. +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/sprd.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Unisoc platforms device tree bindings + +maintainers: + - Orson Zhai + - Baolin Wang + - Chunyan Zhang + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - items: + - enum: + - sprd,sc9836-openphone + - const: sprd,sc9836 + - items: + - enum: + - sprd,sp9860g-1h10 + - const: sprd,sc9860 + +... -- 2.20.1