From patchwork Thu Aug 8 08:51:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 11083613 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 4A5E51398 for ; Thu, 8 Aug 2019 08:53:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A189289BC for ; Thu, 8 Aug 2019 08:53:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2DDBE28ABA; Thu, 8 Aug 2019 08:53:21 +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 C24A528AB8 for ; Thu, 8 Aug 2019 08:53:20 +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=ADIq5aGMbS46EHSayVZ1zb8EWYIfnWLAThvOLfvxRcs=; b=rzlasdaH2yva19 3OPYd4AYVYisH1sFMV2/lJDLiUJe33l1Yu7PHAdS1Did84DO1iMp5LPZg7MgMjSZkPzNiagDQEm2g T6Wv6c1yn1gESKgMKXiochLb84kuM5y0QrTPr8iW2d7eYcJi3jewVi5aR0WwyBoSgOB6Q6jN6GSCi 6qUfdcSwm+GxKbjZAvKJsvf2tm1D0vTfu8BBzP1adxX/iXF+FPghNrLxS3qppWncmSwzwl8CayALR mJipYG+uN24pMAGBcrEE/Gby6lXdsZ5VZg8uYf5ATuOdHopK/DUAsh+PGamXvy5o0mKaDoKayYPJB 4fjwIMpozQANwSDnSEcg==; 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 1hveAi-0001xQ-DW; Thu, 08 Aug 2019 08:53:20 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hve9B-0000Zn-Cs for linux-amlogic@lists.infradead.org; Thu, 08 Aug 2019 08:51:50 +0000 Received: by mail-wm1-x343.google.com with SMTP id z23so1578654wmf.2 for ; Thu, 08 Aug 2019 01:51:44 -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=iW8tzeW7K0TPMYVtNZdzd/BRQ9VMD3jctm1FJGUZeSM=; b=U+1rSrOSBAVwD2xV5Wqi+JubfpOPj7BbfwOVl91eeioasasSohXj0vW+ehDEK6KX3g Apdr+8S9ShNA595Q/B7krCYRpiZ+SANfFtT+iy1Wzx2/Dqy3MHVIse3xg+DUXzSINhx9 ZsLt6go7c7nyDTUViZqBCWaMQzo9gKUsDIi7wrS2UjoQMupj0pcBJf+8cKReAx0f2S9G m4ChFZYE74tC5/1A4e632qACSUVjcYfwrjj6Qm5Qvx/yx82YGYhhbDszrho/2fZJewRs 43mOEHH8iPUniFsBMAGjoUdE85OvQ4HIYzMpCHriLN6goCvgTxhFMPZdQLPXtu4XcNhH Do9g== 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=iW8tzeW7K0TPMYVtNZdzd/BRQ9VMD3jctm1FJGUZeSM=; b=aeYjpiwrOsbgbOiidSRHsyW/WfWSAx1kFa0ejaSqsOl+dymjlyDPhVEdeHU7AniGax Obcb8gDyw5BmoJO7l//q07HNGdmjFfwB12928uvYJtj95iaJagN34oMsWY/XJlEri03+ Rr/3auS4aMfDLvpyDokQHbX/bUyxlH/GJPsEoF92MvdMafsTfAdirqB2PkGC+BgJFGtW ieXhUnp62RPLB/1E4Rii6SW8sbg0O1PugDkrGXNy1HB/9zI9iALKPux6YG8NSZjk+GPl BGPRqg2eAvzUSXSV7zJI6IWmK+wbdfejSPL3I9OdptXYBsprH/nhhVHGJ/xRrMZrxhAk XUeA== X-Gm-Message-State: APjAAAUESHwnAh1pfF+c4uJUa1DXbgXbWQ0kKYY1T9h0C293Xz1TMp72 CHFTEyzyQXwcNgmhWCfsctrelg== X-Google-Smtp-Source: APXvYqxipG2kq0TWG7IP2yB2Dl9cz+yOGXnxw5hiCz4BM9W6aT6q0uSUV3H23Nad3CaZixRu55Cbug== X-Received: by 2002:a1c:f914:: with SMTP id x20mr3170113wmh.142.1565254302735; Thu, 08 Aug 2019 01:51:42 -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.42 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Thu, 08 Aug 2019 01:51:42 -0700 (PDT) From: Neil Armstrong To: robh+dt@kernel.org Subject: [PATCH 1/9] dt-bindings: mailbox: meson-mhu: convert to yaml Date: Thu, 8 Aug 2019 10:51:31 +0200 Message-Id: <20190808085139.21438-2-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_015145_461482_A77D047C X-CRM114-Status: GOOD ( 13.09 ) 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: devicetree@vger.kernel.org, Rob Herring , jassisinghbrar@gmail.com, Neil Armstrong , 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 MHU controller over to a YAML schemas. Reviewed-by: Rob Herring Signed-off-by: Neil Armstrong --- .../mailbox/amlogic,meson-gxbb-mhu.yaml | 52 +++++++++++++++++++ .../devicetree/bindings/mailbox/meson-mhu.txt | 34 ------------ 2 files changed, 52 insertions(+), 34 deletions(-) create mode 100644 Documentation/devicetree/bindings/mailbox/amlogic,meson-gxbb-mhu.yaml delete mode 100644 Documentation/devicetree/bindings/mailbox/meson-mhu.txt diff --git a/Documentation/devicetree/bindings/mailbox/amlogic,meson-gxbb-mhu.yaml b/Documentation/devicetree/bindings/mailbox/amlogic,meson-gxbb-mhu.yaml new file mode 100644 index 000000000000..319280563648 --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/amlogic,meson-gxbb-mhu.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2019 BayLibre, SAS +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/mailbox/amlogic,meson-gxbb-mhu.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Amlogic Meson Message-Handling-Unit Controller + +maintainers: + - Neil Armstrong + +description: | + The Amlogic's Meson SoCs Message-Handling-Unit (MHU) is a mailbox controller + that has 3 independent channels/links to communicate with remote processor(s). + MHU links are hardwired on a platform. A link raises interrupt for any + received data. However, there is no specified way of knowing if the sent + data has been read by the remote. This driver assumes the sender polls + STAT register and the remote clears it after having read the data. + +properties: + compatible: + enum: + - amlogic,meson-gxbb-mhu + + reg: + maxItems: 1 + + interrupts: + minItems: 3 + description: + Contains the interrupt information corresponding to each of the 3 links + of MHU. + + "#mbox-cells": + const: 1 + +required: + - compatible + - reg + - interrupts + - "#mbox-cells" + +examples: + - | + mailbox@c883c404 { + compatible = "amlogic,meson-gxbb-mhu"; + reg = <0xc883c404 0x4c>; + interrupts = <208>, <209>, <210>; + #mbox-cells = <1>; + }; + diff --git a/Documentation/devicetree/bindings/mailbox/meson-mhu.txt b/Documentation/devicetree/bindings/mailbox/meson-mhu.txt deleted file mode 100644 index a530310772b9..000000000000 --- a/Documentation/devicetree/bindings/mailbox/meson-mhu.txt +++ /dev/null @@ -1,34 +0,0 @@ -Amlogic Meson MHU Mailbox Driver -================================ - -The Amlogic's Meson SoCs Message-Handling-Unit (MHU) is a mailbox controller -that has 3 independent channels/links to communicate with remote processor(s). -MHU links are hardwired on a platform. A link raises interrupt for any -received data. However, there is no specified way of knowing if the sent -data has been read by the remote. This driver assumes the sender polls -STAT register and the remote clears it after having read the data. - -Mailbox Device Node: -==================== - -Required properties: --------------------- -- compatible: Shall be "amlogic,meson-gxbb-mhu" -- reg: Contains the mailbox register address range (base - address and length) -- #mbox-cells Shall be 1 - the index of the channel needed. -- interrupts: Contains the interrupt information corresponding to - each of the 2 links of MHU. - -Example: --------- - - mailbox: mailbox@c883c404 { - #mbox-cells = <1>; - compatible = "amlogic,meson-gxbb-mhu"; - reg = <0 0xc883c404 0 0x4c>; - interrupts = <0 208 IRQ_TYPE_EDGE_RISING>, - <0 209 IRQ_TYPE_EDGE_RISING>, - <0 210 IRQ_TYPE_EDGE_RISING>; - #mbox-cells = <1>; - };