linux-renesas-soc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] arm64: dts: beacon-renesom: Fix gpio expander reference
@ 2023-01-14 22:56 Adam Ford
  2023-01-14 22:56 ` [PATCH 2/3] arm64: dts: beacon-renesom: Update Ethernet PHY ID Adam Ford
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Adam Ford @ 2023-01-14 22:56 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: geert+renesas, aford, Adam Ford

The board used to originally introduce the Beacon Embedded
RZ/G2[M/N/H] boards had a GPIO expander with address 20, but
this was change when the final board went to production.

The production boards changed both the part itself and
the address.  With the incorrect address, the LCD cannot
come up.  If the LCD fails, the rcar-du driver fails to come up,
and that also breaks HDMI.

Pre-release board were not shipped to the general public, so it
should be safe to push this as a fix.  Anyone with a production
board would have video fail due to this GPIO expander change.

Fixes: a1d8a344f1ca ("arm64: dts: renesas: Introduce r8a774a1-beacon-rzg2m-kit")
Signed-off-by: Adam Ford <aford173@gmail.com>
---
V2:  Update compatible to reflect the part change.

diff --git a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi
index d3ec8c45d5af..518885cb1e7e 100644
--- a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi
+++ b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi
@@ -437,20 +437,6 @@ wm8962_endpoint: endpoint {
 		};
 	};
 
-	/* 0 - lcd_reset */
-	/* 1 - lcd_pwr */
-	/* 2 - lcd_select */
-	/* 3 - backlight-enable */
-	/* 4 - Touch_shdwn */
-	/* 5 - LCD_H_pol */
-	/* 6 - lcd_V_pol */
-	gpio_exp1: gpio@20 {
-		compatible = "onnn,pca9654";
-		reg = <0x20>;
-		gpio-controller;
-		#gpio-cells = <2>;
-	};
-
 	touchscreen@26 {
 		compatible = "ilitek,ili2117";
 		reg = <0x26>;
@@ -482,6 +468,21 @@ hd3ss3220_out_ep: endpoint {
 			};
 		};
 	};
+
+	gpio_exp1: gpio@70 {
+		compatible = "nxp,pca9538";
+		reg = <0x70>;
+		gpio-controller;
+		#gpio-cells = <2>;
+		gpio-line-names =
+			"lcd_reset",
+			"lcd_pwr",
+			"lcd_select",
+			"backlight-enable",
+			"Touch_shdwn",
+			"LCD_H_pol",
+			"lcd_V_pol";
+	};
 };
 
 &lvds0 {
-- 
2.34.1


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

* [PATCH 2/3] arm64: dts: beacon-renesom: Update Ethernet PHY ID
  2023-01-14 22:56 [PATCH 1/3] arm64: dts: beacon-renesom: Fix gpio expander reference Adam Ford
@ 2023-01-14 22:56 ` Adam Ford
  2023-01-16 10:37   ` Geert Uytterhoeven
  2023-01-23  9:57   ` Geert Uytterhoeven
  2023-01-14 22:56 ` [PATCH 3/3] arm64: dts: beacon-renesom: Fix some audio messages Adam Ford
  2023-01-16 10:37 ` [PATCH 1/3] arm64: dts: beacon-renesom: Fix gpio expander reference Geert Uytterhoeven
  2 siblings, 2 replies; 7+ messages in thread
From: Adam Ford @ 2023-01-14 22:56 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: geert+renesas, aford, Adam Ford

Due to the part shortage, the AR8031 PHY was replaced with a
Micrel KSZ9131.  Hard-coding the ID of the PHY makes this new
PHY non-operational on newer hardware.  Since previous hardware
had only shipped to a limited number of people, and they have
not gone to production, it should be safe to update the PHY ID.

Signed-off-by: Adam Ford <aford173@gmail.com>

