Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3169417rdh; Mon, 27 Nov 2023 07:52:56 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgKIrj3sF5R1fK89mPbgJwKF91zPyQA17TYYTu/GueRbAQ/9FvxhMm5qc7ugTI7UF2SJZn X-Received: by 2002:a17:90a:17e3:b0:285:6233:112d with SMTP id q90-20020a17090a17e300b002856233112dmr20078416pja.22.1701100375621; Mon, 27 Nov 2023 07:52:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701100375; cv=none; d=google.com; s=arc-20160816; b=HY8zX8YHMM7Pnthn04yhEYjPg7ssTMqy9ou4uWDTonC0DSx7ZK11twceewz/awraO5 K3mAP1mPiQfYGTJGSI9kxbZrZIM57zU3aSBCxhOJI1Yr+NmsAVlTIzIMmmoKnryvByF7 tKHPmY0g1sWsFaIDELdF8BMGKiGqbBMU+aTcftUasrQEpcLXZy0HtapvHMGU5DGMAg2W vUrnneiX901iq+HThsCXI2MDfuoskKbgZNC8qQsNm6ocoAuO34SJpK03YYquXdncz7i2 soynZctLB8IhKN982qSbx90ESU5AfDoSU0Uiiv8vE9/Fv+EpjLPyp76ijwORv9A1wBcm hCyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=+Qt5tTZHEEzddg6Ssj7r37p+bACPrFj0HogZyj70Blc=; fh=C8QDRWY6fNUq9pmMDZU3ytu0UoftitUn4VylHU3TBz0=; b=oCncU6VFcUqLg8uw4Sw/UFjWNzQo9yz1QNyfOSs52KhyupVfLeGUTbZ8yKZYW1ADQK OuFp9bWCZQDQ65s+mGyaS2CQh1amIczIF5U0AK8TO3H2CrbS7u8moECXGrc3kdnttydP ++nvoPG4P7Se0AH4Pk+gjK6tpFH4Eevq6oScp4przAddMDdeM8bldhoViSizbk8RsyNU 8hLW4iqjqm2uHr6D5oIKIBwjiB9wF+X0ldrcyMjPJk/TbdKI0zjBRxf1xzWW0Eobf+Z5 hynT9QdendIk6wqn3hWX0enS9EldeSd2lAcjZBGHE5xP6CQyTwA8ih0IIEIQZMQsUvYw XDpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C0vWTb6r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id u11-20020a17090ae00b00b00280414d7a6bsi9865050pjy.190.2023.11.27.07.52.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 07:52:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=C0vWTb6r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 08CAE8058039; Mon, 27 Nov 2023 07:52:54 -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 S234099AbjK0Pwj (ORCPT + 99 others); Mon, 27 Nov 2023 10:52:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234149AbjK0PwZ (ORCPT ); Mon, 27 Nov 2023 10:52:25 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6384ED64 for ; Mon, 27 Nov 2023 07:52:31 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-50abbb23122so5720522e87.3 for ; Mon, 27 Nov 2023 07:52:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701100349; x=1701705149; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=+Qt5tTZHEEzddg6Ssj7r37p+bACPrFj0HogZyj70Blc=; b=C0vWTb6rGN+nwhvM8X4GZOdTxM9kSuWMPjJTrZVyrKmCPAFRsZcMA/F/CohWqyP2xo TEPDBH+73DMgyqJH6FDf13q+jy0XVDiO6xs+Jo+29jY2r7TmftqsCX6alyxk7VpbiaCD EXcEM8rD4ItlHYGGZzrZy74xyfXTsFhskM3zzHV9JOmQV14mr/qQQqojXOLJXG+vTLK9 3uX0EY0TCUbUC4VOIBruNd230n0LgU68m6GyR08N2yq/T180L7cpTVPIObogKQOuoUbS SoUd2NMwT6x4gOEp74k7zQg7zpHyhFO3hJZKx7bgiTpLNtFepIecjODSHFMAs03igIVD NpQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701100349; x=1701705149; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=+Qt5tTZHEEzddg6Ssj7r37p+bACPrFj0HogZyj70Blc=; b=aTQQKyEGG5qLNtKJsL3ifwQhnlj+TRmUo580BmcvFpA2a4gPVePU78deVCv8xUoKem beZPwnKOl4Oq+tygnfJre8sHNsaLbLtSRBubOSJNdXyvvtNs6ahkWCEWL5UNBJv0sY3F t/J59yjB8o0Beg7aUT+Lba5BpZz8zAoGFPt0geL+hUdJhFYfOIEtn4uvL75pQLPw2amq eCIhhvBqyBIqJFUuCBJjYh6KUrDr8Pg2J9nPgHF4kdpSkJRAawux8FfzoicnfL4252RG ZkXbSZn/1Nxr65E+owST9o1Atmhl0xqfxWPhVm5LWB7qITGDhBWfL/GPi667yEhH4yTA hubA== X-Gm-Message-State: AOJu0Yw5KUjf3YYfMT0EhEuScneBuHV+8aZArg56XzypIlHw9eVD6w6x jO5NMQo5CXUqHUwatLFhsYbRHA== X-Received: by 2002:ac2:42c4:0:b0:507:a70e:c619 with SMTP id n4-20020ac242c4000000b00507a70ec619mr4364196lfl.67.1701100349416; Mon, 27 Nov 2023 07:52:29 -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 mb22-20020a170906eb1600b009fc0c42098csm5855150ejb.173.2023.11.27.07.52.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 07:52:29 -0800 (PST) From: Konrad Dybcio Subject: [PATCH v7 0/2] Resolve MPM register space situation Date: Mon, 27 Nov 2023 16:52:11 +0100 Message-Id: <20230328-topic-msgram_mpm-v7-0-6ee2bfeaac2c@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIACu7ZGUC/4XQy2rEMAwF0F8ZvK6LIz8zq/5HGYrtKIkhL+yZ0 DLk36vMrgSa5RXoXKEnK5gTFna9PFnGNZU0TxTs24XF3k8d8tRQZiBACgmO3+clRT6WLvvxa1x GHo1zAWWIUCtGa8EX5CH7Kfa0OD2GgYZLxjZ9v3o+b5T7VO5z/nnVrtU+/adhrbjgVbDOed1qL +XHkCaf5/c5d2zXVjgTgAQE5ZVDbVvRHAR5JkgSIFpowQZlhTkI6kxQJASP0kETRVvDQdBngib BoDBAr6hN0AfBnAlmFxygcloHi39v2LbtF7C2wB8QAgAA 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 , Bryan O'Donoghue X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1701100347; l=2818; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=jzGaK78zqBfidrnl46fLd36+PZ3YDc+jJgsIYSdRn9o=; b=xjIuKG6/Sr8LMdWtOOOHLmJy45SGvaDnQbAUVFhGFvFL98TkHNzpXEQaONwXO3JJvs82pw42m uPRG2NFAyjIDzXSjZ5MH6KGM9lFIXS0cXYN+dNQAho+K9ocK0pMHz1h X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 27 Nov 2023 07:52:54 -0800 (PST) v6 -> v7: - Actually check the rvalue of of_address_to_resource - Pick up rb - Link to v6: https://lore.kernel.org/r/20230328-topic-msgram_mpm-v6-0-682e4855b7e2@linaro.org v5 -> v6: - Resending due to no responses. - Change of base to next-20231124 (no changes to the patch) Link to v5: https://lore.kernel.org/r/20230328-topic-msgram_mpm-v5-0-6e06278896b5@linaro.org v4 -> v5: - Pick up tags - Rebase on Rob's of_ header untanglement Link to v4: https://lore.kernel.org/r/20230328-topic-msgram_mpm-v4-0-bae382dc0f92@linaro.org v3 -> v4: - Fix up indentation in the bindings patch - Add an example glink-edge subnode to remoteproc-rpm (its bindings require that..) Link to v3: https://lore.kernel.org/r/20230328-topic-msgram_mpm-v3-0-2c72f27b4706@linaro.org v2 -> v3: - Fix the example - Pick up tags - remove the outdated example from the cover letter, check bindings should you want to see one The bindings for the wrapper node used in the yaml example are merged in qcom/for-next Link to v2: https://lore.kernel.org/r/20230328-topic-msgram_mpm-v2-0-e24a48e57f0d@linaro.org v1 -> v2: - deprecate 'reg', make qcom,rpm-msg-ram required [1/2] - Use devm_ioremap() [2/2] Link to v1: https://lore.kernel.org/r/20230328-topic-msgram_mpm-v1-0-1b788a5f5a33@linaro.org Depends on resolution of https://github.com/devicetree-org/dt-schema/issues/104 The MPM (and some other things, irrelevant to this patchset) resides (as far as the ARM cores are concerned, anyway) in a MMIO-mapped region that's a portion of the RPM (low-power management core)'s RAM, known as the RPM Message RAM. Representing this relation in the Device Tree creates some challenges, as one would either have to treat a memory region as a bus, map nodes in a way such that their reg-s would be overlapping, or supply the nodes with a slice of that region. This series implements the third option, by adding a qcom,rpm-msg-ram property, which has been used for some drivers poking into this region before. Bindings ABI compatibility is preserved through keeping the "normal" (a.k.a read the reg property and map that region) way of passing the register space. Signed-off-by: Konrad Dybcio --- Konrad Dybcio (2): dt-bindings: interrupt-controller: mpm: Pass MSG RAM slice through phandle irqchip: irq-qcom-mpm: Support passing a slice of SRAM as reg space .../bindings/interrupt-controller/qcom,mpm.yaml | 52 +++++++++++++++------- drivers/irqchip/irq-qcom-mpm.c | 26 +++++++++-- 2 files changed, 58 insertions(+), 20 deletions(-) --- base-commit: 48bbaf8b793e0770798519f8ee1ea2908ff0943a change-id: 20230328-topic-msgram_mpm-c688be3bc294 Best regards, -- Konrad Dybcio