/dts-v1/; #include #include "PoolTemp-pinctrl.dtsi" / { model = "Pool Thermometer"; compatible = "ItenEngineering,PoolTemp"; chosen { zephyr,sram = &sram0; zephyr,flash = &flash0; zephyr,code-partition = &slot0_partition; zephyr,ieee802154 = &ieee802154; }; zephyr,user { io-channels = <&adc 0>; }; aliases { pooltemp = &ds18b20_sensor; }; sensor_power: regulator-sensor-power { compatible = "regulator-fixed"; regulator-name = "sensor-power"; enable-gpios = <&gpio0 24 GPIO_ACTIVE_HIGH>; startup-delay-us = <2000>; regulator-boot-on; }; w1_0: w1-zephyr-gpio { compatible = "zephyr,w1-gpio"; gpios = <&gpio0 13 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; ds18b20_sensor: ds18b20 { compatible = "maxim,ds18b20"; family-code = <0x28>; resolution = <12>; }; }; }; &ieee802154 { status = "okay"; }; ®1 { regulator-initial-mode = ; }; &gpio0 { status = "okay"; }; &gpiote { status = "okay"; }; /* Battery voltage measurement via the internal VDD channel. * E73 modules are typically powered from VDD (not VDDH). */ &flash0 { partitions { compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; boot_partition: partition@0 { label = "mcuboot"; reg = <0x0 DT_SIZE_K(48)>; }; slot0_partition: partition@c000 { label = "image-0"; reg = <0xc000 DT_SIZE_K(472)>; }; slot1_partition: partition@82000 { label = "image-1"; reg = <0x82000 DT_SIZE_K(472)>; }; storage_partition: partition@f8000 { label = "storage"; reg = <0xf8000 DT_SIZE_K(32)>; }; }; }; &adc { status = "okay"; #address-cells = <1>; #size-cells = <0>; channel@0 { reg = <0>; zephyr,gain = "ADC_GAIN_1_6"; zephyr,reference = "ADC_REF_INTERNAL"; zephyr,acquisition-time = ; zephyr,resolution = <12>; zephyr,input-positive = ; }; };