2020-11-03 18:46:38

by Łukasz Stelmach

[permalink] [raw]
Subject: [PATCH v2 0/6] Add Ethernet interface description for Odroid boards

Add devicetree description of Ethernet devices on Odroid boards. These
descriptions enable setting MAC addresses with a bootloader.

Changes in v2:
- fixed compatible for hub@1 on X/X2 (: -> ,)
- split the patch for Odroid XU3 into two
- explained the purpose of aliases in commit messages

Łukasz Stelmach (6):
ARM: dts: exynos: Fix Ethernet interface description for Odroid XU3
ARM: dts: exynos: Add an alias for the Ethernet interface on Odroid XU3
ARM: dts: exynos: Add Ethernet interface description for Odroid XU3 Lite
ARM: dts: exynos: Add Ethernet interface description for Odroid XU
ARM: dts: exynos: Add Ethernet interface description for Odroid U3
ARM: dts: exynos: Add Ethernet interface description for Odroid X/X2

arch/arm/boot/dts/exynos4412-odroidu3.dts | 12 ++++++++
arch/arm/boot/dts/exynos4412-odroidx.dts | 28 +++++++++++++++++++
arch/arm/boot/dts/exynos5410-odroidxu.dts | 15 ++++++++++
.../boot/dts/exynos5422-odroidxu3-lite.dts | 22 +++++++++++++++
arch/arm/boot/dts/exynos5422-odroidxu3.dts | 8 ++++--
5 files changed, 83 insertions(+), 2 deletions(-)

--
2.26.2


2020-11-03 18:46:48

by Łukasz Stelmach

[permalink] [raw]
Subject: [PATCH v2 3/6] ARM: dts: exynos: Add Ethernet interface description for Odroid XU3 Lite

Add Ethernet interface description for Odroid XU3 Lite.

Add an alias to enable bootloaders to find the Ethernet
interface and assign a MAC address.

Signed-off-by: Łukasz Stelmach <[email protected]>
---
.../boot/dts/exynos5422-odroidxu3-lite.dts | 22 +++++++++++++++++++
1 file changed, 22 insertions(+)

diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts b/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts
index 98feecad5489..62c5928aa994 100644
--- a/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts
+++ b/arch/arm/boot/dts/exynos5422-odroidxu3-lite.dts
@@ -16,6 +16,10 @@
/ {
model = "Hardkernel Odroid XU3 Lite";
compatible = "hardkernel,odroid-xu3-lite", "samsung,exynos5800", "samsung,exynos5";
+
+ aliases {
+ ethernet = &ethernet;
+ };
};

