Commit 2824696d authored by Hu Zhenyu's avatar Hu Zhenyu Committed by Maureen Helm
Browse files

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: default avatarHu Zhenyu <zhenyu.hu@intel.com>
parent 7dfdd5dc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@
		i2c-0 = &i2c_smb_0;
		i2c1 = &i2c_smb_1;
		i2c7 = &i2c_smb_2;
		pwm-0 = &pwm0;
	};

	leds {
+1 −0
Original line number Diff line number Diff line
@@ -18,3 +18,4 @@ supported:
  - pinmux
  - i2c
  - adc
  - pwm
+3 −1
Original line number Diff line number Diff line
@@ -3,9 +3,11 @@
# Copyright (c) 2019 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

DT_COMPAT_PWM_XEC := microchip,xec-pwm

config PWM_XEC
	bool "Microchip XEC PWM"
	depends on SOC_FAMILY_MEC
	default $(dt_compat_enabled,${DT_COMPAT_ST_PWM_XEC})
	default $(dt_compat_enabled,${DT_COMPAT_PWM_XEC})
	help
	  Enable driver to utilize PWM on the Microchip XEC IP block.