|
3 | 3 | #include "rtl8762gku_kb-pinctrl.dtsi" |
4 | 4 | #include <behaviors.dtsi> |
5 | 5 | / { |
6 | | - model = "RealTek rtl8762gku "; |
7 | | - compatible = "realtek,rtl8762gku"; |
| 6 | + model = "RealTek rtl8762gku "; |
| 7 | + compatible = "realtek,rtl8762gku"; |
8 | 8 |
|
9 | | - chosen { |
10 | | - zephyr,sram = &ram_data; |
11 | | - zephyr,flash = &flash; |
12 | | - zephyr,code-partition = &app_partition; |
13 | | - zephyr,itcm = &ram_code; |
14 | | - zephyr,console = &uart2; |
15 | | - zephyr,shell-uart = &uart2; |
16 | | - zephyr,flash-controller = &fmc; |
17 | | - zephyr,entropy = &trng; |
18 | | - }; |
| 9 | + chosen { |
| 10 | + zephyr,sram = &ram_data; |
| 11 | + zephyr,flash = &flash; |
| 12 | + zephyr,code-partition = &app_partition; |
| 13 | + zephyr,itcm = &ram_code; |
| 14 | + zephyr,console = &uart2; |
| 15 | + zephyr,shell-uart = &uart2; |
| 16 | + zephyr,flash-controller = &fmc; |
| 17 | + zephyr,entropy = &trng; |
| 18 | + }; |
19 | 19 |
|
20 | | - /* These aliases are provided for compatibility with samples */ |
21 | | - aliases { |
22 | | - }; |
23 | | - encoder_any: encoder_any { |
24 | | - compatible = "zmk,behavior-sensor-rotate-var"; |
25 | | - #sensor-binding-cells = <2>; |
26 | | - bindings = <&kp>, <&kp>; |
27 | | - tap-ms =<20>; |
28 | | - }; |
| 20 | + /* These aliases are provided for compatibility with samples */ |
| 21 | + aliases { |
| 22 | + }; |
| 23 | + encoder_any: encoder_any { |
| 24 | + compatible = "zmk,behavior-sensor-rotate-var"; |
| 25 | + #sensor-binding-cells = <2>; |
| 26 | + bindings = <&kp>, <&kp>; |
| 27 | + tap-ms =<20>; |
| 28 | + }; |
29 | 29 | }; |
30 | 30 |
|
31 | 31 | &flash { |
32 | | - partitions { |
33 | | - compatible = "fixed-partitions"; |
34 | | - #address-cells = <1>; |
35 | | - #size-cells = <1>; |
36 | | - reserved: partition@0 { |
37 | | - label = "reserved-image"; |
38 | | - reg = <0x0 DT_SIZE_K(4)>; |
39 | | - }; |
40 | | - config_file: partition@1000 { |
41 | | - label = "config-file-image"; |
42 | | - reg = <0x1000 DT_SIZE_K(4)>; |
43 | | - }; |
44 | | - boot_patch_0: partition@2000 { |
45 | | - label = "boot-patch-0-image"; |
46 | | - reg = <0x2000 DT_SIZE_K(32)>; |
47 | | - }; |
48 | | - boot_patch_1: partition@a000 { |
49 | | - label = "boot-patch-1-image"; |
50 | | - reg = <0xA000 DT_SIZE_K(32)>; |
51 | | - }; |
52 | | - ota_header: partition@12000 { |
53 | | - label = "ota-header-image"; |
54 | | - reg = <0x12000 DT_SIZE_K(4)>; |
55 | | - }; |
56 | | - system_patch: partition@13000 { |
57 | | - label = "system-patch-image"; |
58 | | - reg = <0x13000 DT_SIZE_K(32)>; |
59 | | - }; |
60 | | - stack_patch: partition@1b000 { |
61 | | - label = "stack-patch-image"; |
62 | | - reg = <0x1B000 DT_SIZE_K(72)>; |
63 | | - }; |
64 | | - app_partition: partition@2d000 { |
65 | | - label = "app-image"; |
66 | | - reg = <0x2D000 DT_SIZE_K(800)>; |
67 | | - }; |
68 | | - storage_partition: partition@f5000 { |
69 | | - label = "storage"; |
70 | | - reg = <0xF5000 DT_SIZE_K(44)>; |
71 | | - }; |
72 | | - }; |
| 32 | + partitions { |
| 33 | + compatible = "fixed-partitions"; |
| 34 | + #address-cells = <1>; |
| 35 | + #size-cells = <1>; |
| 36 | + reserved: partition@0 { |
| 37 | + label = "reserved-image"; |
| 38 | + reg = <0x0 DT_SIZE_K(4)>; |
| 39 | + }; |
| 40 | + config_file: partition@1000 { |
| 41 | + label = "config-file-image"; |
| 42 | + reg = <0x1000 DT_SIZE_K(4)>; |
| 43 | + }; |
| 44 | + boot_patch_0: partition@2000 { |
| 45 | + label = "boot-patch-0-image"; |
| 46 | + reg = <0x2000 DT_SIZE_K(32)>; |
| 47 | + }; |
| 48 | + boot_patch_1: partition@a000 { |
| 49 | + label = "boot-patch-1-image"; |
| 50 | + reg = <0xA000 DT_SIZE_K(32)>; |
| 51 | + }; |
| 52 | + ota_header: partition@12000 { |
| 53 | + label = "ota-header-image"; |
| 54 | + reg = <0x12000 DT_SIZE_K(4)>; |
| 55 | + }; |
| 56 | + system_patch: partition@13000 { |
| 57 | + label = "system-patch-image"; |
| 58 | + reg = <0x13000 DT_SIZE_K(32)>; |
| 59 | + }; |
| 60 | + stack_patch: partition@1b000 { |
| 61 | + label = "stack-patch-image"; |
| 62 | + reg = <0x1B000 DT_SIZE_K(72)>; |
| 63 | + }; |
| 64 | + app_partition: partition@2d000 { |
| 65 | + label = "app-image"; |
| 66 | + reg = <0x2D000 DT_SIZE_K(800)>; |
| 67 | + }; |
| 68 | + storage_partition: partition@f5000 { |
| 69 | + label = "storage"; |
| 70 | + reg = <0xF5000 DT_SIZE_K(44)>; |
| 71 | + }; |
| 72 | + }; |
73 | 73 | }; |
74 | 74 |
|
75 | 75 | &cpu { |
76 | | - clock-frequency = <40000000>; |
| 76 | + clock-frequency = <40000000>; |
77 | 77 | }; |
78 | 78 |
|
79 | 79 | &uart2 { |
80 | | - pinctrl-0 = <&uart2_default>; |
81 | | - pinctrl-1 = <&uart2_sleep>; |
82 | | - pinctrl-names = "default","sleep"; |
83 | | - status = "okay"; |
84 | | - current-speed = <2000000>; |
85 | | - parity = "none"; |
86 | | - stop-bits = "1"; |
87 | | - data-bits = <8>; |
| 80 | + pinctrl-0 = <&uart2_default>; |
| 81 | + pinctrl-1 = <&uart2_sleep>; |
| 82 | + pinctrl-names = "default","sleep"; |
| 83 | + status = "okay"; |
| 84 | + current-speed = <2000000>; |
| 85 | + parity = "none"; |
| 86 | + stop-bits = "1"; |
| 87 | + data-bits = <8>; |
88 | 88 | }; |
0 commit comments