From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25349C3A59F for ; Mon, 26 Aug 2019 11:38:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E584321852 for ; Mon, 26 Aug 2019 11:38:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566819490; bh=pPU7Oq6YBXwlfSpisXUSN7O/E9G4jOkzVz+PI2hUrds=; h=References:In-Reply-To:From:Date:Subject:To:Cc:List-ID:From; b=BgUhw7yYnT3okqc/i61xpULug1Iu0Op/pt+s+Rm9hOPadGYDUTSt16eGB2nj3jkV2 ISaaRPKfSc9HnIqKxWmHlOoJi8AXZuCzm++maltnrhhe500AEfo4QVEKtGndqsdqGx 3O1o4PlD/qbVx4R2dM6OLnyp7681gEoQHSmq5exs= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730656AbfHZLiG (ORCPT ); Mon, 26 Aug 2019 07:38:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:55196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727095AbfHZLiF (ORCPT ); Mon, 26 Aug 2019 07:38:05 -0400 Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B2E0521883; Mon, 26 Aug 2019 11:38:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1566819483; bh=pPU7Oq6YBXwlfSpisXUSN7O/E9G4jOkzVz+PI2hUrds=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=YVVkeqCGrG3RnXOr6Gj+t4zHOIB+BlcZI5yyr6HPo3yZJzIqmToqczkqCm9j4iU5m lBHTgRoC7bhbhO9gFftmcJJYi0hmi5yEgD2avu6Q2AMUK5XXsvxVRGd496PE3SUSY+ hh+ONrjTKnrsJmIEt3wP6wh030ihBpf+X0tIGFCI= Received: by mail-qk1-f172.google.com with SMTP id m2so13678915qkd.10; Mon, 26 Aug 2019 04:38:03 -0700 (PDT) X-Gm-Message-State: APjAAAUKTnPpmx2Neb0m5LulH+y9z3rlPwpo9MkBv/fAgbXHvLknWkKn 4lCVwXYB+e9FFfyHwtkMCaHDY16TAuazzoQTbQ== X-Google-Smtp-Source: APXvYqxFdFrhr6QC432iXohr425U9ALeyY0/jK/ZTob9D6kmp205upnoTXJdzQJK7UQEdHEAqtMAyO/qvMbS4UVFyYM= X-Received: by 2002:a37:4941:: with SMTP id w62mr14495060qka.119.1566819482797; Mon, 26 Aug 2019 04:38:02 -0700 (PDT) MIME-Version: 1.0 References: <20190823145356.6341-1-krzk@kernel.org> In-Reply-To: <20190823145356.6341-1-krzk@kernel.org> From: Rob Herring Date: Mon, 26 Aug 2019 06:37:50 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC 1/9] dt-bindings: arm: samsung: Convert Samsung board/soc bindings to json-schema To: Krzysztof Kozlowski Cc: Mark Rutland , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Alessandro Zummo , Alexandre Belloni , =?UTF-8?Q?Pawe=C5=82_Chmiel?= , devicetree@vger.kernel.org, "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , linux-samsung-soc , "linux-kernel@vger.kernel.org" , "open list:IIO SUBSYSTEM AND DRIVERS" , "open list:REAL TIME CLOCK (RTC) SUBSYSTEM" , notify@kernel.org, Arnd Bergmann , Olof Johansson , Marek Szyprowski , Tomasz Figa Content-Type: text/plain; charset="UTF-8" Sender: linux-rtc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rtc@vger.kernel.org On Fri, Aug 23, 2019 at 9:54 AM Krzysztof Kozlowski wrote: > > Convert Samsung S5P and Exynos SoC bindings to DT schema format using > json-schema. This is purely conversion of already documented bindings > so it does not cover all of DTS in the Linux kernel (few S5P/Exynos and > all S3C are missing). > > Signed-off-by: Krzysztof Kozlowski > > --- > > If the schema looks sensible, I will continue on converting other > SoC and driver bindings and later adding missing schemas (S3C > SoCs). Looks pretty good. > --- > .../bindings/arm/samsung/samsung-boards.txt | 83 -------- > .../bindings/arm/samsung/samsung-boards.yaml | 188 ++++++++++++++++++ > 2 files changed, 188 insertions(+), 83 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt > create mode 100644 Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml > diff --git a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml > new file mode 100644 > index 000000000000..e963fd70c436 > --- /dev/null > +++ b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml > @@ -0,0 +1,188 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/arm/samsung/samsung-boards.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Samsung Exynos and S5P SoC based boards > + > +maintainers: > + - Krzysztof Kozlowski > + > +properties: > + $nodename: > + const: '/' > + compatible: > + oneOf: > + - description: S5PV210 based Aries boards > + items: > + - enum: > + - samsung,fascinate4g # Samsung Galaxy S Fascinate 4G (SGH-T959P) > + - samsung,galaxys # Samsung Galaxy S (i9000) > + - const: samsung,aries > + - const: samsung,s5pv210 > + > + - description: Exynos3250 based boards > + items: > + - enum: > + - samsung,monk # Samsung Simband > + - samsung,rinato # Samsung Gear2 > + - const: samsung,exynos3250 > + - const: samsung,exynos3 > + > + - description: Samsung ARTIK5 boards > + items: > + - enum: > + - samsung,artik5-eval # Samsung ARTIK5 eval board > + - const: samsung,artik5 # Samsung ARTIK5 module > + - const: samsung,exynos3250 > + - const: samsung,exynos3 > + > + - description: Exynos4210 based boards > + items: > + - enum: > + - insignal,origen # Insignal Origen > + - samsung,smdkv310 # Samsung SMDKV310 eval > + - samsung,trats # Samsung Tizen Reference > + - samsung,universal_c210 # Samsung C210 > + - const: samsung,exynos4210 > + - const: samsung,exynos4 > + > + - description: Exynos4412 based boards > + items: > + - enum: > + - friendlyarm,tiny4412 # FriendlyARM TINY4412 > + - hardkernel,odroid-u3 # Hardkernel Odroid U3 > + - hardkernel,odroid-x # Hardkernel Odroid X > + - hardkernel,odroid-x2 # Hardkernel Odroid X2 > + - insignal,origen4412 # Insignal Origen > + - samsung,smdk4412 # Samsung SMDK4412 eval > + - topeet,itop4412-elite # TOPEET Elite base > + - const: samsung,exynos4412 > + - const: samsung,exynos4 > + > + - description: Samsung Midas family boards > + items: > + - enum: > + - samsung,i9300 # Samsung GT-I9300 > + - samsung,i9305 # Samsung GT-I9305 > + - samsung,n710x # Samsung GT-N7100/GT-N7105 > + - samsung,trats2 # Samsung Tizen Reference > + - const: samsung,midas > + - const: samsung,exynos4412 > + - const: samsung,exynos4 > + > + - description: Exynos5250 based boards > + items: > + - enum: > + - google,snow-rev5 # Google Snow Rev 5+ > + - google,spring # Google Spring > + - insignal,arndale # Insignal Arndale > + - samsung,smdk5250 # Samsung SMDK5250 eval > + - const: samsung,exynos5250 > + - const: samsung,exynos5 > + > + - description: Google Snow Boards (Rev 4+) > + items: > + - enum: > + - google,snow-rev4 const here as I wouldn't expect this list to grow. > + - const: google,snow > + - const: samsung,exynos5250 > + - const: samsung,exynos5 > + > + - description: Exynos5260 based boards > + items: > + - enum: > + - samsung,xyref5260 # Samsung Xyref5260 eval > + - const: samsung,exynos5260 > + - const: samsung,exynos5 > + > + - description: Exynos5410 based boards > + items: > + - enum: > + - hardkernel,odroid-xu # Hardkernel Odroid XU > + - samsung,smdk5410 # Samsung SMDK5410 eval > + - const: samsung,exynos5410 > + - const: samsung,exynos5 > + > + - description: Exynos5420 based boards > + items: > + - enum: > + - insignal,arndale-octa # Insignal Arndale Octa > + - samsung,smdk5420 # Samsung SMDK5420 eval > + - const: samsung,exynos5420 > + - const: samsung,exynos5 > + > + - description: Google Peach Pit Boards (Rev 6+) > + items: > + - enum: > + - google,pit-rev16 const > + - const: google,pit-rev15 > + - const: google,pit-rev14 > + - const: google,pit-rev13 > + - const: google,pit-rev12 > + - const: google,pit-rev11 > + - const: google,pit-rev10 > + - const: google,pit-rev9 > + - const: google,pit-rev8 > + - const: google,pit-rev7 > + - const: google,pit-rev6 > + - const: google,pit > + - const: google,peach > + - const: samsung,exynos5420 > + - const: samsung,exynos5 > + > + - description: Exynos5800 based boards > + items: > + - enum: > + - hardkernel,odroid-xu3 # Hardkernel Odroid XU3 > + - hardkernel,odroid-xu3-lite # Hardkernel Odroid XU3 Lite > + - hardkernel,odroid-xu4 # Hardkernel Odroid XU4 > + - hardkernel,odroid-hc1 # Hardkernel Odroid HC1 > + - const: samsung,exynos5800 > + - const: samsung,exynos5 > + > + - description: Google Peach Pi Boards (Rev 10+) > + items: > + - enum: > + - google,pi-rev16 > + - const: google,pi-rev15 > + - const: google,pi-rev14 > + - const: google,pi-rev13 > + - const: google,pi-rev12 > + - const: google,pi-rev11 > + - const: google,pi-rev10 > + - const: google,pi > + - const: google,peach > + - const: samsung,exynos5800 > + - const: samsung,exynos5 > + > + - description: Exynos5433 based boards > + items: > + - enum: > + - samsung,tm2 # Samsung TM2 > + - samsung,tm2e # Samsung TM2E > + - const: samsung,exynos5433 > + > + firmware: This should be moved to its own file. > + type: object > + description: > + node specifying presence and type of secure firmware > + properties: > + compatible: > + enum: > + - samsung,secure-firmware > + reg: > + description: > + address of non-secure SYSRAM used for communication with firmware > + maxItems: 1 > + > +required: > + - compatible > + > +examples: > + - | > + firmware@203f000 { > + compatible = "samsung,secure-firmware"; > + reg = <0x0203F000 0x1000>; > + }; > -- > 2.17.1 >