Revert "boards: Raspberry Pi pico pwm led adjustment"

This reverts commit 037a3b52a4.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
Jamie McCrae 2024-03-21 10:02:13 +00:00 committed by Carles Cufí
parent 0be0d2175b
commit 96b6c0c015
3 changed files with 1 additions and 10 deletions

View File

@ -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";

View File

@ -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

View File

@ -8,3 +8,4 @@ tests:
- pwm
depends_on: pwm
harness: led
platform_exclude: rpi_pico/rp2040/w