summaryrefslogtreecommitdiff
path: root/zephyr/dts/it8xxx2_emul.dts
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/dts/it8xxx2_emul.dts')
-rw-r--r--zephyr/dts/it8xxx2_emul.dts10
1 files changed, 10 insertions, 0 deletions
diff --git a/zephyr/dts/it8xxx2_emul.dts b/zephyr/dts/it8xxx2_emul.dts
index b22251b67b..5f517b0c1b 100644
--- a/zephyr/dts/it8xxx2_emul.dts
+++ b/zephyr/dts/it8xxx2_emul.dts
@@ -8,6 +8,9 @@
*/
#include <dt-bindings/gpio_defines.h>
+#include <dt-bindings/native-posix-gpio.h>
+
+#define GPIO_VOLTAGE_1P8 NATIVE_POSIX_GPIO_VOLTAGE_1P8
/ {
gpioa: gpio@f01601 {
@@ -182,4 +185,11 @@
#size-cells = <0>;
reg = <0x00f03500 0x0080>;
};
+
+ adc0: adc {
+ compatible = "zephyr,adc-emul";
+ nchannels = <6>;
+ ref-internal-mv = <3300>;
+ #io-channel-cells = <1>;
+ };
};