hc
2024-08-12 233ab1bd4c5697f5cdec94e60206e8c6ac609b4c
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/dts-v1/;
/plugin/;
 
/ {
   metadata {
       title ="Enable SPI Nor Flash on ROCK 5A";
       compatible = "radxa,rock-5a", "rockchip,rk3588";
       category = "misc";
       description = "Enable SPI Nor Flash on ROCK 5A";
   };
 
   fragment@0 {
       target = <&sfc>;
 
       __overlay__ {
           status = "okay";
           max-freq = <50000000>;
           #address-cells = <1>;
           #size-cells = <0>;
           pinctrl-names = "default";
           pinctrl-0 = <&fspim0_pins>;
 
           spi_flash: spi-flash@0 {
               #address-cells = <1>;
               #size-cells = <0>;
               compatible = "jedec,spi-nor";
               reg = <0x0>;
               spi-max-frequency = <50000000>;
               spi-tx-bus-width = <1>;
               spi-rx-bus-width = <4>;
               status = "okay";
 
               partitions {
                   compatible = "fixed-partitions";
                   #address-cells = <1>;
                   #size-cells = <1>;
 
                   loader@0 {
                       label = "loader";
                       reg = <0x0 0x1000000>;
                   };
               };
           };
       };
   };
 
   fragment@1 {
       target = <&sdhci>;
 
       __overlay__ {
           status = "disabled";
       };
   };
};