boards: arm: Add vref node and alias for STM32 SoCs

Add enabled vref node for all boards of supported STM32 SoC series which
have the required adc node enabled.

Add volt-sensor alias pointing to said vref node.

Signed-off-by: Kenneth J. Miller <ken@miller.ec>
This commit is contained in:
Kenneth J. Miller 2023-05-14 23:54:05 +02:00 committed by Carles Cufí
parent ac7f2dad4e
commit 4dc16527fd
52 changed files with 218 additions and 0 deletions

View file

@ -36,6 +36,7 @@
aliases {
led0 = &yellow_led_1;
led1 = &blue_led_2;
volt-sensor0 = &vref;
};
};
@ -179,3 +180,7 @@ zephyr_udc0: &usbotg_fs {
&rng {
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -34,6 +34,7 @@
watchdog0 = &iwdg;
spi-flash0 = &mx25lm51245;
die-temp0 = &die_temp;
volt-sensor0 = &vref1;
};
};
@ -211,3 +212,7 @@ zephyr_udc0: &usbotg_fs {
&iwdg {
status = "okay";
};
&vref1 {
status = "okay";
};

View file

@ -38,6 +38,7 @@
aliases {
led0 = &user_led;
sw0 = &user_button;
volt-sensor0 = &vref;
};
};
@ -149,3 +150,7 @@ zephyr_udc0: &usbotg_fs {
apb1-prescaler = <2>;
apb2-prescaler = <1>;
};
&vref {
status = "okay";
};

View file

@ -38,6 +38,7 @@
aliases {
led0 = &user_led;
sw0 = &user_button;
volt-sensor0 = &vref;
};
};
@ -149,3 +150,7 @@ zephyr_udc0: &usbotg_fs {
apb1-prescaler = <2>;
apb2-prescaler = <1>;
};
&vref {
status = "okay";
};

View file

@ -39,6 +39,7 @@
aliases {
led0 = &user_led;
sw0 = &user_button;
volt-sensor0 = &vref;
};
};
@ -150,3 +151,7 @@ zephyr_udc0: &usbotg_fs {
apb1-prescaler = <2>;
apb2-prescaler = <1>;
};
&vref {
status = "okay";
};

View file

@ -66,6 +66,7 @@
watchdog0 = &iwdg;
spi-flash0 = &mx25r6435f;
accel0 = &lsm6dsl;
volt-sensor0 = &vref;
};
};
@ -344,3 +345,7 @@ zephyr_udc0: &usbotg_fs {
};
};
};
&vref {
status = "okay";
};

View file

@ -49,6 +49,7 @@
led1 = &ld2;
sw0 = &user_button_0;
sw1 = &user_button_1;
volt-sensor0 = &vref;
};
};
@ -143,6 +144,10 @@ zephyr_udc0: &usbotg_fs {
pinctrl-names = "default";
};
&vref {
status = "okay";
};
mikrobus_1_i2c: &i2c3 {};
mikrobus_1_spi: &spi3 {};

View file

@ -51,6 +51,7 @@
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -113,3 +114,7 @@
&die_temp {
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -41,6 +41,7 @@
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -124,3 +125,7 @@
&die_temp {
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -37,6 +37,7 @@
aliases {
led0 = &green_led_3;
pwm-led0 = &green_pwm_led;
volt-sensor0 = &vref;
};
};
@ -109,3 +110,7 @@
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -9,6 +9,7 @@ toolchain:
ram: 4
flash: 32
supported:
- adc
- i2c
- spi
- gpio

View file

@ -37,6 +37,7 @@
aliases {
led0 = &green_led_3;
pwm-led0 = &green_pwm_led;
volt-sensor0 = &vref;
};
};
@ -104,3 +105,7 @@
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -41,6 +41,7 @@
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -118,3 +119,7 @@
&die_temp {
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -9,6 +9,7 @@ toolchain:
- gnuarmemb
- xtools
supported:
- adc
- arduino_gpio
- arduino_i2c
- arduino_spi

View file

@ -52,6 +52,7 @@
pwm-led0 = &green_pwm_led;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -173,3 +174,7 @@
pinctrl-names = "default";
};
};
&vref {
status = "okay";
};

