Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rename radxa s0 to rock s0 #68

Merged
merged 6 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ index 0000000000..f07543e072
+
+ leds {
+ green_led_gio: green-led-gpio {
+ rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>;
+ rockchip,pins = <0 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
+ };
+ };
+
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
From 51361929254412cf900c6d029b5b567248b39c44 Mon Sep 17 00:00:00 2001
From: bsp <[email protected]>
Date: Wed, 29 Nov 2023 19:57:03 +0800
Subject: [PATCH 1/2] enable i2s_8ch_0 and modify uart0 pinctrl

Signed-off-by: Ken Wang <[email protected]>

diff --git a/arch/arm64/boot/dts/rockchip/rk3308-radxa-s0.dts b/arch/arm64/boot/dts/rockchip/rk3308-radxa-s0.dts
index ee1a1efdef..473e636445 100644
--- a/arch/arm64/boot/dts/rockchip/rk3308-radxa-s0.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3308-radxa-s0.dts
@@ -44,7 +44,7 @@ codec: acodec-sound {
simple-audio-card,widgets =
"Headphone", "Headphones";
simple-audio-card,cpu {
- sound-dai = <&i2s_8ch_2>;
+ sound-dai = <&i2s_8ch_0>;
};
simple-audio-card,codec {
sound-dai = <&acodec>;
@@ -290,10 +290,11 @@ &i2s_8ch_0 {
assigned-clock-parents = <&cru SCLK_I2S0_8CH_TX_MUX>;
rockchip,clk-trcm = <1>;
#sound-dai-cells = <0>;
+ status = "okay";
};

&i2s_8ch_2 {
- status = "okay";
+ status = "disabled";
#sound-dai-cells = <0>;
};

@@ -373,6 +374,8 @@ &spi2 {

&uart0 {
status = "okay";
+ pinctrl-names = "default";
+ pinctrl-0 = <&uart0_xfer>;
};

&uart2 {
--
2.25.1

43 changes: 43 additions & 0 deletions linux/stable/0025-rock-s0/0003-rename-radxa-s0-to-rock-s0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
From e6a3d820081737cac09fbc19ff65b77782f7a4c6 Mon Sep 17 00:00:00 2001
From: bsp <[email protected]>
Date: Wed, 29 Nov 2023 20:00:57 +0800
Subject: [PATCH 2/2] rename radxa s0 to rock s0

Signed-off-by: bsp <[email protected]>

diff --git a/arch/arm64/boot/dts/rockchip/Makefile b/arch/arm64/boot/dts/rockchip/Makefile
index 457717695b..84d30b035f 100644
--- a/arch/arm64/boot/dts/rockchip/Makefile
+++ b/arch/arm64/boot/dts/rockchip/Makefile
@@ -23,9 +23,9 @@ dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-engicam-px30-core-ctouch2.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-engicam-px30-core-ctouch2-of10.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += px30-engicam-px30-core-edimm2.2.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-evb.dtb
-dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-radxa-s0.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-roc-cc.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-rock-pi-s.dtb
+dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3308-rock-s0.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3318-a95x-z2.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3326-odroid-go2.dtb
dtb-$(CONFIG_ARCH_ROCKCHIP) += rk3328-a1.dtb
diff --git a/arch/arm64/boot/dts/rockchip/rk3308-radxa-s0.dts b/arch/arm64/boot/dts/rockchip/rk3308-rock-s0.dts
similarity index 99%
rename from arch/arm64/boot/dts/rockchip/rk3308-radxa-s0.dts
rename to arch/arm64/boot/dts/rockchip/rk3308-rock-s0.dts
index 473e636445..6b4bf39b95 100644
--- a/arch/arm64/boot/dts/rockchip/rk3308-radxa-s0.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3308-rock-s0.dts
@@ -9,8 +9,8 @@
#include "rk3308.dtsi"

/ {
- model = "Radxa S0";
- compatible = "radxa,s0", "rockchip,rk3308";
+ model = "Radxa ROCK S0";
+ compatible = "radxa,rock-s0", "rockchip,rk3308";

chosen {
stdout-path = "serial0:1500000n8";
--
2.25.1

Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ index 971b1f0ae..66aba816d 100644
--- a/arch/arm64/boot/dts/rockchip/Makefile
+++ b/arch/arm64/boot/dts/rockchip/Makefile
@@ -1,3 +1,22 @@
+DTC_FLAGS_rk3308-radxa-s0 := -@
+DTC_FLAGS_rk3308-rock-pi-s := -@
+DTC_FLAGS_rk3308-rock-s0 := -@
+DTC_FLAGS_rk3328-rock-pi-e := -@
+DTC_FLAGS_rk3399-rock-4c-plus := -@
+DTC_FLAGS_rk3399-rock-pi-4a-plus := -@
Expand Down
2 changes: 1 addition & 1 deletion linux/stable/fork.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SUPPORTED_BOARDS=("stable"
#"radxa-cm3-io-stable" "radxa-cm3-sodimm-io-stable" "radxa-e25-stable"
#"rock-4c-plus-stable"
#"rock-pi-4b-stable" "rock-pi-4c-stable"
"radxa-s0"
"rock-s0"
"rock-pi-n10"
"rock-pi-e"
"rock-pi-s"
Expand Down
8 changes: 8 additions & 0 deletions u-boot/latest/fork.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ SUPPORTED_BOARDS=("radxa-zero" "radxa-zero-2pro"
"rock-3a" "rock-3b" "rock-3c"
"rock-pi-n10"
#"rock-5a" "rock-5b" "radxa-nx5-io"
"rock-s0"
"rock-pi-s"
RadxaYuntian marked this conversation as resolved.
Show resolved Hide resolved
"rock-pi-e"
"rock-4se"
Expand Down Expand Up @@ -180,3 +181,10 @@ bsp_rock-pi-s() {
RKMINILOADER="${BSP_SOC}_miniloader_"
UBOOT_BASE_ADDR="0x600000"
}

bsp_rock-s0() {
RadxaYuntian marked this conversation as resolved.
Show resolved Hide resolved
BSP_SOC="rk3308"
RKBIN_DDR="${BSP_SOC}_ddr_589MHz_uart0_m0_v"
RKMINILOADER="${BSP_SOC}_miniloader_"
UBOOT_BASE_ADDR="0x600000"
}
Loading