public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 1/4] arm64: rk3399: r4s: correct the LEDS label name
@ 2021-07-06 14:43 Xiaobo Tian
  2021-07-06 14:43 ` [PATCH 2/4] arm64: rk3399: r4s: Inheritance uses the sdmmc definition in dtsi Xiaobo Tian
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Xiaobo Tian @ 2021-07-06 14:43 UTC (permalink / raw)
  To: u-boot, kever.yang; +Cc: Xiaobo Tian

Correct the LEDS label name and remove the board type prefix,
which is actually unnecessary here, removes the redefined system status LED pin.

Signed-off-by: Xiaobo Tian <peterwillcn@gmail.com>
---
 arch/arm/dts/rk3399-nanopi-r4s.dts | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/arm/dts/rk3399-nanopi-r4s.dts b/arch/arm/dts/rk3399-nanopi-r4s.dts
index 6f2cf17bf1..7470c26820 100644
--- a/arch/arm/dts/rk3399-nanopi-r4s.dts
+++ b/arch/arm/dts/rk3399-nanopi-r4s.dts
@@ -76,18 +76,17 @@
 &leds {
 	lan_led: led-1 {
 		gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>;
-		label = "nanopi-r4s:green:lan";
+		label = "green:lan";
 	};
 
 	wan_led: led-2 {
 		gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
-		label = "nanopi-r4s:green:wan";
+		label = "green:wan";
 	};
 };
 
 &leds_gpio {
 	rockchip,pins =
-		<0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,
 		<1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>,
 		<1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
 };
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 2/4] arm64: rk3399: r4s: Inheritance uses the sdmmc definition in dtsi
  2021-07-06 14:43 [PATCH 1/4] arm64: rk3399: r4s: correct the LEDS label name Xiaobo Tian
@ 2021-07-06 14:43 ` Xiaobo Tian
  2021-08-11 10:07   ` Kever Yang
  2021-07-06 14:43 ` [PATCH 3/4] arm64: rk3399: r4s: Remove undesirable MAC address fetching methods for ethernet Xiaobo Tian
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 8+ messages in thread
From: Xiaobo Tian @ 2021-07-06 14:43 UTC (permalink / raw)
  To: u-boot, kever.yang; +Cc: Xiaobo Tian

The host-index-min property is invalid,
so it inherits from the sdmmc definition in dtsi.

Signed-off-by: Xiaobo Tian <peterwillcn@gmail.com>
---
 arch/arm/dts/rk3399-nanopi-r4s.dts | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/arm/dts/rk3399-nanopi-r4s.dts b/arch/arm/dts/rk3399-nanopi-r4s.dts
index 7470c26820..f663bc87a5 100644
--- a/arch/arm/dts/rk3399-nanopi-r4s.dts
+++ b/arch/arm/dts/rk3399-nanopi-r4s.dts
@@ -116,10 +116,6 @@
 	status = "disabled";
 };
 
