Skip to contentSkip to conversation

net: ipa: add support for the SM8350 SoC

PATCH Applied Alex Elder 3 participants 5 messages Apr 13, 2021 – May 26, 2021

Subsystems (5)
lore
Share & tools
lore

Alex Elder

author
#0 lore raw

cover net: ipa: add support for the SM8350 SoC

This small series adds IPA driver support for the Qualcomm SM8350 SoC, which implements IPA v4.9.

The first patch updates the DT binding, and depends on a previous patch that has already been accepted into net-next.

The second just defines the IPA v4.9 configuration data file.

(Device Tree files to support this SoC will be sent separately and will go through the Qualcomm tree.)

-Alex

Alex Elder (2):
dt-bindings: net: qcom,ipa: add support for SM8350
net: ipa: add IPA v4.9 configuration data

 .../devicetree/bindings/net/qcom,ipa.yaml     |  11 +-
 drivers/net/ipa/Makefile                      |   3 +-
 drivers/net/ipa/ipa_data-v4.9.c               | 430 ++++++++++++++++++
 drivers/net/ipa/ipa_data.h                    |   1 +
 drivers/net/ipa/ipa_main.c                    |   4 +
 5 files changed, 443 insertions(+), 6 deletions(-)
 create mode 100644 drivers/net/ipa/ipa_data-v4.9.c
Signature · 1 line
2.27.0
author
#1 lore raw

PATCH 1/2 dt-bindings: net: qcom,ipa: add support for SM8350

Add support for "qcom,sm8350-ipa", which uses IPA v4.9.

Use "enum" rather than "oneOf/const ..." to specify compatible strings, as suggested by Rob Herring.

---
 Documentation/devicetree/bindings/net/qcom,ipa.yaml | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/net/qcom,ipa.yaml +6 -5
index 2645a02cf19bf..da5212e693e91 100644
@@ -43,11 +43,12 @@ description:
 
 properties:
   compatible:
-    oneOf:
-      - const: "qcom,sc7180-ipa"
-      - const: "qcom,sc7280-ipa"
-      - const: "qcom,sdm845-ipa"
-      - const: "qcom,sdx55-ipa"
+    enum:
+      - qcom,sc7180-ipa
+      - qcom,sc7280-ipa
+      - qcom,sdm845-ipa
+      - qcom,sdx55-ipa
+      - qcom,sm8350-ipa
 
   reg:
     items:
Signature · 1 line
2.27.0
author
#2 lore raw

PATCH 2/2 net: ipa: add IPA v4.9 configuration data

In reply to Alex Elder

Add support for the SM8350 SoC, which includes IPA version 4.9.

---
 drivers/net/ipa/Makefile        |   3 +-
 drivers/net/ipa/ipa_data-v4.9.c | 430 ++++++++++++++++++++++++++++++++
 drivers/net/ipa/ipa_data.h      |   1 +
 drivers/net/ipa/ipa_main.c      |   4 +
 4 files changed, 437 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/ipa/ipa_data-v4.9.c
drivers/net/ipa/Makefile +2 -1
index 8c0ac87903549..1efe1a88104b3 100644
@@ -10,4 +10,5 @@ ipa-y			:=	ipa_main.o ipa_clock.o ipa_reg.o ipa_mem.o \
 				ipa_resource.o ipa_qmi.o ipa_qmi_msg.o
 
 ipa-y			+=	ipa_data-v3.5.1.o ipa_data-v4.2.o \
-				ipa_data-v4.5.o ipa_data-v4.11.o
+				ipa_data-v4.5.o ipa_data-v4.9.o \
+				ipa_data-v4.11.o
drivers/net/ipa/ipa_data-v4.9.c new file +430 -0

430 lines not on this page · raw message

drivers/net/ipa/ipa_data.h +1 -0
index e3212ea9e3bce..5c4c8d72d7d87 100644
@@ -303,6 +303,7 @@ struct ipa_data {
 extern const struct ipa_data ipa_data_v3_5_1;
 extern const struct ipa_data ipa_data_v4_2;
 extern const struct ipa_data ipa_data_v4_5;
+extern const struct ipa_data ipa_data_v4_9;
 extern const struct ipa_data ipa_data_v4_11;
 
 #endif /* _IPA_DATA_H_ */
drivers/net/ipa/ipa_main.c +4 -0
index 0d168afcdf041..aad915e2ce523 100644
@@ -577,6 +577,10 @@ static const struct of_device_id ipa_match[] = {
 		.compatible	= "qcom,sdx55-ipa",
 		.data		= &ipa_data_v4_5,
 	},
+	{
+		.compatible	= "qcom,sm8350-ipa",
+		.data		= &ipa_data_v4_9,
+	},
 	{
 		.compatible	= "qcom,sc7280-ipa",
 		.data		= &ipa_data_v4_11,
Signature · 1 line
2.27.0
#3 lore raw
In reply to Alex Elder
This series was applied to netdev/net-next.git (refs/heads/master):

Hello:

This series was applied to netdev/net-next.git (refs/heads/master):

Quoted 9 lines · On Tue, 13 Apr 2021 11:38:24 -0500 you wrote:

This small series adds IPA driver support for the Qualcomm SM8350 SoC, which implements IPA v4.9.

The first patch updates the DT binding, and depends on a previous patch that has already been accepted into net-next.

The second just defines the IPA v4.9 configuration data file.

[...]

Here is the summary with links:
- [net-next,1/2] dt-bindings: net: qcom,ipa: add support for SM8350

    https://git.kernel.org/netdev/net-next/c/15c88e185eb9
  - [net-next,2/2] net: ipa: add IPA v4.9 configuration data
    https://git.kernel.org/netdev/net-next/c/e557dc82418d

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

#4 lore raw
In reply to Alex Elder
This series was applied to qcom/linux.git (refs/heads/for-next):

Hello:

This series was applied to qcom/linux.git (refs/heads/for-next):

Quoted 9 lines · On Tue, 13 Apr 2021 11:38:24 -0500 you wrote:

This small series adds IPA driver support for the Qualcomm SM8350 SoC, which implements IPA v4.9.

The first patch updates the DT binding, and depends on a previous patch that has already been accepted into net-next.

The second just defines the IPA v4.9 configuration data file.

[...]

Here is the summary with links:
- [net-next,1/2] dt-bindings: net: qcom,ipa: add support for SM8350

    https://git.kernel.org/qcom/c/15c88e185eb9
  - [net-next,2/2] net: ipa: add IPA v4.9 configuration data
    https://git.kernel.org/qcom/c/e557dc82418d

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html