&arm_a7_pmu {
@@ -103,3 +107,21 @@ &pwm {
&usbdrd_dwc3_1 {
dr_mode = "peripheral";
};
+
+&usbhost2 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ hub@1 {
+ compatible = "usb0424,9514";
+ reg = <1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ethernet: usbether@1 {
+ compatible = "usb0424,ec00";
+ reg = <1>;
+ local-mac-address = [00 00 00 00 00 00]; /* Filled in by a bootloader */
+ };
+ };
+};
--
2.26.2

2020-11-03 18:47:01

by Łukasz Stelmach

[permalink] [raw]
Subject: [PATCH v2 6/6] ARM: dts: exynos: Add Ethernet interface description for Odroid X/X2

Add Ethernet interface description for Odroid X/X2.

Add an alias to enable bootloaders to find the Ethernet
interface and assign a MAC address.

Signed-off-by: Łukasz Stelmach <[email protected]>
---
arch/arm/boot/dts/exynos4412-odroidx.dts | 28 ++++++++++++++++++++++++
1 file changed, 28 insertions(+)

diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
index 3ea2a0101e80..2da220102883 100644
--- a/arch/arm/boot/dts/exynos4412-odroidx.dts
+++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
@@ -15,6 +15,10 @@ / {
model = "Hardkernel ODROID-X board based on Exynos4412";
compatible = "hardkernel,odroid-x", "samsung,exynos4412", "samsung,exynos4";

+ aliases {
+ ethernet = &ethernet;
+ };
+
memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x3FF00000>;
@@ -72,8 +76,32 @@ &buck8_reg {
};

&ehci {
+ #address-cells = <1>;
+ #size-cells = <0>;
phys = <&exynos_usbphy 2>;
phy-names = "hsic0";
+
+ hub@2 {
+ compatible = "usb0424,3503";
+ reg = <2>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ hub@1 {
+ compatible = "usb0424,9514";
+ reg = <1>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ethernet: usbether@1 {
+ compatible = "usb0424,ec00";
+ reg = <1>;
+ local-mac-address = [00 00 00 00 00 00]; /* Filled in by a bootloader */
+ };
+ };
+ };
+
+
};

&mshc_0 {
--
2.26.2

2020-11-03 18:47:11

by Łukasz Stelmach

[permalink] [raw]
Subject: [PATCH v2 5/6] ARM: dts: exynos: Add Ethernet interface description for Odroid U3

Add Ethernet interface description for Odroid U3.

Add an alias to enable bootloaders to find the Ethernet
interface and assign a MAC address.

Signed-off-by: Łukasz Stelmach <[email protected]>
---
arch/arm/boot/dts/exynos4412-odroidu3.dts | 12 ++++++++++++
1 file changed, 12 insertions(+)

diff --git a/arch/arm/boot/dts/exynos4412-odroidu3.dts b/arch/arm/boot/dts/exynos4412-odroidu3.dts
index b8549d846f86..b503f04db923 100644
--- a/arch/arm/boot/dts/exynos4412-odroidu3.dts
+++ b/arch/arm/boot/dts/exynos4412-odroidu3.dts
@@ -16,6 +16,10 @@ / {
model = "Hardkernel ODROID-U3 board based on Exynos4412";
compatible = "hardkernel,odroid-u3", "samsung,exynos4412", "samsung,exynos4";

+ aliases {
+ ethernet = &ethernet;
+ };
+
memory@40000000 {
device_type = "memory";
reg = <0x40000000 0x7FF00000>;
@@ -101,8 +105,16 @@ &usb3503 {
};

&ehci {
+ #address-cells = <1>;
+ #size-cells = <0>;
phys = <&exynos_usbphy 2>, <&exynos_usbphy 3>;
phy-names = "hsic0", "hsic1";
+
+ ethernet: usbether@2 {
+ compatible = "usb0424,9730";
+ reg = <2>;
+ local-mac-address = [00 00 00 00 00 00]; /* Filled in by a bootloader */
+ };
};

&sound {
--
2.26.2

2020-11-03 18:47:22

by Łukasz Stelmach

[permalink] [raw]
Subject: [PATCH v2 2/6] ARM: dts: exynos: Add an alias for the Ethernet interface on Odroid XU3

Add an alias to enable bootloaders to find the Ethernet
interface and assign a MAC address.

Signed-off-by: Łukasz Stelmach <[email protected]>
---
arch/arm/boot/dts/exynos5422-odroidxu3.dts | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
index 0fa8bea781ff..2a4153484664 100644
--- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts
+++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
@@ -15,6 +15,10 @@
/ {
model = "Hardkernel Odroid XU3";
compatible = "hardkernel,odroid-xu3", "samsung,exynos5800", "samsung,exynos5";
+
+ aliases {
+ ethernet = &ethernet;
+ };
};

&i2c_0 {
--
2.26.2

2020-11-03 18:47:23

by Łukasz Stelmach

[permalink] [raw]
Subject: [PATCH v2 1/6] ARM: dts: exynos: Fix Ethernet interface description for Odroid XU3

Assign appropriate compatible properties.

Signed-off-by: Łukasz Stelmach <[email protected]>
---
arch/arm/boot/dts/exynos5422-odroidxu3.dts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3.dts b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
index d0f6ac5fa79d..0fa8bea781ff 100644
--- a/arch/arm/boot/dts/exynos5422-odroidxu3.dts
+++ b/arch/arm/boot/dts/exynos5422-odroidxu3.dts
@@ -76,13 +76,13 @@ &usbhost2 {
#size-cells = <0>;

hub@1 {
- compatible = "usb8087,0024";
+ compatible = "usb0424,9514";
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;

ethernet: usbether@1 {
- compatible = "usb0c45,6310";
+ compatible = "usb0424,ec00";
reg = <1>;
local-mac-address = [00 00 00 00 00 00]; /* Filled in by a bootloader */
};
--
2.26.2

2020-11-05 19:24:26

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v2 1/6] ARM: dts: exynos: Fix Ethernet interface description for Odroid XU3

On Tue, Nov 03, 2020 at 07:44:07PM +0100, Łukasz Stelmach wrote:
> Assign appropriate compatible properties.
>
> Signed-off-by: Łukasz Stelmach <[email protected]>

This and #2 will have to wait till I figure out what happened my
previous pull request. I'll keep it in my queue.

Best regards,
Krzysztof

2020-11-05 19:26:31

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v2 3/6] ARM: dts: exynos: Add Ethernet interface description for Odroid XU3 Lite

On Tue, Nov 03, 2020 at 07:44:09PM +0100, Łukasz Stelmach wrote:
> Add Ethernet interface description for Odroid XU3 Lite.
>
> Add an alias to enable bootloaders to find the Ethernet
> interface and assign a MAC address.
>
> Signed-off-by: Łukasz Stelmach <[email protected]>
> ---
> .../boot/dts/exynos5422-odroidxu3-lite.dts | 22 +++++++++++++++++++

Thanks, applied.

Best regards,
Krzysztof

2020-11-05 19:30:55

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v2 5/6] ARM: dts: exynos: Add Ethernet interface description for Odroid U3

On Tue, Nov 03, 2020 at 07:44:11PM +0100, Łukasz Stelmach wrote:
> Add Ethernet interface description for Odroid U3.
>
> Add an alias to enable bootloaders to find the Ethernet
> interface and assign a MAC address.
>
> Signed-off-by: Łukasz Stelmach <[email protected]>
> ---
> arch/arm/boot/dts/exynos4412-odroidu3.dts | 12 ++++++++++++

Thanks, applied.

Best regards,
Krzysztof

2020-11-05 19:34:52

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v2 6/6] ARM: dts: exynos: Add Ethernet interface description for Odroid X/X2

On Tue, Nov 03, 2020 at 07:44:12PM +0100, Łukasz Stelmach wrote:
> Add Ethernet interface description for Odroid X/X2.
>
> Add an alias to enable bootloaders to find the Ethernet
> interface and assign a MAC address.
>
> Signed-off-by: Łukasz Stelmach <[email protected]>
> ---
> arch/arm/boot/dts/exynos4412-odroidx.dts | 28 ++++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
>
> diff --git a/arch/arm/boot/dts/exynos4412-odroidx.dts b/arch/arm/boot/dts/exynos4412-odroidx.dts
> index 3ea2a0101e80..2da220102883 100644
> --- a/arch/arm/boot/dts/exynos4412-odroidx.dts
> +++ b/arch/arm/boot/dts/exynos4412-odroidx.dts
> @@ -15,6 +15,10 @@ / {
> model = "Hardkernel ODROID-X board based on Exynos4412";
> compatible = "hardkernel,odroid-x", "samsung,exynos4412", "samsung,exynos4";
>
> + aliases {
> + ethernet = &ethernet;
> + };
> +
> memory@40000000 {
> device_type = "memory";
> reg = <0x40000000 0x3FF00000>;
> @@ -72,8 +76,32 @@ &buck8_reg {
> };
>
> &ehci {
> + #address-cells = <1>;
> + #size-cells = <0>;
> phys = <&exynos_usbphy 2>;
> phy-names = "hsic0";
> +
> + hub@2 {
> + compatible = "usb0424,3503";
> + reg = <2>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + hub@1 {
> + compatible = "usb0424,9514";
> + reg = <1>;
> + #address-cells = <1>;
> + #size-cells = <0>;
> +
> + ethernet: usbether@1 {
> + compatible = "usb0424,ec00";
> + reg = <1>;
> + local-mac-address = [00 00 00 00 00 00]; /* Filled in by a bootloader */
> + };
> + };
> + };
> +
> +

Thanks, applied with space fixup.

Best regards,
Krzysztof

2020-11-15 10:41:57

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v2 1/6] ARM: dts: exynos: Fix Ethernet interface description for Odroid XU3

On Tue, Nov 03, 2020 at 07:44:07PM +0100, Łukasz Stelmach wrote:
> Assign appropriate compatible properties.
>
> Signed-off-by: Łukasz Stelmach <[email protected]>
> ---
> arch/arm/boot/dts/exynos5422-odroidxu3.dts | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>

Thanks, applied.

Best regards,
Krzysztof

2020-11-15 10:44:24

by Krzysztof Kozlowski

[permalink] [raw]
Subject: Re: [PATCH v2 2/6] ARM: dts: exynos: Add an alias for the Ethernet interface on Odroid XU3

On Tue, Nov 03, 2020 at 07:44:08PM +0100, Łukasz Stelmach wrote:
> Add an alias to enable bootloaders to find the Ethernet
> interface and assign a MAC address.
>
> Signed-off-by: Łukasz Stelmach <[email protected]>
> ---
> arch/arm/boot/dts/exynos5422-odroidxu3.dts | 4 ++++
> 1 file changed, 4 insertions(+)
>

Thanks, applied.

Best regards,
Krzysztof