File tree Expand file tree Collapse file tree 4 files changed +47
-30
lines changed
bindings/flash_controller Expand file tree Collapse file tree 4 files changed +47
-30
lines changed Original file line number Diff line number Diff line change 11
11
sram0: memory@20000000 {
12
12
reg = <0x20000000 DT_SIZE_K(80)>;
13
13
};
14
+ };
14
15
15
- flash0: serial-flash@0 {
16
- reg = <0x0 DT_SIZE_K(352)>;
16
+ & flash0 {
17
+ reg = <0x0 DT_SIZE_K(352)>;
17
18
18
- partitions {
19
- compatible = "fixed-partitions";
20
- #address-cells = <1>;
21
- #size-cells = <1>;
19
+ partitions {
20
+ compatible = "fixed-partitions";
21
+ #address-cells = <1>;
22
+ #size-cells = <1>;
22
23
23
- /* CCFG registers occupy the last 88 bytes of flash */
24
- ti_ccfg_partition: partition@57fa8 {
25
- compatible = "zephyr,memory-region";
26
- label = "ti_ccfg";
27
- reg = <0x57fa8 88>;
28
- zephyr,memory-region = "FLASH_CCFG";
29
- };
24
+ /* CCFG registers occupy the last 88 bytes of flash */
25
+ ti_ccfg_partition: partition@57fa8 {
26
+ compatible = "zephyr,memory-region";
27
+ label = "ti_ccfg";
28
+ reg = <0x57fa8 88>;
29
+ zephyr,memory-region = "FLASH_CCFG";
30
30
};
31
31
};
32
32
};
Original file line number Diff line number Diff line change 11
11
/ {
12
12
chosen {
13
13
zephyr,entropy = &trng;
14
+ zephyr,flash-controller = &flash_controller;
14
15
};
15
16
16
17
cpus {
35
36
zephyr,memory-region = "SRAM1";
36
37
};
37
38
38
- flash0: serial-flash@0 {
39
- compatible = "serial-flash";
40
- };
41
-
42
39
sysclk: system-clock {
43
40
compatible = "fixed-clock";
44
41
clock-frequency = <48000000>;
69
66
label = "TRNG";
70
67
};
71
68
69
+ flash_controller: flash-controller@40030000 {
70
+ compatible = "ti,cc13xx-cc26xx-flash-controller";
71
+ reg = <0x40030000 0x4000>;
72
+ label="FLASH_CTRL";
73
+
74
+ #address-cells = <1>;
75
+ #size-cells = <1>;
76
+
77
+ flash0: flash@0 {
78
+ compatible = "soc-nv-flash";
79
+ erase-block-size = <DT_SIZE_K(8)>;
80
+ write-block-size = <1>;
81
+ };
82
+ };
83
+
72
84
uart0: uart@40001000 {
73
85
compatible = "ti,cc13xx-cc26xx-uart";
74
86
reg = <0x40001000 0x1000>;
Original file line number Diff line number Diff line change 11
11
sram0: memory@20000000 {
12
12
reg = <0x20000000 DT_SIZE_K(80)>;
13
13
};
14
+ };
14
15
15
- flash0: serial-flash@0 {
16
- reg = <0x0 DT_SIZE_K(352)>;
16
+ & flash0 {
17
+ reg = <0x0 DT_SIZE_K(352)>;
17
18
18
- partitions {
19
- compatible = "fixed-partitions";
20
- #address-cells = <1>;
21
- #size-cells = <1>;
19
+ partitions {
20
+ compatible = "fixed-partitions";
21
+ #address-cells = <1>;
22
+ #size-cells = <1>;
22
23
23
- /* CCFG registers occupy the last 88 bytes of flash */
24
- ti_ccfg_partition: partition@57fa8 {
25
- compatible = "zephyr,memory-region";
26
- label = "ti_ccfg";
27
- reg = <0x57fa8 88>;
28
- zephyr,memory-region = "FLASH_CCFG";
29
- };
24
+ /* CCFG registers occupy the last 88 bytes of flash */
25
+ ti_ccfg_partition: partition@57fa8 {
26
+ compatible = "zephyr,memory-region";
27
+ label = "ti_ccfg";
28
+ reg = <0x57fa8 88>;
29
+ zephyr,memory-region = "FLASH_CCFG";
30
30
};
31
31
};
32
32
};
Original file line number Diff line number Diff line change
1
+ description : Texas Instruments CC13xx/CC26xx flash controller
2
+
3
+ compatible : " ti,cc13xx-cc26xx-flash-controller"
4
+
5
+ include : flash-controller.yaml
You can’t perform that action at this time.
0 commit comments