-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into retroidpocket-sm8250-v6.11
- Loading branch information
Showing
32 changed files
with
378 additions
and
11,228 deletions.
There are no files selected for viewing
408 changes: 0 additions & 408 deletions
408
patch/kernel/archive/rockchip64-6.12/board-rockpis-0001-arm64-dts.patch.disabled
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
...kernel/archive/rockchip64-6.12/board-rockpis-0012-arm64-dts-rk3308-Add-rk-timer-rtc.patch
This file was deleted.
Oops, something went wrong.
50 changes: 0 additions & 50 deletions
50
...ip64-6.12/board-rockpis-0020-arm64-dts-rockchip-Add-acodec-node-for-rk3308.patch.disabled
This file was deleted.
Oops, something went wrong.
99 changes: 0 additions & 99 deletions
99
...ive/rockchip64-6.12/board-rockpis-0029-arm64-dts-rk3308-add-reserved-memory-ramoops.patch
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
...ernel/archive/rockchip64-6.12/board-rockpis-0030-arm64-dts-rk3308-enable-hs200-mode.patch
This file was deleted.
Oops, something went wrong.
121 changes: 121 additions & 0 deletions
121
patch/kernel/archive/rockchip64-6.12/board-rockpis-dts-fixes.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
From 65e256b55e9f9d503647f53d0ffc68b283d70a88 Mon Sep 17 00:00:00 2001 | ||
From: Paolo Sabatino <[email protected]> | ||
Date: Wed, 27 Nov 2024 19:06:49 +0100 | ||
Subject: [PATCH] rk3308: fixes for rock pi s dts | ||
|
||
--- | ||
.../boot/dts/rockchip/rk3308-rock-pi-s.dts | 73 +++++++++++++++++++ | ||
1 file changed, 73 insertions(+) | ||
|
||
diff --git a/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts b/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts | ||
index 62d18ca769a1..b1a77910fffb 100644 | ||
--- a/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts | ||
+++ b/arch/arm64/boot/dts/rockchip/rk3308-rock-pi-s.dts | ||
@@ -48,6 +48,54 @@ blue-led { | ||
}; | ||
}; | ||
|
||
+ analog_sound: analog-sound { | ||
+ compatible = "simple-audio-card"; | ||
+ simple-audio-card,format = "i2s"; | ||
+ simple-audio-card,name = "analog"; | ||
+ simple-audio-card,mclk-fs = <256>; | ||
+ simple-audio-card,codec-hp-det; | ||
+ simple-audio-card,widgets = | ||
+ "Headphone", "Headphones"; | ||
+ | ||
+ simple-audio-card,dai-link@1 { | ||
+ format = "i2s"; | ||
+ | ||
+ cpu { | ||
+ sound-dai = <&i2s_8ch_2>; | ||
+ }; | ||
+ | ||
+ codec { | ||
+ sound-dai = <&codec>; | ||
+ }; | ||
+ | ||
+ }; | ||
+ | ||
+ }; | ||
+ | ||
+ pcm5102_sound: pcm5102-sound { | ||
+ compatible = "simple-audio-card"; | ||
+ simple-audio-card,format = "i2s"; | ||
+ simple-audio-card,mclk-fs = <256>; | ||
+ simple-audio-card,name = "pcm5102a"; | ||
+ | ||
+ simple-audio-card,dai-link@1 { | ||
+ format = "i2s"; | ||
+ cpu { | ||
+ sound-dai = <&i2s_8ch_0>; | ||
+ }; | ||
+ | ||
+ codec { | ||
+ sound-dai = <&pcm5102a>; | ||
+ }; | ||
+ }; | ||
+ }; | ||
+ | ||
+ pcm5102a: pcm5102a { | ||
+ #sound-dai-cells = <0>; | ||
+ compatible = "ti,pcm5102a"; | ||
+ pcm510x,format = "i2s"; | ||
+ }; | ||
+ | ||
sdio_pwrseq: sdio-pwrseq { | ||
compatible = "mmc-pwrseq-simple"; | ||
pinctrl-0 = <&wifi_enable_h>; | ||
@@ -128,6 +176,11 @@ vdd_log: vdd-log { | ||
}; | ||
}; | ||
|
||
+&codec { | ||
+ status = "okay"; | ||
+ #sound-dai-cells = <0>; | ||
+}; | ||
+ | ||
&cpu0 { | ||
cpu-supply = <&vdd_core>; | ||
}; | ||
@@ -242,6 +295,19 @@ &io_domains { | ||
status = "okay"; | ||
}; | ||
|
||
+&i2s_8ch_0 { | ||
+ #sound-dai-cells = <0>; | ||
+ assigned-clocks = <&cru SCLK_I2S0_8CH_RX>; | ||
+ assigned-clock-parents = <&cru SCLK_I2S0_8CH_TX_MUX>; | ||
+ rockchip,clk-trcm = <1>; | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
+&i2s_8ch_2 { | ||
+ #sound-dai-cells = <0>; | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
&pinctrl { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&rtc_32k>; | ||
@@ -333,10 +399,17 @@ &sdmmc { | ||
cap-mmc-highspeed; | ||
cap-sd-highspeed; | ||
disable-wp; | ||
+ card-detect-delay = <200>; | ||
vmmc-supply = <&vcc_io>; | ||
status = "okay"; | ||
}; | ||
|
||
+&tsadc { | ||
+ rockchip,hw-tshut-mode = <0>; /* 0:CRU */ | ||
+ rockchip,hw-tshut-polarity = <1>; /* 1:HIGH */ | ||
+ status = "okay"; | ||
+}; | ||
+ | ||
&u2phy { | ||
status = "okay"; | ||
|
||
-- | ||
2.43.0 | ||
|
File renamed without changes.
File renamed without changes.
38 changes: 38 additions & 0 deletions
38
patch/kernel/archive/rockchip64-6.12/rk3308-dts-legacy-cryptov2.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
From aae322ad410b6ad891c1b6605811756124c3b1f9 Mon Sep 17 00:00:00 2001 | ||
From: Paolo Sabatino <[email protected]> | ||
Date: Mon, 25 Nov 2024 17:23:22 +0100 | ||
Subject: [PATCH] rk3308: add cryptov2 dts node | ||
|
||
--- | ||
arch/arm64/boot/dts/rockchip/rk3308.dtsi | 15 +++++++++++++++ | ||
1 file changed, 15 insertions(+) | ||
|
||
diff --git a/arch/arm64/boot/dts/rockchip/rk3308.dtsi b/arch/arm64/boot/dts/rockchip/rk3308.dtsi | ||
index 2ae4bb7d5e62..7c13709c522c 100644 | ||
--- a/arch/arm64/boot/dts/rockchip/rk3308.dtsi | ||
+++ b/arch/arm64/boot/dts/rockchip/rk3308.dtsi | ||
@@ -164,6 +164,21 @@ xin24m: xin24m { | ||
clock-output-names = "xin24m"; | ||
}; | ||
|
||
+ rng: rng@ff2f0000 { | ||
+ compatible = "rockchip,cryptov2-rng"; | ||
+ reg = <0x0 0xff2f0000 0x0 0x4000>; | ||
+ clocks = <&cru SCLK_CRYPTO>, <&cru SCLK_CRYPTO_APK>, | ||
+ <&cru ACLK_CRYPTO>, <&cru HCLK_CRYPTO>; | ||
+ clock-names = "clk_crypto", "clk_crypto_apk", | ||
+ "aclk_crypto", "hclk_crypto"; | ||
+ assigned-clocks = <&cru SCLK_CRYPTO>, <&cru SCLK_CRYPTO_APK>, | ||
+ <&cru ACLK_CRYPTO>, <&cru HCLK_CRYPTO>; | ||
+ assigned-clock-rates = <150000000>, <150000000>, | ||
+ <200000000>, <100000000>; | ||
+ resets = <&cru SRST_CRYPTO>; | ||
+ reset-names = "reset"; | ||
+ }; | ||
+ | ||
grf: grf@ff000000 { | ||
compatible = "rockchip,rk3308-grf", "syscon", "simple-mfd"; | ||
reg = <0x0 0xff000000 0x0 0x08000>; | ||
-- | ||
2.43.0 | ||
|
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
patch/kernel/archive/rockchip64-6.12/rk3308-enable-acodec-verb.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/sound/soc/codecs/rk3308_codec.c b/sound/soc/codecs/rk3308_codec.c | ||
index 8b51e87a1711..f3c8716215a8 100644 | ||
--- a/sound/soc/codecs/rk3308_codec.c | ||
+++ b/sound/soc/codecs/rk3308_codec.c | ||
@@ -854,7 +854,7 @@ static int rk3308_codec_get_version(struct rk3308_codec_priv *rk3308) | ||
break; | ||
case 0x3308: | ||
rk3308->codec_ver = ACODEC_VERSION_B; | ||
- return dev_err_probe(rk3308->dev, -EINVAL, "Chip version B not supported\n"); | ||
+ break; | ||
case 0x3308c: | ||
rk3308->codec_ver = ACODEC_VERSION_C; | ||
break; |
Oops, something went wrong.