From: "Rob Herring (Arm)" <robh@kernel.org>
To: "Stefan Dösinger" <stefandoesinger@gmail.com>
Cc: Agustin Santiago Isasmendi <isasmendi.agus@gmail.com>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
devicetree@vger.kernel.org, Lee Jones <lee@kernel.org>,
linux-kernel@vger.kernel.org, Vinod Koul <vkoul@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Navid Ghahremani <ghahramani.navid@gmail.com>,
mfd@lists.linux.dev, Neil Armstrong <neil.armstrong@linaro.org>,
linux-phy@lists.infradead.org,
Manivannan Sadhasivam <mani@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-pm@vger.kernel.org, Ulf Hansson <ulfh@kernel.org>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 1/6] dt-bindings: soc: zte: Document zx297520v3 socsys controller
Date: Tue, 1 Dec 2026 17:12:34 -0600 [thread overview]
Message-ID: <179616675409.512727.6767348342744799700.robh@kernel.org> (raw)
In-Reply-To: <20261120-zx29usb-v1-1-b0433258e51b@gmail.com>
On Fri, 20 Nov 2026 22:20:50 +0300, Stefan Dösinger wrote:
> The best way to sum up this controller is probably "misc". ZTE probably
> put everything they didn't bother to put in its own mmio area here.
> Documentation in ZTE's sources is very sparse and even the blobs only
> touch a handful of registers.
>
> The controller contains power controls, resets, DMA multiplexing,
> auxiliary USB phy controls, i2s controls, the proprietary DSP boot
> address and many others.
>
> For power controls I could confirm that the USB/HSIC and a GSM-related
> controls work. There are 5 bits mentioned in ZTE's kernel though and
> there is a second register that is used in a very similar fashion by the
> LTE blob.
>
> For the Ethernet PHY reset register there are 5 settable bits,
> but only one of them produces an understood effect. I am using
> reset-cells=1 because it is likely some of the other bits have an actual
> meaning.
>
> Signed-off-by: Stefan Dösinger <stefandoesinger@gmail.com>
>
> ---
>
> ZTE uses the name "SOC_SYS" in their downstream kernel. I am not
> particularly thrilled by that name, but couldn't come up with a better
> one yet. I am open to suggestions
>
> I do not want to commit to exposing the GSM related bits as power
> domains just yet, so no handle for them is defined in this binding. They
> are inside the RST/ISO/PWR registers just like their USB counterpart,
> but the PWR bit does nothing and the client driver will have to assert
> and deassert the reset to wake up the hardware. This is easier to do
> with a reset controller than a power domain. The ISO bit kinda works
> though, so I can't just pretend they are standalone resets.
>
> The hardware behind the GSM bits has a self-arming watchdog. After
> 2.5ms it puts itself into a broken state and can only be recovered by
> asserting and deasserting the reset in socsys. Like almost everything on
> this board it is enabled on boot, so the client driver needs to assert
> and deassert the reset before touching it.
>
> How much documentation is appropriate in the binding .yaml? I want to
> document the identified registers *somewhere*, and since the yaml lives
> in Documentation/ I put it there. I do understand though if the Linux
> kernel doesn't want to be a backup SoC datasheet.
> ---
> .../bindings/soc/zte/zte,zx297520v3-socsys.yaml | 100 +++++++++++++++++++++
> MAINTAINERS | 1 +
> include/dt-bindings/power/zte,zx297520v3-socsys.h | 11 +++
> include/dt-bindings/reset/zte,zx297520v3-reset.h | 2 +
> 4 files changed, 114 insertions(+)
>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
next prev parent reply other threads:[~2026-12-01 23:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 19:20 [PATCH 0/6] ZTE zx297520v3 USB support Stefan Dösinger
2026-11-20 19:20 ` [PATCH 1/6] dt-bindings: soc: zte: Document zx297520v3 socsys controller Stefan Dösinger
2026-12-01 23:12 ` Rob Herring (Arm) [this message]
2026-11-20 19:20 ` [PATCH 2/6] mfd: zx297520v3: Add socsys to the mfd host driver Stefan Dösinger
2026-11-20 19:20 ` [PATCH 3/6] pmdomain: zte: Add a zx297520v3 power domain driver Stefan Dösinger
2026-11-26 12:26 ` Ulf Hansson
2026-11-26 17:26 ` Stefan Dösinger
2026-12-01 8:36 ` Ulf Hansson
2026-11-20 19:20 ` [PATCH 4/6] phy: zte: Add a zx29 USB PHY driver Stefan Dösinger
2026-11-20 19:20 ` [PATCH 5/6] ARM: dts: zte: Declare nodes to enable the board's dwc2 controller Stefan Dösinger
2026-11-20 19:20 ` [PATCH 6/6] ARM: dts: zte: Declare the HSIC controller node Stefan Dösinger
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=179616675409.512727.6767348342744799700.robh@kernel.org \
--to=robh@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=ghahramani.navid@gmail.com \
--cc=isasmendi.agus@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=lee@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-phy@lists.infradead.org \
--cc=linux-pm@vger.kernel.org \
--cc=mani@kernel.org \
--cc=mfd@lists.linux.dev \
--cc=neil.armstrong@linaro.org \
--cc=p.zabel@pengutronix.de \
--cc=stefandoesinger@gmail.com \
--cc=ulfh@kernel.org \
--cc=vkoul@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