1
0
Fork 0

add spidev on device tree

This commit is contained in:
Florian Agbuya 2024-03-15 11:46:51 +08:00
parent bc09e60a15
commit 628582a981
1 changed files with 48 additions and 7 deletions

View File

@ -1,7 +1,7 @@
# 0 "my_dts/system-top.dts"
# 0 "system-top.dts"
# 0 "<built-in>"
# 0 "<command-line>"
# 1 "my_dts/system-top.dts"
# 1 "system-top.dts"
@ -10,8 +10,8 @@
/dts-v1/;
# 1 "my_dts/zynq-7000.dtsi" 1
# 15 "my_dts/zynq-7000.dtsi"
# 1 "zynq-7000.dtsi" 1
# 15 "zynq-7000.dtsi"
/ {
#address-cells = <1>;
#size-cells = <1>;
@ -564,8 +564,8 @@
};
};
};
# 10 "my_dts/system-top.dts" 2
# 1 "my_dts/pcw.dtsi" 1
# 10 "system-top.dts" 2
# 1 "pcw.dtsi" 1
@ -641,7 +641,48 @@
fclk-enable = <0x0>;
ps-clk-frequency = <33333333>;
};
# 11 "my_dts/system-top.dts" 2
# 11 "system-top.dts" 2
# 1 "system-user.dtsi" 1
&spi0 {
is-decoded-cs = <1>;
num-cs = <4>;
spidev@1 {
compatible = "rohm,dh2228fv";
spi-max-frequency = <50000000>;
reg = <1>;
};
spidev@2 {
compatible = "rohm,dh2228fv";
spi-max-frequency = <50000000>;
reg = <2>;
};
spidev@3 {
compatible = "rohm,dh2228fv";
spi-max-frequency = <50000000>;
reg = <3>;
};
spidev@4 {
compatible = "rohm,dh2228fv";
spi-max-frequency = <50000000>;
reg = <4>;
};
};
&spi1 {
spidev@0 {
compatible = "rohm,dh2228fv";
spi-max-frequency = <50000000>;
reg = <0>;
};
};
# 12 "system-top.dts" 2
/ {
model = "Sinara Fast Servo board";
chosen {