hc
2024-03-22 a0752693d998599af469473b8dc239ef973a012f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/dts-v1/;
/plugin/;
 
/ {
   metadata {
       title = "Enable spidev on SPI0-M1 over CS1";
       compatible = "radxa,rock-5a";
       category = "misc";
       exclusive = "GPIO4_A2", "GPIO4_A1", "GPIO4_A0", "GPIO4_B1";
       description = "Enable spidev on SPI0-M1 over CS1.";
   };
 
   fragment@0 {
       target = <&spi0>;
 
       __overlay__ {
           status = "okay";
           #address-cells = <1>;
           #size-cells = <0>;
           pinctrl-names = "default";
           pinctrl-0 = <&spi0m1_cs1 &spi0m1_pins>;
           max-freq = <50000000>;
 
           spidev@0 {
               compatible = "rockchip,spidev";
               status = "okay";
               reg = <0>;
               spi-max-frequency = <50000000>;
           };
       };
   };
};