View file

@ -40,6 +40,7 @@
aliases {
led0 = &green_led_2;
sw0 = &user_button;
volt-sensor0 = &vref;
};
};
@ -122,3 +123,7 @@
pinctrl-names = "default";
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -37,6 +37,7 @@
aliases {
led0 = &green_led_3;
pwm-led0 = &green_pwm_led;
volt-sensor0 = &vref;
};
};
@ -105,3 +106,7 @@
<&rcc STM32_SRC_LSI RTC_SEL(2)>;
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -9,6 +9,7 @@ toolchain:
ram: 12
flash: 64
supported:
- adc
- i2c
- spi
- gpio

View file

@ -51,6 +51,7 @@
pwm-led0 = &green_pwm_led;
watchdog0 = &wwdg;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -178,3 +179,7 @@
&wwdg {
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -53,6 +53,7 @@
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -214,3 +215,7 @@ zephyr_udc0: &usbotg_fs {
};
};
&vref {
status = "okay";
};

View file

@ -50,6 +50,7 @@
led1 = &blue_led_2;
led2 = &red_led_3;
sw0 = &user_button;
volt-sensor0 = &vref;
};
};
@ -215,3 +216,7 @@ zephyr_udc0: &usbotg_fs {
};
};
};
&vref {
status = "okay";
};

View file

@ -7,6 +7,7 @@ toolchain:
- gnuarmemb
- xtools
supported:
- adc
- arduino_gpio
- arduino_i2c
- arduino_spi

View file

@ -60,6 +60,7 @@
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -200,3 +201,7 @@ zephyr_udc0: &usbotg_fs {
&backup_sram {
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -60,6 +60,7 @@
led2 = &red_led;
sw0 = &user_button;
watchdog0 = &iwdg;
volt-sensor0 = &vref;
};
};
@ -250,3 +251,7 @@ zephyr_udc0: &usbotg_fs {
};
};
};
&vref {
status = "okay";
};

View file

@ -9,6 +9,7 @@ toolchain:
ram: 512
flash: 2048
supported:
- adc
- arduino_i2c
- arduino_gpio
- arduino_spi

View file

@ -42,6 +42,7 @@
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -160,3 +161,7 @@
&cpu0 {
cpu-power-states = <&stop0 &stop1>;
};
&vref {
status = "okay";
};

View file

@ -43,6 +43,7 @@
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -173,3 +174,7 @@
<&rcc STM32_SRC_LSI LPTIM1_SEL(1)>;
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -44,6 +44,7 @@
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -216,3 +217,7 @@ zephyr_udc0: &usb {
<&rcc STM32_SRC_LSI LPTIM1_SEL(1)>;
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -9,6 +9,7 @@ toolchain:
ram: 144
flash: 512
supported:
- adc
- arduino_gpio
- arduino_i2c
- arduino_spi

View file

@ -57,6 +57,7 @@
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -213,3 +214,7 @@
bus-speed-data = <1000000>;
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -165,3 +165,7 @@
};
};
};
&vref {
status = "okay";
};

View file

@ -28,6 +28,7 @@
sw0 = &user_button;
watchdog0 = &iwdg;
pwm-led0 = &pwm_led_1;
volt-sensor0 = &vref;
};
};

View file

@ -58,6 +58,7 @@
sw0 = &user_button;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -243,3 +244,7 @@ zephyr_udc0: &usbotg_fs {
&iwdg1 {
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -62,6 +62,7 @@
watchdog0 = &iwdg;
eeprom-0 = &eeprom;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -168,3 +169,7 @@
&eeprom {
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -42,6 +42,7 @@
eeprom-0 = &eeprom;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -138,3 +139,7 @@
&dma1 {
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -39,6 +39,7 @@
aliases {
led0 = &green_led;
sw0 = &user_button;
volt-sensor0 = &vref;
};
};
@ -135,3 +136,7 @@
};
};
};
&vref {
status = "okay";
};

