Skip to content

Commit

Permalink
[dts] Fix PINE64 device trees for Linux 6.1
Browse files Browse the repository at this point in the history
Signed-off-by: MichaIng <[email protected]>
  • Loading branch information
MichaIng committed Nov 18, 2023
1 parent 21526fb commit 98785ec
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 26 deletions.
4 changes: 2 additions & 2 deletions arch/riscv/boot/dts/starfive/jh7110-pine64-pinetabv.dts
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,13 @@
status = "okay";
};

&sdio0 {
&mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
status = "okay";
};

&sdio1 {
&mmc1 {
pinctrl-names = "default";
pinctrl-0 = <&sdcard1_pins>;
//cd-gpios = <&gpio 41 0>;
Expand Down
25 changes: 14 additions & 11 deletions arch/riscv/boot/dts/starfive/jh7110-pine64-pinetabv.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
gpio0 = &gpio;
ethernet0 = &gmac0;
ethernet1 = &gmac1;
mmc0 = &sdio0;
mmc1 = &sdio1;
mmc0 = &mmc0;
mmc1 = &mmc1;
serial0 = &uart0;
serial3 = &uart3;
i2c0 = &i2c0;
Expand Down Expand Up @@ -70,10 +70,12 @@
reg = <0x0 0x6ce00000 0x0 0x1600000>;
};

hifi4_reserved: hifi4@f0000000 {
reg = <0x0 0x69c00000 0x0 0x03001000>;
xrp_reserved: xrpbuffer@f0000000 {
reg = <0x0 0x69c00000 0x0 0x01ffffff
0x0 0x6bc00000 0x0 0x00001000
0x0 0x6bc01000 0x0 0x00fff000
0x0 0x6cc00000 0x0 0x00001000>;
};

};

vcc5v: vcc5v{
Expand Down Expand Up @@ -702,7 +704,7 @@

};

&sdio0 {
&mmc0 {
max-frequency = <100000000>;
assigned-clocks = <&clkgen JH7110_SDIO0_CLK_SDCARD>;
assigned-clock-rates = <50000000>;
Expand All @@ -718,7 +720,7 @@
status = "okay";
};

&sdio1 {
&mmc1 {
max-frequency = <100000000>;
assigned-clocks = <&clkgen JH7110_SDIO1_CLK_SDCARD>;
assigned-clock-rates = <50000000>;
Expand Down Expand Up @@ -987,12 +989,13 @@
xhci-lowmem-pool;
};

&xrp {
memory-region = <&xrp_reserved>;
status = "okay";
};

&ptc {
pinctrl-names = "default";
pinctrl-0 = <&lcdbl_pins>;
status = "okay";
};

&sof_dsp {
memory-region = <&hifi4_reserved>;
};
4 changes: 2 additions & 2 deletions arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dts
Original file line number Diff line number Diff line change
Expand Up @@ -226,13 +226,13 @@
status = "okay";
};

&sdio0 {
&mmc0 {
pinctrl-names = "default";
pinctrl-0 = <&mmc0_pins>;
status = "okay";
};

&sdio1 {
&mmc1 {
pinctrl-names = "default";
pinctrl-0 = <&sdcard1_pins>;
//cd-gpios = <&gpio 41 0>;
Expand Down
25 changes: 14 additions & 11 deletions arch/riscv/boot/dts/starfive/jh7110-pine64-star64.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
gpio0 = &gpio;
ethernet0 = &gmac0;
ethernet1 = &gmac1;
mmc0 = &sdio0;
mmc1 = &sdio1;
mmc0 = &mmc0;
mmc1 = &mmc1;
serial0 = &uart0;
serial3 = &uart3;
i2c0 = &i2c0;
Expand Down Expand Up @@ -68,10 +68,12 @@
reg = <0x0 0x6ce00000 0x0 0x1600000>;
};

hifi4_reserved: hifi4@f0000000 {
reg = <0x0 0x69c00000 0x0 0x03001000>;
xrp_reserved: xrpbuffer@f0000000 {
reg = <0x0 0x69c00000 0x0 0x01ffffff
0x0 0x6bc00000 0x0 0x00001000
0x0 0x6bc01000 0x0 0x00fff000
0x0 0x6cc00000 0x0 0x00001000>;
};

};

leds {
Expand Down Expand Up @@ -493,7 +495,7 @@

};

&sdio0 {
&mmc0 {
max-frequency = <100000000>;
assigned-clocks = <&clkgen JH7110_SDIO0_CLK_SDCARD>;
assigned-clock-rates = <50000000>;
Expand All @@ -509,7 +511,7 @@
status = "okay";
};

&sdio1 {
&mmc1 {
max-frequency = <100000000>;
assigned-clocks = <&clkgen JH7110_SDIO0_CLK_SDCARD>;
assigned-clock-rates = <50000000>;
Expand Down Expand Up @@ -780,12 +782,13 @@
pinctrl-0 = <&usb_pins>;
};

&xrp {
memory-region = <&xrp_reserved>;
status = "okay";
};

&ptc {
pinctrl-names = "default";
pinctrl-0 = <&pwm_pins>;
status = "okay";
};

&sof_dsp {
memory-region = <&hifi4_reserved>;
};

0 comments on commit 98785ec

Please sign in to comment.