Skip to content

Commit

Permalink
Merge pull request #68 from Ken-Vamrs/main
Browse files Browse the repository at this point in the history
rename radxa s0 to rock s0
  • Loading branch information
RadxaYuntian authored Nov 30, 2023
2 parents bf7ed7c + 96700d0 commit 317aa65
Show file tree
Hide file tree
Showing 7 changed files with 101 additions and 5 deletions.
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
12 changes: 10 additions & 2 deletions u-boot/latest/fork.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +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-pi-s"
"rock-s0" "rock-pi-s"
"rock-pi-e"
"rock-4se"
"rock-pi-4a-plus" "rock-pi-4b-plus" "rock-4c-plus"
Expand Down Expand Up @@ -174,9 +174,17 @@ bsp_radxa-nx5-io() {
bsp_rk3588s
}

bsp_rock-pi-s() {
bsp_rk3308() {
BSP_SOC="rk3308"
RKBIN_DDR="${BSP_SOC}_ddr_589MHz_uart0_m0_v"
RKMINILOADER="${BSP_SOC}_miniloader_"
UBOOT_BASE_ADDR="0x600000"
}

bsp_rock-pi-s() {
bsp_rk3308
}

bsp_rock-s0() {
bsp_rk3308
}

0 comments on commit 317aa65

Please sign in to comment.