配置spi

This commit is contained in:
zhangpeng
2025-10-09 16:18:35 +08:00
parent 553f0a562e
commit 115e957b83
3 changed files with 35 additions and 7 deletions

View File

@@ -9054,26 +9054,26 @@ dsi1_panel: panel@0 {
}; };
&uart3 { &uart3 {
status = "okay"; status = "disabled";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&uart3m1_xfer>; pinctrl-0 = <&uart3m1_xfer>;
}; };
&uart4 { &uart4 {
status = "okay"; status = "disabled";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&uart4m0_xfer>; pinctrl-0 = <&uart4m0_xfer>;
}; };
&uart5 { &uart5 {
status = "okay"; status = "disabled";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&uart5m0_xfer>; pinctrl-0 = <&uart5m0_xfer>;
}; };
&uart6 { &uart6 {
status = "okay"; status = "disabled";
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&uart6m1_xfer>; pinctrl-0 = <&uart6m1_xfer>;
}; };
@@ -9105,6 +9105,20 @@ dsi1_panel: panel@0 {
}; };
}; };
&spi1 {
status = "okay";
pinctrl-0 = <&spi1m1_cs0 &spi1m1_pins>;
pinctrl-0 = <&spi1m1_cs0 &spi1m1_pins_hs>;
spi_dev@0 {
compatible = "rockchip,spidev";
reg = <0>;
spi-max-frequency = <12000000>;
spi-lsb-first;
};
};
&video_phy1 { &video_phy1 {
status = "disabled"; status = "disabled";
}; };
@@ -9126,7 +9140,7 @@ dsi1_panel: panel@0 {
status = "disabled"; status = "disabled";
}; };
# 421 "arch/arm64/boot/dts/rockchip/rk356x/dr4-rk3568.dts" # 435 "arch/arm64/boot/dts/rockchip/rk356x/dr4-rk3568.dts"
&rk_headset { &rk_headset {
pinctrl-0 = <&hp_det>; pinctrl-0 = <&hp_det>;
headset_gpio = <&gpio2 27 0>; headset_gpio = <&gpio2 27 0>;
@@ -9175,7 +9189,7 @@ dsi1_panel: panel@0 {
BT,wake_host_irq = <&gpio0 28 0>; BT,wake_host_irq = <&gpio0 28 0>;
status = "disabled"; status = "disabled";
}; };
# 519 "arch/arm64/boot/dts/rockchip/rk356x/dr4-rk3568.dts" # 533 "arch/arm64/boot/dts/rockchip/rk356x/dr4-rk3568.dts"
&pinctrl { &pinctrl {
rp_pins { rp_pins {
rp_power: rp-power { rp_power: rp-power {
@@ -9215,7 +9229,7 @@ dsi1_panel: panel@0 {
<3 2 0 &pcfg_pull_none>; <3 2 0 &pcfg_pull_none>;
}; };
}; };
# 573 "arch/arm64/boot/dts/rockchip/rk356x/dr4-rk3568.dts" # 587 "arch/arm64/boot/dts/rockchip/rk356x/dr4-rk3568.dts"
}; };

Binary file not shown.

View File

@@ -338,6 +338,20 @@
}; };
}; };
&spi1 {
status = "okay";
/** redefine pins for cs1 used to be pwm5 */
pinctrl-0 = <&spi1m1_cs0 &spi1m1_pins>;
pinctrl-0 = <&spi1m1_cs0 &spi1m1_pins_hs>;
spi_dev@0 {
compatible = "rockchip,spidev";
reg = <0>;
spi-max-frequency = <12000000>;
spi-lsb-first;
};
};
&video_phy1 { &video_phy1 {
status = "disabled"; status = "disabled";
}; };