1# Copyright (c) 2023 Bjarki Arge Andreasen 2# SPDX-License-Identifier: Apache-2.0 3 4description: | 5 Atmel SAM SUPC (Supply-Controller) controller 6 7 The supply controller manages the voltage reference, power supply and supply 8 monitoring of the device. It have a special feature that it can wake-up the 9 device from a low-power state using special peripherals as wake-up sources. 10 11 The dedicated peripherals that can wake-up the core supply domain are: RTC, 12 RTT, Supply Monitor and GPIOs. In the first three peripherals it is necessary 13 inform the wakeup-source-id property on their respective nodes. 14 15 rtc: rtc@xxx { 16 ... 17 wakeup-source-id = <&supc SUPC_WAKEUP_SOURCE_RTC>; 18 ... 19 }; 20 21 The special peripheral will wake-up the device only when the standard property 22 wakeup-source is defined, e.g.: 23 24 &rtc { 25 ... 26 wakeup-source; 27 ... 28 }; 29 30 The SUPC wakeup source ids that can be enabled are defined in the 31 zephyr/include/zephyr/dt-bindings/power/atmel_sam_supc.h header file. 32 33compatible: "atmel,sam-supc" 34 35include: 36 - name: base.yaml 37 38properties: 39 reg: 40 required: true 41 42 "#wakeup-source-id-cells": 43 type: int 44 const: 1 45 46wakeup-source-id-cells: 47 - wakeup-source-id 48