From: Bjorn Andersson <andersson@kernel.org>
To: david@ixit.cz
Cc: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Richard Acayan <mailingradian@gmail.com>,
Petr Vorel <petr.vorel@gmail.com>,
Konrad Dybcio <konradybcio@kernel.org>,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org
Subject: Re: [PATCH RFC 1/4] dt-bindings: soc: google: Add modemsmem
Date: Mon, 28 Sep 2026 21:59:20 -0500 [thread overview]
Message-ID: <arsoHnkYnxMIP2ZM@zenbook> (raw)
In-Reply-To: <20260906-modemsmem-v1-1-a3634b553841@ixit.cz>
On Sun, Sep 06, 2026 at 02:41:12AM +0200, David Heidelberg via B4 Relay wrote:
> From: David Heidelberg <david@ixit.cz>
>
> The modem firmware on Google Pixel 3 - 5a devices expects the application
> processor to publish SoC platform information in a vendor-defined SMEM
> item before the modem boots.
>
> Assisted-by: LLM
> Signed-off-by: David Heidelberg <david@ixit.cz>
> ---
> .../bindings/soc/google/google,modemsmem.yaml | 39 ++++++++++++++++++++++
> 1 file changed, 39 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/soc/google/google,modemsmem.yaml b/Documentation/devicetree/bindings/soc/google/google,modemsmem.yaml
> new file mode 100644
> index 0000000000000..a5214a8093ba0
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/soc/google/google,modemsmem.yaml
> @@ -0,0 +1,39 @@
> +# SPDX-License-Identifier: GPL-2.0-only
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/soc/google/google,modemsmem.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Google Modem Shared Memory
> +
> +maintainers:
> + - Richard Acayan <mailingradian@gmail.com>
> +
> +description:
> + The modem firmware on Google Pixel devices (Pixel 3 through Pixel 5a)
> + expects the application processor to publish SoC information (platform
> + type and revision) in a vendor-defined Qualcomm Shared Memory (SMEM)
> + item before the modem boots.
> +
> +properties:
> + compatible:
> + const: google,modemsmem
To me it is seems node represents the attribute of the modem remoteproc
requiring this information to be populated before its started, rather
than a thing of its own.
How about representing this as a property of the modem remoteproc node
instead (perhaps "google,require-socinfo"?) and then put the conditional
snippet in the remoteproc driver?
I'm not particularly fond of the additional codepath in the remoteproc
drivers, but I think the DeviceTree representation would be more
appropriate - and the driver changes are reasonably isolated.
> +
> + qcom,smem-id:
Let's just hard code this in the implementation until there's a need for
this to change.
Regards,
Bjorn
> + $ref: /schemas/types.yaml#/definitions/uint32
> + description:
> + Identifier of the SMEM item the SoC information is written to. Google
> + firmware uses the first vendor-reserved item.
> +
> +required:
> + - compatible
> + - qcom,smem-id
> +
> +additionalProperties: false
> +
> +examples:
> + - |
> + modemsmem {
> + compatible = "google,modemsmem";
> + qcom,smem-id = <134>;
> + };
>
> --
> 2.55.0
>
>
next prev parent reply other threads:[~2026-09-29 2:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-06 0:41 [PATCH RFC 0/4] Add modemsmem for Google phones David Heidelberg via B4 Relay
2026-09-06 0:41 ` [PATCH RFC 1/4] dt-bindings: soc: google: Add modemsmem David Heidelberg via B4 Relay
2026-09-29 2:59 ` Bjorn Andersson [this message]
2026-09-06 0:41 ` [PATCH RFC 2/4] soc: qcom: Add modemsmem for Google phones David Heidelberg via B4 Relay
2026-09-07 8:36 ` Konrad Dybcio
2026-09-06 0:41 ` [PATCH RFC 3/4] arm64: dts: qcom: sdm845-google: Add modemsmem David Heidelberg via B4 Relay
2026-09-06 0:41 ` [PATCH RFC 4/4] arm64: dts: qcom: sdm670-google: " David Heidelberg via B4 Relay
2026-09-07 8:37 ` [PATCH RFC 0/4] Add modemsmem for Google phones Konrad Dybcio
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=arsoHnkYnxMIP2ZM@zenbook \
--to=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=david@ixit.cz \
--cc=devicetree@vger.kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mailingradian@gmail.com \
--cc=petr.vorel@gmail.com \
--cc=phone-devel@vger.kernel.org \
--cc=robh@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®