Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2430851rwb; Thu, 29 Sep 2022 10:05:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM593PztMfKQjz51IW+pUag8RYx0SlqICj11MCYGhZYYWYrlqWoNGyxKeBwSbmI9f8RghA0+ X-Received: by 2002:a17:902:b104:b0:179:b7fe:1960 with SMTP id q4-20020a170902b10400b00179b7fe1960mr4433881plr.42.1664471123977; Thu, 29 Sep 2022 10:05:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664471123; cv=none; d=google.com; s=arc-20160816; b=izIxzd1Ti5gWBSaPqxXLNCfCbQ7jZ9echkbYSoQD45pRtCpuoyR1uboWjcC217mio2 uVaM2G2ARwUn57TmVChGSYCUWJtGq55blhKaueBWaYXpht2yCFnKUtY9DpataHVy8r/0 cGgiOk5XYuW8Kypylvc1T6nz2gj0gXiuzsoyOk9PzMhMpzNifye/vYMr9nc4y5I+09YJ NTVkBev7573qBk4sXk4ay2h0buPObtNhknnkNNpoq7Ghfq13sy/p6W+cA0p1xLTNS65A ruq9HugEf4Y+Df5UjWmmd+pDKeK8GyCOXEYM0wHvfHFhIm+k5Wykh7OyqX9IfLT7838i y1GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=4LAsNz8jL1zZ2kJLVm/0pZMkI5re6qTl5qguOofolbs=; b=ZmMwD4mKODzZduuoFIF7VdFPIvoLHJI1Th+HjneA86W8KWGvo89Hv9kMOyQ84tiKDG qJJplhLnwadf6VvITlq8cwR1mVuoK4ZmRFdL2q4U9TSHnDN+BbihSN0i30NNCjAZ+T3H 4vkzArdA1HXYCgYxjfROk4FGcZfWqiUt+FjLR8UujiBjsWJICBe3ZV4kEyuvEnU/nf6w WwlKtHqHzdbRaullaaZDPFUhIn9IaUV9HC7iIDCZT1qd+8VuhMCdYZdfBGBZQ/r7uIf6 TX5lhbj2lfPzHkrRvbQKQkYKkTLkeU8KpFTy6lVp+qVQOmUxkq1gh8XzubMPkwUfGs2P blKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ABbQYnIr; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=6xj+Bub5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w1-20020a63af01000000b0043c05df34c0si235657pge.411.2022.09.29.10.05.10; Thu, 29 Sep 2022 10:05:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ABbQYnIr; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=6xj+Bub5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235815AbiI2Q1n (ORCPT + 99 others); Thu, 29 Sep 2022 12:27:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235310AbiI2Q1I (ORCPT ); Thu, 29 Sep 2022 12:27:08 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E58A13A061 for ; Thu, 29 Sep 2022 09:26:23 -0700 (PDT) Date: Thu, 29 Sep 2022 16:26:18 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1664468781; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4LAsNz8jL1zZ2kJLVm/0pZMkI5re6qTl5qguOofolbs=; b=ABbQYnIrpZbGag80rue9iIvi5E/ef3BT31ZNt6nHr9+bcix7vU38LXYHecucN5xM8K6iNd uEa8gvfvxP+nmMkXu44FHY4Og/mMOJjNeZb6ZLDOf+jzkq0VoOXHLalbPY3OULq6NavvDC ySImlgxhrJ3sy01Ki+WAW2Zbf5/kALqKNGN6kMvQK6DmVwLAZUS9fJkM91OXbcCunORcXZ m8jSc+xnCFK8bkB8wGd6d5U0cAIog6DgP88WVB0Su/iyzTWijEV9JBnDU3/u9SQ3Jqr6io pCERlnnioUkoAdhM5m/WdPdtjRSBrlMjOKFwkRJol1VvrVAEavnV4MYZgMQGkw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1664468781; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=4LAsNz8jL1zZ2kJLVm/0pZMkI5re6qTl5qguOofolbs=; b=6xj+Bub5XUSlAvYD4miq2xRLcrfDXwnAsw9Z2JHGL4m+HYODVymLR6dxCePf/qcXQFxGtJ Jx8mtZFni+xcX1Dg== From: "irqchip-bot for Frank Li" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-kernel@vger.kernel.org Subject: [irqchip: irq/irqchip-next] dt-bindings: irqchip: Describe the IMX MU block as a MSI controller Cc: Rob Herring , Frank Li , Marc Zyngier , tglx@linutronix.de In-Reply-To: <20220922161246.20586-5-Frank.Li@nxp.com> References: <20220922161246.20586-5-Frank.Li@nxp.com> MIME-Version: 1.0 Message-ID: <166446877886.401.15287882873684191652.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the irq/irqchip-next branch of irqchip: Commit-ID: 7c025238b47a55c81c61dfe85a200ab82e6a6ece Gitweb: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms/7c025238b47a55c81c61dfe85a200ab82e6a6ece Author: Frank Li AuthorDate: Thu, 22 Sep 2022 11:12:44 -05:00 Committer: Marc Zyngier CommitterDate: Thu, 29 Sep 2022 17:19:36 +01:00 dt-bindings: irqchip: Describe the IMX MU block as a MSI controller I.MX MU supports generating IRQs by writing to a register. Describe its use as a MSI controller so that other blocks (such as a PCI EP) can use it directly. Reviewed-by: Rob Herring Signed-off-by: Frank Li [maz: commit message] Signed-off-by: Marc Zyngier Link: https://lore.kernel.org/r/20220922161246.20586-5-Frank.Li@nxp.com --- Documentation/devicetree/bindings/interrupt-controller/fsl,mu-msi.yaml | 99 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 99 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/fsl,mu-msi.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/fsl,mu-msi.yaml b/Documentation/devicetree/bindings/interrupt-controller/fsl,mu-msi.yaml new file mode 100644 index 0000000..799ae5c --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/fsl,mu-msi.yaml @@ -0,0 +1,99 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/fsl,mu-msi.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Freescale/NXP i.MX Messaging Unit (MU) work as msi controller + +maintainers: + - Frank Li + +description: | + The Messaging Unit module enables two processors within the SoC to + communicate and coordinate by passing messages (e.g. data, status + and control) through the MU interface. The MU also provides the ability + for one processor (A side) to signal the other processor (B side) using + interrupts. + + Because the MU manages the messaging between processors, the MU uses + different clocks (from each side of the different peripheral buses). + Therefore, the MU must synchronize the accesses from one side to the + other. The MU accomplishes synchronization using two sets of matching + registers (Processor A-side, Processor B-side). + + MU can work as msi interrupt controller to do doorbell + +allOf: + - $ref: /schemas/interrupt-controller/msi-controller.yaml# + +properties: + compatible: + enum: + - fsl,imx6sx-mu-msi + - fsl,imx7ulp-mu-msi + - fsl,imx8ulp-mu-msi + - fsl,imx8ulp-mu-msi-s4 + + reg: + items: + - description: a side register base address + - description: b side register base address + + reg-names: + items: + - const: processor-a-side + - const: processor-b-side + + interrupts: + description: a side interrupt number. + maxItems: 1 + + clocks: + maxItems: 1 + + power-domains: + items: + - description: a side power domain + - description: b side power domain + + power-domain-names: + items: + - const: processor-a-side + - const: processor-b-side + + interrupt-controller: true + + msi-controller: true + + "#msi-cells": + const: 0 + +required: + - compatible + - reg + - interrupts + - interrupt-controller + - msi-controller + - "#msi-cells" + +additionalProperties: false + +examples: + - | + #include + #include + + msi-controller@5d270000 { + compatible = "fsl,imx6sx-mu-msi"; + msi-controller; + #msi-cells = <0>; + interrupt-controller; + reg = <0x5d270000 0x10000>, /* A side */ + <0x5d300000 0x10000>; /* B side */ + reg-names = "processor-a-side", "processor-b-side"; + interrupts = ; + power-domains = <&pd IMX_SC_R_MU_12A>, + <&pd IMX_SC_R_MU_12B>; + power-domain-names = "processor-a-side", "processor-b-side"; + };