[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250309132959.19045-4-ansuelsmth@gmail.com>
Date: Sun, 9 Mar 2025 14:29:34 +0100
From: Christian Marangi <ansuelsmth@...il.com>
To: Michael Turquette <mturquette@...libre.com>,
Stephen Boyd <sboyd@...nel.org>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Lee Jones <lee@...nel.org>,
Christian Marangi <ansuelsmth@...il.com>,
Vinod Koul <vkoul@...nel.org>,
Kishon Vijay Abraham I <kishon@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>,
AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Lorenzo Bianconi <lorenzo@...nel.org>,
Daniel Danzberger <dd@...edd.com>,
Arnd Bergmann <arnd@...db.de>,
Linus Walleij <linus.walleij@...aro.org>,
Nikita Shubin <nikita.shubin@...uefel.me>,
Guo Ren <guoren@...nel.org>,
Yangyu Chen <cyy@...self.name>,
Ben Hutchings <ben@...adent.org.uk>,
Felix Fietkau <nbd@....name>,
linux-clk@...r.kernel.org,
devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-phy@...ts.infradead.org,
linux-mediatek@...ts.infradead.org,
linux-usb@...r.kernel.org,
upstream@...oha.com
Subject: [PATCH 03/13] dt-bindings: soc: airoha: add SCU SSR Serdes port binding
Add Airoha AN7581 SCU SSR Serdes port binding to define what mode is
supported by each Serdes port. These special binding are needed to
identify and provide the port mode from any user driver.
These modes are mutually exclusive and driver needs to correctly
validate the current mode for the Serdes port in use.
Signed-off-by: Christian Marangi <ansuelsmth@...il.com>
---
MAINTAINERS | 6 ++++++
include/dt-bindings/soc/airoha,scu-ssr.h | 24 ++++++++++++++++++++++++
2 files changed, 30 insertions(+)
create mode 100644 include/dt-bindings/soc/airoha,scu-ssr.h
diff --git a/MAINTAINERS b/MAINTAINERS
index 3eee238c2ea2..d3125268d63f 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -736,6 +736,12 @@ F: Documentation/devicetree/bindings/phy/airoha,en7581-pcie-phy.yaml
F: drivers/phy/phy-airoha-pcie-regs.h
F: drivers/phy/phy-airoha-pcie.c
+AIROHA SCU SSR DRIVER
+M: Christian Marangi <ansuelsmth@...il.com>
+L: linux-arm-kernel@...ts.infradead.org (moderated for non-subscribers)
+S: Maintained
+F: include/dt-bindings/soc/airoha,scu-ssr.h
+
AIROHA SPI SNFI DRIVER
M: Lorenzo Bianconi <lorenzo@...nel.org>
M: Ray Liu <ray.liu@...oha.com>
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..b14457c10d77
--- /dev/null
+++ b/include/dt-bindings/soc/airoha,scu-ssr.h
@@ -0,0 +1,24 @@
+/* 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
+
+/* WiFi1 port can be PCIe0 2 line, PCIe0 1 line or Ethernet (USXGMII/HSGMII) */
+#define AIROHA_SCU_SSR_WIFI1_PCIE0_2LINE 0
+#define AIROHA_SCU_SSR_WIFI1_PCIE0 1
+#define AIROHA_SCU_SSR_WIFI1_ETHERNET 2
+
+/* WiFi2 port can be PCIe0 2 line, PCIe1 1 line or Ethernet (USXGMII/HSGMII) */
+#define AIROHA_SCU_SSR_WIFI2_PCIE0_2LINE 0
+#define AIROHA_SCU_SSR_WIFI2_PCIE1 1
+#define AIROHA_SCU_SSR_WIFI2_ETHERNET 2
+
+/* USB1 port can be USB 3.0 port or Ethernet (HSGMII) */
+#define AIROHA_SCU_SSR_USB1_USB 0
+#define AIROHA_SCU_SSR_USB1_ETHERNET 1
+
+/* USB2 port can be USB 3.0 port or PCIe2 1 line */
+#define AIROHA_SCU_SSR_USB2_USB 0
+#define AIROHA_SCU_SSR_USB2_PCIE2 1
+
+#endif /* __DT_BINDINGS_AIROHA_SCU_SSR_H */
--
2.48.1
Powered by blists - more mailing lists