mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-10 23:12:48 +00:00
3a5584e0df
Adds latest 6.6 patches from the Raspberry Pi repository.
These patches were generated from:
https://github.com/raspberrypi/linux/commits/rpi-6.6.y/
With the following command:
git format-patch -N v6.6.67..HEAD
(HEAD -> 811ff707533bcd67cdcd368bbd46223082009b12)
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
(cherry picked from commit 692205305d
)
51 lines
1.9 KiB
Diff
51 lines
1.9 KiB
Diff
From 0b4af929b7125abd3a262577b380c7c81ee9b1c5 Mon Sep 17 00:00:00 2001
|
|
From: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
Date: Mon, 11 Nov 2024 15:18:14 +0000
|
|
Subject: [PATCH] dt: arm64: Fixup RP1 ethernet DT configuration
|
|
|
|
Configure RP1's ethernet block to do the correct thing.
|
|
clk_eth is intended to be fixed at 125MHz, so use a new compatible,
|
|
and use assigned-clocks to configure the clock appropriately.
|
|
|
|
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
|
|
---
|
|
arch/arm64/boot/dts/broadcom/rp1.dtsi | 10 +++++++---
|
|
1 file changed, 7 insertions(+), 3 deletions(-)
|
|
|
|
--- a/arch/arm64/boot/dts/broadcom/rp1.dtsi
|
|
+++ b/arch/arm64/boot/dts/broadcom/rp1.dtsi
|
|
@@ -32,6 +32,7 @@
|
|
// RP1_PLL_VIDEO_CORE and dividers are now managed by VEC,DPI drivers
|
|
<&rp1_clocks RP1_PLL_SYS>,
|
|
<&rp1_clocks RP1_PLL_SYS_SEC>,
|
|
+ <&rp1_clocks RP1_CLK_ETH>,
|
|
<&rp1_clocks RP1_PLL_AUDIO>,
|
|
<&rp1_clocks RP1_PLL_AUDIO_SEC>,
|
|
<&rp1_clocks RP1_CLK_SYS>,
|
|
@@ -46,6 +47,7 @@
|
|
<1536000000>, // RP1_PLL_AUDIO_CORE
|
|
<200000000>, // RP1_PLL_SYS
|
|
<125000000>, // RP1_PLL_SYS_SEC
|
|
+ <125000000>, // RP1_CLK_ETH
|
|
<61440000>, // RP1_PLL_AUDIO
|
|
<192000000>, // RP1_PLL_AUDIO_SEC
|
|
<200000000>, // RP1_CLK_SYS
|
|
@@ -976,12 +978,14 @@
|
|
|
|
rp1_eth: ethernet@100000 {
|
|
reg = <0xc0 0x40100000 0x0 0x4000>;
|
|
- compatible = "cdns,macb";
|
|
+ compatible = "raspberrypi,rp1-gem", "cdns,macb";
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
interrupts = <RP1_INT_ETH IRQ_TYPE_LEVEL_HIGH>;
|
|
- clocks = <&macb_pclk &macb_hclk &rp1_clocks RP1_CLK_ETH_TSU>;
|
|
- clock-names = "pclk", "hclk", "tsu_clk";
|
|
+ clocks = <&macb_pclk &macb_hclk
|
|
+ &rp1_clocks RP1_CLK_ETH_TSU
|
|
+ &rp1_clocks RP1_CLK_ETH>;
|
|
+ clock-names = "pclk", "hclk", "tsu_clk", "tx_clk";
|
|
phy-mode = "rgmii-id";
|
|
cdns,aw2w-max-pipe = /bits/ 8 <8>;
|
|
cdns,ar2r-max-pipe = /bits/ 8 <8>;
|