dts: mec172xevb_assy6906: Add pwm-0 alias to mec172xevb dts file

Enable tests/drivers/pwm/pwm_api test case on both west and twister

Signed-off-by: Hu Zhenyu <zhenyu.hu@intel.com>
This commit is contained in:
Hu Zhenyu 2022-04-13 20:43:58 +08:00 committed by Maureen Helm
commit 2824696d11
3 changed files with 5 additions and 1 deletions

View file

@ -26,6 +26,7 @@
i2c-0 = &i2c_smb_0; i2c-0 = &i2c_smb_0;
i2c1 = &i2c_smb_1; i2c1 = &i2c_smb_1;
i2c7 = &i2c_smb_2; i2c7 = &i2c_smb_2;
pwm-0 = &pwm0;
}; };
leds { leds {

View file

@ -18,3 +18,4 @@ supported:
- pinmux - pinmux
- i2c - i2c
- adc - adc
- pwm

View file

@ -3,9 +3,11 @@
# Copyright (c) 2019 Intel Corporation # Copyright (c) 2019 Intel Corporation
# SPDX-License-Identifier: Apache-2.0 # SPDX-License-Identifier: Apache-2.0
DT_COMPAT_PWM_XEC := microchip,xec-pwm
config PWM_XEC config PWM_XEC
bool "Microchip XEC PWM" bool "Microchip XEC PWM"
depends on SOC_FAMILY_MEC depends on SOC_FAMILY_MEC
default $(dt_compat_enabled,${DT_COMPAT_ST_PWM_XEC}) default $(dt_compat_enabled,${DT_COMPAT_PWM_XEC})
help help
Enable driver to utilize PWM on the Microchip XEC IP block. Enable driver to utilize PWM on the Microchip XEC IP block.