Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
};
};

ws2812_pio1_default: ws2812_pio1_default {
ws2812_pio0_default: ws2812_pio0_default {
ws2812 {
pinmux = <PIO1_P12>;
pinmux = <PIO0_P16>;
};
};
};
13 changes: 3 additions & 10 deletions boards/adafruit/feather_rp2040/adafruit_feather_rp2040.dts
Original file line number Diff line number Diff line change
Expand Up @@ -116,25 +116,18 @@ zephyr_i2c: &i2c1 {

&pio0 {
status = "okay";
};

&pio1 {
status = "okay";

/*
* Need to put this on PIO1 as having this on PIO0 causes the GPIO hog to
* not work.
*/
pio-ws2812 {
compatible = "worldsemi,ws2812-rpi_pico-pio";
status = "okay";
pinctrl-0 = <&ws2812_pio1_default>;
pinctrl-0 = <&ws2812_pio0_default>;
pinctrl-names = "default";
bit-waveform = <3>, <3>, <4>;

/* RGB LED (Neopixel) */
ws2812: ws2812 {
status = "okay";
gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
chain-length = <1>;
color-mapping = <LED_COLOR_ID_GREEN
LED_COLOR_ID_RED
Expand Down