diff --git a/boards/raspberrypi/rpi_pico/rpi_pico.dts b/boards/raspberrypi/rpi_pico/rpi_pico.dts index f92c55c6825..97d721024d7 100644 --- a/boards/raspberrypi/rpi_pico/rpi_pico.dts +++ b/boards/raspberrypi/rpi_pico/rpi_pico.dts @@ -8,10 +8,6 @@ #include "rpi_pico-common.dtsi" -/* Only the rpi_pico/rp2040 has a pwm. */ -/* This define can be used to avoid sourcing board overlays when the PWM is not available */ -#define HAS_DT_PWM_LED 1 - / { leds { compatible = "gpio-leds"; diff --git a/samples/basic/blinky_pwm/boards/rpi_pico.overlay b/samples/basic/blinky_pwm/boards/rpi_pico.overlay index 2487fc181f1..43e054ede94 100644 --- a/samples/basic/blinky_pwm/boards/rpi_pico.overlay +++ b/samples/basic/blinky_pwm/boards/rpi_pico.overlay @@ -1,7 +1,3 @@ -/* The rpi_pico/rp2040/w doesn't have a pwm. */ -/* Use the HAS_DT_PWM defined by the based board to identify when this overlay is valid */ -#if HAS_DT_PWM_LED - &{/pwm_leds} { status = "okay"; }; @@ -15,5 +11,3 @@ divider-frac-4 = <15>; divider-int-4 = <255>; }; - -#endif diff --git a/samples/basic/blinky_pwm/sample.yaml b/samples/basic/blinky_pwm/sample.yaml index de2cb234933..c08ec6f0adc 100644 --- a/samples/basic/blinky_pwm/sample.yaml +++ b/samples/basic/blinky_pwm/sample.yaml @@ -8,3 +8,4 @@ tests: - pwm depends_on: pwm harness: led + platform_exclude: rpi_pico/rp2040/w