The Airoha AN7581 SoC can configure the SCU serdes lines for multiple
purpose. For example the Serdes for the USB1 port can be both
used for USB 3.0 operation or for Ethernet. Or the USB2 serdes can both
used for USB 3.0 operation or for PCIe.
The PCIe Serdes can be both used for PCIe operation or for Ethernet.
Add bindings to permit correct reference of the different ports in DT,
mostly to differentiate the different supported modes internally to the
drivers.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
---
include/dt-bindings/soc/airoha,scu-ssr.h | 11 +++++++++++
1 file changed, 11 insertions(+)
create mode 100644 include/dt-bindings/soc/airoha,scu-ssr.h
diff --git a/include/dt-bindings/soc/airoha,scu-ssr.h b/include/dt-bindings/soc/airoha,scu-ssr.h
new file mode 100644
index 000000000000..a14cef465dad
--- /dev/null
+++ b/include/dt-bindings/soc/airoha,scu-ssr.h
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
+
+#ifndef __DT_BINDINGS_AIROHA_SCU_SSR_H
+#define __DT_BINDINGS_AIROHA_SCU_SSR_H
+
+#define AIROHA_SCU_SERDES_PCIE1 0
+#define AIROHA_SCU_SERDES_PCIE2 1
+#define AIROHA_SCU_SERDES_USB1 0
+#define AIROHA_SCU_SERDES_USB2 1
+
+#endif /* __DT_BINDINGS_AIROHA_SCU_SSR_H */
--
2.51.0
On Fri, Nov 07, 2025 at 05:02:43PM +0100, Christian Marangi wrote: > The Airoha AN7581 SoC can configure the SCU serdes lines for multiple > purpose. For example the Serdes for the USB1 port can be both > used for USB 3.0 operation or for Ethernet. Or the USB2 serdes can both > used for USB 3.0 operation or for PCIe. > > The PCIe Serdes can be both used for PCIe operation or for Ethernet. > > Add bindings to permit correct reference of the different ports in DT, > mostly to differentiate the different supported modes internally to the > drivers. > > Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> > --- > include/dt-bindings/soc/airoha,scu-ssr.h | 11 +++++++++++ > 1 file changed, 11 insertions(+) > create mode 100644 include/dt-bindings/soc/airoha,scu-ssr.h > > diff --git a/include/dt-bindings/soc/airoha,scu-ssr.h b/include/dt-bindings/soc/airoha,scu-ssr.h > new file mode 100644 > index 000000000000..a14cef465dad > --- /dev/null > +++ b/include/dt-bindings/soc/airoha,scu-ssr.h > @@ -0,0 +1,11 @@ > +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ > + > +#ifndef __DT_BINDINGS_AIROHA_SCU_SSR_H > +#define __DT_BINDINGS_AIROHA_SCU_SSR_H > + > +#define AIROHA_SCU_SERDES_PCIE1 0 > +#define AIROHA_SCU_SERDES_PCIE2 1 > +#define AIROHA_SCU_SERDES_USB1 0 > +#define AIROHA_SCU_SERDES_USB2 1 I'm going to assume that 01 01 is correct here. Acked-by: Conor Dooley <conor.dooley@microchip.com>
On Fri, Nov 07, 2025 at 06:14:31PM +0000, Conor Dooley wrote: > On Fri, Nov 07, 2025 at 05:02:43PM +0100, Christian Marangi wrote: > > The Airoha AN7581 SoC can configure the SCU serdes lines for multiple > > purpose. For example the Serdes for the USB1 port can be both > > used for USB 3.0 operation or for Ethernet. Or the USB2 serdes can both > > used for USB 3.0 operation or for PCIe. > > > > The PCIe Serdes can be both used for PCIe operation or for Ethernet. > > > > Add bindings to permit correct reference of the different ports in DT, > > mostly to differentiate the different supported modes internally to the > > drivers. > > > > Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> > > --- > > include/dt-bindings/soc/airoha,scu-ssr.h | 11 +++++++++++ > > 1 file changed, 11 insertions(+) > > create mode 100644 include/dt-bindings/soc/airoha,scu-ssr.h > > > > diff --git a/include/dt-bindings/soc/airoha,scu-ssr.h b/include/dt-bindings/soc/airoha,scu-ssr.h > > new file mode 100644 > > index 000000000000..a14cef465dad > > --- /dev/null > > +++ b/include/dt-bindings/soc/airoha,scu-ssr.h > > @@ -0,0 +1,11 @@ > > +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ > > + > > +#ifndef __DT_BINDINGS_AIROHA_SCU_SSR_H > > +#define __DT_BINDINGS_AIROHA_SCU_SSR_H > > + > > +#define AIROHA_SCU_SERDES_PCIE1 0 > > +#define AIROHA_SCU_SERDES_PCIE2 1 > > +#define AIROHA_SCU_SERDES_USB1 0 > > +#define AIROHA_SCU_SERDES_USB2 1 > > I'm going to assume that 01 01 is correct here. > Acked-by: Conor Dooley <conor.dooley@microchip.com> Yes the value are then translated in the driver internally. -- Ansuel
© 2016 - 2025 Red Hat, Inc.