Thread View: linux.kernel.netdev
8 messages
8 total messages
Started by Arun Iyengar via B4 Relay
Fri, 13 Nov 2026 16:38
[PATCH 0/9] RK3588: Enable the PHP SMMU
Author: Arun Iyengar via B4 Relay
Date: Fri, 13 Nov 2026 16:38
Date: Fri, 13 Nov 2026 16:38
61 lines
14130 bytes
14130 bytes
The RK3588 PHP SMMU (MMU600_PHP) is disabled because nothing programs
the StreamIDs of its masters (GMAC0/1, SATA0-2, USB3OTG_2) in the PHP
GRF. Program them, attach the masters and enable the SMMU.
Shawn Lin asked whether mmu600_php should be enabled too; Heiko asked
for the same handling as the PCIe SMMU [3].
Patch 7 needs [1]. Please hold the last patch until [2] is merged:
PD_PHP is off in deep suspend and the SMMU resumes in bypass (GBPA read
as 0).
Tested on an Orange Pi 5 (RK3588S), 7.3-based with [2] (my Tested-by
is [4]):
- SATA0 root, GMAC1 and a USB3 disk translated: 1 GiB sha256-checked
on each; three reboots; no SMMU events or bus errors;
- deep suspend 3/3 with all three translated; s2idle 3/3 with USB3OTG_2
and GMAC1. TF-A v2.15 kept the StreamIDs; patch 6 restored six zeroed
for the test (pm_test=core).
Not tested: GMAC0, SATA1/2, the series without [2], the reset (no
driver uses it).
Developed with Claude (Anthropic), which wrote the code and the commit
messages. I reviewed every change.
[1] https://lore.kernel.org/r/20261113-smmu-v3-pcie-pd-v3-0-39eb4f919529@gmail.com
[2] https://lore.kernel.org/r/20260929034510.2023173-1-praan@google.com
[3] https://lore.kernel.org/r/9_7qTfdNSViwtNUGq9D13w@sntech.de
[4] https://lore.kernel.org/r/179455903885.2418534.14656921897583011972@gmail.com
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
---
Arun Iyengar (9):
dt-bindings: net: rockchip-dwmac: Allow iommus
dt-bindings: ata: rockchip,dwc-ahci: Allow iommus
dt-bindings: soc: rockchip: grf: Allow a clock for the RK3588 PHP GRF
soc: rockchip: grf: Assign the StreamIDs of the RK3588 PHP SMMU masters
arm64: dts: rockchip: Add the PHP GRF clock on RK3588
soc: rockchip: grf: Restore the RK3588 PHP StreamIDs after system suspend
arm64: dts: rockchip: Add the clock and reset of the RK3588 PHP SMMU
arm64: dts: rockchip: Attach the masters of the RK3588 PHP SMMU
arm64: dts: rockchip: Enable the RK3588 PHP SMMU
.../devicetree/bindings/ata/rockchip,dwc-ahci.yaml | 3 +
.../devicetree/bindings/net/rockchip-dwmac.yaml | 3 +
.../devicetree/bindings/soc/rockchip/grf.yaml | 12 ++-
arch/arm64/boot/dts/rockchip/rk3588-base.dtsi | 8 +-
arch/arm64/boot/dts/rockchip/rk3588-extra.dtsi | 2 +
drivers/soc/rockchip/grf.c | 103 +++++++++++++++++++++
6 files changed, 128 insertions(+), 3 deletions(-)
---
base-commit: c3baae5f1a15645cddadcb2b9abddef5df291f59
change-id: 20261113-mmu600-php-0367fe7f1609
prerequisite-message-id: <20261113-smmu-v3-pcie-pd-v3-0-39eb4f919529@gmail.com>
prerequisite-patch-id: 51134fb38514fa92f20d3831e7905b02c7fbaae6
prerequisite-patch-id: c59ab0be12ec964dc1698dfa3e0d5bfae82d0c54
prerequisite-patch-id: 845e9980a7e0de45c746b7d8b6fd439033e08fdd
Best regards,
--
Arun Iyengar <aiyengar1990@gmail.com>
[PATCH 3/9] dt-bindings: soc: rockchip: grf: Allow a clock for the RK3588 PHP GRF
Author: Arun Iyengar via B4 Relay
Date: Fri, 13 Nov 2026 16:38
Date: Fri, 13 Nov 2026 16:38
38 lines
12060 bytes
12060 bytes
From: Arun Iyengar <aiyengar1990@gmail.com>
The RK3588 PHP GRF is clocked from pclk_php_root, which is gated when
no PHP peripheral holds it. Allow the clock, so the syscon regmap
enables it.
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
---
Documentation/devicetree/bindings/soc/rockchip/grf.yaml | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml
index e94c83d7c138..2525eb51f13b 100644
--- a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml
+++ b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml
@@ -321,8 +321,16 @@ allOf:
- clocks
else:
- properties:
- clocks: false
+ if:
+ not:
+ properties:
+ compatible:
+ contains:
+ const: rockchip,rk3588-php-grf
+
+ then:
+ properties:
+ clocks: false
examples:
- |
--
2.55.0
[PATCH 6/9] soc: rockchip: grf: Restore the RK3588 PHP StreamIDs after system suspend
Author: Arun Iyengar via B4 Relay
Date: Fri, 13 Nov 2026 16:38
Date: Fri, 13 Nov 2026 16:38
136 lines
15375 bytes
15375 bytes
From: Arun Iyengar <aiyengar1990@gmail.com>
The PHP GRF is in PD_PHP, which firmware may power off in system
suspend. The SMMU aborts a master whose StreamID was lost.
Write the StreamIDs again from a syscore resume op, before devices
resume. Register it only when the node has a clock, as the access hangs
without it.
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
---
drivers/soc/rockchip/grf.c | 70 ++++++++++++++++++++++++++++++++++++++++++++--
1 file changed, 68 insertions(+), 2 deletions(-)
diff --git a/drivers/soc/rockchip/grf.c b/drivers/soc/rockchip/grf.c
index 3f0f82a2119f..8f318ebc14e9 100644
--- a/drivers/soc/rockchip/grf.c
+++ b/drivers/soc/rockchip/grf.c
@@ -11,6 +11,8 @@
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/regmap.h>
+#include <linux/slab.h>
+#include <linux/syscore_ops.h>
struct rockchip_grf_value {
@@ -22,6 +24,14 @@ struct rockchip_grf_value {
struct rockchip_grf_info {
const struct rockchip_grf_value *values;
int num_values;
+ /* Rewrite the values on resume; such tables must not be __initconst */
+ bool restore_on_resume;
+};
+
+struct rockchip_grf_restore {
+ struct syscore syscore;
+ struct regmap *grf;
+ const struct rockchip_grf_info *info;
};
#define RK3036_GRF_SOC_CON0 0x140
@@ -182,7 +192,7 @@ static const struct rockchip_grf_info rk3588_sysgrf __initconst = {
#define RK3588_PHP_GRF_USB3OTG2_SID_AR 0x00c4
#define RK3588_PHP_GRF_USB3OTG2_SID_AW 0x00cc
-static const struct rockchip_grf_value rk3588_defaults_php_grf[] __initconst = {
+static const struct rockchip_grf_value rk3588_defaults_php_grf[] = {
{ "gmac0 write streamid", RK3588_PHP_GRF_GMAC0_SID_AW, 1 },
{ "gmac0 read streamid", RK3588_PHP_GRF_GMAC0_SID_AR, 1 },
{ "gmac1 write streamid", RK3588_PHP_GRF_GMAC1_SID_AW, 2 },
@@ -197,9 +207,10 @@ static const struct rockchip_grf_value rk3588_defaults_php_grf[] __initconst = {
{ "usb3otg2 read streamid", RK3588_PHP_GRF_USB3OTG2_SID_AR, 6 },
};
-static const struct rockchip_grf_info rk3588_phpgrf __initconst = {
+static const struct rockchip_grf_info rk3588_phpgrf = {
.values = rk3588_defaults_php_grf,
.num_values = ARRAY_SIZE(rk3588_defaults_php_grf),
+ .restore_on_resume = true,
};
static const struct of_device_id rockchip_grf_dt_match[] __initconst = {
@@ -246,6 +257,59 @@ static const struct of_device_id rockchip_grf_dt_match[] __initconst = {
{ /* sentinel */ },
};
+/* Syscore op: runs before the SMMU and its masters resume */
+static void rockchip_grf_resume(void *data)
+{
+ struct rockchip_grf_restore *restore = data;
+ const struct rockchip_grf_info *info = restore->info;
+ unsigned int cur;
+ int i, lost = 0;
+
+ for (i = 0; i < info->num_values; i++) {
+ const struct rockchip_grf_value *val = &info->values[i];
+
+ if (!regmap_read(restore->grf, val->reg, &cur) && cur == val->val)
+ continue;
+
+ lost++;
+ if (regmap_write(restore->grf, val->reg, val->val))
+ pr_err("%s: restoring %s in %#6x failed\n", __func__,
+ val->desc, val->reg);
+ }
+
+ if (lost)
+ pr_info("%s: restored %d of %d values lost in suspend\n",
+ __func__, lost, info->num_values);
+}
+
+static const struct syscore_ops rockchip_grf_syscore_ops = {
+ .resume = rockchip_grf_resume,
+};
+
+static void __init rockchip_grf_register_restore(struct device_node *np,
+ struct regmap *grf,
+ const struct rockchip_grf_info *info)
+{
+ struct rockchip_grf_restore *restore;
+
+ if (!IS_ENABLED(CONFIG_PM_SLEEP) || !info->restore_on_resume)
+ return;
+
+ /* Without its bus clock the GRF is not accessible in syscore resume */
+ if (!of_property_present(np, "clocks"))
+ return;
+
+ restore = kzalloc_obj(*restore);
+ if (!restore)
+ return;
+
+ restore->grf = grf;
+ restore->info = info;
+ restore->syscore.ops = &rockchip_grf_syscore_ops;
+ restore->syscore.data = restore;
+ register_syscore(&restore->syscore);
+}
+
static int __init rockchip_grf_init(void)
{
const struct rockchip_grf_info *grf_info;
@@ -282,6 +346,8 @@ static int __init rockchip_grf_init(void)
pr_err("%s: write to %#6x failed with %d\n",
__func__, val->reg, ret);
}
+
+ rockchip_grf_register_restore(np, grf, grf_info);
}
return 0;
--
2.55.0
[PATCH 7/9] arm64: dts: rockchip: Add the clock and reset of the RK3588 PHP SMMU
Author: Arun Iyengar via B4 Relay
Date: Fri, 13 Nov 2026 16:38
Date: Fri, 13 Nov 2026 16:38
27 lines
11957 bytes
11957 bytes
From: Arun Iyengar <aiyengar1990@gmail.com>
Describe ACLK_MMU_PHP, so the SMMU keeps its clock while its masters
are idle, and SRST_A_MMU_PHP, as for the PCIe SMMU.
Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com>
---
arch/arm64/boot/dts/rockchip/rk3588-base.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
index 8807ce6193bf..3bf8d0e4ff33 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
+++ b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
@@ -570,6 +570,8 @@ mmu600_php: iommu@fcb00000 {
<GIC_SPI 386 IRQ_TYPE_EDGE_RISING 0>,
<GIC_SPI 379 IRQ_TYPE_EDGE_RISING 0>;
interrupt-names = "eventq", "gerror", "priq", "cmdq-sync";
+ clocks = <&cru ACLK_MMU_PHP>;
+ resets = <&cru SRST_A_MMU_PHP>;
#iommu-cells = <1>;
status = "disabled";
};
--
2.55.0
Re: [PATCH 3/9] dt-bindings: soc: rockchip: grf: Allow a clock for the RK3588 PHP GRF
Author: netdev-bot+sashiko
Date: Tue, 17 Nov 2026 17:35
Date: Tue, 17 Nov 2026 17:35
127 lines
12642 bytes
12642 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The RK3588 PHP GRF clock is allowed but not required.
Pre-existing issues:
- [High] This problem wasn't introduced by this patch, but there is a
pre-existing use-after-free in the error unwind of…
--
dt-bindings: soc: rockchip: grf: Allow a clock for the RK3588 PHP GRF
This patch changes the clocks conditional in the Rockchip GRF binding.
The rockchip,rk3588-php-grf compatible is now exempt from "clocks: false",
so the node can describe pclk_php_root and the syscon regmap can enable it.
> diff --git a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml
> index e94c83d7c1383..2525eb51f13b0 100644
> --- a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml
> +++ b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml
> @@ -321,8 +321,16 @@ allOf:
> - clocks
>
> else:
> - properties:
> - clocks: false
> + if:
> + not:
> + properties:
> + compatible:
> + contains:
> + const: rockchip,rk3588-php-grf
> +
> + then:
> + properties:
> + clocks: false
[Severity: Low]
Should rockchip,rk3588-php-grf go into the enum in the if: branch above,
so that clocks is required and not just allowed?
The commit message says the PHP GRF is clocked from pclk_php_root, which
gets gated. The later patch "arm64: dts: rockchip: Add the PHP GRF clock on
RK3588" says PHP GRF accesses hang without it.
This block already handles GRFs that need a clock. rockchip,rk3588-vo-grf
and rockchip,rk3576-dcphy-grf are listed in the enum, which both allows and
requires clocks.
As written, a php_grf node without clocks still passes dtbs_check. At
runtime, of_syscon_register() treats a missing clock as optional:
drivers/mfd/syscon.c:of_syscon_register() {
...
clk = of_clk_get(np, 0);
if (IS_ERR(clk)) {
ret = PTR_ERR(clk);
/* clock is optional */
if (ret != -ENOENT)
goto err_clk;
...
}
On such a DT the regmap would never enable pclk_php_root. The StreamID
restore added later in the series ("soc: rockchip: grf: Restore the RK3588
PHP StreamIDs after system suspend") would also be skipped without any
warning.
If the clock is meant to stay optional for older DTBs, could the commit
message say so? The binding also doesn't say which clock is expected. There
is no items list or description naming pclk_php_root.
[Severity: High]
This is a pre-existing issue and was not introduced by this patch. With
this series, php_grf goes through the clock-attached path in
of_syscon_register(). Is there a use-after-free of the struct clk in that
function's error unwind?
regmap_mmio_attach_clk() stores the clk in the regmap context before it
prepares it:
drivers/base/regmap/regmap-mmio.c:regmap_mmio_attach_clk() {
ctx->clk = clk;
ctx->attached_clk = true;
return clk_prepare(ctx->clk);
}
Two failures reach err_attach_clk: clk_prepare() failing, or
of_reset_control_get_optional_exclusive() returning an error. For example,
the reset lookup returns -EPROBE_DEFER if the reset controller hasn't
probed yet. The unwind is:
err_attach_clk:
if (!IS_ERR(clk))
clk_put(clk);
err_clk:
regmap_exit(regmap);
clk_put() frees the struct clk through __clk_put()->free_clk(). After that,
regmap_exit()->regmap_mmio_free_context() still uses the stored pointer:
if (!IS_ERR(ctx->clk)) {
clk_unprepare(ctx->clk);
...
clk_unprepare() then reads clk->core from the freed object. If
clk_prepare() was the step that failed, it also unprepares a clock that was
never prepared.
Would it fix this to detach the clock from the regmap, or to call
regmap_exit(), before clk_put()?
The php_grf node has no resets, so for php_grf only a clk_prepare() failure
can reach this path. Any syscon node with both clocks and resets is
affected. Syscon registration is retried on every lookup, so the path can
run repeatedly. The unwind comes from a00406b71c5f ("mfd: syscon: Add
optional clock support") and 7d1e3bd94828 ("mfd: syscon: Allow reset
control for syscon devices").
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261113-mmu600-php-v1-0-231196049a3b%40gmail.com
Re: [PATCH 6/9] soc: rockchip: grf: Restore the RK3588 PHP StreamIDs after system suspend
Author: netdev-bot+sashiko
Date: Tue, 17 Nov 2026 17:35
Date: Tue, 17 Nov 2026 17:35
51 lines
10091 bytes
10091 bytes
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] The concern: the commit message says that 'The SMMU aborts a
master whose StreamID was lost', but at this commit mmu600_php is…
--
soc: rockchip: grf: Restore the RK3588 PHP StreamIDs after system suspend
This commit keeps the RK3588 PHP GRF StreamID table after init. It also
registers a syscore resume op that rewrites any StreamIDs lost when PD_PHP
is powered off during system suspend. The op is only registered when the
GRF node has a clocks property.
> The PHP GRF is in PD_PHP, which firmware may power off in system
> suspend. The SMMU aborts a master whose StreamID was lost.
[Severity: Low]
Is this description accurate for the tree at this commit?
In arch/arm64/boot/dts/rockchip/rk3588-base.dtsi the mmu600_php node is
still disabled at this point:
mmu600_php: ...
...
status = "disabled";
None of usb3otg2, gmac0/1 or sata0-2 point at it with an iommus property
yet. That means the SMMU abort described above can't happen in-tree with
this patch alone, and rockchip_grf_resume() has no visible effect yet.
Two later patches in the series fix that:
"arm64: dts: rockchip: Attach the masters of the RK3588 PHP SMMU"
adds iommus = <&mmu600_php N> to the six masters.
"arm64: dts: rockchip: Enable the RK3588 PHP SMMU" removes the
status = "disabled" line.
So by the end of the series the restore does take effect.
Could the commit message say that this patch prepares for those later DTS
changes? Or could the patch be moved after them in the series?
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261113-mmu600-php-v1-0-231196049a3b%40gmail.com
Re: [PATCH 7/9] arm64: dts: rockchip: Add the clock and reset of the RK3588 PHP SMMU
Author: netdev-bot+sashiko
Date: Tue, 17 Nov 2026 17:35
Date: Tue, 17 Nov 2026 17:35
122 lines
13230 bytes
13230 bytes
Thank you for your contribution! Sashiko AI review found 3 potential
issue(s) to consider.
Critical: 0 · High: 1 · Medium: 2 · Low: 0
If you believe none of the issues are legitimate, please reply to each
issue of Medium severity or higher and explain why the AI is wrong.
If any of them are legitimate and you plan to respin, please let patchwork
know by including "pw-bot: cr" as a separate line at the end of your reply
(one such reply per series is enough).
- [High] The patch does not do what its commit message says.
- [Medium] The patch adds `clocks` and `resets` to the mmu600_php node
(compatible = "arm,smmu-v3"), but…
- [Medium] The commit message says the clock and reset are described "as
for the PCIe SMMU", but the PCIe SMMU node has neither.
--
arm64: dts: rockchip: Add the clock and reset of the RK3588 PHP SMMU
This commit adds a clocks property (ACLK_MMU_PHP) and a resets property
(SRST_A_MMU_PHP) to the mmu600_php node in rk3588-base.dtsi. The stated
goal is to keep the SMMU clocked while its masters are idle.
> Describe ACLK_MMU_PHP, so the SMMU keeps its clock while its masters
> are idle, and SRST_A_MMU_PHP, as for the PCIe SMMU.
[Severity: Medium]
Is the "as for the PCIe SMMU" reference accurate? The mmu600_pcie node in
rk3588-base.dtsi has no clocks or resets:
mmu600_pcie: iommu@fc900000 {
compatible = "arm,smmu-v3";
reg = <0x0 0xfc900000 0x0 0x200000>;
interrupts = <GIC_SPI 369 IRQ_TYPE_EDGE_RISING 0>,
...
interrupt-names = "eventq", "gerror", "priq", "cmdq-sync";
#iommu-cells = <1>;
};
No rockchip DTS uses ACLK_MMU_PCIE or SRST_A_MMU_PCIE. The only MMU_PCIE
or MMU_PHP references are the two lines this patch adds.
mmu600_pcie is enabled by default, and its clock sits in the same place in
clk-rk3588.c. aclk_mmu_pcie is the parent of the aclk_pcie_*_mstr clocks:
GATE(ACLK_MMU_PCIE, "aclk_mmu_pcie", "aclk_pcie_bridge", 0,
RK3588_CLKGATE_CON(34), 7, GFLAGS),
Is a matching change for mmu600_pcie missing, or should the commit message
be reworded? If the reasoning is right, why does the PCIe SMMU not need
the same change?
> diff --git a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
> index 8807ce6193bfc..3bf8d0e4ff332 100644
> --- a/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
> +++ b/arch/arm64/boot/dts/rockchip/rk3588-base.dtsi
> @@ -570,6 +570,8 @@ mmu600_php: iommu@fcb00000 {
> <GIC_SPI 386 IRQ_TYPE_EDGE_RISING 0>,
> <GIC_SPI 379 IRQ_TYPE_EDGE_RISING 0>;
> interrupt-names = "eventq", "gerror", "priq", "cmdq-sync";
> + clocks = <&cru ACLK_MMU_PHP>;
> + resets = <&cru SRST_A_MMU_PHP>;
[Severity: High]
Does anything use these properties? mmu600_php binds to the generic
arm-smmu-v3 driver. arm_smmu_device_probe() never gets or enables a clock
and never touches a reset line.
There are no clk, reset_control or pm_runtime calls under
drivers/iommu/arm/arm-smmu-v3/, even at the end of the series. The
platform bus does not enable DT clocks by itself. The node also has no
power-domains that could add a pm_clk.
The gate is registered with flags 0 in clk-rk3588.c:
GATE(ACLK_MMU_PHP, "aclk_mmu_php", "aclk_php_root", 0,
RK3588_CLKGATE_CON(34), 8, GFLAGS),
So its enable count still comes only from its children: ACLK_GMAC0/1,
ACLK_SATA0/1/2 and ACLK_USB3OTG2. When the last of those masters disables
its aclk, the gate closes just as it did before this patch. If no master
ever enables it, clk_disable_unused() can close it at late_initcall.
Nothing drives SRST_A_MMU_PHP either.
The later patch "arm64: dts: rockchip: Enable the RK3588 PHP SMMU" removes
status = "disabled". After the series, the SMMU probes on every RK3588
board without the clock hold the commit message describes.
Later SMMU activity can then run with aclk_mmu_php gated, for example
cmdq, CFGI or TLBI commands on attach and detach, or event and gerror
handling. What a gated clock does to the SMMU at that point depends on the
Rockchip clock topology.
Does the SMMU driver need to own the clock and reset instead? That could
be devm_clk_bulk_get_all_enabled() plus reset handling in
arm_smmu_device_probe(), or a Rockchip impl hook behind a SoC-specific
compatible.
[Severity: Medium]
Will these properties pass dtbs_check? The binding
Documentation/devicetree/bindings/iommu/arm,smmu-v3.yaml lists neither
clocks nor resets, and it ends with:
additionalProperties: false
dtbs_check also validates disabled nodes. So every DTB that includes
rk3588-base.dtsi would flag 'clocks' and 'resets' as unexpected. No patch
in the series changes the iommu binding.
Would this need a SoC-specific compatible with conditional clocks and
resets in the binding, like the existing nvidia,tegra264-smmu entry, along
with driver support?
> #iommu-cells = <1>;
> status = "disabled";
> };
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261113-mmu600-php-v1-0-231196049a3b%40gmail.com
Re: [PATCH 3/9] dt-bindings: soc: rockchip: grf: Allow a clock for the RK3588 PHP GRF
Author: Krzysztof Kozlowski
Date: Mon, 23 Nov 2026 08:30
Date: Mon, 23 Nov 2026 08:30
35 lines
9496 bytes
9496 bytes
On Fri, Nov 13, 2026 at 04:38:49PM +0000, Arun Iyengar wrote: > The RK3588 PHP GRF is clocked from pclk_php_root, which is gated when > no PHP peripheral holds it. Allow the clock, so the syscon regmap > enables it. > > Signed-off-by: Arun Iyengar <aiyengar1990@gmail.com> > --- > Documentation/devicetree/bindings/soc/rockchip/grf.yaml | 12 ++++++++++-- > 1 file changed, 10 insertions(+), 2 deletions(-) > > diff --git a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml > index e94c83d7c138..2525eb51f13b 100644 > --- a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml > +++ b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml > @@ -321,8 +321,16 @@ allOf: > - clocks > > else: > - properties: > - clocks: false > + if: > + not: > + properties: > + compatible: > + contains: > + const: rockchip,rk3588-php-grf > + This is not understandable - two nested ifs, one even with negation. If binding is too complex, it could be split. Best regards, Krzysztof
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads