Skip to content

Commit 258f0ce

Browse files
committed
boot from NVMe with U-Boot on EMMC [fixed headphone bug (still not functional) and spi (incorrect wiring)]
1 parent d631335 commit 258f0ce

2 files changed

Lines changed: 67 additions & 45 deletions

File tree

arch/arm64/boot/dts/rockchip/rk3588-nanopc-cm3588-anyon_e.dts

Lines changed: 33 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@
4848
simple-audio-card,hp-pin-name = "Headphone Jack";
4949

5050
simple-audio-card,widgets =
51-
"Headphone", "Headphone Jack",
52-
"Microphone", "Microphone Jack";
51+
"Headphone", "Headphones",
52+
"Microphone", "MicrophoneJack";
5353
simple-audio-card,routing =
54-
"Headphone Jack", "HPOL",
55-
"Headphone Jack", "HPOR",
56-
"MIC1", "Microphone Jack",
57-
"Microphone Jack", "micbias1";
54+
"Headphones", "HPOL",
55+
"Headphones", "HPOR",
56+
"MIC1", "MicrophoneJack",
57+
"MicrophoneJack", "micbias1";
5858

5959
simple-audio-card,cpu {
6060
sound-dai = <&i2s0_8ch>;
@@ -492,7 +492,6 @@
492492
pinctrl-names = "default";
493493
pinctrl-0 = <&i2s0_mclk>;
494494
};
495-
496495
/* connected with MIPI-CSI1 */
497496
};
498497

@@ -793,23 +792,35 @@
793792
status = "okay";
794793
};
795794

796-
&spi0 {
797-
num-cs = <1>;
798-
pinctrl-0 = <&spi0m2_cs0 &spi0m2_pins>;
799-
status = "disabled";
795+
&sfc {
796+
status = "okay";
797+
max-freq = <50000000>;
798+
#address-cells = <1>;
799+
#size-cells = <0>;
800+
pinctrl-names = "default";
801+
pinctrl-0 = <&fspim2_pins>;
800802

801-
spidev0: spidev@0 {
802-
compatible = "rockchip,spidev";
803-
reg = <0>;
804-
spi-max-frequency = <5000000>;
805-
status = "disabled";
806-
};
807-
};
803+
spi_flash: spi-flash@0 {
804+
#address-cells = <1>;
805+
#size-cells = <0>;
806+
compatible = "jedec,spi-nor";
807+
reg = <0x0>;
808+
spi-max-frequency = <50000000>;
809+
spi-tx-bus-width = <1>;
810+
spi-rx-bus-width = <4>;
811+
status = "okay";
808812

809-
&spi4 {
810-
num-cs = <1>;
811-
pinctrl-0 = <&spi4m1_cs0 &spi4m1_pins>;
812-
status = "disabled";
813+
partitions {
814+
compatible = "fixed-partitions";
815+
#address-cells = <1>;
816+
#size-cells = <1>;
817+
818+
loader@0 {
819+
label = "loader";
820+
reg = <0x0 0x1000000>;
821+
};
822+
};
823+
};
813824
};
814825

815826
&uart0 {

rk3588-nanopc-cm3588-anyon_e.dts.preprocessed

Lines changed: 34 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24550,13 +24550,13 @@
2455024550
simple-audio-card,hp-pin-name = "Headphone Jack";
2455124551

2455224552
simple-audio-card,widgets =
24553-
"Headphone", "Headphone Jack",
24554-
"Microphone", "Microphone Jack";
24553+
"Headphone", "Headphones",
24554+
"Microphone", "MicrophoneJack";
2455524555
simple-audio-card,routing =
24556-
"Headphone Jack", "HPOL",
24557-
"Headphone Jack", "HPOR",
24558-
"MIC1", "Microphone Jack",
24559-
"Microphone Jack", "micbias1";
24556+
"Headphones", "HPOL",
24557+
"Headphones", "HPOR",
24558+
"MIC1", "MicrophoneJack",
24559+
"MicrophoneJack", "micbias1";
2456024560

2456124561
simple-audio-card,cpu {
2456224562
sound-dai = <&i2s0_8ch>;
@@ -24995,7 +24995,6 @@
2499524995
pinctrl-0 = <&i2s0_mclk>;
2499624996
};
2499724997

24998-
2499924998
};
2500024999

2500125000
&i2c8 {
@@ -25043,7 +25042,7 @@
2504325042
vpcie3v3-supply = <&vcc3v3_pcie30>;
2504425043
status = "okay";
2504525044
};
25046-
# 562 "./arch/arm64/boot/dts/rockchip/rk3588-nanopc-cm3588-anyon_e.dts"
25045+
2504725046
&pinctrl {
2504825047

2504925048
edp {
@@ -25295,23 +25294,35 @@
2529525294
status = "okay";
2529625295
};
2529725296

25298-
&spi0 {
25299-
num-cs = <1>;
25300-
pinctrl-0 = <&spi0m2_cs0 &spi0m2_pins>;
25301-
status = "disabled";
25297+
&sfc {
25298+
status = "okay";
25299+
max-freq = <50000000>;
25300+
#address-cells = <1>;
25301+
#size-cells = <0>;
25302+
pinctrl-names = "default";
25303+
pinctrl-0 = <&fspim2_pins>;
2530225304

25303-
spidev0: spidev@0 {
25304-
compatible = "rockchip,spidev";
25305-
reg = <0>;
25306-
spi-max-frequency = <5000000>;
25307-
status = "disabled";
25308-
};
25309-
};
25305+
spi_flash: spi-flash@0 {
25306+
#address-cells = <1>;
25307+
#size-cells = <0>;
25308+
compatible = "jedec,spi-nor";
25309+
reg = <0x0>;
25310+
spi-max-frequency = <50000000>;
25311+
spi-tx-bus-width = <1>;
25312+
spi-rx-bus-width = <4>;
25313+
status = "okay";
2531025314

25311-
&spi4 {
25312-
num-cs = <1>;
25313-
pinctrl-0 = <&spi4m1_cs0 &spi4m1_pins>;
25314-
status = "disabled";
25315+
partitions {
25316+
compatible = "fixed-partitions";
25317+
#address-cells = <1>;
25318+
#size-cells = <1>;
25319+
25320+
loader@0 {
25321+
label = "loader";
25322+
reg = <0x0 0x1000000>;
25323+
};
25324+
};
25325+
};
2531525326
};
2531625327

2531725328
&uart0 {

0 commit comments

Comments
 (0)