From patchwork Tue Dec 12 14:44:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 177383 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp7769124vqy; Tue, 12 Dec 2023 06:44:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IEdEjEi8+GJJtveCCwcD55ltYJFnU7HX/eIm4HOFn52Ghigeeg3iMcN0iYrFbYUJWkNUH5W X-Received: by 2002:a17:903:944:b0:1d3:141:caef with SMTP id ma4-20020a170903094400b001d30141caefmr3032199plb.114.1702392272398; Tue, 12 Dec 2023 06:44:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702392272; cv=none; d=google.com; s=arc-20160816; b=Cl6yFPk6qJ+Ar/5CMiIB/7x6N025+vyLg01eeroh3r5uVenr7X+I8FpJYnWv4B9dAM M0Pvq91LYNCicVCfR+N3o+zGs11U1td3x4RIbaJHwhYL3le/F/5EzE/Pfg2GVTfcuRsB +VpNPOdDV+u1fJwwwUlOiSMwdAbmzKpchGAE+V3PlhEImcLdVy9naf7maP3U5itc8xRM ssxStC9rxZBactJIh2m1YZqF1w48/0xRmQcIHZ47nEry4OHHAd69Yclma1RIFXmhvphO hqSj1i3PzXxRaL1AfzngJpdJ2E73FXVy6ae0YcEpZWEVfPPrqby0cqObGAGSr7EpdI6P Ozrg== 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=nHP9VbGdP6LKXsJOH3dUHotvDSItCgzJc06/GBceHUk=; fh=SSHySwKkD3QQQ7U5wedVmxmxatCbm7KVvRvlqUDAylI=; b=DD5h6icfndExztbkVMfmALKU1W0pThQF/yP862DTrOOocVuRPi3Ar5Jh+qC0AzUa9R 4sEjaVn5I4yR8d7T+uDA+PaDDqn9DpZt+LngzrNDFAcA7IH8ul820RjWef1JcrHFxopo UgvuxFfD+H6RyFJV0YAs4qt0GSvkRsMA0CMaeQ6YPPskuPbQuUsqYOUFw1ZOl/Ct+dtA Fgs7qhIROMDuDj7PxCL46PEgopVZSY0aTk8zvTMpvdZX27bSuypDrOEdX2GLVuG9l1JX onhnbqMcF3biuLPv+AaVq8ze+sjftMTfv30NHYDZBKhUu0XMYL57r+EwAyQZ8Y3pB634 3JRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="M/h+ullw"; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id o12-20020a170902bccc00b001cc692bf120si7749686pls.61.2023.12.12.06.44.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 06:44:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="M/h+ullw"; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D695D80ACB53; Tue, 12 Dec 2023 06:44:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376907AbjLLOoU (ORCPT + 99 others); Tue, 12 Dec 2023 09:44:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376894AbjLLOoQ (ORCPT ); Tue, 12 Dec 2023 09:44:16 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D8B4F4; Tue, 12 Dec 2023 06:44:22 -0800 (PST) Date: Tue, 12 Dec 2023 14:44:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1702392261; 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=nHP9VbGdP6LKXsJOH3dUHotvDSItCgzJc06/GBceHUk=; b=M/h+ullwRQDdGh5TjuYdSOSFv8cWaZsmqczYCwbTeTWMUNVp7MKneRHS9KWfsz3YIc8ob+ 3C+zcF/Zh5hjnmtBikpIh9Mqc/YFnFsyg2pVJ/VFag8HmGmVhJ6U/+skKLWMzyQud1MZe1 QHldpOG1+FSeZSyemjzMOltDpT7Q1boX7C8VbFzY3+iwvZxc+En82b5ruuyhJm0jk1rj6P sCG1aa10GGF+9Nzo9zGjixOTxO7dzqdsDvp2ydP4AuHAD9t4qMVX9h8HM0tUnDPiu9QO6h ebc2KFrPAWkrtzkOADSF0aXdErLe5HP/Naj6nAAyEMYhoVlJ0M1JeppDM/7jxA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1702392261; 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=nHP9VbGdP6LKXsJOH3dUHotvDSItCgzJc06/GBceHUk=; b=tzD9whmq6qgy7caNp71gHR84rK6x6vEdwwFayRD6wtEFA0250QOf0XLmw87QE7W3v2t1+1 WSiKelcWEureDuCQ== From: "tip-bot2 for Konrad Dybcio" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/core] dt-bindings: interrupt-controller: mpm: Pass MSG RAM slice through phandle Cc: Konrad Dybcio , Thomas Gleixner , Krzysztof Kozlowski , x86@kernel.org, linux-kernel@vger.kernel.org, maz@kernel.org In-Reply-To: <20230328-topic-msgram_mpm-v7-1-6ee2bfeaac2c@linaro.org> References: <20230328-topic-msgram_mpm-v7-1-6ee2bfeaac2c@linaro.org> MIME-Version: 1.0 Message-ID: <170239226058.398.9150462803015255114.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails 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,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 12 Dec 2023 06:44:31 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783733048211999288 X-GMAIL-MSGID: 1785087679311843307 The following commit has been merged into the irq/core branch of tip: Commit-ID: ca596295f4c9ec803d3379635ad175897993f121 Gitweb: https://git.kernel.org/tip/ca596295f4c9ec803d3379635ad175897993f121 Author: Konrad Dybcio AuthorDate: Mon, 27 Nov 2023 16:52:12 +01:00 Committer: Thomas Gleixner CommitterDate: Tue, 12 Dec 2023 15:40:42 +01:00 dt-bindings: interrupt-controller: mpm: Pass MSG RAM slice through phandle Due to the wild nature of the Qualcomm RPM Message RAM, the kernel can't really use 'reg' to point to the MPM's slice of Message RAM without cutting into an already-defined RPM MSG RAM node used for GLINK and SMEM. Document passing the register space as a slice of SRAM through the qcom,rpm-msg-ram property. This also makes 'reg' deprecated. Signed-off-by: Konrad Dybcio Signed-off-by: Thomas Gleixner Reviewed-by: Krzysztof Kozlowski Link: https://lore.kernel.org/r/20230328-topic-msgram_mpm-v7-1-6ee2bfeaac2c@linaro.org --- Documentation/devicetree/bindings/interrupt-controller/qcom,mpm.yaml | 52 +++++++++++++++++++++++++++++++++++----------------- 1 file changed, 35 insertions(+), 17 deletions(-) diff --git a/Documentation/devicetree/bindings/interrupt-controller/qcom,mpm.yaml b/Documentation/devicetree/bindings/interrupt-controller/qcom,mpm.yaml index 509d20c..4ce7912 100644 --- a/Documentation/devicetree/bindings/interrupt-controller/qcom,mpm.yaml +++ b/Documentation/devicetree/bindings/interrupt-controller/qcom,mpm.yaml @@ -29,6 +29,12 @@ properties: maxItems: 1 description: Specifies the base address and size of vMPM registers in RPM MSG RAM. + deprecated: true + + qcom,rpm-msg-ram: + $ref: /schemas/types.yaml#/definitions/phandle + description: + Phandle to the APSS MPM slice of the RPM Message RAM interrupts: maxItems: 1 @@ -64,33 +70,45 @@ properties: required: - compatible - - reg - interrupts - mboxes - interrupt-controller - '#interrupt-cells' - qcom,mpm-pin-count - qcom,mpm-pin-map + - qcom,rpm-msg-ram 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>; + + remoteproc-rpm { + compatible = "qcom,msm8998-rpm-proc", "qcom,rpm-proc"; + + glink-edge { + compatible = "qcom,glink-rpm"; + + interrupts = ; + qcom,rpm-msg-ram = <&rpm_msg_ram>; + mboxes = <&apcs_glb 0>; + }; + + mpm: interrupt-controller { + compatible = "qcom,mpm"; + qcom,rpm-msg-ram = <&apss_mpm>; + interrupts = ; + 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>, + <91 260>; + }; };