* [PATCH 0/3] Add standalone ethernet MAC entries for qcs615
@ 2024-11-18 6:16 Yijie Yang
2024-11-18 6:16 ` [PATCH 1/3] dt-bindings: net: qcom,ethqos: revise description " Yijie Yang
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Yijie Yang @ 2024-11-18 6:16 UTC (permalink / raw)
To: Vinod Koul, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bhupesh Sharma, Alexandre Torgue,
Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin
Cc: quic_yijiyang, Krzysztof Kozlowski, netdev, linux-arm-msm,
devicetree, linux-kernel, linux-stm32, linux-arm-kernel,
quic_tingweiz, quic_aiquny, quic_tengfan, quic_jiegan,
quic_jingyw, quic_jsuraj
Add separate EMAC entries for qcs615 since its core version is 2.3.1,
compared to sm8150's 2.1.2.
Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
---
Yijie Yang (3):
dt-bindings: net: qcom,ethqos: revise description for qcs615
dt-bindings: net: snps,dwmac: add description for qcs615
net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms
Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 5 +----
Documentation/devicetree/bindings/net/snps,dwmac.yaml | 2 ++
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 17 +++++++++++++++++
3 files changed, 20 insertions(+), 4 deletions(-)
---
base-commit: 3664e6c4f4d07fa51834cd59d94b42b7f803e79b
change-id: 20241111-schema-7915779020f5
Best regards,
--
Yijie Yang <quic_yijiyang@quicinc.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/3] dt-bindings: net: qcom,ethqos: revise description for qcs615
2024-11-18 6:16 [PATCH 0/3] Add standalone ethernet MAC entries for qcs615 Yijie Yang
@ 2024-11-18 6:16 ` Yijie Yang
2024-11-19 17:41 ` Rob Herring
2024-11-18 6:16 ` [PATCH 2/3] dt-bindings: net: snps,dwmac: add " Yijie Yang
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Yijie Yang @ 2024-11-18 6:16 UTC (permalink / raw)
To: Vinod Koul, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bhupesh Sharma, Alexandre Torgue,
Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin
Cc: quic_yijiyang, Krzysztof Kozlowski, netdev, linux-arm-msm,
devicetree, linux-kernel, linux-stm32, linux-arm-kernel,
quic_tingweiz, quic_aiquny, quic_tengfan, quic_jiegan,
quic_jingyw, quic_jsuraj
The core version of EMAC on qcs615 has minor differences compared to that
on sm8150. During the bring-up routine, the loopback bit needs to be set,
and the Power-On Reset (POR) status of the registers isn't entirely
consistent with sm8150 either.
Therefore, it should be treated as a separate entity rather than a
fallback option.
Fixes: 32535b9410b8 ("dt-bindings: net: qcom,ethqos: add description for qcs615")
Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
---
Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/Documentation/devicetree/bindings/net/qcom,ethqos.yaml b/Documentation/devicetree/bindings/net/qcom,ethqos.yaml
index 0bcd593a7bd093d4475908d82585c36dd6b3a284..576a52742ff45d4984388bbc0fcc91fa91bab677 100644
--- a/Documentation/devicetree/bindings/net/qcom,ethqos.yaml
+++ b/Documentation/devicetree/bindings/net/qcom,ethqos.yaml
@@ -23,12 +23,9 @@ properties:
- enum:
- qcom,qcs8300-ethqos
- const: qcom,sa8775p-ethqos
- - items:
- - enum:
- - qcom,qcs615-ethqos
- - const: qcom,sm8150-ethqos
- enum:
- qcom,qcs404-ethqos
+ - qcom,qcs615-ethqos
- qcom,sa8775p-ethqos
- qcom,sc8280xp-ethqos
- qcom,sm8150-ethqos
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/3] dt-bindings: net: snps,dwmac: add description for qcs615
2024-11-18 6:16 [PATCH 0/3] Add standalone ethernet MAC entries for qcs615 Yijie Yang
2024-11-18 6:16 ` [PATCH 1/3] dt-bindings: net: qcom,ethqos: revise description " Yijie Yang
@ 2024-11-18 6:16 ` Yijie Yang
2024-11-18 6:16 ` [PATCH 3/3] net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms Yijie Yang
2024-11-19 11:18 ` [PATCH 0/3] Add standalone ethernet MAC entries for qcs615 Paolo Abeni
3 siblings, 0 replies; 8+ messages in thread
From: Yijie Yang @ 2024-11-18 6:16 UTC (permalink / raw)
To: Vinod Koul, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bhupesh Sharma, Alexandre Torgue,
Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin
Cc: quic_yijiyang, Krzysztof Kozlowski, netdev, linux-arm-msm,
devicetree, linux-kernel, linux-stm32, linux-arm-kernel,
quic_tingweiz, quic_aiquny, quic_tengfan, quic_jiegan,
quic_jingyw, quic_jsuraj
Add the necessary compatible entries for qcs615 to ensure its validation.
Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
---
Documentation/devicetree/bindings/net/snps,dwmac.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/Documentation/devicetree/bindings/net/snps,dwmac.yaml b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
index eb1f3ae41ab9ab4536a110f6fb3e2facb0225549..658d4479aa4864d0e193f03d65eea8b54e1490df 100644
--- a/Documentation/devicetree/bindings/net/snps,dwmac.yaml
+++ b/Documentation/devicetree/bindings/net/snps,dwmac.yaml
@@ -68,6 +68,7 @@ properties:
- loongson,ls2k-dwmac
- loongson,ls7a-dwmac
- qcom,qcs404-ethqos
+ - qcom,qcs615-ethqos
- qcom,sa8775p-ethqos
- qcom,sc8280xp-ethqos
- qcom,sm8150-ethqos
@@ -622,6 +623,7 @@ allOf:
- ingenic,x1830-mac
- ingenic,x2000-mac
- qcom,qcs404-ethqos
+ - qcom,qcs615-ethqos
- qcom,sa8775p-ethqos
- qcom,sc8280xp-ethqos
- qcom,sm8150-ethqos
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 3/3] net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms
2024-11-18 6:16 [PATCH 0/3] Add standalone ethernet MAC entries for qcs615 Yijie Yang
2024-11-18 6:16 ` [PATCH 1/3] dt-bindings: net: qcom,ethqos: revise description " Yijie Yang
2024-11-18 6:16 ` [PATCH 2/3] dt-bindings: net: snps,dwmac: add " Yijie Yang
@ 2024-11-18 6:16 ` Yijie Yang
2024-11-19 11:18 ` [PATCH 0/3] Add standalone ethernet MAC entries for qcs615 Paolo Abeni
3 siblings, 0 replies; 8+ messages in thread
From: Yijie Yang @ 2024-11-18 6:16 UTC (permalink / raw)
To: Vinod Koul, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bhupesh Sharma, Alexandre Torgue,
Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin
Cc: quic_yijiyang, Krzysztof Kozlowski, netdev, linux-arm-msm,
devicetree, linux-kernel, linux-stm32, linux-arm-kernel,
quic_tingweiz, quic_aiquny, quic_tengfan, quic_jiegan,
quic_jingyw, quic_jsuraj
qcs615 uses EMAC version 2.3.1, add the relevant defines and add the new
compatible.
Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
---
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
index 901a3c1959fa57efb078da795ad4f92a8b6f71e1..8c76beaee48821eb2853f4e3f8bfd37db8cadf78 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c
@@ -249,6 +249,22 @@ static const struct ethqos_emac_driver_data emac_v2_1_0_data = {
.has_emac_ge_3 = false,
};
+static const struct ethqos_emac_por emac_v2_3_1_por[] = {
+ { .offset = RGMII_IO_MACRO_CONFIG, .value = 0x00C01343 },
+ { .offset = SDCC_HC_REG_DLL_CONFIG, .value = 0x2004642C },
+ { .offset = SDCC_HC_REG_DDR_CONFIG, .value = 0x00000000 },
+ { .offset = SDCC_HC_REG_DLL_CONFIG2, .value = 0x00200000 },
+ { .offset = SDCC_USR_CTL, .value = 0x00010800 },
+ { .offset = RGMII_IO_MACRO_CONFIG2, .value = 0x00002060 },
+};
+
+static const struct ethqos_emac_driver_data emac_v2_3_1_data = {
+ .por = emac_v2_3_1_por,
+ .num_por = ARRAY_SIZE(emac_v2_3_1_por),
+ .rgmii_config_loopback_en = true,
+ .has_emac_ge_3 = false,
+};
+
static const struct ethqos_emac_por emac_v3_0_0_por[] = {
{ .offset = RGMII_IO_MACRO_CONFIG, .value = 0x40c01343 },
{ .offset = SDCC_HC_REG_DLL_CONFIG, .value = 0x2004642c },
@@ -898,6 +914,7 @@ static int qcom_ethqos_probe(struct platform_device *pdev)
static const struct of_device_id qcom_ethqos_match[] = {
{ .compatible = "qcom,qcs404-ethqos", .data = &emac_v2_3_0_data},
+ { .compatible = "qcom,qcs615-ethqos", .data = &emac_v2_3_1_data},
{ .compatible = "qcom,sa8775p-ethqos", .data = &emac_v4_0_0_data},
{ .compatible = "qcom,sc8280xp-ethqos", .data = &emac_v3_0_0_data},
{ .compatible = "qcom,sm8150-ethqos", .data = &emac_v2_1_0_data},
--
2.34.1
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 0/3] Add standalone ethernet MAC entries for qcs615
2024-11-18 6:16 [PATCH 0/3] Add standalone ethernet MAC entries for qcs615 Yijie Yang
` (2 preceding siblings ...)
2024-11-18 6:16 ` [PATCH 3/3] net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms Yijie Yang
@ 2024-11-19 11:18 ` Paolo Abeni
2024-11-22 1:20 ` Yijie Yang
3 siblings, 1 reply; 8+ messages in thread
From: Paolo Abeni @ 2024-11-19 11:18 UTC (permalink / raw)
To: Yijie Yang, Vinod Koul, Andrew Lunn, David S. Miller,
Eric Dumazet, Jakub Kicinski, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bhupesh Sharma, Alexandre Torgue,
Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin
Cc: Krzysztof Kozlowski, netdev, linux-arm-msm, devicetree,
linux-kernel, linux-stm32, linux-arm-kernel, quic_tingweiz,
quic_aiquny, quic_tengfan, quic_jiegan, quic_jingyw, quic_jsuraj
On 11/18/24 07:16, Yijie Yang wrote:
> Add separate EMAC entries for qcs615 since its core version is 2.3.1,
> compared to sm8150's 2.1.2.
>
> Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
## Form letter - net-next-closed
The merge window for v6.13 has begun and net-next is closed for new
drivers, features, code refactoring and optimizations. We are currently
accepting bug fixes only.
Please repost when net-next reopens after Dec 2nd.
RFC patches sent for review only are welcome at any time.
See:
https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#development-cycle
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] dt-bindings: net: qcom,ethqos: revise description for qcs615
2024-11-18 6:16 ` [PATCH 1/3] dt-bindings: net: qcom,ethqos: revise description " Yijie Yang
@ 2024-11-19 17:41 ` Rob Herring
2024-11-22 1:17 ` Yijie Yang
0 siblings, 1 reply; 8+ messages in thread
From: Rob Herring @ 2024-11-19 17:41 UTC (permalink / raw)
To: Yijie Yang
Cc: Vinod Koul, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Krzysztof Kozlowski, Conor Dooley,
Bhupesh Sharma, Alexandre Torgue, Giuseppe Cavallaro, Jose Abreu,
Maxime Coquelin, Krzysztof Kozlowski, netdev, linux-arm-msm,
devicetree, linux-kernel, linux-stm32, linux-arm-kernel,
quic_tingweiz, quic_aiquny, quic_tengfan, quic_jiegan,
quic_jingyw, quic_jsuraj
On Mon, Nov 18, 2024 at 02:16:50PM +0800, Yijie Yang wrote:
> The core version of EMAC on qcs615 has minor differences compared to that
> on sm8150. During the bring-up routine, the loopback bit needs to be set,
> and the Power-On Reset (POR) status of the registers isn't entirely
> consistent with sm8150 either.
> Therefore, it should be treated as a separate entity rather than a
> fallback option.
'revise description' is not very specific. 'Drop fallback compatible for
qcom,qcs615-ethqos' would be better.
However, this is an ABI change. You could leave the binding/dts alone
and only change the kernel driver to match on qcom,qcs615-ethqos to
achieve what you need. If there's a reason why the ABI change is okay,
then you need to detail that. Did the driver never work? Are there no
users yet?
>
> Fixes: 32535b9410b8 ("dt-bindings: net: qcom,ethqos: add description for qcs615")
> Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
> ---
> Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/net/qcom,ethqos.yaml b/Documentation/devicetree/bindings/net/qcom,ethqos.yaml
> index 0bcd593a7bd093d4475908d82585c36dd6b3a284..576a52742ff45d4984388bbc0fcc91fa91bab677 100644
> --- a/Documentation/devicetree/bindings/net/qcom,ethqos.yaml
> +++ b/Documentation/devicetree/bindings/net/qcom,ethqos.yaml
> @@ -23,12 +23,9 @@ properties:
> - enum:
> - qcom,qcs8300-ethqos
> - const: qcom,sa8775p-ethqos
> - - items:
> - - enum:
> - - qcom,qcs615-ethqos
> - - const: qcom,sm8150-ethqos
> - enum:
> - qcom,qcs404-ethqos
> + - qcom,qcs615-ethqos
> - qcom,sa8775p-ethqos
> - qcom,sc8280xp-ethqos
> - qcom,sm8150-ethqos
>
> --
> 2.34.1
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/3] dt-bindings: net: qcom,ethqos: revise description for qcs615
2024-11-19 17:41 ` Rob Herring
@ 2024-11-22 1:17 ` Yijie Yang
0 siblings, 0 replies; 8+ messages in thread
From: Yijie Yang @ 2024-11-22 1:17 UTC (permalink / raw)
To: Rob Herring
Cc: Vinod Koul, Andrew Lunn, David S. Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Krzysztof Kozlowski, Conor Dooley,
Bhupesh Sharma, Alexandre Torgue, Giuseppe Cavallaro, Jose Abreu,
Maxime Coquelin, Krzysztof Kozlowski, netdev, linux-arm-msm,
devicetree, linux-kernel, linux-stm32, linux-arm-kernel,
quic_tingweiz, quic_aiquny, quic_tengfan, quic_jiegan,
quic_jingyw, quic_jsuraj
On 2024-11-20 01:41, Rob Herring wrote:
> On Mon, Nov 18, 2024 at 02:16:50PM +0800, Yijie Yang wrote:
>> The core version of EMAC on qcs615 has minor differences compared to that
>> on sm8150. During the bring-up routine, the loopback bit needs to be set,
>> and the Power-On Reset (POR) status of the registers isn't entirely
>> consistent with sm8150 either.
>> Therefore, it should be treated as a separate entity rather than a
>> fallback option.
>
> 'revise description' is not very specific. 'Drop fallback compatible for
> qcom,qcs615-ethqos' would be better.
I will fix it.
>
> However, this is an ABI change. You could leave the binding/dts alone
> and only change the kernel driver to match on qcom,qcs615-ethqos to
> achieve what you need. If there's a reason why the ABI change is okay,
> then you need to detail that. Did the driver never work? Are there no
> users yet?
>
Firstly, this patch addresses a correction to my earlier update on the
dts schema, which can be found here:
https://lore.kernel.org/all/20241017-schema-v2-1-2320f68dc126@quicinc.com/.
As detailed in the description, the EMAC version present in qcs615
diverges from that in sm8150, leading me to conclude that the schema
should not fallback to sm8150, despite successful driver probing.
Lastly, there are currently no users for qcs615 yet.
>>
>> Fixes: 32535b9410b8 ("dt-bindings: net: qcom,ethqos: add description for qcs615")
>> Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
>> ---
>> Documentation/devicetree/bindings/net/qcom,ethqos.yaml | 5 +----
>> 1 file changed, 1 insertion(+), 4 deletions(-)
>>
>> diff --git a/Documentation/devicetree/bindings/net/qcom,ethqos.yaml b/Documentation/devicetree/bindings/net/qcom,ethqos.yaml
>> index 0bcd593a7bd093d4475908d82585c36dd6b3a284..576a52742ff45d4984388bbc0fcc91fa91bab677 100644
>> --- a/Documentation/devicetree/bindings/net/qcom,ethqos.yaml
>> +++ b/Documentation/devicetree/bindings/net/qcom,ethqos.yaml
>> @@ -23,12 +23,9 @@ properties:
>> - enum:
>> - qcom,qcs8300-ethqos
>> - const: qcom,sa8775p-ethqos
>> - - items:
>> - - enum:
>> - - qcom,qcs615-ethqos
>> - - const: qcom,sm8150-ethqos
>> - enum:
>> - qcom,qcs404-ethqos
>> + - qcom,qcs615-ethqos
>> - qcom,sa8775p-ethqos
>> - qcom,sc8280xp-ethqos
>> - qcom,sm8150-ethqos
>>
>> --
>> 2.34.1
>>
--
Best Regards,
Yijie
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 0/3] Add standalone ethernet MAC entries for qcs615
2024-11-19 11:18 ` [PATCH 0/3] Add standalone ethernet MAC entries for qcs615 Paolo Abeni
@ 2024-11-22 1:20 ` Yijie Yang
0 siblings, 0 replies; 8+ messages in thread
From: Yijie Yang @ 2024-11-22 1:20 UTC (permalink / raw)
To: Paolo Abeni, Vinod Koul, Andrew Lunn, David S. Miller,
Eric Dumazet, Jakub Kicinski, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Bhupesh Sharma, Alexandre Torgue,
Giuseppe Cavallaro, Jose Abreu, Maxime Coquelin
Cc: Krzysztof Kozlowski, netdev, linux-arm-msm, devicetree,
linux-kernel, linux-stm32, linux-arm-kernel, quic_tingweiz,
quic_aiquny, quic_tengfan, quic_jiegan, quic_jingyw, quic_jsuraj
On 2024-11-19 19:18, Paolo Abeni wrote:
> On 11/18/24 07:16, Yijie Yang wrote:
>> Add separate EMAC entries for qcs615 since its core version is 2.3.1,
>> compared to sm8150's 2.1.2.
>>
>> Signed-off-by: Yijie Yang <quic_yijiyang@quicinc.com>
> ## Form letter - net-next-closed
>
> The merge window for v6.13 has begun and net-next is closed for new
> drivers, features, code refactoring and optimizations. We are currently
> accepting bug fixes only.
>
> Please repost when net-next reopens after Dec 2nd.
>
> RFC patches sent for review only are welcome at any time.
>
> See:
> https://www.kernel.org/doc/html/next/process/maintainer-netdev.html#development-cycle
>
Thank you for the reminder.
>
--
Best Regards,
Yijie
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-11-22 1:21 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-18 6:16 [PATCH 0/3] Add standalone ethernet MAC entries for qcs615 Yijie Yang
2024-11-18 6:16 ` [PATCH 1/3] dt-bindings: net: qcom,ethqos: revise description " Yijie Yang
2024-11-19 17:41 ` Rob Herring
2024-11-22 1:17 ` Yijie Yang
2024-11-18 6:16 ` [PATCH 2/3] dt-bindings: net: snps,dwmac: add " Yijie Yang
2024-11-18 6:16 ` [PATCH 3/3] net: stmmac: dwmac-qcom-ethqos: add support for EMAC on qcs615 platforms Yijie Yang
2024-11-19 11:18 ` [PATCH 0/3] Add standalone ethernet MAC entries for qcs615 Paolo Abeni
2024-11-22 1:20 ` Yijie Yang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).