Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp946853pxk; Thu, 10 Sep 2020 02:59:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5Y2f+imah/CW8amZBcRKc0w1dOB7fjB7RG/FuIR6Ph9+rDycFRp327yOjm0KPErjxk+hq X-Received: by 2002:a50:fb98:: with SMTP id e24mr8305168edq.130.1599731950429; Thu, 10 Sep 2020 02:59:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599731950; cv=none; d=google.com; s=arc-20160816; b=J3FC7fO1mPPG89qyqqy8UBuxShyuZ+ph6KW5uPJYRgNeTezyrlwWzcfWg9POpGip5F UN4hQHfeX7HjFnaqeERtOpeTGoPEqYK6jlyh4gOAUFYCSYqpe3SL05pTDng4MaIrKB/Q 6RJlJ7h+8g0oAPt9yhLs50pOwVv23Ap1frNjSZzdQp+Sh32kuwaKurv5dSBKo9FRMrFk D9pKoV9FewGg0Z8KzkhVf6zI7OHPoq3rJPmLZfSUGDFLFeXE80eORwTD574bsQSiult3 JPXAFL1bWf8a/JcJzQUY6nzTmZ6jzV6DBemlElMuIAj0ar8QrpTx3ROnbamWMjYTvqFJ BCQA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=JlPu/fma8Wv6beiC8BOJ1wqv04CLGFnXPqAwT28bt3I=; b=jXOj7ZgSFkxNcJ/+47+uDaLI9bPiBneGbaey6/1LKqaouRSlzC7dOZYsrVaZfOia0L vWuQ/5inmP/CFsgT3PHfz8oSkU+LHFqybm38km8A8ahMOp6q8XwAo8hSvkCUUDeoDPJN PynvUe/tJDVweuSLT3lQVICJkfQ94Y8V3612Bs54YkZdIpg+8vgNfb+Er9abivOXuGMJ r+oSocKlbChdCtuZD2Uk/dp+hgp3acbRa1l0tu5s7fpA0dKEw57MKEi3iXqu/Fae/fDQ n/2oW+hX+XEAXSAhBfdo73InlwgGUpJgFVPqrhyRkXuYE68xifolDr2E1S7Ex5hHeHMW Iqrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=z1sBxW4Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v23si3241710edr.208.2020.09.10.02.58.48; Thu, 10 Sep 2020 02:59:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=z1sBxW4Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730260AbgIJJ6A (ORCPT + 99 others); Thu, 10 Sep 2020 05:58:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730609AbgIJJzk (ORCPT ); Thu, 10 Sep 2020 05:55:40 -0400 Received: from mail-pj1-x1044.google.com (mail-pj1-x1044.google.com [IPv6:2607:f8b0:4864:20::1044]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 567AEC06179B for ; Thu, 10 Sep 2020 02:55:39 -0700 (PDT) Received: by mail-pj1-x1044.google.com with SMTP id a9so2772878pjg.1 for ; Thu, 10 Sep 2020 02:55:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=JlPu/fma8Wv6beiC8BOJ1wqv04CLGFnXPqAwT28bt3I=; b=z1sBxW4YmZIfGKvGOaW+5n71uktXLJCGKxaf7EZOkF/QMUsaop7A7jbUPm1eT8eZ9Q SbHkISTOMhMREIR9ItHocN9Rtur8xd+Z5fiqCODgObYKEPsCQnEOYqOTDduWw/+4Oqof jIN9ThdeaKOu1o1jBtTIVK6zzBTJJlsHs/uwt4Jn2mFbzTgdqcW4s5RqAJZK+qaL0NYP YVaWi9cvts4IkHJ7FX5LZ8/HaR7zw59DrhKwrSaRSLCHniHafoFe1VUIU8V4kIoOyNug jQzy7Ce4c+Q1F1wu1R4G4P/RMRd88bDqUmqLWMoYee9P4c2ykJTF1QbgE5ssKYVtziUI OHXg== 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:mime-version :content-transfer-encoding; bh=JlPu/fma8Wv6beiC8BOJ1wqv04CLGFnXPqAwT28bt3I=; b=lTAL5rGs5sNwmcSZpTCOauf3P/2YlMWvTuLU+/ODsCpfnyNBREnd6HfXw7GOWkffsi OjidxyW0zHnOBgVOjs3MVTnwTojEArPxOem06EeTXzjve0bDwY8SmT7gJsKiznQ/9jKC SHffccLgP1fQbO6wWuTzKqmJzLjwFys3poNnygzAnWsRhzJLcq1jSMI9eCxAdA3v+NNi wDUKyIz6n761qW6OxFxMyv1fmGcoYCUqqXsmUh0UXT8dj/9kSdhoi9rsoNE/z/r4Xzfb m5wBe+dGK6aJ/ZFA6AYpu7wCM2+XHi8yj8zfUfINZn3eyiJqSMRgH5Tb17aR3A8FxsAd otcw== X-Gm-Message-State: AOAM530OJM38+wKK7xapg0j86EYl6x8VapSsUSjo0gNi23jsz7+7nAtw Xf6GRtsyj1CkjQsaJ5cOpmbVUw== X-Received: by 2002:a17:902:bb84:: with SMTP id m4mr4626014pls.90.1599731738712; Thu, 10 Sep 2020 02:55:38 -0700 (PDT) Received: from localhost ([122.181.54.133]) by smtp.gmail.com with ESMTPSA id l123sm4443187pgl.24.2020.09.10.02.55.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Sep 2020 02:55:38 -0700 (PDT) From: Viresh Kumar To: Rob Herring , Jassi Brar , Jassi Brar Cc: Viresh Kumar , Vincent Guittot , Arnd Bergmann , Frank Rowand , Bjorn Andersson , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH V3 1/2] dt-bindings: mailbox : arm,mhu: Convert to Json-schema Date: Thu, 10 Sep 2020 15:25:18 +0530 Message-Id: <7f50b23d157a97242c79bd8f2ab649a9272b9b59.1599731645.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the DT binding over to Json-schema. Signed-off-by: Viresh Kumar --- V3: New patch. .../devicetree/bindings/mailbox/arm,mhu.yaml | 86 +++++++++++++++++++ .../devicetree/bindings/mailbox/arm-mhu.txt | 43 ---------- 2 files changed, 86 insertions(+), 43 deletions(-) create mode 100644 Documentation/devicetree/bindings/mailbox/arm,mhu.yaml delete mode 100644 Documentation/devicetree/bindings/mailbox/arm-mhu.txt diff --git a/Documentation/devicetree/bindings/mailbox/arm,mhu.yaml b/Documentation/devicetree/bindings/mailbox/arm,mhu.yaml new file mode 100644 index 000000000000..4e840cedb2e4 --- /dev/null +++ b/Documentation/devicetree/bindings/mailbox/arm,mhu.yaml @@ -0,0 +1,86 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mailbox/arm,mhu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: ARM MHU Mailbox Controller + +maintainers: + - Jassi Brar + +description: | + The ARM's 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. The last channel is specified to + be a 'Secure' resource, hence can't be used by Linux running NS. + +# We need a select here so we don't match all nodes with 'arm,primecell' +select: + properties: + compatible: + contains: + const: arm,mhu + required: + - compatible + +properties: + compatible: + items: + - const: arm,mhu + - const: arm,primecell + + reg: + maxItems: 1 + + interrupts: + description: | + Interrupt information corresponding to each of the 3 links of MHU, + low-priority non-secure, high-priority non-secure, and secure. + maxItems: 3 + + clocks: + maxItems: 1 + + clock-names: + items: + - const: apb_pclk + + '#mbox-cells': + description: Index of the channel. + const: 1 + +required: + - compatible + - reg + - interrupts + - '#mbox-cells' + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + mhuA: mailbox@2b1f0000 { + #mbox-cells = <1>; + compatible = "arm,mhu", "arm,primecell"; + reg = <0 0x2b1f0000 0 0x1000>; + interrupts = <0 36 4>, /* LP-NonSecure */ + <0 35 4>, /* HP-NonSecure */ + <0 37 4>; /* Secure */ + clocks = <&clock 0 2 1>; + clock-names = "apb_pclk"; + }; + + mhu_client_scb: scb@2e000000 { + compatible = "fujitsu,mb86s70-scb-1.0"; + reg = <0 0x2e000000 0 0x4000>; + mboxes = <&mhuA 1>; /* HP-NonSecure */ + }; + }; diff --git a/Documentation/devicetree/bindings/mailbox/arm-mhu.txt b/Documentation/devicetree/bindings/mailbox/arm-mhu.txt deleted file mode 100644 index 4971f03f0b33..000000000000 --- a/Documentation/devicetree/bindings/mailbox/arm-mhu.txt +++ /dev/null @@ -1,43 +0,0 @@ -ARM MHU Mailbox Driver -====================== - -The ARM's 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. -The last channel is specified to be a 'Secure' resource, hence can't be -used by Linux running NS. - -Mailbox Device Node: -==================== - -Required properties: --------------------- -- compatible: Shall be "arm,mhu" & "arm,primecell" -- 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 3 links of MHU. - -Example: --------- - - mhu: mailbox@2b1f0000 { - #mbox-cells = <1>; - compatible = "arm,mhu", "arm,primecell"; - reg = <0 0x2b1f0000 0x1000>; - interrupts = <0 36 4>, /* LP-NonSecure */ - <0 35 4>, /* HP-NonSecure */ - <0 37 4>; /* Secure */ - clocks = <&clock 0 2 1>; - clock-names = "apb_pclk"; - }; - - mhu_client: scb@2e000000 { - compatible = "fujitsu,mb86s70-scb-1.0"; - reg = <0 0x2e000000 0x4000>; - mboxes = <&mhu 1>; /* HP-NonSecure */ - }; -- 2.25.0.rc1.19.g042ed3e048af