From patchwork Thu Aug 8 08:51:34 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11083619 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CC40C1398 for ; Thu, 8 Aug 2019 08:53:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BB197288C5 for ; Thu, 8 Aug 2019 08:53:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AF0B928AB8; Thu, 8 Aug 2019 08:53:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4ED3B288C5 for ; Thu, 8 Aug 2019 08:53:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ws7dNYULZQt5fCUsF9PV32HKzefqV93v1/7fL6AnohI=; b=gtAiP546ZgbaRO eCHU1/bnmajUK/nfVKialfBl3w91VlT/MCk+jVjTFSRr31IODpjj+JdDylWRraALQPWJlefnIftwK P/xvIWuQECcLdVrvJIBld+Vv7pZacdhitYV3L1F7zoheamGHOWL6vii3nc3t3z9KxkVWUkMlEghZ0 iYB8wy36HvQnKYw3qDLFjumSOW+DwexQ5oNs0MIELR3cgYNEdazGaJmhm0pQxcS8qvFolI6VlUXv/ RS0JCdDbe6vtPg4zfQmVxqLOmc7J4Noigq46tUf0/Tl3Nnu3KlKtlW+pSqYp8b1otsTsCCtQJHZJS b7H5k6TCH9AyU+xO3LBw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hveB2-0002FC-PD; Thu, 08 Aug 2019 08:53:40 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hve9C-0000bA-UB for linux-amlogic@lists.infradead.org; Thu, 08 Aug 2019 08:51:53 +0000 Received: by mail-wr1-x443.google.com with SMTP id p17so94050712wrf.11 for ; Thu, 08 Aug 2019 01:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SNze0Tpur6EnNEkpH1ymefqyldmC0tx+C8bm4xzOW5Y=; b=r/B9HSUQyboxTl/I21NjVFi71LiWBz+LaQNF4MWl8DdUEqlKCgqmVn1es/SQscZAo7 TRn28oSJbGx08MY4yXfpFecTzOe0eqahy+T7LHKJv1PblvpX1V1Ot6ndVLUScI6/y7MU ePlGROGsrjg9SKbu6NWX9EeMoc0BReXA1P6ToLA8rohO1e3LKJpNett7LMA9ha16jOOg KxHtdZDXjhF9W/4NUHx5JOWtfCruwEpDQswniYXuofO1uR7GMHVTN+5O+DAvocJWG71x y96VqTc9AhF/TvvEEXigE63nGjDTrZEBDlZTjzpzqzeOD8bVH3VWiSscuBQteTfdInF4 rFQA== 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=SNze0Tpur6EnNEkpH1ymefqyldmC0tx+C8bm4xzOW5Y=; b=DPS55w2e7cIw43Ik7cemQUL0fiBJbRNuqtfkIcb3s4Ni3gDrx4ij6VErVcLZoBdM1s jjCJkC5t2I19ijbkKfO3+StChKzwdBXWVy/kLK/juL9V6h1WXf0HqdhsR6TXq998BWpl FZtBvJgPvC6XCxhNpSICgirjUcJ/qdCe3xJHS5DoDqn6W4Uxv9AbTKS9pBn4nrXKcj2l 9esxkElenjpgxOZLElJxHb7MHZSXjQzH73cbnKca+EBoC17AMEcVmesJ9uY1gdeL35p6 P12WpBvd0mLJexuMKB5kv41DQGPqKSgXZMoG7vlmPGWQPRAf6r+WxUmyqv9rKGskBluZ EBvw== X-Gm-Message-State: APjAAAVXYGh9x3rXLRoTuno8Sg9BEpPhcLbl7gWpK8pafFI3T7Mef8jm exTXVV8ko1fzpEPHGE7MupCtdA== X-Google-Smtp-Source: APXvYqzDxq8WZPuNVYRrwtitMs+tQgz9KYtj2QO4ZQnldx9nmbIi2v3cGUwgheV76FZCBIS44wdQpw== X-Received: by 2002:adf:e84a:: with SMTP id d10mr15071095wrn.316.1565254305115; Thu, 08 Aug 2019 01:51:45 -0700 (PDT) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id i66sm3360031wmi.11.2019.08.08.01.51.44 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 08 Aug 2019 01:51:44 -0700 (PDT) From: Neil Armstrong To: robh+dt@kernel.org Subject: [PATCH 4/9] dt-bindings: reset: amlogic,meson-reset: convert to yaml Date: Thu, 8 Aug 2019 10:51:34 +0200 Message-Id: <20190808085139.21438-5-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190808085139.21438-1-narmstrong@baylibre.com> References: <20190808085139.21438-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190808_015146_971274_754E0599 X-CRM114-Status: GOOD ( 11.20 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Rob Herring , devicetree@vger.kernel.org, Martin Blumenstingl , Neil Armstrong , p.zabel@pengutronix.de, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Now that we have the DT validation in place, let's convert the device tree bindings for the Amlogic Reset controller over to a YAML schemas. Reviewed-by: Rob Herring Acked-by: Philipp Zabel Reviewed-by: Martin Blumenstingl Signed-off-by: Neil Armstrong --- .../bindings/reset/amlogic,meson-reset.txt | 19 ---------- .../bindings/reset/amlogic,meson-reset.yaml | 37 +++++++++++++++++++ 2 files changed, 37 insertions(+), 19 deletions(-) delete mode 100644 Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt create mode 100644 Documentation/devicetree/bindings/reset/amlogic,meson-reset.yaml diff --git a/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt b/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt deleted file mode 100644 index 28ef6c295c76..000000000000 --- a/Documentation/devicetree/bindings/reset/amlogic,meson-reset.txt +++ /dev/null @@ -1,19 +0,0 @@ -Amlogic Meson SoC Reset Controller -======================================= - -Please also refer to reset.txt in this directory for common reset -controller binding usage. - -Required properties: -- compatible: Should be "amlogic,meson8b-reset", "amlogic,meson-gxbb-reset" or - "amlogic,meson-axg-reset". -- reg: should contain the register address base -- #reset-cells: 1, see below - -example: - -reset: reset-controller { - compatible = "amlogic,meson-gxbb-reset"; - reg = <0x0 0x04404 0x0 0x20>; - #reset-cells = <1>; -}; diff --git a/Documentation/devicetree/bindings/reset/amlogic,meson-reset.yaml b/Documentation/devicetree/bindings/reset/amlogic,meson-reset.yaml new file mode 100644 index 000000000000..00917d868d58 --- /dev/null +++ b/Documentation/devicetree/bindings/reset/amlogic,meson-reset.yaml @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2019 BayLibre, SAS +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/reset/amlogic,meson-reset.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Amlogic Meson SoC Reset Controller + +maintainers: + - Neil Armstrong + +properties: + compatible: + enum: + - amlogic,meson8b-reset # Reset Controller on Meson8b and compatible SoCs + - amlogic,meson-gxbb-reset # Reset Controller on GXBB and compatible SoCs + - amlogic,meson-axg-reset # Reset Controller on AXG and compatible SoCs + + reg: + maxItems: 1 + + "#reset-cells": + const: 1 + +required: + - compatible + - reg + - "#reset-cells" + +examples: + - | + reset-controller@c884404 { + compatible = "amlogic,meson-gxbb-reset"; + reg = <0xc884404 0x20>; + #reset-cells = <1>; + };