Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp3573454pxm; Tue, 1 Mar 2022 00:42:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxLFpUox9HxJfot33qR7d/IdOFw71RMn6gDjBJUl70bcboTQt88SKuIHnw3b83JY1mnU+fv X-Received: by 2002:a05:6a00:1503:b0:4e1:d277:cca with SMTP id q3-20020a056a00150300b004e1d2770ccamr26144900pfu.4.1646124133136; Tue, 01 Mar 2022 00:42:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646124133; cv=none; d=google.com; s=arc-20160816; b=mNN9li93u9+DqaHA4qpMp5kGsoCbnbtoU329tRF0y6HW/KoIlOvjuRxXEcv75zwBn2 F1IzufyMAtpV6UQw7gj/I2djFDX77FNfyMro0FxKm4f4eXJLGbC8BwHZYMvsMrBtk0R4 m7uA0a+tDBm1HyUi1HMCEeGD7ZO0byAAXw3qnf8FQD7iSf0U4HiEqXBZtt2FEwAm+Y4B 4x3Oa5m1HweA65LC4Srl4mPrZYS/HXa829D7YQKxVQmj33Jkmym0+ukhFE0ye2McFrkc ybjWJzNXj7HtxIjLHI5cx8GUyG8baR9lzWDQjopw8zoEW5mKRdkOfgiXzRxYMslF66ma N+dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Gpyd4vP7EgbsF/QazldQl0vAIMM6wCSjCpTQL1+8JT0=; b=XPZ2YtWg4R8POqH0EcupL34cfLjd1Bz/4fA7QOaIrf2baX3qHTyB2OdjNSS9OiYUzv b949USjuG9lxNQi31lllZLfdmVx1L3Y9uBdfQ/v+pLWzhAuQ2pLo7vEdF6zpSCUKksKN ijeXdcgIBgnWwhT5ux4bHwDz0nI55RMYt7hpudJiIPsbq83pLHhy7I0BC4U8GM+SvwY7 NU0dVDELYTP5ZjsgDfhkJp+UXaHOemHqEY8ETfWoLU5BoKYGkGBRtlnwvbtdocFTex5R j8cVjI/EBlSyNyTrTS/cPgqJlt/Q2dKHfLgSK9zIVuVhZXkCSPLXB0k5wGaH5CeTatK9 y9SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rI1XC0g6; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z2-20020a630a42000000b0037628b82df3si12638610pgk.108.2022.03.01.00.41.58; Tue, 01 Mar 2022 00:42:13 -0800 (PST) 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=@linaro.org header.s=google header.b=rI1XC0g6; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232563AbiCAGZK (ORCPT + 99 others); Tue, 1 Mar 2022 01:25:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232476AbiCAGZI (ORCPT ); Tue, 1 Mar 2022 01:25:08 -0500 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0712D6F4A7 for ; Mon, 28 Feb 2022 22:24:28 -0800 (PST) Received: by mail-pl1-x62f.google.com with SMTP id bd1so12636292plb.13 for ; Mon, 28 Feb 2022 22:24:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Gpyd4vP7EgbsF/QazldQl0vAIMM6wCSjCpTQL1+8JT0=; b=rI1XC0g6XEgErEeD+I/d7FDZTzVQmN/+ECZD5wQb9XX9H6V8O+k+VO1Eg1CKjbDkhY g+y35Vcit0PSlf5pt2/KDlY2XKmoKdKFfQqk2D8nFEDmvM6TJK7DOs+T402SkRk6Gzx0 5R0j0Z0I1/oAlxjL0bW9UkQUNJFD04nuE8GSP6MGcGTMT3PmG0535eaegRz7rAa51j7j WkTbO/8GVzzrwMrG/pimNIY+b3DbsSpfvVTAhZBOja42SQAwd3Y59VrHwFqdwYgW8LgG hKGqDtsKqHoi7H7UUxrXBY4eZb9a9TsQxDFUJ6TaikJbgmCfu/6mfpDU9n1ISgL41hKq Xpcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Gpyd4vP7EgbsF/QazldQl0vAIMM6wCSjCpTQL1+8JT0=; b=Hec6zC/PySZ5neEplFfimxy8f67I+wiALDQtVHAwmCXRK4v03sD91tQMSMfAFNS4tn xadW42ZDZ9wNSJwIkBf6ESF04JqPMEHgTzpjzi35HUCFlK80W+qo7PRYBeZo4A7/RKa9 q9Jf70kcagLuf2wxorKnHEofLLrDPOtcWLcHhMIpNqHqsGfIJ0mJvL1XA/EDh/WOz/RO +bB+RuhClGpEiAEZNyfgj8OcKvOqTK5PqFSYH7Z0RgRZLVQi1D6VSEXzuihcoUj9L+SS wGPag/nUl+pDBGxNb5W5Z7Vw0FugnlYEh+ODZbS4+fStyd52HSUE8hniQibpqSK10pry FlHQ== X-Gm-Message-State: AOAM530b8tJ0F254/C/wusC+7MbuglmkxfXlTPp2WW8I6uM7EW80xhiE M9pAfTb5/KRkdpTsv5PsK5rsAA== X-Received: by 2002:a17:902:8d93:b0:14d:d2e9:37f with SMTP id v19-20020a1709028d9300b0014dd2e9037fmr23664533plo.83.1646115867524; Mon, 28 Feb 2022 22:24:27 -0800 (PST) Received: from localhost.localdomain (80.251.214.228.16clouds.com. [80.251.214.228]) by smtp.gmail.com with ESMTPSA id q22-20020a056a00085600b004f397d1f3b5sm16461364pfk.171.2022.02.28.22.24.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Feb 2022 22:24:27 -0800 (PST) From: Shawn Guo To: Marc Zyngier Cc: Thomas Gleixner , Maulik Shah , Bjorn Andersson , Sudeep Holla , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Shawn Guo , Rob Herring Subject: [PATCH v7 1/2] dt-bindings: interrupt-controller: Add Qualcomm MPM support Date: Tue, 1 Mar 2022 14:24:13 +0800 Message-Id: <20220301062414.2987591-2-shawn.guo@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220301062414.2987591-1-shawn.guo@linaro.org> References: <20220301062414.2987591-1-shawn.guo@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 It adds DT binding support for Qualcomm MPM interrupt controller. Reviewed-by: Rob Herring Signed-off-by: Shawn Guo --- .../interrupt-controller/qcom,mpm.yaml | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 Documentation/devicetree/bindings/interrupt-controller/qcom,mpm.yaml diff --git a/Documentation/devicetree/bindings/interrupt-controller/qcom,mpm.yaml b/Documentation/devicetree/bindings/interrupt-controller/qcom,mpm.yaml new file mode 100644 index 000000000000..509d20c091af --- /dev/null +++ b/Documentation/devicetree/bindings/interrupt-controller/qcom,mpm.yaml @@ -0,0 +1,96 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/interrupt-controller/qcom,mpm.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcom MPM Interrupt Controller + +maintainers: + - Shawn Guo + +description: + Qualcomm Technologies Inc. SoCs based on the RPM architecture have a + MSM Power Manager (MPM) that is in always-on domain. In addition to managing + resources during sleep, the hardware also has an interrupt controller that + monitors the interrupts when the system is asleep, wakes up the APSS when + one of these interrupts occur and replays it to GIC interrupt controller + after GIC becomes operational. + +allOf: + - $ref: /schemas/interrupt-controller.yaml# + +properties: + compatible: + items: + - const: qcom,mpm + + reg: + maxItems: 1 + description: + Specifies the base address and size of vMPM registers in RPM MSG RAM. + + interrupts: + maxItems: 1 + description: + Specify the IRQ used by RPM to wakeup APSS. + + mboxes: + maxItems: 1 + description: + Specify the mailbox used to notify RPM for writing vMPM registers. + + interrupt-controller: true + + '#interrupt-cells': + const: 2 + description: + The first cell is the MPM pin number for the interrupt, and the second + is the trigger type. + + qcom,mpm-pin-count: + description: + Specify the total MPM pin count that a SoC supports. + $ref: /schemas/types.yaml#/definitions/uint32 + + qcom,mpm-pin-map: + description: + A set of MPM pin numbers and the corresponding GIC SPIs. + $ref: /schemas/types.yaml#/definitions/uint32-matrix + items: + items: + - description: MPM pin number + - description: GIC SPI number for the MPM pin + +required: + - compatible + - reg + - interrupts + - mboxes + - interrupt-controller + - '#interrupt-cells' + - qcom,mpm-pin-count + - qcom,mpm-pin-map + +additionalProperties: false + +examples: + - | + #include + mpm: interrupt-controller@45f01b8 { + compatible = "qcom,mpm"; + interrupts = ; + reg = <0x45f01b8 0x1000>; + mboxes = <&apcs_glb 1>; + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&intc>; + qcom,mpm-pin-count = <96>; + qcom,mpm-pin-map = <2 275>, + <5 296>, + <12 422>, + <24 79>, + <86 183>, + <90 260>, + <91 260>; + }; -- 2.25.1