From: Fil Dunsky via B4 Relay <devnull+filipp.dunsky.gmail.com@kernel.org>
To: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Philipp Zabel <p.zabel@pengutronix.de>
Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org
Subject: [PATCH 0/3] soc: cortina: Add CS7542 shared gates and reset domains
Date: Tue, 24 Nov 2026 00:50:57 +0300 [thread overview]
Message-ID: <20261124-b4-cs7542-global-controls-v1-0-12548785df2c@gmail.com> (raw)
The CS7542 global block contains PCIe clock gates and controller resets,
and a composite network engine reset. Publish these controls together
through the existing early global provider, so PCIe and Ethernet can use
the same provider without either consumer depending on the other driver.
This also avoids a resource-less network reset child node.
This series extracts the global controls from PCIe v2 and moves the NE
reset implementation from Ethernet v1 to that same provider. PCIe reset
indices 0..2 and clock indices 3..5 remain unchanged; the network engine
uses reset index 3. The NE domain includes the entire DMA-LSO/SSP block
and excludes SDRAM. Its consumer must own the domain exclusively.
The existing NE assert/deassert readback polling and partial-domain error
handling are retained. The new NE reset index does not support pulse
reset; its consumer uses assert/deassert/status. PCIe pulse timing and
registration error cleanup are retained. Clock-only DTs remain valid.
This is based on the posted clock/pinctrl v3 series:
https://lore.kernel.org/all/20261123-cs7542-syscon-v3-0-f1c07a1703f8@gmail.com/
The next PCIe and Ethernet revisions will remove their duplicate provider
patches and use this prerequisite. They do not need a dependency on one
another. Board DTS changes are prepared separately.
Validation completed so far: full independent ARM multi_v7 vmlinux and
modules with W=1, COMPILE_TEST=n and no pending platform series; binding
examples and complete integrated board DT validation; actual-source
fault tests covering gates, resets, partial NE masks, polling timeouts,
regmap errors and registration cleanup (736 cases/106098 assertions).
On Almond+ with the moved provider in a Linux RAM kernel, checked all
six clocks, NE assert/deassert/status and unrelated global-register
preservation, real factory MAC probing and two Ethernet load/unload
cycles. A second exclusive reset acquisition correctly returned EBUSY
while the datapath was bound. After unload the entire NE domain was
held in reset. All six PCIe devices and root-port MSI remained present
throughout, and MDIO read/write/induced-timeout recovery checks passed.
The test partitions were read-only; no flash writes were performed.
The board returned automatically to the installed OpenWrt.
Signed-off-by: Fil Dunsky <filipp.dunsky@gmail.com>
---
Fil Dunsky (3):
dt-bindings: soc: Describe CS7542 global gates and reset domains
clk: cs7542: Add global PCIe controls and network engine reset
MAINTAINERS: Track CS7542 global reset specifiers
.../soc/cortina/cortina,cs7542-syscon.yaml | 14 +-
MAINTAINERS | 1 +
drivers/clk/Kconfig | 7 +-
drivers/clk/clk-cs7542.c | 211 +++++++++++++++++++--
include/dt-bindings/clock/cortina,cs7542-clock.h | 4 +
include/dt-bindings/reset/cortina,cs7542-reset.h | 12 ++
6 files changed, 224 insertions(+), 25 deletions(-)
---
base-commit: b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f
change-id: 20261124-b4-cs7542-global-controls-e443cbabfe82
prerequisite-message-id: 20261123-cs7542-syscon-v3-0-f1c07a1703f8@gmail.com
prerequisite-patch-id: 083c8eb9fa3b09678418ed19c0dd275afd66ae1f
prerequisite-patch-id: 746951fd830617cad03b52208443a8b6f7e8f440
prerequisite-patch-id: f8a2ba71717f71ca2bedda986f8b861995cdc586
prerequisite-patch-id: 7fbe9405265ef3d1ec62811415a46c0061afd7c8
prerequisite-patch-id: 25220835f5d2506a01ba652d86f9b9ac3ad5121a
Best regards,
--
Fil Dunsky <filipp.dunsky@gmail.com>
next reply other threads:[~2026-11-23 21:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-23 21:50 Fil Dunsky via B4 Relay [this message]
2026-11-23 21:50 ` [PATCH 1/3] dt-bindings: soc: Describe CS7542 global " Fil Dunsky via B4 Relay
2026-11-23 21:50 ` [PATCH 2/3] clk: cs7542: Add global PCIe controls and network engine reset Fil Dunsky via B4 Relay
2026-11-23 21:51 ` [PATCH 3/3] MAINTAINERS: Track CS7542 global reset specifiers Fil Dunsky via B4 Relay
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=20261124-b4-cs7542-global-controls-v1-0-12548785df2c@gmail.com \
--to=devnull+filipp.dunsky.gmail.com@kernel.org \
--cc=bmasney+clk@redhat.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=filipp.dunsky@gmail.com \
--cc=jbrunet+clk@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=robh@kernel.org \
--cc=sboyd@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®