* [PATCH v2 0/6] Add devicetree features and fixes for UniPhier SoCs
@ 2020-03-19 7:50 Kunihiko Hayashi
2020-03-19 7:50 ` [PATCH v2 1/6] dt-bindings: dma: uniphier-xdmac: Remove extension register region description Kunihiko Hayashi
` (5 more replies)
0 siblings, 6 replies; 9+ messages in thread
From: Kunihiko Hayashi @ 2020-03-19 7:50 UTC (permalink / raw)
To: Masahiro Yamada, Rob Herring
Cc: devicetree, linux-arm-kernel, Masami Hiramatsu, Jassi Brar,
Kunihiko Hayashi
This series adds new features that includes XDMAC for each SoC, and ethernet
aliases to inherit MAC address from u-boot and stabilization for ethernet on
PXs3.
Changes since v1:
- dt-bindings: Remove extension register description for xdmac
- Remove extension register area from xdmac node
- Fix commit message for ethernet aliases
- Remove RGMII setting for LD20 global board
These patches in v1 have already been applied:
ARM: dts: uniphier: Add USB3 controller nodes for Pro5
arm64: dts: uniphier: Enable spi node for PXs3 reference board
arm64: dts: uniphier: Add nodes of thermal monitor and thermal zone
for PXs3
ARM: dts: uniphier: Set SCSSI clock and reset IDs for each channel
arm64: dts: uniphier: Set SCSSI clock and reset IDs for each channel
Kunihiko Hayashi (6):
dt-bindings: dma: uniphier-xdmac: Remove extension register region
description
ARM: dts: uniphier: Add XDMAC node
arm64: dts: uniphier: Add XDMAC node
ARM: dts: uniphier: Add ethernet aliases
arm64: dts: uniphier: Add ethernet aliases
arm64: dts: uniphier: Stabilize Ethernet RGMII mode of PXs3 ref board
.../bindings/dma/socionext,uniphier-xdmac.yaml | 3 +--
arch/arm/boot/dts/uniphier-ld6b-ref.dts | 1 +
arch/arm/boot/dts/uniphier-pro4-ace.dts | 1 +
arch/arm/boot/dts/uniphier-pro4-ref.dts | 1 +
arch/arm/boot/dts/uniphier-pro4-sanji.dts | 1 +
arch/arm/boot/dts/uniphier-pro4.dtsi | 8 ++++++++
arch/arm/boot/dts/uniphier-pro5.dtsi | 8 ++++++++
arch/arm/boot/dts/uniphier-pxs2-gentil.dts | 1 +
arch/arm/boot/dts/uniphier-pxs2-vodka.dts | 1 +
arch/arm/boot/dts/uniphier-pxs2.dtsi | 8 ++++++++
arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts | 1 +
arch/arm64/boot/dts/socionext/uniphier-ld11-ref.dts | 1 +
arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi | 8 ++++++++
arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts | 1 +
arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts | 1 +
arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi | 8 ++++++++
arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts | 18 ++++++++++++++++++
arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi | 8 ++++++++
18 files changed, 77 insertions(+), 2 deletions(-)
--
2.7.4
^ permalink raw reply [flat|nested] 9+ messages in thread
* [PATCH v2 1/6] dt-bindings: dma: uniphier-xdmac: Remove extension register region description
2020-03-19 7:50 [PATCH v2 0/6] Add devicetree features and fixes for UniPhier SoCs Kunihiko Hayashi
@ 2020-03-19 7:50 ` Kunihiko Hayashi
2020-03-19 14:18 ` Masahiro Yamada
2020-03-19 7:50 ` [PATCH v2 2/6] ARM: dts: uniphier: Add XDMAC node Kunihiko Hayashi
` (4 subsequent siblings)
5 siblings, 1 reply; 9+ messages in thread
From: Kunihiko Hayashi @ 2020-03-19 7:50 UTC (permalink / raw)
To: Masahiro Yamada, Rob Herring
Cc: devicetree, linux-arm-kernel, Masami Hiramatsu, Jassi Brar,
Kunihiko Hayashi
The address of the extension register region in example is incorrect,
however, this extension register region is optional and isn't currently
referred from the driver, so the description of the region should be
suppressed until referred by the driver.
Fixes: b9fb56b6ba8a ("dt-bindings: dmaengine: Add UniPhier external DMA controller bindings")
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
---
Documentation/devicetree/bindings/dma/socionext,uniphier-xdmac.yaml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/dma/socionext,uniphier-xdmac.yaml b/Documentation/devicetree/bindings/dma/socionext,uniphier-xdmac.yaml
index 86cfb59..f4c3f49 100644
--- a/Documentation/devicetree/bindings/dma/socionext,uniphier-xdmac.yaml
+++ b/Documentation/devicetree/bindings/dma/socionext,uniphier-xdmac.yaml
@@ -24,7 +24,6 @@ properties:
reg:
items:
- description: XDMAC base register region (offset and length)
- - description: XDMAC extension register region (offset and length)
interrupts:
maxItems: 1
@@ -54,7 +53,7 @@ examples:
- |
xdmac: dma-controller@5fc10000 {
compatible = "socionext,uniphier-xdmac";
- reg = <0x5fc10000 0x1000>, <0x5fc20000 0x800>;
+ reg = <0x5fc10000 0x1000>;
interrupts = <0 188 4>;
#dma-cells = <2>;
dma-channels = <16>;
--
2.7.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v2 2/6] ARM: dts: uniphier: Add XDMAC node
2020-03-19 7:50 [PATCH v2 0/6] Add devicetree features and fixes for UniPhier SoCs Kunihiko Hayashi
2020-03-19 7:50 ` [PATCH v2 1/6] dt-bindings: dma: uniphier-xdmac: Remove extension register region description Kunihiko Hayashi
@ 2020-03-19 7:50 ` Kunihiko Hayashi
2020-03-19 7:50 ` [PATCH v2 3/6] arm64: " Kunihiko Hayashi
` (3 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Kunihiko Hayashi @ 2020-03-19 7:50 UTC (permalink / raw)
To: Masahiro Yamada, Rob Herring
Cc: devicetree, linux-arm-kernel, Masami Hiramatsu, Jassi Brar,
Kunihiko Hayashi
Add external DMA controller support implemented in UniPhier SoCs.
This supports for Pro4, Pro5 and PXs2.
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
---
arch/arm/boot/dts/uniphier-pro4.dtsi | 8 ++++++++
arch/arm/boot/dts/uniphier-pro5.dtsi | 8 ++++++++
arch/arm/boot/dts/uniphier-pxs2.dtsi | 8 ++++++++
3 files changed, 24 insertions(+)
diff --git a/arch/arm/boot/dts/uniphier-pro4.dtsi b/arch/arm/boot/dts/uniphier-pro4.dtsi
index 2ec04d7..cb26c10 100644
--- a/arch/arm/boot/dts/uniphier-pro4.dtsi
+++ b/arch/arm/boot/dts/uniphier-pro4.dtsi
@@ -426,6 +426,14 @@
};
};
+ xdmac: dma-controller@5fc10000 {
+ compatible = "socionext,uniphier-xdmac";
+ reg = <0x5fc10000 0x1000>;
+ interrupts = <0 188 4>;
+ dma-channels = <16>;
+ #dma-cells = <2>;
+ };
+
aidet: aidet@5fc20000 {
compatible = "socionext,uniphier-pro4-aidet";
reg = <0x5fc20000 0x200>;
diff --git a/arch/arm/boot/dts/uniphier-pro5.dtsi b/arch/arm/boot/dts/uniphier-pro5.dtsi
index 6909323..95c1c9b 100644
--- a/arch/arm/boot/dts/uniphier-pro5.dtsi
+++ b/arch/arm/boot/dts/uniphier-pro5.dtsi
@@ -408,6 +408,14 @@
};
};
+ xdmac: dma-controller@5fc10000 {
+ compatible = "socionext,uniphier-xdmac";
+ reg = <0x5fc10000 0x1000>;
+ interrupts = <0 188 4>;
+ dma-channels = <16>;
+ #dma-cells = <2>;
+ };
+
aidet: aidet@5fc20000 {
compatible = "socionext,uniphier-pro5-aidet";
reg = <0x5fc20000 0x200>;
diff --git a/arch/arm/boot/dts/uniphier-pxs2.dtsi b/arch/arm/boot/dts/uniphier-pxs2.dtsi
index 60f44f22..543b2a9 100644
--- a/arch/arm/boot/dts/uniphier-pxs2.dtsi
+++ b/arch/arm/boot/dts/uniphier-pxs2.dtsi
@@ -508,6 +508,14 @@
};
};
+ xdmac: dma-controller@5fc10000 {
+ compatible = "socionext,uniphier-xdmac";
+ reg = <0x5fc10000 0x1000>;
+ interrupts = <0 188 4>;
+ dma-channels = <16>;
+ #dma-cells = <2>;
+ };
+
aidet: aidet@5fc20000 {
compatible = "socionext,uniphier-pxs2-aidet";
reg = <0x5fc20000 0x200>;
--
2.7.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v2 3/6] arm64: dts: uniphier: Add XDMAC node
2020-03-19 7:50 [PATCH v2 0/6] Add devicetree features and fixes for UniPhier SoCs Kunihiko Hayashi
2020-03-19 7:50 ` [PATCH v2 1/6] dt-bindings: dma: uniphier-xdmac: Remove extension register region description Kunihiko Hayashi
2020-03-19 7:50 ` [PATCH v2 2/6] ARM: dts: uniphier: Add XDMAC node Kunihiko Hayashi
@ 2020-03-19 7:50 ` Kunihiko Hayashi
2020-03-19 7:50 ` [PATCH v2 4/6] ARM: dts: uniphier: Add ethernet aliases Kunihiko Hayashi
` (2 subsequent siblings)
5 siblings, 0 replies; 9+ messages in thread
From: Kunihiko Hayashi @ 2020-03-19 7:50 UTC (permalink / raw)
To: Masahiro Yamada, Rob Herring
Cc: devicetree, linux-arm-kernel, Masami Hiramatsu, Jassi Brar,
Kunihiko Hayashi
Add external DMA controller support implemented in UniPhier SoCs.
This supports for LD11, LD20 and PXs3.
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
---
arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi | 8 ++++++++
arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi | 8 ++++++++
arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi | 8 ++++++++
3 files changed, 24 insertions(+)
diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi b/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi
index 56f382f..c001f6c 100644
--- a/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi
+++ b/arch/arm64/boot/dts/socionext/uniphier-ld11.dtsi
@@ -566,6 +566,14 @@
};
};
+ xdmac: dma-controller@5fc10000 {
+ compatible = "socionext,uniphier-xdmac";
+ reg = <0x5fc10000 0x1000>;
+ interrupts = <0 188 4>;
+ dma-channels = <16>;
+ #dma-cells = <2>;
+ };
+
aidet: aidet@5fc20000 {
compatible = "socionext,uniphier-ld11-aidet";
reg = <0x5fc20000 0x200>;
diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi
index bd4f8db..ebd0d98 100644
--- a/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi
+++ b/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi
@@ -664,6 +664,14 @@
};
};
+ xdmac: dma-controller@5fc10000 {
+ compatible = "socionext,uniphier-xdmac";
+ reg = <0x5fc10000 0x1000>;
+ interrupts = <0 188 4>;
+ dma-channels = <16>;
+ #dma-cells = <2>;
+ };
+
aidet: aidet@5fc20000 {
compatible = "socionext,uniphier-ld20-aidet";
reg = <0x5fc20000 0x200>;
diff --git a/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi b/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi
index cf4f762..d69c57b 100644
--- a/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi
+++ b/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi
@@ -498,6 +498,14 @@
};
};
+ xdmac: dma-controller@5fc10000 {
+ compatible = "socionext,uniphier-xdmac";
+ reg = <0x5fc10000 0x1000>;
+ interrupts = <0 188 4>;
+ dma-channels = <16>;
+ #dma-cells = <2>;
+ };
+
aidet: aidet@5fc20000 {
compatible = "socionext,uniphier-pxs3-aidet";
reg = <0x5fc20000 0x200>;
--
2.7.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v2 4/6] ARM: dts: uniphier: Add ethernet aliases
2020-03-19 7:50 [PATCH v2 0/6] Add devicetree features and fixes for UniPhier SoCs Kunihiko Hayashi
` (2 preceding siblings ...)
2020-03-19 7:50 ` [PATCH v2 3/6] arm64: " Kunihiko Hayashi
@ 2020-03-19 7:50 ` Kunihiko Hayashi
2020-03-19 7:50 ` [PATCH v2 5/6] arm64: " Kunihiko Hayashi
2020-03-19 7:50 ` [PATCH v2 6/6] arm64: dts: uniphier: Stabilize Ethernet RGMII mode of PXs3 ref board Kunihiko Hayashi
5 siblings, 0 replies; 9+ messages in thread
From: Kunihiko Hayashi @ 2020-03-19 7:50 UTC (permalink / raw)
To: Masahiro Yamada, Rob Herring
Cc: devicetree, linux-arm-kernel, Masami Hiramatsu, Jassi Brar,
Kunihiko Hayashi
Add an aliases property of ethernet device for each SoC.
U-boot performs a fix-up of the MAC address and will overwrite the values
from the Linux devicetree for aliased ethernet device. The MAC address can
be inherited from u-boot by adding aliases of ethernet devices.
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
---
arch/arm/boot/dts/uniphier-ld6b-ref.dts | 1 +
arch/arm/boot/dts/uniphier-pro4-ace.dts | 1 +
arch/arm/boot/dts/uniphier-pro4-ref.dts | 1 +
arch/arm/boot/dts/uniphier-pro4-sanji.dts | 1 +
arch/arm/boot/dts/uniphier-pxs2-gentil.dts | 1 +
arch/arm/boot/dts/uniphier-pxs2-vodka.dts | 1 +
6 files changed, 6 insertions(+)
diff --git a/arch/arm/boot/dts/uniphier-ld6b-ref.dts b/arch/arm/boot/dts/uniphier-ld6b-ref.dts
index 60994b6..079cadc 100644
--- a/arch/arm/boot/dts/uniphier-ld6b-ref.dts
+++ b/arch/arm/boot/dts/uniphier-ld6b-ref.dts
@@ -29,6 +29,7 @@
i2c4 = &i2c4;
i2c5 = &i2c5;
i2c6 = &i2c6;
+ ethernet0 = ð
};
memory@80000000 {
diff --git a/arch/arm/boot/dts/uniphier-pro4-ace.dts b/arch/arm/boot/dts/uniphier-pro4-ace.dts
index 92cc48d..64246fa 100644
--- a/arch/arm/boot/dts/uniphier-pro4-ace.dts
+++ b/arch/arm/boot/dts/uniphier-pro4-ace.dts
@@ -26,6 +26,7 @@
i2c3 = &i2c3;
i2c5 = &i2c5;
i2c6 = &i2c6;
+ ethernet0 = ð
};
memory@80000000 {
diff --git a/arch/arm/boot/dts/uniphier-pro4-ref.dts b/arch/arm/boot/dts/uniphier-pro4-ref.dts
index 854f2eb..181442c 100644
--- a/arch/arm/boot/dts/uniphier-pro4-ref.dts
+++ b/arch/arm/boot/dts/uniphier-pro4-ref.dts
@@ -29,6 +29,7 @@
i2c3 = &i2c3;
i2c5 = &i2c5;
i2c6 = &i2c6;
+ ethernet0 = ð
};
memory@80000000 {
diff --git a/arch/arm/boot/dts/uniphier-pro4-sanji.dts b/arch/arm/boot/dts/uniphier-pro4-sanji.dts
index dda1a2f..5396556 100644
--- a/arch/arm/boot/dts/uniphier-pro4-sanji.dts
+++ b/arch/arm/boot/dts/uniphier-pro4-sanji.dts
@@ -25,6 +25,7 @@
i2c3 = &i2c3;
i2c5 = &i2c5;
i2c6 = &i2c6;
+ ethernet0 = ð
};
memory@80000000 {
diff --git a/arch/arm/boot/dts/uniphier-pxs2-gentil.dts b/arch/arm/boot/dts/uniphier-pxs2-gentil.dts
index e27fd4f..8e9ac57 100644
--- a/arch/arm/boot/dts/uniphier-pxs2-gentil.dts
+++ b/arch/arm/boot/dts/uniphier-pxs2-gentil.dts
@@ -26,6 +26,7 @@
i2c4 = &i2c4;
i2c5 = &i2c5;
i2c6 = &i2c6;
+ ethernet0 = ð
};
memory@80000000 {
diff --git a/arch/arm/boot/dts/uniphier-pxs2-vodka.dts b/arch/arm/boot/dts/uniphier-pxs2-vodka.dts
index 23fe42b..8eacc7b 100644
--- a/arch/arm/boot/dts/uniphier-pxs2-vodka.dts
+++ b/arch/arm/boot/dts/uniphier-pxs2-vodka.dts
@@ -24,6 +24,7 @@
i2c4 = &i2c4;
i2c5 = &i2c5;
i2c6 = &i2c6;
+ ethernet0 = ð
};
memory@80000000 {
--
2.7.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v2 5/6] arm64: dts: uniphier: Add ethernet aliases
2020-03-19 7:50 [PATCH v2 0/6] Add devicetree features and fixes for UniPhier SoCs Kunihiko Hayashi
` (3 preceding siblings ...)
2020-03-19 7:50 ` [PATCH v2 4/6] ARM: dts: uniphier: Add ethernet aliases Kunihiko Hayashi
@ 2020-03-19 7:50 ` Kunihiko Hayashi
2020-03-19 7:50 ` [PATCH v2 6/6] arm64: dts: uniphier: Stabilize Ethernet RGMII mode of PXs3 ref board Kunihiko Hayashi
5 siblings, 0 replies; 9+ messages in thread
From: Kunihiko Hayashi @ 2020-03-19 7:50 UTC (permalink / raw)
To: Masahiro Yamada, Rob Herring
Cc: devicetree, linux-arm-kernel, Masami Hiramatsu, Jassi Brar,
Kunihiko Hayashi
Add aliases properties of ethernet device for each SoC.
U-boot performs a fix-up of the MAC address and will overwrite the values
from the Linux devicetree for aliased ethernet device. The MAC address can
be inherited from u-boot by adding aliases of ethernet devices.
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
---
arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts | 1 +
arch/arm64/boot/dts/socionext/uniphier-ld11-ref.dts | 1 +
arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts | 1 +
arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts | 1 +
arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts | 2 ++
5 files changed, 6 insertions(+)
diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts b/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts
index f72f048..816ac25 100644
--- a/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts
+++ b/arch/arm64/boot/dts/socionext/uniphier-ld11-global.dts
@@ -30,6 +30,7 @@
i2c3 = &i2c3;
i2c4 = &i2c4;
i2c5 = &i2c5;
+ ethernet0 = ð
};
memory@80000000 {
diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld11-ref.dts b/arch/arm64/boot/dts/socionext/uniphier-ld11-ref.dts
index b8f6273..693171f 100644
--- a/arch/arm64/boot/dts/socionext/uniphier-ld11-ref.dts
+++ b/arch/arm64/boot/dts/socionext/uniphier-ld11-ref.dts
@@ -29,6 +29,7 @@
i2c3 = &i2c3;
i2c4 = &i2c4;
i2c5 = &i2c5;
+ ethernet0 = ð
};
memory@80000000 {
diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts b/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts
index 9ca692e..2c00008 100644
--- a/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts
+++ b/arch/arm64/boot/dts/socionext/uniphier-ld20-global.dts
@@ -30,6 +30,7 @@
i2c3 = &i2c3;
i2c4 = &i2c4;
i2c5 = &i2c5;
+ ethernet0 = ð
};
memory@80000000 {
diff --git a/arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts b/arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts
index 406244a..eeb976e 100644
--- a/arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts
+++ b/arch/arm64/boot/dts/socionext/uniphier-ld20-ref.dts
@@ -29,6 +29,7 @@
i2c3 = &i2c3;
i2c4 = &i2c4;
i2c5 = &i2c5;
+ ethernet0 = ð
};
memory@80000000 {
diff --git a/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts b/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts
index d887835..fcab6d1 100644
--- a/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts
+++ b/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts
@@ -29,6 +29,8 @@
i2c6 = &i2c6;
spi0 = &spi0;
spi1 = &spi1;
+ ethernet0 = ð0;
+ ethernet1 = ð1;
};
memory@80000000 {
--
2.7.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH v2 6/6] arm64: dts: uniphier: Stabilize Ethernet RGMII mode of PXs3 ref board
2020-03-19 7:50 [PATCH v2 0/6] Add devicetree features and fixes for UniPhier SoCs Kunihiko Hayashi
` (4 preceding siblings ...)
2020-03-19 7:50 ` [PATCH v2 5/6] arm64: " Kunihiko Hayashi
@ 2020-03-19 7:50 ` Kunihiko Hayashi
5 siblings, 0 replies; 9+ messages in thread
From: Kunihiko Hayashi @ 2020-03-19 7:50 UTC (permalink / raw)
To: Masahiro Yamada, Rob Herring
Cc: devicetree, linux-arm-kernel, Masami Hiramatsu, Jassi Brar,
Kunihiko Hayashi
The RGMII PHY needs to change drive-strength properties of the Ethernet
Tx pins to stabilize the PHY.
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
---
arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts b/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts
index fcab6d1..d74a6c6 100644
--- a/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts
+++ b/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts
@@ -132,3 +132,19 @@
reg = <0>;
};
};
+
+&pinctrl_ether_rgmii {
+ tx {
+ pins = "RGMII0_TXCLK", "RGMII0_TXD0", "RGMII0_TXD1",
+ "RGMII0_TXD2", "RGMII0_TXD3", "RGMII0_TXCTL";
+ drive-strength = <9>;
+ };
+};
+
+&pinctrl_ether1_rgmii {
+ tx {
+ pins = "RGMII1_TXCLK", "RGMII1_TXD0", "RGMII1_TXD1",
+ "RGMII1_TXD2", "RGMII1_TXD3", "RGMII1_TXCTL";
+ drive-strength = <9>;
+ };
+};
--
2.7.4
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/6] dt-bindings: dma: uniphier-xdmac: Remove extension register region description
2020-03-19 7:50 ` [PATCH v2 1/6] dt-bindings: dma: uniphier-xdmac: Remove extension register region description Kunihiko Hayashi
@ 2020-03-19 14:18 ` Masahiro Yamada
2020-03-23 2:26 ` Kunihiko Hayashi
0 siblings, 1 reply; 9+ messages in thread
From: Masahiro Yamada @ 2020-03-19 14:18 UTC (permalink / raw)
To: Kunihiko Hayashi
Cc: Rob Herring, DTML, linux-arm-kernel, Masami Hiramatsu, Jassi Brar
On Thu, Mar 19, 2020 at 4:51 PM Kunihiko Hayashi
<hayashi.kunihiko@socionext.com> wrote:
>
> The address of the extension register region in example is incorrect,
> however, this extension register region is optional
On which SoC is it optional?
In your previous DT submission, every reg was,
like this:
reg = <0x5fc10000 0x1000>, <0x5fc20000 0x800>;
and you meant
reg = <0x5fc10000 0x1000>, <0x5fc12000 0x800>;
?
> and isn't currently
> referred from the driver, so the description of the region should be
> suppressed until referred by the driver.
This sounds like you plan to get it back
as you extend the driver.
I checked the datasheet. This controller has more registers,
so you split the reg into small chunks, the final form will look scary:
reg = <0x5fc10000 0x1000>, <0x5fc12000 0x800>,
<0x5fc14000 0x100>, <0x5fc15000 0x100>;
My question is why you did not use a single reg tuple
that covers the whole registers.
Is any other hardware reg interleaved in between?
>
> Fixes: b9fb56b6ba8a ("dt-bindings: dmaengine: Add UniPhier external DMA controller bindings")
> Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
> ---
> Documentation/devicetree/bindings/dma/socionext,uniphier-xdmac.yaml | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/dma/socionext,uniphier-xdmac.yaml b/Documentation/devicetree/bindings/dma/socionext,uniphier-xdmac.yaml
> index 86cfb59..f4c3f49 100644
> --- a/Documentation/devicetree/bindings/dma/socionext,uniphier-xdmac.yaml
> +++ b/Documentation/devicetree/bindings/dma/socionext,uniphier-xdmac.yaml
> @@ -24,7 +24,6 @@ properties:
> reg:
> items:
> - description: XDMAC base register region (offset and length)
> - - description: XDMAC extension register region (offset and length)
>
> interrupts:
> maxItems: 1
> @@ -54,7 +53,7 @@ examples:
> - |
> xdmac: dma-controller@5fc10000 {
> compatible = "socionext,uniphier-xdmac";
> - reg = <0x5fc10000 0x1000>, <0x5fc20000 0x800>;
> + reg = <0x5fc10000 0x1000>;
> interrupts = <0 188 4>;
> #dma-cells = <2>;
> dma-channels = <16>;
> --
> 2.7.4
>
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/6] dt-bindings: dma: uniphier-xdmac: Remove extension register region description
2020-03-19 14:18 ` Masahiro Yamada
@ 2020-03-23 2:26 ` Kunihiko Hayashi
0 siblings, 0 replies; 9+ messages in thread
From: Kunihiko Hayashi @ 2020-03-23 2:26 UTC (permalink / raw)
To: Masahiro Yamada
Cc: Rob Herring, DTML, linux-arm-kernel, Masami Hiramatsu, Jassi Brar
On Thu, 19 Mar 2020 23:18:29 +0900 <masahiroy@kernel.org> wrote:
> On Thu, Mar 19, 2020 at 4:51 PM Kunihiko Hayashi
> <hayashi.kunihiko@socionext.com> wrote:
> >
> > The address of the extension register region in example is incorrect,
> > however, this extension register region is optional
>
>
> On which SoC is it optional?
>
> In your previous DT submission, every reg was,
> like this:
>
> reg = <0x5fc10000 0x1000>, <0x5fc20000 0x800>;
>
>
>
> and you meant
>
> reg = <0x5fc10000 0x1000>, <0x5fc12000 0x800>;
>
> ?
Yes. 'Optional' might not be appropriate because all SoCs has the region.
> > and isn't currently
> > referred from the driver, so the description of the region should be
> > suppressed until referred by the driver.
>
> This sounds like you plan to get it back
> as you extend the driver.
Right, however, it isn't desiable that the description of the region is
changed by extending the driver.
> I checked the datasheet. This controller has more registers,
> so you split the reg into small chunks, the final form will look scary:
>
> reg = <0x5fc10000 0x1000>, <0x5fc12000 0x800>,
> <0x5fc14000 0x100>, <0x5fc15000 0x100>;
>
>
> My question is why you did not use a single reg tuple
> that covers the whole registers.
>
> Is any other hardware reg interleaved in between?
No, there is no other hardware reg between each region.
Surely it seems pointless to divide all tuples individually.
I'll rewrite it to cover entire xdmac reg region.
Thank you,
---
Best Regards,
Kunihiko Hayashi
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2020-03-23 2:26 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-19 7:50 [PATCH v2 0/6] Add devicetree features and fixes for UniPhier SoCs Kunihiko Hayashi
2020-03-19 7:50 ` [PATCH v2 1/6] dt-bindings: dma: uniphier-xdmac: Remove extension register region description Kunihiko Hayashi
2020-03-19 14:18 ` Masahiro Yamada
2020-03-23 2:26 ` Kunihiko Hayashi
2020-03-19 7:50 ` [PATCH v2 2/6] ARM: dts: uniphier: Add XDMAC node Kunihiko Hayashi
2020-03-19 7:50 ` [PATCH v2 3/6] arm64: " Kunihiko Hayashi
2020-03-19 7:50 ` [PATCH v2 4/6] ARM: dts: uniphier: Add ethernet aliases Kunihiko Hayashi
2020-03-19 7:50 ` [PATCH v2 5/6] arm64: " Kunihiko Hayashi
2020-03-19 7:50 ` [PATCH v2 6/6] arm64: dts: uniphier: Stabilize Ethernet RGMII mode of PXs3 ref board Kunihiko Hayashi
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).