View file

@ -39,6 +39,7 @@
aliases {
led0 = &green_led_2;
sw0 = &user_button;
volt-sensor0 = &vref;
};
};
@ -168,3 +169,7 @@
pinctrl-names = "default";
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -63,6 +63,7 @@
led2 = &red_led_0;
sw0 = &user_button;
pwm-led0 = &red_pwm_led;
volt-sensor0 = &vref;
};
};
@ -204,3 +205,7 @@ zephyr_udc0: &usbotg_fs {
pinctrl-names = "default";
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -35,6 +35,7 @@
aliases {
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -105,3 +106,7 @@
pinctrl-names = "default";
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -174,3 +174,7 @@
bus-speed-data = <1000000>;
status = "okay";
};
&vref1 {
status = "okay";
};

View file

@ -28,6 +28,7 @@
pwm-led0 = &pwm_led_1;
pwm-led1 = &pwm_led_2;
watchdog0 = &iwdg;
volt-sensor0 = &vref1;
};
};

View file

@ -11,6 +11,7 @@ supported:
- arduino_serial
- arduino_spi
- can
- adc
- dac
- gpio
- i2c

View file

@ -62,6 +62,7 @@
sw2 = &user_button_3;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -234,3 +235,7 @@ zephyr_udc0: &usb {
};
};
&vref {
status = "okay";
};

View file

@ -61,6 +61,7 @@
lora0 = &lora;
watchdog0 = &iwdg;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -196,3 +197,7 @@
};
};
};
&vref {
status = "okay";
};

View file

@ -72,6 +72,7 @@
watchdog0 = &iwdg;
accel0 = &lsm303dlhc_accel;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -233,3 +234,7 @@ zephyr_udc0: &usb {
&dma1 {
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -38,6 +38,7 @@
aliases {
led0 = &user_led;
sw0 = &boot1;
volt-sensor0 = &vref;
};
};
@ -141,3 +142,7 @@ zephyr_udc0: &usbotg_fs {
apb1-prescaler = <2>;
apb2-prescaler = <1>;
};
&vref {
status = "okay";
};

View file

@ -74,6 +74,7 @@
sw3 = &joy_right;
sw4 = &joy_up;
watchdog0 = &iwdg;
volt-sensor0 = &vref;
};
};
@ -212,3 +213,7 @@
&iwdg {
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -9,6 +9,7 @@ toolchain:
ram: 32
flash: 128
supported:
- adc
- uart
- gpio
- watchdog

View file

@ -56,6 +56,7 @@
watchdog0 = &iwdg;
spi-flash0 = &mx25lm51245;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -245,3 +246,7 @@
&die_temp {
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -59,6 +59,7 @@
sw2 = &joy_right;
sw3 = &joy_up;
sw4 = &joy_left;
volt-sensor0 = &vref;
};
};
@ -164,3 +165,7 @@ zephyr_udc0: &usbotg_fs {
pinctrl-names = "default";
status = "okay";
};
&vref {
status = "okay";
};

View file

@ -32,6 +32,7 @@
aliases {
spi-flash0 = &mx25lm51245;
die-temp0 = &die_temp;
volt-sensor0 = &vref;
};
};
@ -236,3 +237,7 @@ zephyr_udc0: &usb {
cd-gpios = <&gpiof 2 GPIO_ACTIVE_LOW>;
};
&vref {
status = "okay";
};

View file

@ -51,6 +51,7 @@
aliases {
led0 = &led0;
sw0 = &user_button;
volt-sensor0 = &vref;
};
};
@ -193,3 +194,7 @@ zephyr_udc0: &usbotg_fs {
pinctrl-names = "default";
status = "okay";
};
&vref {
status = "okay";
};