* [PATCH 0/4] PXA1908 clock controller resets
@ 2026-04-14 19:51 Duje Mihanović
2026-04-14 19:51 ` [PATCH 1/4] dt-bindings: clock: marvell,pxa1908: Add #reset-cells Duje Mihanović
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Duje Mihanović @ 2026-04-14 19:51 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski,
Conor Dooley
Cc: Karel Balej, linux-arm-kernel, linux-clk, devicetree,
linux-kernel, phone-devel, ~postmarketos/upstreaming,
Duje Mihanović
Hello,
This series adds the resets found on Marvell PXA1908's APBC and APBCP
clock controllers.
Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz>
---
Duje Mihanović (4):
dt-bindings: clock: marvell,pxa1908: Add #reset-cells
clk: mmp: pxa1908-apbc: Add reset cells
clk: mmp: pxa1908-apbcp: Add reset cells
arm64: dts: marvell: mmp: pxa1908: Add reset cells
.../devicetree/bindings/clock/marvell,pxa1908.yaml | 34 +++++++++----
arch/arm64/boot/dts/marvell/mmp/pxa1908.dtsi | 14 ++++++
drivers/clk/mmp/clk-pxa1908-apbc.c | 58 ++++++++++++++++------
drivers/clk/mmp/clk-pxa1908-apbcp.c | 31 ++++++++++--
4 files changed, 110 insertions(+), 27 deletions(-)
---
base-commit: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
change-id: 20260414-pxa1908-clk-reset-179c3f1d6214
Best regards,
--
Duje Mihanović <duje@dujemihanovic.xyz>
^ permalink raw reply [flat|nested] 9+ messages in thread* [PATCH 1/4] dt-bindings: clock: marvell,pxa1908: Add #reset-cells 2026-04-14 19:51 [PATCH 0/4] PXA1908 clock controller resets Duje Mihanović @ 2026-04-14 19:51 ` Duje Mihanović 2026-04-15 8:08 ` Krzysztof Kozlowski 2026-04-29 2:08 ` Stephen Boyd 2026-04-14 19:51 ` [PATCH 2/4] clk: mmp: pxa1908-apbc: Add reset cells Duje Mihanović ` (2 subsequent siblings) 3 siblings, 2 replies; 9+ messages in thread From: Duje Mihanović @ 2026-04-14 19:51 UTC (permalink / raw) To: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: Karel Balej, linux-arm-kernel, linux-clk, devicetree, linux-kernel, phone-devel, ~postmarketos/upstreaming, Duje Mihanović From: Duje Mihanović <duje@dujemihanovic.xyz> The APBC and APBCP controllers have reset lines exposed. Give them a #reset-cells so that they may be used as reset controllers. Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz> --- .../devicetree/bindings/clock/marvell,pxa1908.yaml | 34 +++++++++++++++------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/marvell,pxa1908.yaml b/Documentation/devicetree/bindings/clock/marvell,pxa1908.yaml index 6f3a8578fe2a..0db5504013d5 100644 --- a/Documentation/devicetree/bindings/clock/marvell,pxa1908.yaml +++ b/Documentation/devicetree/bindings/clock/marvell,pxa1908.yaml @@ -37,6 +37,9 @@ properties: '#power-domain-cells': const: 1 + '#reset-cells': + const: 1 + required: - compatible - reg @@ -44,16 +47,27 @@ required: additionalProperties: false -if: - not: - properties: - compatible: - contains: - const: marvell,pxa1908-apmu - -then: - properties: - '#power-domain-cells': false +allOf: + - if: + not: + properties: + compatible: + contains: + const: marvell,pxa1908-apmu + then: + properties: + '#power-domain-cells': false + - if: + not: + properties: + compatible: + contains: + enum: + - marvell,pxa1908-apbc + - marvell,pxa1908-apbcp + then: + properties: + '#reset-cells': false examples: # APMU block: -- 2.53.0 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 1/4] dt-bindings: clock: marvell,pxa1908: Add #reset-cells 2026-04-14 19:51 ` [PATCH 1/4] dt-bindings: clock: marvell,pxa1908: Add #reset-cells Duje Mihanović @ 2026-04-15 8:08 ` Krzysztof Kozlowski 2026-04-29 2:08 ` Stephen Boyd 1 sibling, 0 replies; 9+ messages in thread From: Krzysztof Kozlowski @ 2026-04-15 8:08 UTC (permalink / raw) To: Duje Mihanović Cc: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Karel Balej, linux-arm-kernel, linux-clk, devicetree, linux-kernel, phone-devel, ~postmarketos/upstreaming, Duje Mihanović On Tue, Apr 14, 2026 at 09:51:50PM +0200, Duje Mihanović wrote: > From: Duje Mihanović <duje@dujemihanovic.xyz> > > The APBC and APBCP controllers have reset lines exposed. Give them > a #reset-cells so that they may be used as reset controllers. > > Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz> > --- > .../devicetree/bindings/clock/marvell,pxa1908.yaml | 34 +++++++++++++++------- > 1 file changed, 24 insertions(+), 10 deletions(-) Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com> Best regards, Krzysztof ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/4] dt-bindings: clock: marvell,pxa1908: Add #reset-cells 2026-04-14 19:51 ` [PATCH 1/4] dt-bindings: clock: marvell,pxa1908: Add #reset-cells Duje Mihanović 2026-04-15 8:08 ` Krzysztof Kozlowski @ 2026-04-29 2:08 ` Stephen Boyd 1 sibling, 0 replies; 9+ messages in thread From: Stephen Boyd @ 2026-04-29 2:08 UTC (permalink / raw) To: Conor Dooley, Duje Mihanović, Krzysztof Kozlowski, Michael Turquette, Rob Herring Cc: Karel Balej, linux-arm-kernel, linux-clk, devicetree, linux-kernel, phone-devel, ~postmarketos/upstreaming, Duje Mihanović Quoting Duje Mihanović (2026-04-14 12:51:50) > From: Duje Mihanović <duje@dujemihanovic.xyz> > > The APBC and APBCP controllers have reset lines exposed. Give them > a #reset-cells so that they may be used as reset controllers. > > Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz> > --- Applied to clk-next ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 2/4] clk: mmp: pxa1908-apbc: Add reset cells 2026-04-14 19:51 [PATCH 0/4] PXA1908 clock controller resets Duje Mihanović 2026-04-14 19:51 ` [PATCH 1/4] dt-bindings: clock: marvell,pxa1908: Add #reset-cells Duje Mihanović @ 2026-04-14 19:51 ` Duje Mihanović 2026-04-29 2:08 ` Stephen Boyd 2026-04-14 19:51 ` [PATCH 3/4] clk: mmp: pxa1908-apbcp: " Duje Mihanović 2026-04-14 19:51 ` [PATCH 4/4] arm64: dts: marvell: mmp: pxa1908: " Duje Mihanović 3 siblings, 1 reply; 9+ messages in thread From: Duje Mihanović @ 2026-04-14 19:51 UTC (permalink / raw) To: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: Karel Balej, linux-arm-kernel, linux-clk, devicetree, linux-kernel, phone-devel, ~postmarketos/upstreaming, Duje Mihanović From: Duje Mihanović <duje@dujemihanovic.xyz> It has been concluded by comparing the gate clock masks and vendor code between PXA1908/28 that PXA1908's APBC, similarly to PXA1928's APBC, has controllable reset lines. Describe these in the driver for correctness. Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz> --- drivers/clk/mmp/clk-pxa1908-apbc.c | 58 +++++++++++++++++++++++++++++--------- 1 file changed, 44 insertions(+), 14 deletions(-) diff --git a/drivers/clk/mmp/clk-pxa1908-apbc.c b/drivers/clk/mmp/clk-pxa1908-apbc.c index 3fd7b5e644f3..438ece4f047d 100644 --- a/drivers/clk/mmp/clk-pxa1908-apbc.c +++ b/drivers/clk/mmp/clk-pxa1908-apbc.c @@ -7,6 +7,7 @@ #include <dt-bindings/clock/marvell,pxa1908.h> #include "clk.h" +#include "reset.h" #define APBC_UART0 0x0 #define APBC_UART1 0x4 @@ -44,22 +45,25 @@ static const char * const uart_parent_names[] = {"pll1_117", "uart_pll"}; static const char * const ssp_parent_names[] = {"pll1_d16", "pll1_d48", "pll1_d24", "pll1_d12"}; static struct mmp_param_gate_clk apbc_gate_clks[] = { - {PXA1908_CLK_TWSI0, "twsi0_clk", "pll1_32", CLK_SET_RATE_PARENT, APBC_TWSI0, 0x7, 3, 0, 0, NULL}, - {PXA1908_CLK_TWSI1, "twsi1_clk", "pll1_32", CLK_SET_RATE_PARENT, APBC_TWSI1, 0x7, 3, 0, 0, NULL}, - {PXA1908_CLK_TWSI3, "twsi3_clk", "pll1_32", CLK_SET_RATE_PARENT, APBC_TWSI3, 0x7, 3, 0, 0, NULL}, - {PXA1908_CLK_GPIO, "gpio_clk", "vctcxo", CLK_SET_RATE_PARENT, APBC_GPIO, 0x7, 3, 0, 0, NULL}, - {PXA1908_CLK_KPC, "kpc_clk", "clk32", CLK_SET_RATE_PARENT, APBC_KPC, 0x7, 3, 0, MMP_CLK_GATE_NEED_DELAY, NULL}, - {PXA1908_CLK_RTC, "rtc_clk", "clk32", CLK_SET_RATE_PARENT, APBC_RTC, 0x87, 0x83, 0, MMP_CLK_GATE_NEED_DELAY, NULL}, + {PXA1908_CLK_TWSI0, "twsi0_clk", "pll1_32", CLK_SET_RATE_PARENT, APBC_TWSI0, 0x3, 3, 0, 0, NULL}, + {PXA1908_CLK_TWSI1, "twsi1_clk", "pll1_32", CLK_SET_RATE_PARENT, APBC_TWSI1, 0x3, 3, 0, 0, NULL}, + {PXA1908_CLK_TWSI3, "twsi3_clk", "pll1_32", CLK_SET_RATE_PARENT, APBC_TWSI3, 0x3, 3, 0, 0, NULL}, + {PXA1908_CLK_GPIO, "gpio_clk", "vctcxo", CLK_SET_RATE_PARENT, APBC_GPIO, 0x3, 3, 0, 0, NULL}, + {PXA1908_CLK_KPC, "kpc_clk", "clk32", CLK_SET_RATE_PARENT, APBC_KPC, 0x3, 3, 0, MMP_CLK_GATE_NEED_DELAY, NULL}, + {PXA1908_CLK_RTC, "rtc_clk", "clk32", CLK_SET_RATE_PARENT, APBC_RTC, 0x83, 0x83, 0, MMP_CLK_GATE_NEED_DELAY, NULL}, + {PXA1908_CLK_PWM1, "pwm1_clk", "pwm01_apb_share", CLK_SET_RATE_PARENT, APBC_PWM1, 0x2, 2, 0, 0, NULL}, + {PXA1908_CLK_PWM3, "pwm3_clk", "pwm23_apb_share", CLK_SET_RATE_PARENT, APBC_PWM3, 0x2, 2, 0, 0, NULL}, + {PXA1908_CLK_UART0, "uart0_clk", "uart0_mux", CLK_SET_RATE_PARENT, APBC_UART0, 0x3, 3, 0, 0, &uart0_lock}, + {PXA1908_CLK_UART1, "uart1_clk", "uart1_mux", CLK_SET_RATE_PARENT, APBC_UART1, 0x3, 3, 0, 0, &uart1_lock}, + {PXA1908_CLK_THERMAL, "thermal_clk", NULL, 0, APBC_THERMAL, 0x3, 3, 0, 0, NULL}, + {PXA1908_CLK_IPC_RST, "ipc_clk", NULL, 0, APBC_IPC_RST, 0x3, 3, 0, 0, NULL}, + {PXA1908_CLK_SSP0, "ssp0_clk", "ssp0_mux", 0, APBC_SSP0, 0x3, 3, 0, 0, NULL}, + {PXA1908_CLK_SSP2, "ssp2_clk", "ssp2_mux", 0, APBC_SSP2, 0x3, 3, 0, 0, NULL}, +}; + +static struct mmp_param_gate_clk apbc_gate_no_reset_clks[] = { {PXA1908_CLK_PWM0, "pwm0_clk", "pwm01_apb_share", CLK_SET_RATE_PARENT, APBC_PWM0, 0x2, 2, 0, 0, &pwm0_lock}, - {PXA1908_CLK_PWM1, "pwm1_clk", "pwm01_apb_share", CLK_SET_RATE_PARENT, APBC_PWM1, 0x6, 2, 0, 0, NULL}, {PXA1908_CLK_PWM2, "pwm2_clk", "pwm23_apb_share", CLK_SET_RATE_PARENT, APBC_PWM2, 0x2, 2, 0, 0, NULL}, - {PXA1908_CLK_PWM3, "pwm3_clk", "pwm23_apb_share", CLK_SET_RATE_PARENT, APBC_PWM3, 0x6, 2, 0, 0, NULL}, - {PXA1908_CLK_UART0, "uart0_clk", "uart0_mux", CLK_SET_RATE_PARENT, APBC_UART0, 0x7, 3, 0, 0, &uart0_lock}, - {PXA1908_CLK_UART1, "uart1_clk", "uart1_mux", CLK_SET_RATE_PARENT, APBC_UART1, 0x7, 3, 0, 0, &uart1_lock}, - {PXA1908_CLK_THERMAL, "thermal_clk", NULL, 0, APBC_THERMAL, 0x7, 3, 0, 0, NULL}, - {PXA1908_CLK_IPC_RST, "ipc_clk", NULL, 0, APBC_IPC_RST, 0x7, 3, 0, 0, NULL}, - {PXA1908_CLK_SSP0, "ssp0_clk", "ssp0_mux", 0, APBC_SSP0, 0x7, 3, 0, 0, NULL}, - {PXA1908_CLK_SSP2, "ssp2_clk", "ssp2_mux", 0, APBC_SSP2, 0x7, 3, 0, 0, NULL}, }; static struct mmp_param_mux_clk apbc_mux_clks[] = { @@ -89,6 +93,30 @@ static void pxa1908_apb_periph_clk_init(struct pxa1908_clk_unit *pxa_unit) ARRAY_SIZE(apbc_mux_clks)); mmp_register_gate_clks(unit, apbc_gate_clks, pxa_unit->base, ARRAY_SIZE(apbc_gate_clks)); + mmp_register_gate_clks(unit, apbc_gate_no_reset_clks, pxa_unit->base, + ARRAY_SIZE(apbc_gate_no_reset_clks)); +} + +/* Taken from clk-of-pxa1928.c */ +static void pxa1908_clk_reset_init(struct device_node *np, + struct pxa1908_clk_unit *pxa_unit) +{ + struct mmp_clk_reset_cell *cells; + int nr_cells = ARRAY_SIZE(apbc_gate_clks); + + cells = kzalloc_objs(*cells, nr_cells); + if (!cells) + return; + + for (int i = 0; i < nr_cells; i++) { + cells[i].clk_id = apbc_gate_clks[i].id; + cells[i].reg = pxa_unit->base + apbc_gate_clks[i].offset; + cells[i].bits = BIT(2); + cells[i].flags = 0; + cells[i].lock = apbc_gate_clks[i].lock; + }; + + mmp_clk_reset_register(np, cells, nr_cells); } static int pxa1908_apbc_probe(struct platform_device *pdev) @@ -107,6 +135,8 @@ static int pxa1908_apbc_probe(struct platform_device *pdev) pxa1908_apb_periph_clk_init(pxa_unit); + pxa1908_clk_reset_init(pdev->dev.of_node, pxa_unit); + return 0; } -- 2.53.0 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 2/4] clk: mmp: pxa1908-apbc: Add reset cells 2026-04-14 19:51 ` [PATCH 2/4] clk: mmp: pxa1908-apbc: Add reset cells Duje Mihanović @ 2026-04-29 2:08 ` Stephen Boyd 0 siblings, 0 replies; 9+ messages in thread From: Stephen Boyd @ 2026-04-29 2:08 UTC (permalink / raw) To: Conor Dooley, Duje Mihanović, Krzysztof Kozlowski, Michael Turquette, Rob Herring Cc: Karel Balej, linux-arm-kernel, linux-clk, devicetree, linux-kernel, phone-devel, ~postmarketos/upstreaming, Duje Mihanović Quoting Duje Mihanović (2026-04-14 12:51:51) > From: Duje Mihanović <duje@dujemihanovic.xyz> > > It has been concluded by comparing the gate clock masks and vendor code > between PXA1908/28 that PXA1908's APBC, similarly to PXA1928's APBC, has > controllable reset lines. Describe these in the driver for correctness. > > Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz> > --- Applied to clk-next ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 3/4] clk: mmp: pxa1908-apbcp: Add reset cells 2026-04-14 19:51 [PATCH 0/4] PXA1908 clock controller resets Duje Mihanović 2026-04-14 19:51 ` [PATCH 1/4] dt-bindings: clock: marvell,pxa1908: Add #reset-cells Duje Mihanović 2026-04-14 19:51 ` [PATCH 2/4] clk: mmp: pxa1908-apbc: Add reset cells Duje Mihanović @ 2026-04-14 19:51 ` Duje Mihanović 2026-04-29 2:08 ` Stephen Boyd 2026-04-14 19:51 ` [PATCH 4/4] arm64: dts: marvell: mmp: pxa1908: " Duje Mihanović 3 siblings, 1 reply; 9+ messages in thread From: Duje Mihanović @ 2026-04-14 19:51 UTC (permalink / raw) To: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: Karel Balej, linux-arm-kernel, linux-clk, devicetree, linux-kernel, phone-devel, ~postmarketos/upstreaming, Duje Mihanović From: Duje Mihanović <duje@dujemihanovic.xyz> It has been concluded by comparing the gate clock masks and vendor code between PXA1908/28 that PXA1908's APBCP, similarly to PXA1928's APBC, has controllable reset lines. Describe these in the driver for correctness. Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz> --- drivers/clk/mmp/clk-pxa1908-apbcp.c | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/drivers/clk/mmp/clk-pxa1908-apbcp.c b/drivers/clk/mmp/clk-pxa1908-apbcp.c index f638d7e89b47..1aa476103553 100644 --- a/drivers/clk/mmp/clk-pxa1908-apbcp.c +++ b/drivers/clk/mmp/clk-pxa1908-apbcp.c @@ -7,6 +7,7 @@ #include <dt-bindings/clock/marvell,pxa1908.h> #include "clk.h" +#include "reset.h" #define APBCP_UART2 0x1c #define APBCP_TWSI2 0x28 @@ -24,9 +25,9 @@ static DEFINE_SPINLOCK(uart2_lock); static const char * const uart_parent_names[] = {"pll1_117", "uart_pll"}; static struct mmp_param_gate_clk apbcp_gate_clks[] = { - {PXA1908_CLK_UART2, "uart2_clk", "uart2_mux", CLK_SET_RATE_PARENT, APBCP_UART2, 0x7, 0x3, 0x0, 0, &uart2_lock}, - {PXA1908_CLK_TWSI2, "twsi2_clk", "pll1_32", CLK_SET_RATE_PARENT, APBCP_TWSI2, 0x7, 0x3, 0x0, 0, NULL}, - {PXA1908_CLK_AICER, "ripc_clk", NULL, 0, APBCP_AICER, 0x7, 0x2, 0x0, 0, NULL}, + {PXA1908_CLK_UART2, "uart2_clk", "uart2_mux", CLK_SET_RATE_PARENT, APBCP_UART2, 0x3, 0x3, 0x0, 0, &uart2_lock}, + {PXA1908_CLK_TWSI2, "twsi2_clk", "pll1_32", CLK_SET_RATE_PARENT, APBCP_TWSI2, 0x3, 0x3, 0x0, 0, NULL}, + {PXA1908_CLK_AICER, "ripc_clk", NULL, 0, APBCP_AICER, 0x3, 0x2, 0x0, 0, NULL}, }; static struct mmp_param_mux_clk apbcp_mux_clks[] = { @@ -43,6 +44,28 @@ static void pxa1908_apb_p_periph_clk_init(struct pxa1908_clk_unit *pxa_unit) ARRAY_SIZE(apbcp_gate_clks)); } +/* Taken from clk-of-pxa1928.c */ +static void pxa1908_clk_reset_init(struct device_node *np, + struct pxa1908_clk_unit *pxa_unit) +{ + struct mmp_clk_reset_cell *cells; + int nr_cells = ARRAY_SIZE(apbcp_gate_clks); + + cells = kzalloc_objs(*cells, nr_cells); + if (!cells) + return; + + for (int i = 0; i < nr_cells; i++) { + cells[i].clk_id = apbcp_gate_clks[i].id; + cells[i].reg = pxa_unit->base + apbcp_gate_clks[i].offset; + cells[i].bits = BIT(2); + cells[i].flags = 0; + cells[i].lock = apbcp_gate_clks[i].lock; + }; + + mmp_clk_reset_register(np, cells, nr_cells); +} + static int pxa1908_apbcp_probe(struct platform_device *pdev) { struct pxa1908_clk_unit *pxa_unit; @@ -59,6 +82,8 @@ static int pxa1908_apbcp_probe(struct platform_device *pdev) pxa1908_apb_p_periph_clk_init(pxa_unit); + pxa1908_clk_reset_init(pdev->dev.of_node, pxa_unit); + return 0; } -- 2.53.0 ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 3/4] clk: mmp: pxa1908-apbcp: Add reset cells 2026-04-14 19:51 ` [PATCH 3/4] clk: mmp: pxa1908-apbcp: " Duje Mihanović @ 2026-04-29 2:08 ` Stephen Boyd 0 siblings, 0 replies; 9+ messages in thread From: Stephen Boyd @ 2026-04-29 2:08 UTC (permalink / raw) To: Conor Dooley, Duje Mihanović, Krzysztof Kozlowski, Michael Turquette, Rob Herring Cc: Karel Balej, linux-arm-kernel, linux-clk, devicetree, linux-kernel, phone-devel, ~postmarketos/upstreaming, Duje Mihanović Quoting Duje Mihanović (2026-04-14 12:51:52) > From: Duje Mihanović <duje@dujemihanovic.xyz> > > It has been concluded by comparing the gate clock masks and vendor code > between PXA1908/28 that PXA1908's APBCP, similarly to PXA1928's APBC, > has controllable reset lines. Describe these in the driver for > correctness. > > Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz> > --- Applied to clk-next ^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH 4/4] arm64: dts: marvell: mmp: pxa1908: Add reset cells 2026-04-14 19:51 [PATCH 0/4] PXA1908 clock controller resets Duje Mihanović ` (2 preceding siblings ...) 2026-04-14 19:51 ` [PATCH 3/4] clk: mmp: pxa1908-apbcp: " Duje Mihanović @ 2026-04-14 19:51 ` Duje Mihanović 3 siblings, 0 replies; 9+ messages in thread From: Duje Mihanović @ 2026-04-14 19:51 UTC (permalink / raw) To: Michael Turquette, Stephen Boyd, Rob Herring, Krzysztof Kozlowski, Conor Dooley Cc: Karel Balej, linux-arm-kernel, linux-clk, devicetree, linux-kernel, phone-devel, ~postmarketos/upstreaming, Duje Mihanović From: Duje Mihanović <duje@dujemihanovic.xyz> Add the newly implemented reset cells to the SoC dtsi. Signed-off-by: Duje Mihanović <duje@dujemihanovic.xyz> --- arch/arm64/boot/dts/marvell/mmp/pxa1908.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/marvell/mmp/pxa1908.dtsi b/arch/arm64/boot/dts/marvell/mmp/pxa1908.dtsi index 5778bfdb8567..05b56a759e27 100644 --- a/arch/arm64/boot/dts/marvell/mmp/pxa1908.dtsi +++ b/arch/arm64/boot/dts/marvell/mmp/pxa1908.dtsi @@ -132,6 +132,7 @@ twsi1: i2c@10800 { reg = <0x10800 0x64>; interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>; clocks = <&apbc PXA1908_CLK_TWSI1>; + resets = <&apbc PXA1908_CLK_TWSI1>; mrvl,i2c-fast-mode; status = "disabled"; }; @@ -143,6 +144,7 @@ twsi0: i2c@11000 { reg = <0x11000 0x64>; interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>; clocks = <&apbc PXA1908_CLK_TWSI0>; + resets = <&apbc PXA1908_CLK_TWSI0>; mrvl,i2c-fast-mode; status = "disabled"; }; @@ -154,6 +156,7 @@ twsi3: i2c@13800 { reg = <0x13800 0x64>; interrupts = <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>; clocks = <&apbc PXA1908_CLK_TWSI3>; + resets = <&apbc PXA1908_CLK_TWSI3>; mrvl,i2c-fast-mode; status = "disabled"; }; @@ -162,6 +165,7 @@ apbc: clock-controller@15000 { compatible = "marvell,pxa1908-apbc"; reg = <0x15000 0x1000>; #clock-cells = <1>; + #reset-cells = <1>; }; uart0: serial@17000 { @@ -169,6 +173,7 @@ uart0: serial@17000 { reg = <0x17000 0x1000>; interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; clocks = <&apbc PXA1908_CLK_UART0>; + resets = <&apbc PXA1908_CLK_UART0>; reg-shift = <2>; }; @@ -177,6 +182,7 @@ uart1: serial@18000 { reg = <0x18000 0x1000>; interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>; clocks = <&apbc PXA1908_CLK_UART1>; + resets = <&apbc PXA1908_CLK_UART1>; reg-shift = <2>; }; @@ -188,6 +194,7 @@ gpio: gpio@19000 { gpio-controller; #gpio-cells = <2>; clocks = <&apbc PXA1908_CLK_GPIO>; + resets = <&apbc PXA1908_CLK_GPIO>; interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "gpio_mux"; interrupt-controller; @@ -215,6 +222,7 @@ pwm0: pwm@1a000 { compatible = "marvell,pxa250-pwm"; reg = <0x1a000 0x10>; clocks = <&apbc PXA1908_CLK_PWM0>; + resets = <&apbc PXA1908_CLK_PWM0>; #pwm-cells = <1>; status = "disabled"; }; @@ -223,6 +231,7 @@ pwm1: pwm@1a400 { compatible = "marvell,pxa250-pwm"; reg = <0x1a400 0x10>; clocks = <&apbc PXA1908_CLK_PWM1>; + resets = <&apbc PXA1908_CLK_PWM1>; #pwm-cells = <1>; status = "disabled"; }; @@ -231,6 +240,7 @@ pwm2: pwm@1a800 { compatible = "marvell,pxa250-pwm"; reg = <0x1a800 0x10>; clocks = <&apbc PXA1908_CLK_PWM2>; + resets = <&apbc PXA1908_CLK_PWM2>; #pwm-cells = <1>; status = "disabled"; }; @@ -239,6 +249,7 @@ pwm3: pwm@1ac00 { compatible = "marvell,pxa250-pwm"; reg = <0x1ac00 0x10>; clocks = <&apbc PXA1908_CLK_PWM3>; + resets = <&apbc PXA1908_CLK_PWM3>; #pwm-cells = <1>; status = "disabled"; }; @@ -261,6 +272,7 @@ uart2: serial@36000 { reg = <0x36000 0x1000>; interrupts = <GIC_SPI 59 IRQ_TYPE_LEVEL_HIGH>; clocks = <&apbcp PXA1908_CLK_UART2>; + resets = <&apbcp PXA1908_CLK_UART2>; reg-shift = <2>; }; @@ -271,6 +283,7 @@ twsi2: i2c@37000 { reg = <0x37000 0x64>; interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>; clocks = <&apbcp PXA1908_CLK_TWSI2>; + resets = <&apbcp PXA1908_CLK_TWSI2>; mrvl,i2c-fast-mode; status = "disabled"; }; @@ -279,6 +292,7 @@ apbcp: clock-controller@3b000 { compatible = "marvell,pxa1908-apbcp"; reg = <0x3b000 0x1000>; #clock-cells = <1>; + #reset-cells = <1>; }; mpmu: clock-controller@50000 { -- 2.53.0 ^ permalink raw reply related [flat|nested] 9+ messages in thread
end of thread, other threads:[~2026-04-29 3:47 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2026-04-14 19:51 [PATCH 0/4] PXA1908 clock controller resets Duje Mihanović 2026-04-14 19:51 ` [PATCH 1/4] dt-bindings: clock: marvell,pxa1908: Add #reset-cells Duje Mihanović 2026-04-15 8:08 ` Krzysztof Kozlowski 2026-04-29 2:08 ` Stephen Boyd 2026-04-14 19:51 ` [PATCH 2/4] clk: mmp: pxa1908-apbc: Add reset cells Duje Mihanović 2026-04-29 2:08 ` Stephen Boyd 2026-04-14 19:51 ` [PATCH 3/4] clk: mmp: pxa1908-apbcp: " Duje Mihanović 2026-04-29 2:08 ` Stephen Boyd 2026-04-14 19:51 ` [PATCH 4/4] arm64: dts: marvell: mmp: pxa1908: " Duje Mihanović
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox