* [PATCH 0/2] add ethernet nodes for UniPhier PXs3 SoC
@ 2018-03-27 10:32 ` Kunihiko Hayashi
0 siblings, 0 replies; 8+ messages in thread
From: Kunihiko Hayashi @ 2018-03-27 10:32 UTC (permalink / raw)
To: linux-arm-kernel
This series adds ethernet nodes for UniPhier PXs3 SoC and the board,
and adds pinctrl groups for second ethernet instances because PXs3 has two
ethernet instances.
Kunihiko Hayashi (2):
ARM: dts: uniphier: add pinctrl groups of ethernet for second instance
arm64: dts: uniphier: add ethernet node for PXs3
arch/arm/boot/dts/uniphier-pinctrl.dtsi | 10 ++++++
.../arm64/boot/dts/socionext/uniphier-pxs3-ref.dts | 22 +++++++++++++
arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi | 36 ++++++++++++++++++++++
3 files changed, 68 insertions(+)
--
2.7.4
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/2] ARM: dts: uniphier: add pinctrl groups of ethernet for second instance
2018-03-27 10:32 ` Kunihiko Hayashi
@ 2018-03-27 10:32 ` Kunihiko Hayashi
-1 siblings, 0 replies; 8+ messages in thread
From: Kunihiko Hayashi @ 2018-03-27 10:32 UTC (permalink / raw)
To: Masahiro Yamada, linux-arm-kernel
Cc: Mark Rutland, devicetree, Masami Hiramatsu, Kunihiko Hayashi,
Jassi Brar, Rob Herring
Add pinctrl groups of ethernet, such as "ether1_rgmii" and "ether1_rmii".
These are used for second ethernet instance.
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
---
arch/arm/boot/dts/uniphier-pinctrl.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/uniphier-pinctrl.dtsi b/arch/arm/boot/dts/uniphier-pinctrl.dtsi
index de481c3..c094377 100644
--- a/arch/arm/boot/dts/uniphier-pinctrl.dtsi
+++ b/arch/arm/boot/dts/uniphier-pinctrl.dtsi
@@ -33,6 +33,16 @@
function = "ether_rmii";
};
+ pinctrl_ether1_rgmii: ether1-rgmii {
+ groups = "ether1_rgmii";
+ function = "ether1_rgmii";
+ };
+
+ pinctrl_ether1_rmii: ether1-rmii {
+ groups = "ether1_rmii";
+ function = "ether1_rmii";
+ };
+
pinctrl_i2c0: i2c0 {
groups = "i2c0";
function = "i2c0";
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 1/2] ARM: dts: uniphier: add pinctrl groups of ethernet for second instance
@ 2018-03-27 10:32 ` Kunihiko Hayashi
0 siblings, 0 replies; 8+ messages in thread
From: Kunihiko Hayashi @ 2018-03-27 10:32 UTC (permalink / raw)
To: linux-arm-kernel
Add pinctrl groups of ethernet, such as "ether1_rgmii" and "ether1_rmii".
These are used for second ethernet instance.
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
---
arch/arm/boot/dts/uniphier-pinctrl.dtsi | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/arch/arm/boot/dts/uniphier-pinctrl.dtsi b/arch/arm/boot/dts/uniphier-pinctrl.dtsi
index de481c3..c094377 100644
--- a/arch/arm/boot/dts/uniphier-pinctrl.dtsi
+++ b/arch/arm/boot/dts/uniphier-pinctrl.dtsi
@@ -33,6 +33,16 @@
function = "ether_rmii";
};
+ pinctrl_ether1_rgmii: ether1-rgmii {
+ groups = "ether1_rgmii";
+ function = "ether1_rgmii";
+ };
+
+ pinctrl_ether1_rmii: ether1-rmii {
+ groups = "ether1_rmii";
+ function = "ether1_rmii";
+ };
+
pinctrl_i2c0: i2c0 {
groups = "i2c0";
function = "i2c0";
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] arm64: dts: uniphier: add ethernet node for PXs3
2018-03-27 10:32 ` Kunihiko Hayashi
@ 2018-03-27 10:32 ` Kunihiko Hayashi
-1 siblings, 0 replies; 8+ messages in thread
From: Kunihiko Hayashi @ 2018-03-27 10:32 UTC (permalink / raw)
To: Masahiro Yamada, linux-arm-kernel
Cc: Mark Rutland, devicetree, Masami Hiramatsu, Kunihiko Hayashi,
Jassi Brar, Rob Herring
Add nodes of the AVE ethernet controller for PXs3 and the boards.
This SoC has two controllers.
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
---
.../arm64/boot/dts/socionext/uniphier-pxs3-ref.dts | 22 +++++++++++++
arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi | 36 ++++++++++++++++++++++
2 files changed, 58 insertions(+)
diff --git a/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts b/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts
index 3c71087..f9fa61d 100644
--- a/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts
+++ b/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts
@@ -80,3 +80,25 @@
&nand {
status = "okay";
};
+
+ð0 {
+ status = "okay";
+ phy-handle = <ðphy0>;
+};
+
+ð1 {
+ status = "okay";
+ phy-handle = <ðphy1>;
+};
+
+&mdio0 {
+ ethphy0: ethphy@0 {
+ reg = <0>;
+ };
+};
+
+&mdio1 {
+ ethphy1: ethphy@0 {
+ reg = <0>;
+ };
+};
diff --git a/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi b/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi
index 234fc58..0a5a7c2 100644
--- a/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi
+++ b/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi
@@ -407,6 +407,42 @@
};
};
+ eth0: ethernet@65000000 {
+ compatible = "socionext,uniphier-pxs3-ave4";
+ status = "disabled";
+ reg = <0x65000000 0x8500>;
+ interrupts = <0 66 4>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_ether_rgmii>;
+ clocks = <&sys_clk 6>;
+ resets = <&sys_rst 6>;
+ phy-mode = "rgmii";
+ local-mac-address = [00 00 00 00 00 00];
+
+ mdio0: mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+ };
+
+ eth1: ethernet@65200000 {
+ compatible = "socionext,uniphier-pxs3-ave4";
+ status = "disabled";
+ reg = <0x65200000 0x8500>;
+ interrupts = <0 67 4>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_ether1_rgmii>;
+ clocks = <&sys_clk 7>;
+ resets = <&sys_rst 7>;
+ phy-mode = "rgmii";
+ local-mac-address = [00 00 00 00 00 00];
+
+ mdio1: mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+ };
+
nand: nand@68000000 {
compatible = "socionext,uniphier-denali-nand-v5b";
status = "disabled";
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] arm64: dts: uniphier: add ethernet node for PXs3
@ 2018-03-27 10:32 ` Kunihiko Hayashi
0 siblings, 0 replies; 8+ messages in thread
From: Kunihiko Hayashi @ 2018-03-27 10:32 UTC (permalink / raw)
To: linux-arm-kernel
Add nodes of the AVE ethernet controller for PXs3 and the boards.
This SoC has two controllers.
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
---
.../arm64/boot/dts/socionext/uniphier-pxs3-ref.dts | 22 +++++++++++++
arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi | 36 ++++++++++++++++++++++
2 files changed, 58 insertions(+)
diff --git a/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts b/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts
index 3c71087..f9fa61d 100644
--- a/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts
+++ b/arch/arm64/boot/dts/socionext/uniphier-pxs3-ref.dts
@@ -80,3 +80,25 @@
&nand {
status = "okay";
};
+
+ð0 {
+ status = "okay";
+ phy-handle = <ðphy0>;
+};
+
+ð1 {
+ status = "okay";
+ phy-handle = <ðphy1>;
+};
+
+&mdio0 {
+ ethphy0: ethphy at 0 {
+ reg = <0>;
+ };
+};
+
+&mdio1 {
+ ethphy1: ethphy at 0 {
+ reg = <0>;
+ };
+};
diff --git a/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi b/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi
index 234fc58..0a5a7c2 100644
--- a/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi
+++ b/arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi
@@ -407,6 +407,42 @@
};
};
+ eth0: ethernet at 65000000 {
+ compatible = "socionext,uniphier-pxs3-ave4";
+ status = "disabled";
+ reg = <0x65000000 0x8500>;
+ interrupts = <0 66 4>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_ether_rgmii>;
+ clocks = <&sys_clk 6>;
+ resets = <&sys_rst 6>;
+ phy-mode = "rgmii";
+ local-mac-address = [00 00 00 00 00 00];
+
+ mdio0: mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+ };
+
+ eth1: ethernet at 65200000 {
+ compatible = "socionext,uniphier-pxs3-ave4";
+ status = "disabled";
+ reg = <0x65200000 0x8500>;
+ interrupts = <0 67 4>;
+ pinctrl-names = "default";
+ pinctrl-0 = <&pinctrl_ether1_rgmii>;
+ clocks = <&sys_clk 7>;
+ resets = <&sys_rst 7>;
+ phy-mode = "rgmii";
+ local-mac-address = [00 00 00 00 00 00];
+
+ mdio1: mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ };
+ };
+
nand: nand at 68000000 {
compatible = "socionext,uniphier-denali-nand-v5b";
status = "disabled";
--
2.7.4
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 0/2] add ethernet nodes for UniPhier PXs3 SoC
2018-03-27 10:32 ` Kunihiko Hayashi
@ 2018-03-27 16:32 ` Masahiro Yamada
-1 siblings, 0 replies; 8+ messages in thread
From: Masahiro Yamada @ 2018-03-27 16:32 UTC (permalink / raw)
To: Kunihiko Hayashi
Cc: Mark Rutland, devicetree, Masami Hiramatsu, Jassi Brar,
Rob Herring, linux-arm-kernel
2018-03-27 19:32 GMT+09:00 Kunihiko Hayashi <hayashi.kunihiko@socionext.com>:
> This series adds ethernet nodes for UniPhier PXs3 SoC and the board,
> and adds pinctrl groups for second ethernet instances because PXs3 has two
> ethernet instances.
>
> Kunihiko Hayashi (2):
> ARM: dts: uniphier: add pinctrl groups of ethernet for second instance
> arm64: dts: uniphier: add ethernet node for PXs3
Applied. Thanks.
> arch/arm/boot/dts/uniphier-pinctrl.dtsi | 10 ++++++
> .../arm64/boot/dts/socionext/uniphier-pxs3-ref.dts | 22 +++++++++++++
> arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi | 36 ++++++++++++++++++++++
> 3 files changed, 68 insertions(+)
>
> --
> 2.7.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 0/2] add ethernet nodes for UniPhier PXs3 SoC
@ 2018-03-27 16:32 ` Masahiro Yamada
0 siblings, 0 replies; 8+ messages in thread
From: Masahiro Yamada @ 2018-03-27 16:32 UTC (permalink / raw)
To: linux-arm-kernel
2018-03-27 19:32 GMT+09:00 Kunihiko Hayashi <hayashi.kunihiko@socionext.com>:
> This series adds ethernet nodes for UniPhier PXs3 SoC and the board,
> and adds pinctrl groups for second ethernet instances because PXs3 has two
> ethernet instances.
>
> Kunihiko Hayashi (2):
> ARM: dts: uniphier: add pinctrl groups of ethernet for second instance
> arm64: dts: uniphier: add ethernet node for PXs3
Applied. Thanks.
> arch/arm/boot/dts/uniphier-pinctrl.dtsi | 10 ++++++
> .../arm64/boot/dts/socionext/uniphier-pxs3-ref.dts | 22 +++++++++++++
> arch/arm64/boot/dts/socionext/uniphier-pxs3.dtsi | 36 ++++++++++++++++++++++
> 3 files changed, 68 insertions(+)
>
> --
> 2.7.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe devicetree" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Best Regards
Masahiro Yamada
^ permalink raw reply [flat|nested] 8+ messages in thread