From patchwork Sat Nov 25 14:27:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 169745 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp1967538vqx; Sat, 25 Nov 2023 06:27:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IF3pIQt+4XHoNUwOp1fze/tiSN0GQLk+c81w7jYUXmg0abzgZqj550KN3/MhpH2VRMCRBGT X-Received: by 2002:a05:6a21:999c:b0:18c:651:67fe with SMTP id ve28-20020a056a21999c00b0018c065167femr5705902pzb.62.1700922448939; Sat, 25 Nov 2023 06:27:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700922448; cv=none; d=google.com; s=arc-20160816; b=KP3qmXxN0Afpqash2uQhVz+JVo3xho+2YfpbjY9ivRHVbuZAjaJHR5Jx3Zrr6OW1qE +ayPHyUo8E01G4y+7ZfxrKy6J5SQ9mifZgU2CuIax+PnRDbaJFSnknTrEtxIdpyFQVmk /sFxIJtDy5cmGbYsMQhXfqyrwka0voq8ptMOQS4ADAj7/TY5VBNGsAVHTVt+fzBo+ztP lMnvyOX8Do3GVZdIimDdEzrde4oal2qXSsnBnOityn4qle3a69m+nn58IK0361Kb3i1l EdpLeaqv2In87Lt9o1D3aY0nGa9nYjFjGlT2aFJIwH7lwjPi6VhYFsAaycS6/pgX9uRX 0rPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=47QyN1mARPQG0EF8lxrYb1VJmjeAmYEb6KvC/0GnTPA=; fh=XIGBWiLt25dtgTMtr+54lKl0gdC1F4NMHKWFU5+p4mg=; b=PblOMW5c/XfjC8CJxe1lsbGbA8Tr6Wa9IY0j0U4SVpyA5pkpvGur2amtenIzEMQH6Y w+jGKQIW47y42ahktVuCmG608FodADAGz4XyBMnAVcC3qBEs6nT95VNmtCnibF+aLotn I7gmPlT6Ynhiav4Hdb+IJiCMs+mWgUXd+YgUd/0vK23X2TVUDHYbJgiET9HiFBLnXYzU CTHtvJOPouAL0CJtLu30HWa3QzoRtjXBaiNEMq3yXqPuRd6hAGPMmScil2WwJgRdEa8L xvD9NaV1ozYyGDsWOKjcwDCpYOrUGShBXKQ3xmNjqZiRa8xrptDD35d+q0fki93dvCyC heOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pBEkKGji; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id t3-20020a63d243000000b005c1b313a127si5765104pgi.660.2023.11.25.06.27.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 06:27:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pBEkKGji; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 3BDB78043EE5; Sat, 25 Nov 2023 06:27:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232180AbjKYO1N (ORCPT + 99 others); Sat, 25 Nov 2023 09:27:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232062AbjKYO1K (ORCPT ); Sat, 25 Nov 2023 09:27:10 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8688DB0 for ; Sat, 25 Nov 2023 06:27:16 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a02d91ab199so387453066b.0 for ; Sat, 25 Nov 2023 06:27:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700922435; x=1701527235; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=47QyN1mARPQG0EF8lxrYb1VJmjeAmYEb6KvC/0GnTPA=; b=pBEkKGjiuwf9VEoHu490nlCZBjOBjDyL04flWWAhWC7bykcoeilUd28oOHCwAkaYKQ OgkSmg7UrsYe11h2n8e3Q6C2tVsOvlUEC+38tD51adMzAU27piFeWaoQZTo+wB1vAjxf JZnYk55hlsK8OQkuR5tKJRpTCWlqpJrb/Kpuy0GScjSn0szJJ93RG+634NuYRt3av1QW CS9KoRVE1n2mifXMB/O/A+T4cRkcGd0w3IlxVwIzi+R10l7I0hyOvF5G/d6Yu2E4XJKv O8quX7//8PmIp4qsDGcnhreANSdYYqZETX6yYN7fDM+vvHlydQoI7wjB46hOC88nE59D cg1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700922435; x=1701527235; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=47QyN1mARPQG0EF8lxrYb1VJmjeAmYEb6KvC/0GnTPA=; b=Sm46+1s51vx/YqIXQNfV+g1J3GABYhR3Wy+WayHHIsvyv11jkg2tnDPFec2dHhTkim 8cAHoj6EYCzulkS71ti1rp4JFWPr2GhLIpD42wcmXY8rpGPILCPkxYDktbWilzZlc2yH IdI0+4+8Q+NSdj2Yx99HTKaitrvuVARdeyOZjrMqnIaNlWQ557yERPesHWd6y4kI8G5F TPcyOGbUFxAUb5yt5C1gkbxpfH640cPBeK9PG19uZ6cV92DWespl5a5fvrJ3TcYCAfCL rDDyBnsrNz5x0a/YF0/P5K+PietBywz/N9uWBu4p4lh3v8vARizWDI3W4Mp+F3Wek2V7 4AjQ== X-Gm-Message-State: AOJu0YxPi70mlt7+LDrJTNZFzEhtoZA0+Q/wzNH8TzEofDmmj72WNbtB ZxcWtjQ6N1Kx/mvIwoSsuiUZjQ== X-Received: by 2002:a17:906:5950:b0:9bf:60f9:9b7c with SMTP id g16-20020a170906595000b009bf60f99b7cmr4361155ejr.62.1700922435080; Sat, 25 Nov 2023 06:27:15 -0800 (PST) Received: from [10.167.154.1] (178235187180.dynamic-4-waw-k-2-3-0.vectranet.pl. [178.235.187.180]) by smtp.gmail.com with ESMTPSA id cb8-20020a170906a44800b009fd4583851esm3569253ejb.178.2023.11.25.06.27.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 06:27:14 -0800 (PST) From: Konrad Dybcio Date: Sat, 25 Nov 2023 15:27:03 +0100 Subject: [PATCH v6 1/2] dt-bindings: interrupt-controller: mpm: Pass MSG RAM slice through phandle MIME-Version: 1.0 Message-Id: <20230328-topic-msgram_mpm-v6-1-682e4855b7e2@linaro.org> References: <20230328-topic-msgram_mpm-v6-0-682e4855b7e2@linaro.org> In-Reply-To: <20230328-topic-msgram_mpm-v6-0-682e4855b7e2@linaro.org> To: Andy Gross , Bjorn Andersson , Thomas Gleixner , Marc Zyngier , Rob Herring , Krzysztof Kozlowski , Shawn Guo , Conor Dooley Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1700922431; l=3285; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=UnAJ2EWA9JR18tWPDeobMem6WcpQTcTZkHcMBc8DA5o=; b=2NrJMi4Wx+FGVOzYyLITnbX5suwHJ1qk4x1+EdNB/0gWA9Tu7x8Maq1745tzQFYNIqkSBMs8m vcFVDVq+keCDu6x+TGKskBrfJ3kSUJoxOxM+B7HB/BZ3m3sBIZRhsJC X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Sat, 25 Nov 2023 06:27:26 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783546458014434540 X-GMAIL-MSGID: 1783546458014434540 Due to the wild nature of the Qualcomm RPM Message RAM, we 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. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Konrad Dybcio --- .../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 509d20c091af..4ce7912d8047 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>; + }; };