配置uart、i2c、pwm
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# 0 "arch/arm64/boot/dts/rockchip/rk3588/dr4-rk3588.dts"
|
# 1 "arch/arm64/boot/dts/rockchip/rk3588/dr4-rk3588.dts"
|
||||||
# 0 "<built-in>"
|
# 1 "<built-in>"
|
||||||
# 0 "<command-line>"
|
# 1 "<command-line>"
|
||||||
# 1 "arch/arm64/boot/dts/rockchip/rk3588/dr4-rk3588.dts"
|
# 1 "arch/arm64/boot/dts/rockchip/rk3588/dr4-rk3588.dts"
|
||||||
|
|
||||||
|
|
||||||
@@ -10674,7 +10674,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# 6888 "arch/arm64/boot/dts/rockchip/rk3588/../rk3588s.dtsi" 2
|
# 6887 "arch/arm64/boot/dts/rockchip/rk3588/../rk3588s.dtsi" 2
|
||||||
# 8 "arch/arm64/boot/dts/rockchip/rk3588/../rk3588.dtsi" 2
|
# 8 "arch/arm64/boot/dts/rockchip/rk3588/../rk3588.dtsi" 2
|
||||||
# 1 "arch/arm64/boot/dts/rockchip/rk3588/../rk3588-vccio3-pinctrl.dtsi" 1
|
# 1 "arch/arm64/boot/dts/rockchip/rk3588/../rk3588-vccio3-pinctrl.dtsi" 1
|
||||||
|
|
||||||
@@ -14829,7 +14829,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&uart1 {
|
&uart1 {
|
||||||
status = "okay";
|
status = "disabled";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&uart1m1_xfer>;
|
pinctrl-0 = <&uart1m1_xfer>;
|
||||||
fifo-depth =<4096>;
|
fifo-depth =<4096>;
|
||||||
@@ -14870,6 +14870,16 @@
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&uart6 {
|
||||||
|
status = "okay";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart6m1_xfer>;
|
||||||
|
fifo-depth =<4096>;
|
||||||
|
rx-fifo-depth =<2048>;
|
||||||
|
tx-fifo-depth =<2048>;
|
||||||
|
dma-names = "tx", "rx";
|
||||||
|
};
|
||||||
|
|
||||||
&uart7 {
|
&uart7 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
@@ -14881,7 +14891,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&uart8 {
|
&uart8 {
|
||||||
status = "okay";
|
status = "disabled";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&uart8m0_xfer>;
|
pinctrl-0 = <&uart8m0_xfer>;
|
||||||
fifo-depth =<4096>;
|
fifo-depth =<4096>;
|
||||||
@@ -14893,13 +14903,13 @@
|
|||||||
&can1 {
|
&can1 {
|
||||||
assigned-clocks = <&cru 114>;
|
assigned-clocks = <&cru 114>;
|
||||||
assigned-clock-rates = <200000000>;
|
assigned-clock-rates = <200000000>;
|
||||||
status = "okay";
|
status = "disabled";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&can1m1_pins>;
|
pinctrl-0 = <&can1m1_pins>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&spi3 {
|
&spi3 {
|
||||||
status = "okay";
|
status = "disabled";
|
||||||
pinctrl-0 = <&spi3m1_pins &spi3m1_cs1>;
|
pinctrl-0 = <&spi3m1_pins &spi3m1_cs1>;
|
||||||
|
|
||||||
spi3_dev@0 {
|
spi3_dev@0 {
|
||||||
@@ -14952,11 +14962,27 @@ clock-names = "hdmi0_phy_pll", "hdmi1_phy_pll";
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&pwm0 {
|
&pwm14 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
|
compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
|
||||||
pinctrl-names = "active";
|
pinctrl-names = "active";
|
||||||
pinctrl-0 = <&pwm0m2_pins>;
|
pinctrl-0 = <&pwm14m1_pins>;
|
||||||
|
#pwm-cells = <3>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&pwm15 {
|
||||||
|
status = "okay";
|
||||||
|
compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
|
||||||
|
pinctrl-names = "active";
|
||||||
|
pinctrl-0 = <&pwm15m1_pins>;
|
||||||
|
#pwm-cells = <3>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&pwm11 {
|
||||||
|
status = "okay";
|
||||||
|
compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
|
||||||
|
pinctrl-names = "active";
|
||||||
|
pinctrl-0 = <&pwm11m1_pins>;
|
||||||
#pwm-cells = <3>;
|
#pwm-cells = <3>;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -14964,6 +14990,18 @@ clock-names = "hdmi0_phy_pll", "hdmi1_phy_pll";
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
|
compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
|
||||||
pinctrl-names = "active";
|
pinctrl-names = "active";
|
||||||
pinctrl-0 = <&pwm13m2_pins>;
|
pinctrl-0 = <&pwm13m1_pins>;
|
||||||
#pwm-cells = <3>;
|
#pwm-cells = <3>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&i2c1 {
|
||||||
|
status = "okay";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&i2c1m2_xfer>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&i2c2 {
|
||||||
|
status = "okay";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&i2c2m3_xfer>;
|
||||||
|
};
|
||||||
|
|||||||
Binary file not shown.
@@ -162,7 +162,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&uart1 {
|
&uart1 {
|
||||||
status = "okay";
|
status = "disabled";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&uart1m1_xfer>;
|
pinctrl-0 = <&uart1m1_xfer>;
|
||||||
fifo-depth =<4096>;
|
fifo-depth =<4096>;
|
||||||
@@ -203,6 +203,16 @@
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&uart6 {
|
||||||
|
status = "okay";
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&uart6m1_xfer>;
|
||||||
|
fifo-depth =<4096>;
|
||||||
|
rx-fifo-depth =<2048>;
|
||||||
|
tx-fifo-depth =<2048>;
|
||||||
|
dma-names = "tx", "rx";
|
||||||
|
};
|
||||||
|
|
||||||
&uart7 {
|
&uart7 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
@@ -214,7 +224,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
&uart8 {
|
&uart8 {
|
||||||
status = "okay";
|
status = "disabled";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&uart8m0_xfer>;
|
pinctrl-0 = <&uart8m0_xfer>;
|
||||||
fifo-depth =<4096>;
|
fifo-depth =<4096>;
|
||||||
@@ -226,13 +236,13 @@
|
|||||||
&can1 {
|
&can1 {
|
||||||
assigned-clocks = <&cru CLK_CAN1>;
|
assigned-clocks = <&cru CLK_CAN1>;
|
||||||
assigned-clock-rates = <200000000>;
|
assigned-clock-rates = <200000000>;
|
||||||
status = "okay";
|
status = "disabled";
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
pinctrl-0 = <&can1m1_pins>;
|
pinctrl-0 = <&can1m1_pins>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&spi3 {
|
&spi3 {
|
||||||
status = "okay";
|
status = "disabled";
|
||||||
pinctrl-0 = <&spi3m1_pins &spi3m1_cs1>;
|
pinctrl-0 = <&spi3m1_pins &spi3m1_cs1>;
|
||||||
|
|
||||||
spi3_dev@0 {
|
spi3_dev@0 {
|
||||||
@@ -285,11 +295,27 @@ clock-names = "hdmi0_phy_pll", "hdmi1_phy_pll";
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
&pwm0 {
|
&pwm14 {
|
||||||
status = "okay";
|
status = "okay";
|
||||||
compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
|
compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
|
||||||
pinctrl-names = "active";
|
pinctrl-names = "active";
|
||||||
pinctrl-0 = <&pwm0m2_pins>; // 选择 PWM1 的引脚复用
|
pinctrl-0 = <&pwm14m1_pins>; // 选择 PWM1 的引脚复用
|
||||||
|
#pwm-cells = <3>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&pwm15 {
|
||||||
|
status = "okay";
|
||||||
|
compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
|
||||||
|
pinctrl-names = "active";
|
||||||
|
pinctrl-0 = <&pwm15m1_pins>; // 选择 PWM1 的引脚复用
|
||||||
|
#pwm-cells = <3>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&pwm11 {
|
||||||
|
status = "okay";
|
||||||
|
compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
|
||||||
|
pinctrl-names = "active";
|
||||||
|
pinctrl-0 = <&pwm11m1_pins>;
|
||||||
#pwm-cells = <3>;
|
#pwm-cells = <3>;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -297,6 +323,18 @@ clock-names = "hdmi0_phy_pll", "hdmi1_phy_pll";
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
|
compatible = "rockchip,rk3588-pwm", "rockchip,rk3328-pwm";
|
||||||
pinctrl-names = "active";
|
pinctrl-names = "active";
|
||||||
pinctrl-0 = <&pwm13m2_pins>; // 选择 PWM1 的引脚复用和UART1 M1引脚冲突了
|
pinctrl-0 = <&pwm13m1_pins>;
|
||||||
#pwm-cells = <3>;
|
#pwm-cells = <3>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&i2c1 {
|
||||||
|
status = "okay"; // 启用 I2C1 总线
|
||||||
|
pinctrl-names = "default"; // 引脚控制状态名称
|
||||||
|
pinctrl-0 = <&i2c1m2_xfer>; // 使用 i2c1m2_xfer 引脚配置
|
||||||
|
};
|
||||||
|
|
||||||
|
&i2c2 {
|
||||||
|
status = "okay"; // 启用 I2C2 总线
|
||||||
|
pinctrl-names = "default"; // 引脚控制状态名称
|
||||||
|
pinctrl-0 = <&i2c2m3_xfer>; // 使用 i2c2m3_xfer 引脚配置
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user