-&sdmmc {
-	host-index-min = <1>;
-};
-
 &u2phy0_host {
 	phy-supply = <&vdd_5v>;
 };
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 3/4] arm64: rk3399: r4s: Remove undesirable MAC address fetching methods for ethernet
  2021-07-06 14:43 [PATCH 1/4] arm64: rk3399: r4s: correct the LEDS label name Xiaobo Tian
  2021-07-06 14:43 ` [PATCH 2/4] arm64: rk3399: r4s: Inheritance uses the sdmmc definition in dtsi Xiaobo Tian
@ 2021-07-06 14:43 ` Xiaobo Tian
  2021-08-11 10:07   ` Kever Yang
  2021-07-06 14:44 ` [PATCH 4/4] arm64: rk3399: r4s: disabled i2c4 bus during the system boot process Xiaobo Tian
  2021-08-11 10:06 ` [PATCH 1/4] arm64: rk3399: r4s: correct the LEDS label name Kever Yang
  3 siblings, 1 reply; 8+ messages in thread
From: Xiaobo Tian @ 2021-07-06 14:43 UTC (permalink / raw)
  To: u-boot, kever.yang; +Cc: Xiaobo Tian

Remove the recommended MAC address from the network card.
NanoPi R4S has a EEPROM attached to the 2nd I2C bus (U92), which stores the MAC address.

Signed-off-by: Xiaobo Tian <peterwillcn@gmail.com>
---
 arch/arm/dts/rk3399-nanopi-r4s.dts | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/arch/arm/dts/rk3399-nanopi-r4s.dts b/arch/arm/dts/rk3399-nanopi-r4s.dts
index f663bc87a5..042c73ca17 100644
--- a/arch/arm/dts/rk3399-nanopi-r4s.dts
+++ b/arch/arm/dts/rk3399-nanopi-r4s.dts
@@ -17,10 +17,6 @@
 	model = "FriendlyElec NanoPi R4S";
 	compatible = "friendlyarm,nanopi-r4s", "rockchip,rk3399";
 
-	aliases {
-		ethernet1 = &r8169;
-	};
-
 	vdd_5v: vdd-5v {
 		compatible = "regulator-fixed";
 		regulator-name = "vdd_5v";
@@ -95,17 +91,6 @@
 	max-link-speed = <1>;
 	num-lanes = <1>;
 	vpcie3v3-supply = <&vcc3v3_sys>;
-
-	pcie@0 {
-		reg = <0x00000000 0 0 0 0>;
-		#address-cells = <3>;
-		#size-cells = <2>;
-
-		r8169: pcie@0,0 {
-			reg = <0x000000 0 0 0 0>;
-			local-mac-address = [ 00 00 00 00 00 00 ];
-		};
-	};
 };
 
 &sdhci {
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* [PATCH 4/4] arm64: rk3399: r4s: disabled i2c4 bus during the system boot process
  2021-07-06 14:43 [PATCH 1/4] arm64: rk3399: r4s: correct the LEDS label name Xiaobo Tian
  2021-07-06 14:43 ` [PATCH 2/4] arm64: rk3399: r4s: Inheritance uses the sdmmc definition in dtsi Xiaobo Tian
  2021-07-06 14:43 ` [PATCH 3/4] arm64: rk3399: r4s: Remove undesirable MAC address fetching methods for ethernet Xiaobo Tian
@ 2021-07-06 14:44 ` Xiaobo Tian
  2021-08-11 10:10   ` Kever Yang
  2021-08-11 10:06 ` [PATCH 1/4] arm64: rk3399: r4s: correct the LEDS label name Kever Yang
  3 siblings, 1 reply; 8+ messages in thread
From: Xiaobo Tian @ 2021-07-06 14:44 UTC (permalink / raw)
  To: u-boot, kever.yang; +Cc: Xiaobo Tian

Data transmission on the I2C4 bus is not required during the system boot process,
so it is disabled

Signed-off-by: Xiaobo Tian <peterwillcn@gmail.com>
---
 arch/arm/dts/rk3399-nanopi-r4s.dts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/dts/rk3399-nanopi-r4s.dts b/arch/arm/dts/rk3399-nanopi-r4s.dts
index 042c73ca17..e5f57dd51a 100644
--- a/arch/arm/dts/rk3399-nanopi-r4s.dts
+++ b/arch/arm/dts/rk3399-nanopi-r4s.dts
@@ -69,6 +69,10 @@
 	status = "disabled";
 };
 
