[PATCH 1/2] dt-bindings: soc: spacemit: k3: Decouple composite reset lines
Yixun Lan
dlan at kernel.org
Thu Mar 12 04:28:58 PDT 2026
Hi Philipp,
On 12:09 Thu 12 Mar , Philipp Zabel wrote:
> On Do, 2026-03-12 at 10:34 +0000, Yixun Lan wrote:
> > Instead of grouping several different reset lines into one composite
> > reset, decouple them to individual ones which make it more aligned
> > with underlying hardware.
> >
> > The DWC3 USB host controller in K3 SoC has three reset lines - AHB, VCC,
> > PHY. The PCIe controller also has three reset lines - DBI, Slave, Master.
> >
> > Signed-off-by: Yixun Lan <dlan at kernel.org>
> > ---
> > include/dt-bindings/reset/spacemit,k3-resets.h | 42 ++++++++++++++++++++------
> > 1 file changed, 32 insertions(+), 10 deletions(-)
> >
> > diff --git a/include/dt-bindings/reset/spacemit,k3-resets.h b/include/dt-bindings/reset/spacemit,k3-resets.h
> > index 79ac1c22b7b5..c12f8bd32047 100644
> > --- a/include/dt-bindings/reset/spacemit,k3-resets.h
> > +++ b/include/dt-bindings/reset/spacemit,k3-resets.h
> > @@ -97,11 +97,7 @@
> > #define RESET_APMU_SDH0 13
> > #define RESET_APMU_SDH1 14
> > #define RESET_APMU_SDH2 15
> > -#define RESET_APMU_USB2 16
> > -#define RESET_APMU_USB3_PORTA 17
> > -#define RESET_APMU_USB3_PORTB 18
> > -#define RESET_APMU_USB3_PORTC 19
> > -#define RESET_APMU_USB3_PORTD 20
>
> This is backwards incompatible.
> Are there any device trees using the APMU resets yet?
> If not, I wonder if we should just renumber all APMU resets into a
> contiguous range and try to get it into v7.0 as a fix.
>
No, there is currently no consumers, so I could rework them into a contiguous
version, thanks for the suggestion
> Also, this breaks bisectability.
> reset-spacemit-k3.c will fail to compile between patches 1 and 2.
>
I've tried a first version to squash the two patches, but got a checkpatch.pl complait
for binding should follow into a separate patch.
I can combine these two patches into one, is this Ok for you?
--
Yixun Lan (dlan)
More information about the linux-riscv
mailing list