diff --git a/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi b/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi
index d3fc8ffd5b4c..a302f0ea8a48 100644
--- a/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi
+++ b/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi
@@ -59,7 +59,7 @@ &avb {
 	status = "okay";
 
 	phy0: ethernet-phy@0 {
-		compatible = "ethernet-phy-id004d.d074",
+		compatible = "ethernet-phy-i0022.1640",
 			     "ethernet-phy-ieee802.3-c22";
 		reg = <0>;
 		interrupt-parent = <&gpio2>;
-- 
2.34.1


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

* [PATCH 3/3] arm64: dts: beacon-renesom: Fix some audio messages
  2023-01-14 22:56 [PATCH 1/3] arm64: dts: beacon-renesom: Fix gpio expander reference Adam Ford
  2023-01-14 22:56 ` [PATCH 2/3] arm64: dts: beacon-renesom: Update Ethernet PHY ID Adam Ford
@ 2023-01-14 22:56 ` Adam Ford
  2023-01-16 10:38   ` Geert Uytterhoeven
  2023-01-16 10:37 ` [PATCH 1/3] arm64: dts: beacon-renesom: Fix gpio expander reference Geert Uytterhoeven
  2 siblings, 1 reply; 7+ messages in thread
From: Adam Ford @ 2023-01-14 22:56 UTC (permalink / raw)
  To: linux-renesas-soc; +Cc: geert+renesas, aford, Adam Ford

The WM8962 is configured so the SoC is driving the clock, and it's
currently set to 24 MHz.  However, when playing audio it shows the
following message:
    wm8962 5-001a: Unsupported sysclk ratio 500

While not harmful, a better clock ratio is 512.  It makes the
message disappear, and it still plays sound.

Signed-off-by: Adam Ford <aford173@gmail.com>

diff --git a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi
index 518885cb1e7e..e0b9aee8e181 100644
--- a/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi
+++ b/arch/arm64/boot/dts/renesas/beacon-renesom-baseboard.dtsi
@@ -367,7 +367,7 @@ versaclock6_bb: clock-controller@6a {
 
 		assigned-clocks = <&versaclock6_bb 1>, <&versaclock6_bb 2>,
 				  <&versaclock6_bb 3>, <&versaclock6_bb 4>;
-		assigned-clock-rates = <24000000>, <24000000>, <24000000>,
+		assigned-clock-rates = <24000000>, <24000000>, <24576000>,
 				       <24576000>;
 
 		OUT1 {
-- 
2.34.1


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

* Re: [PATCH 1/3] arm64: dts: beacon-renesom: Fix gpio expander reference
  2023-01-14 22:56 [PATCH 1/3] arm64: dts: beacon-renesom: Fix gpio expander reference Adam Ford
  2023-01-14 22:56 ` [PATCH 2/3] arm64: dts: beacon-renesom: Update Ethernet PHY ID Adam Ford
  2023-01-14 22:56 ` [PATCH 3/3] arm64: dts: beacon-renesom: Fix some audio messages Adam Ford
@ 2023-01-16 10:37 ` Geert Uytterhoeven
  2 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2023-01-16 10:37 UTC (permalink / raw)
  To: Adam Ford; +Cc: linux-renesas-soc, geert+renesas, aford

On Sat, Jan 14, 2023 at 11:56 PM Adam Ford <aford173@gmail.com> wrote:
> The board used to originally introduce the Beacon Embedded
> RZ/G2[M/N/H] boards had a GPIO expander with address 20, but
> this was change when the final board went to production.
>
> The production boards changed both the part itself and
> the address.  With the incorrect address, the LCD cannot
> come up.  If the LCD fails, the rcar-du driver fails to come up,
> and that also breaks HDMI.
>
> Pre-release board were not shipped to the general public, so it
> should be safe to push this as a fix.  Anyone with a production
> board would have video fail due to this GPIO expander change.
>
> Fixes: a1d8a344f1ca ("arm64: dts: renesas: Introduce r8a774a1-beacon-rzg2m-kit")
> Signed-off-by: Adam Ford <aford173@gmail.com>
> ---
> V2:  Update compatible to reflect the part change.

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v6.3.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH 2/3] arm64: dts: beacon-renesom: Update Ethernet PHY ID
  2023-01-14 22:56 ` [PATCH 2/3] arm64: dts: beacon-renesom: Update Ethernet PHY ID Adam Ford
@ 2023-01-16 10:37   ` Geert Uytterhoeven
  2023-01-23  9:57   ` Geert Uytterhoeven
  1 sibling, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2023-01-16 10:37 UTC (permalink / raw)
  To: Adam Ford; +Cc: linux-renesas-soc, aford

On Sat, Jan 14, 2023 at 11:56 PM Adam Ford <aford173@gmail.com> wrote:
> Due to the part shortage, the AR8031 PHY was replaced with a
> Micrel KSZ9131.  Hard-coding the ID of the PHY makes this new
> PHY non-operational on newer hardware.  Since previous hardware
> had only shipped to a limited number of people, and they have
> not gone to production, it should be safe to update the PHY ID.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v6.3.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH 3/3] arm64: dts: beacon-renesom: Fix some audio messages
  2023-01-14 22:56 ` [PATCH 3/3] arm64: dts: beacon-renesom: Fix some audio messages Adam Ford
@ 2023-01-16 10:38   ` Geert Uytterhoeven
  0 siblings, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2023-01-16 10:38 UTC (permalink / raw)
  To: Adam Ford; +Cc: linux-renesas-soc, aford

On Sat, Jan 14, 2023 at 11:56 PM Adam Ford <aford173@gmail.com> wrote:
> The WM8962 is configured so the SoC is driving the clock, and it's
> currently set to 24 MHz.  However, when playing audio it shows the
> following message:
>     wm8962 5-001a: Unsupported sysclk ratio 500
>
> While not harmful, a better clock ratio is 512.  It makes the
> message disappear, and it still plays sound.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>

Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
i.e. will queue in renesas-devel for v6.3.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH 2/3] arm64: dts: beacon-renesom: Update Ethernet PHY ID
  2023-01-14 22:56 ` [PATCH 2/3] arm64: dts: beacon-renesom: Update Ethernet PHY ID Adam Ford
  2023-01-16 10:37   ` Geert Uytterhoeven
@ 2023-01-23  9:57   ` Geert Uytterhoeven
  1 sibling, 0 replies; 7+ messages in thread
From: Geert Uytterhoeven @ 2023-01-23  9:57 UTC (permalink / raw)
  To: Adam Ford; +Cc: linux-renesas-soc, aford

On Sat, Jan 14, 2023 at 11:56 PM Adam Ford <aford173@gmail.com> wrote:
> Due to the part shortage, the AR8031 PHY was replaced with a
> Micrel KSZ9131.  Hard-coding the ID of the PHY makes this new
> PHY non-operational on newer hardware.  Since previous hardware
> had only shipped to a limited number of people, and they have
> not gone to production, it should be safe to update the PHY ID.
>
> Signed-off-by: Adam Ford <aford173@gmail.com>
>
> diff --git a/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi b/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi
> index d3fc8ffd5b4c..a302f0ea8a48 100644
> --- a/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi
> +++ b/arch/arm64/boot/dts/renesas/beacon-renesom-som.dtsi
> @@ -59,7 +59,7 @@ &avb {
>         status = "okay";
>
>         phy0: ethernet-phy@0 {
> -               compatible = "ethernet-phy-id004d.d074",
> +               compatible = "ethernet-phy-i0022.1640",

ethernet-phy-id0022.1640

Fixing while applying...

>                              "ethernet-phy-ieee802.3-c22";
>                 reg = <0>;
>                 interrupt-parent = <&gpio2>;

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

end of thread, other threads:[~2023-01-23  9:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-14 22:56 [PATCH 1/3] arm64: dts: beacon-renesom: Fix gpio expander reference Adam Ford
2023-01-14 22:56 ` [PATCH 2/3] arm64: dts: beacon-renesom: Update Ethernet PHY ID Adam Ford
2023-01-16 10:37   ` Geert Uytterhoeven
2023-01-23  9:57   ` Geert Uytterhoeven
2023-01-14 22:56 ` [PATCH 3/3] arm64: dts: beacon-renesom: Fix some audio messages Adam Ford
2023-01-16 10:38   ` Geert Uytterhoeven
2023-01-16 10:37 ` [PATCH 1/3] arm64: dts: beacon-renesom: Fix gpio expander reference Geert Uytterhoeven

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).