+&i2c4 {
+	status = "disabled";
+};
+
 &leds {
 	lan_led: led-1 {
 		gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>;
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH 1/4] arm64: rk3399: r4s: correct the LEDS label name
  2021-07-06 14:43 [PATCH 1/4] arm64: rk3399: r4s: correct the LEDS label name Xiaobo Tian
                   ` (2 preceding siblings ...)
  2021-07-06 14:44 ` [PATCH 4/4] arm64: rk3399: r4s: disabled i2c4 bus during the system boot process Xiaobo Tian
@ 2021-08-11 10:06 ` Kever Yang
  3 siblings, 0 replies; 8+ messages in thread
From: Kever Yang @ 2021-08-11 10:06 UTC (permalink / raw)
  To: Xiaobo Tian; +Cc: U-Boot-Denx, Kever Yang

Xiaobo Tian <peterwillcn@gmail.com> 于2021年7月6日周二 下午10:44写道:
>
> Correct the LEDS label name and remove the board type prefix,
> which is actually unnecessary here, removes the redefined system status LED pin.
>
> Signed-off-by: Xiaobo Tian <peterwillcn@gmail.com>

Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,
- Kever
> ---
>  arch/arm/dts/rk3399-nanopi-r4s.dts | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/dts/rk3399-nanopi-r4s.dts b/arch/arm/dts/rk3399-nanopi-r4s.dts
> index 6f2cf17bf1..7470c26820 100644
> --- a/arch/arm/dts/rk3399-nanopi-r4s.dts
> +++ b/arch/arm/dts/rk3399-nanopi-r4s.dts
> @@ -76,18 +76,17 @@
>  &leds {
>         lan_led: led-1 {
>                 gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>;
> -               label = "nanopi-r4s:green:lan";
> +               label = "green:lan";
>         };
>
>         wan_led: led-2 {
>                 gpios = <&gpio1 RK_PA0 GPIO_ACTIVE_HIGH>;
> -               label = "nanopi-r4s:green:wan";
> +               label = "green:wan";
>         };
>  };
>
>  &leds_gpio {
>         rockchip,pins =
> -               <0 RK_PB5 RK_FUNC_GPIO &pcfg_pull_none>,
>                 <1 RK_PA0 RK_FUNC_GPIO &pcfg_pull_none>,
>                 <1 RK_PA1 RK_FUNC_GPIO &pcfg_pull_none>;
>  };
> --
> 2.32.0
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 2/4] arm64: rk3399: r4s: Inheritance uses the sdmmc definition in dtsi
  2021-07-06 14:43 ` [PATCH 2/4] arm64: rk3399: r4s: Inheritance uses the sdmmc definition in dtsi Xiaobo Tian
@ 2021-08-11 10:07   ` Kever Yang
  0 siblings, 0 replies; 8+ messages in thread
From: Kever Yang @ 2021-08-11 10:07 UTC (permalink / raw)
  To: Xiaobo Tian; +Cc: U-Boot-Denx, Kever Yang

Xiaobo Tian <peterwillcn@gmail.com> 于2021年7月6日周二 下午10:44写道:
>
> The host-index-min property is invalid,
> so it inherits from the sdmmc definition in dtsi.
>
> Signed-off-by: Xiaobo Tian <peterwillcn@gmail.com>

Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,
- Kever

> ---
>  arch/arm/dts/rk3399-nanopi-r4s.dts | 4 ----
>  1 file changed, 4 deletions(-)
>
> diff --git a/arch/arm/dts/rk3399-nanopi-r4s.dts b/arch/arm/dts/rk3399-nanopi-r4s.dts
> index 7470c26820..f663bc87a5 100644
> --- a/arch/arm/dts/rk3399-nanopi-r4s.dts
> +++ b/arch/arm/dts/rk3399-nanopi-r4s.dts
> @@ -116,10 +116,6 @@
>         status = "disabled";
>  };
>
> -&sdmmc {
> -       host-index-min = <1>;
> -};
> -
>  &u2phy0_host {
>         phy-supply = <&vdd_5v>;
>  };
> --
> 2.32.0
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 3/4] arm64: rk3399: r4s: Remove undesirable MAC address fetching methods for ethernet
  2021-07-06 14:43 ` [PATCH 3/4] arm64: rk3399: r4s: Remove undesirable MAC address fetching methods for ethernet Xiaobo Tian
@ 2021-08-11 10:07   ` Kever Yang
  0 siblings, 0 replies; 8+ messages in thread
From: Kever Yang @ 2021-08-11 10:07 UTC (permalink / raw)
  To: Xiaobo Tian; +Cc: U-Boot-Denx, Kever Yang

Xiaobo Tian <peterwillcn@gmail.com> 于2021年7月6日周二 下午10:44写道:
>
> Remove the recommended MAC address from the network card.
> NanoPi R4S has a EEPROM attached to the 2nd I2C bus (U92), which stores the MAC address.
>
> Signed-off-by: Xiaobo Tian <peterwillcn@gmail.com>

Reviewed-by: Kever Yang <kever.yang@rock-chips.com>

Thanks,
- Kever
> ---
>  arch/arm/dts/rk3399-nanopi-r4s.dts | 15 ---------------
>  1 file changed, 15 deletions(-)
>
> diff --git a/arch/arm/dts/rk3399-nanopi-r4s.dts b/arch/arm/dts/rk3399-nanopi-r4s.dts
> index f663bc87a5..042c73ca17 100644
> --- a/arch/arm/dts/rk3399-nanopi-r4s.dts
> +++ b/arch/arm/dts/rk3399-nanopi-r4s.dts
> @@ -17,10 +17,6 @@
>         model = "FriendlyElec NanoPi R4S";
>         compatible = "friendlyarm,nanopi-r4s", "rockchip,rk3399";
>
> -       aliases {
> -               ethernet1 = &r8169;
> -       };
> -
>         vdd_5v: vdd-5v {
>                 compatible = "regulator-fixed";
>                 regulator-name = "vdd_5v";
> @@ -95,17 +91,6 @@
>         max-link-speed = <1>;
>         num-lanes = <1>;
>         vpcie3v3-supply = <&vcc3v3_sys>;
> -
> -       pcie@0 {
> -               reg = <0x00000000 0 0 0 0>;
> -               #address-cells = <3>;
> -               #size-cells = <2>;
> -
> -               r8169: pcie@0,0 {
> -                       reg = <0x000000 0 0 0 0>;
> -                       local-mac-address = [ 00 00 00 00 00 00 ];
> -               };
> -       };
>  };
>
>  &sdhci {
> --
> 2.32.0
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH 4/4] arm64: rk3399: r4s: disabled i2c4 bus during the system boot process
  2021-07-06 14:44 ` [PATCH 4/4] arm64: rk3399: r4s: disabled i2c4 bus during the system boot process Xiaobo Tian
@ 2021-08-11 10:10   ` Kever Yang
  0 siblings, 0 replies; 8+ messages in thread
From: Kever Yang @ 2021-08-11 10:10 UTC (permalink / raw)
  To: Xiaobo Tian; +Cc: U-Boot-Denx, Kever Yang

Hi Xiaobo,
    This dts may also used by the kernel on some of the linux distro,
so if there is no other impact, I would suggest not to disable.

Thanks,
- Kever

Xiaobo Tian <peterwillcn@gmail.com> 于2021年7月6日周二 下午10:44写道:
>
> Data transmission on the I2C4 bus is not required during the system boot process,
> so it is disabled
>
> Signed-off-by: Xiaobo Tian <peterwillcn@gmail.com>
> ---
>  arch/arm/dts/rk3399-nanopi-r4s.dts | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/arch/arm/dts/rk3399-nanopi-r4s.dts b/arch/arm/dts/rk3399-nanopi-r4s.dts
> index 042c73ca17..e5f57dd51a 100644
> --- a/arch/arm/dts/rk3399-nanopi-r4s.dts
> +++ b/arch/arm/dts/rk3399-nanopi-r4s.dts
> @@ -69,6 +69,10 @@
>         status = "disabled";
>  };
>
> +&i2c4 {
> +       status = "disabled";
> +};
> +
>  &leds {
>         lan_led: led-1 {
>                 gpios = <&gpio1 RK_PA1 GPIO_ACTIVE_HIGH>;
> --
> 2.32.0
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-08-11 10:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-06 14:43 [PATCH 1/4] arm64: rk3399: r4s: correct the LEDS label name Xiaobo Tian
2021-07-06 14:43 ` [PATCH 2/4] arm64: rk3399: r4s: Inheritance uses the sdmmc definition in dtsi Xiaobo Tian
2021-08-11 10:07   ` Kever Yang
2021-07-06 14:43 ` [PATCH 3/4] arm64: rk3399: r4s: Remove undesirable MAC address fetching methods for ethernet Xiaobo Tian
2021-08-11 10:07   ` Kever Yang
2021-07-06 14:44 ` [PATCH 4/4] arm64: rk3399: r4s: disabled i2c4 bus during the system boot process Xiaobo Tian
2021-08-11 10:10   ` Kever Yang
2021-08-11 10:06 ` [PATCH 1/4] arm64: rk3399: r4s: correct the LEDS label name Kever Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox