|
18 | 18 |
|
19 | 19 | chosen {
|
20 | 20 | zephyr,sram = &ddr;
|
21 |
| - zephyr,flash = &spi_flash; |
| 21 | + zephyr,flash = &at25ql128a; |
22 | 22 | zephyr,console = &scif0;
|
23 | 23 | zephyr,shell-uart = &scif0;
|
24 | 24 | zephyr,code-partition = &slot0_partition;
|
|
36 | 36 | zephyr,memory-region = "SRAM";
|
37 | 37 | };
|
38 | 38 |
|
39 |
| - spi_flash: memory@20020000 { |
40 |
| - compatible = "mmio-sram"; |
41 |
| - reg = <0x20020000 (DT_SIZE_M(16) - 0x20000)>; |
42 |
| - |
43 |
| - partitions { |
44 |
| - compatible = "fixed-partitions"; |
45 |
| - #address-cells = <1>; |
46 |
| - #size-cells = <1>; |
47 |
| - |
48 |
| - header: partition@0 { |
49 |
| - label = "header"; |
50 |
| - reg = <0x00000000 0x200>; |
51 |
| - read-only; |
52 |
| - }; |
53 |
| - |
54 |
| - slot0_partition: partition@200 { |
55 |
| - label = "image-0"; |
56 |
| - reg = <0x00000200 (DT_SIZE_M(16) - 0x20200)>; |
57 |
| - read-only; |
58 |
| - }; |
59 |
| - }; |
60 |
| - }; |
61 | 39 | };
|
62 | 40 |
|
63 | 41 | &scif0 {
|
|
76 | 54 | pinctrl-names = "default";
|
77 | 55 | status = "okay";
|
78 | 56 | };
|
| 57 | + |
| 58 | +&spibsc { |
| 59 | + status = "okay"; |
| 60 | + |
| 61 | + at25ql128a: qspi-nor-flash@20000000 { |
| 62 | + compatible = "renesas,rz-qspi-spibsc"; |
| 63 | + reg = <0x20000000 DT_SIZE_M(16)>; /* 128 Mbits */ |
| 64 | + write-block-size = <1>; |
| 65 | + erase-block-size = <4096>; |
| 66 | + status = "okay"; |
| 67 | + |
| 68 | + partitions { |
| 69 | + compatible = "fixed-partitions"; |
| 70 | + #address-cells = <1>; |
| 71 | + #size-cells = <1>; |
| 72 | + |
| 73 | + reserved: partition@0 { |
| 74 | + reg = <0x00000000 0x20000>; |
| 75 | + read-only; |
| 76 | + }; |
| 77 | + |
| 78 | + header: partition@20000 { |
| 79 | + label = "header"; |
| 80 | + reg = <0x00020000 0x200>; |
| 81 | + read-only; |
| 82 | + }; |
| 83 | + |
| 84 | + slot0_partition: partition@20200 { |
| 85 | + label = "image-0"; |
| 86 | + reg = <0x00020200 (DT_SIZE_M(16) - 0x20200)>; |
| 87 | + read-only; |
| 88 | + }; |
| 89 | + }; |
| 90 | + }; |
| 91 | +}; |
0 commit comments