|
| 1 | +/* |
| 2 | + * Copyright (c) 2024 HARDWARIO a.s. |
| 3 | + * |
| 4 | + * SPDX-License-Identifier: LicenseRef-HARDWARIO-5-Clause |
| 5 | + */ |
| 6 | + |
| 7 | +/* HARDWARE-CHESTER-BAROMETER-TAG */ |
| 8 | +&ctr_barometer_tag { |
| 9 | + status = "okay"; |
| 10 | +}; |
| 11 | +/* HARDWARE-CHESTER-METEO-A */ |
| 12 | +&ctr_x0_a { |
| 13 | + status = "okay"; |
| 14 | + |
| 15 | + ctr_meteo_a: ctr_meteo_a { |
| 16 | + compatible = "hardwario,ctr-meteo"; |
| 17 | + slot = "A"; |
| 18 | + status = "okay"; |
| 19 | + }; |
| 20 | +}; |
| 21 | + |
| 22 | +&ctr_x0_pcal6416a_a { |
| 23 | + status = "okay"; |
| 24 | +}; |
| 25 | +/* HARDWARE-CHESTER-S2 */ |
| 26 | +&sht30_ext { |
| 27 | + status = "okay"; |
| 28 | +}; |
| 29 | +/* SUBSYSTEM-CLOUD */ |
| 30 | +/ { |
| 31 | + chosen { |
| 32 | + nordic,pm-ext-flash = &spi_flash0; |
| 33 | + }; |
| 34 | +}; |
| 35 | + |
| 36 | +&spi_flash0 { |
| 37 | + partitions { |
| 38 | + compatible = "fixed-partitions"; |
| 39 | + #address-cells = <1>; |
| 40 | + #size-cells = <1>; |
| 41 | + |
| 42 | + littlefs_storage: partition@0 { |
| 43 | + label = "littlefs_storage"; |
| 44 | + |
| 45 | + /* |
| 46 | + * This size doesn't matter due to Nordic's partition |
| 47 | + * manager; For the sake of consistency this should |
| 48 | + * match the configured size |
| 49 | + */ |
| 50 | + reg = <0x00000000 0x730000>; |
| 51 | + }; |
| 52 | + }; |
| 53 | +}; |
| 54 | + |
| 55 | +/ { |
| 56 | + fstab { |
| 57 | + compatible = "zephyr,fstab"; |
| 58 | + lfs1: lfs1 { |
| 59 | + compatible = "zephyr,fstab,littlefs"; |
| 60 | + mount-point = "/lfs1"; |
| 61 | + partition = <&littlefs_storage>; |
| 62 | + automount; |
| 63 | + read-size = <16>; |
| 64 | + prog-size = <16>; |
| 65 | + cache-size = <64>; |
| 66 | + lookahead-size = <32>; |
| 67 | + block-cycles = <512>; |
| 68 | + }; |
| 69 | + }; |
| 70 | +}; |
| 71 | +/* SUBSYSTEM-DS18B20 */ |
| 72 | +&ds2484 { |
| 73 | + ds18b20_0: ds18b20_0 { |
| 74 | + compatible = "maxim,ds18b20"; |
| 75 | + resolution = <12>; |
| 76 | + family-code = <0x28>; |
| 77 | + }; |
| 78 | + |
| 79 | + ds18b20_1: ds18b20_1 { |
| 80 | + compatible = "maxim,ds18b20"; |
| 81 | + resolution = <12>; |
| 82 | + family-code = <0x28>; |
| 83 | + }; |
| 84 | + |
| 85 | + ds18b20_2: ds18b20_2 { |
| 86 | + compatible = "maxim,ds18b20"; |
| 87 | + resolution = <12>; |
| 88 | + family-code = <0x28>; |
| 89 | + }; |
| 90 | + |
| 91 | + ds18b20_3: ds18b20_3 { |
| 92 | + compatible = "maxim,ds18b20"; |
| 93 | + resolution = <12>; |
| 94 | + family-code = <0x28>; |
| 95 | + }; |
| 96 | + |
| 97 | + ds18b20_4: ds18b20_4 { |
| 98 | + compatible = "maxim,ds18b20"; |
| 99 | + resolution = <12>; |
| 100 | + family-code = <0x28>; |
| 101 | + }; |
| 102 | + |
| 103 | + ds18b20_5: ds18b20_5 { |
| 104 | + compatible = "maxim,ds18b20"; |
| 105 | + resolution = <12>; |
| 106 | + family-code = <0x28>; |
| 107 | + }; |
| 108 | + |
| 109 | + ds18b20_6: ds18b20_6 { |
| 110 | + compatible = "maxim,ds18b20"; |
| 111 | + resolution = <12>; |
| 112 | + family-code = <0x28>; |
| 113 | + }; |
| 114 | + |
| 115 | + ds18b20_7: ds18b20_7 { |
| 116 | + compatible = "maxim,ds18b20"; |
| 117 | + resolution = <12>; |
| 118 | + family-code = <0x28>; |
| 119 | + }; |
| 120 | + |
| 121 | + ds18b20_8: ds18b20_8 { |
| 122 | + compatible = "maxim,ds18b20"; |
| 123 | + resolution = <12>; |
| 124 | + family-code = <0x28>; |
| 125 | + }; |
| 126 | + |
| 127 | + ds18b20_9: ds18b20_9 { |
| 128 | + compatible = "maxim,ds18b20"; |
| 129 | + resolution = <12>; |
| 130 | + family-code = <0x28>; |
| 131 | + }; |
| 132 | +}; |
| 133 | +/* SUBSYSTEM-LTE-V2 */ |
| 134 | +/ { |
| 135 | + chosen { |
| 136 | + ctr,lte_link = &ctr_lte_link; |
| 137 | + }; |
| 138 | +}; |
| 139 | + |
| 140 | +&uart0 { |
| 141 | + status = "okay"; |
| 142 | + |
| 143 | + ctr_lte_link: ctr_lte_link { |
| 144 | + compatible = "hardwario,ctr-lte-link"; |
| 145 | + status = "okay"; |
| 146 | + reset-gpios = <&gpio1 7 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; |
| 147 | + wakeup-gpios = <&gpio0 15 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>; |
| 148 | + }; |
| 149 | +}; |
| 150 | + |
| 151 | +&uart0 { |
| 152 | + status = "okay"; |
| 153 | +}; |
| 154 | +/* SUBSYSTEM-SOIL-SENSOR */ |
| 155 | +&ds2484 { |
| 156 | + ctr_soil_sensor_0: ctr_soil_sensor_0 { |
| 157 | + compatible = "maxim,ds28e17"; |
| 158 | + family-code = <0x19>; |
| 159 | + }; |
| 160 | + ctr_soil_sensor_1: ctr_soil_sensor_1 { |
| 161 | + compatible = "maxim,ds28e17"; |
| 162 | + family-code = <0x19>; |
| 163 | + }; |
| 164 | + ctr_soil_sensor_2: ctr_soil_sensor_2 { |
| 165 | + compatible = "maxim,ds28e17"; |
| 166 | + family-code = <0x19>; |
| 167 | + }; |
| 168 | + ctr_soil_sensor_3: ctr_soil_sensor_3 { |
| 169 | + compatible = "maxim,ds28e17"; |
| 170 | + family-code = <0x19>; |
| 171 | + }; |
| 172 | + ctr_soil_sensor_4: ctr_soil_sensor_4 { |
| 173 | + compatible = "maxim,ds28e17"; |
| 174 | + family-code = <0x19>; |
| 175 | + }; |
| 176 | + ctr_soil_sensor_5: ctr_soil_sensor_5 { |
| 177 | + compatible = "maxim,ds28e17"; |
| 178 | + family-code = <0x19>; |
| 179 | + }; |
| 180 | + ctr_soil_sensor_6: ctr_soil_sensor_6 { |
| 181 | + compatible = "maxim,ds28e17"; |
| 182 | + family-code = <0x19>; |
| 183 | + }; |
| 184 | + ctr_soil_sensor_7: ctr_soil_sensor_7 { |
| 185 | + compatible = "maxim,ds28e17"; |
| 186 | + family-code = <0x19>; |
| 187 | + }; |
| 188 | + ctr_soil_sensor_8: ctr_soil_sensor_8 { |
| 189 | + compatible = "maxim,ds28e17"; |
| 190 | + family-code = <0x19>; |
| 191 | + }; |
| 192 | + ctr_soil_sensor_9: ctr_soil_sensor_9 { |
| 193 | + compatible = "maxim,ds28e17"; |
| 194 | + family-code = <0x19>; |
| 195 | + }; |
| 196 | +}; |
| 197 | + |
| 198 | +/* ### Preserved code "overlay" (begin) */ |
| 199 | +/* ^^^ Preserved code "overlay" (end) */ |
0 commit comments