|
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; |
|
40 | 40 | zephyr,memory-region = "SRAM"; |
41 | 41 | }; |
42 | 42 |
|
43 | | - spi_flash: memory@20020000 { |
44 | | - compatible = "mmio-sram"; |
45 | | - reg = <0x20020000 (DT_SIZE_M(16) - 0x20000)>; |
46 | | - |
47 | | - partitions { |
48 | | - compatible = "fixed-partitions"; |
49 | | - #address-cells = <1>; |
50 | | - #size-cells = <1>; |
51 | | - |
52 | | - header: partition@0 { |
53 | | - label = "header"; |
54 | | - reg = <0x00000000 0x200>; |
55 | | - read-only; |
56 | | - }; |
57 | | - |
58 | | - slot0_partition: partition@200 { |
59 | | - label = "image-0"; |
60 | | - reg = <0x00000200 (DT_SIZE_M(16) - 0x20200)>; |
61 | | - read-only; |
62 | | - }; |
63 | | - }; |
64 | | - }; |
65 | 43 | }; |
66 | 44 |
|
67 | 45 | &scif0 { |
|
84 | 62 | &wdt0 { |
85 | 63 | status = "okay"; |
86 | 64 | }; |
| 65 | + |
| 66 | +&spibsc { |
| 67 | + status = "okay"; |
| 68 | + |
| 69 | + at25ql128a: qspi-nor-flash@20000000 { |
| 70 | + compatible = "renesas,rz-qspi-spibsc"; |
| 71 | + reg = <0x20000000 DT_SIZE_M(16)>; /* 128 Mbits */ |
| 72 | + write-block-size = <1>; |
| 73 | + erase-block-size = <4096>; |
| 74 | + status = "okay"; |
| 75 | + |
| 76 | + partitions { |
| 77 | + compatible = "fixed-partitions"; |
| 78 | + #address-cells = <1>; |
| 79 | + #size-cells = <1>; |
| 80 | + |
| 81 | + reserved: partition@0 { |
| 82 | + reg = <0x00000000 0x20000>; |
| 83 | + read-only; |
| 84 | + }; |
| 85 | + |
| 86 | + header: partition@20000 { |
| 87 | + label = "header"; |
| 88 | + reg = <0x00020000 0x200>; |
| 89 | + read-only; |
| 90 | + }; |
| 91 | + |
| 92 | + slot0_partition: partition@20200 { |
| 93 | + label = "image-0"; |
| 94 | + reg = <0x00020200 (DT_SIZE_M(16) - 0x20200)>; |
| 95 | + read-only; |
| 96 | + }; |
| 97 | + }; |
| 98 | + }; |
| 99 | +}; |
0 commit comments