Skip to content

Commit

Permalink
sheilds: adafruit_neopixel_grid_bff: Apply changes in devicetree defi…
Browse files Browse the repository at this point in the history
…nition

Moving LED strip definition into `adafruit_neopixel_grid_bff.overlay`.

Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
  • Loading branch information
soburi committed Mar 13, 2024
1 parent de3e449 commit 6150e1a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,16 @@
aliases {
led-strip = &bff_led_strip;
};

bff_led_strip: bff_led_strip {
compatible = "worldsemi,ws2812-gpio";
status = "okay";
gpios = <&xiao_d 3 GPIO_ACTIVE_HIGH>;
chain-length = <25>;
color-mapping = <LED_COLOR_ID_GREEN
LED_COLOR_ID_RED
LED_COLOR_ID_BLUE>;
reset-delay = <280>;
frequency = <800000>;
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,16 @@
&pio0 {
status = "okay";

bff-ws2812 {
compatible = "worldsemi,ws2812-rpi_pico-pio";
pio0_ws2812: pio-ws2812 {
compatible = "raspberrypi,pico-ws2812-controller-pio";
status = "okay";
pinctrl-0 = <&pinctrl_bff_ws2812>;
pinctrl-names = "default";
bit-waveform = <3>, <3>, <4>;

bff_led_strip: bff_led_strip {
status = "okay";
gpios = <&xiao_d 3 GPIO_ACTIVE_HIGH>;
chain-length = <25>;
color-mapping = <LED_COLOR_ID_GREEN
LED_COLOR_ID_RED
LED_COLOR_ID_BLUE>;
reset-delay = <280>;
frequency = <800000>;
};
};
};

&bff_led_strip {
compatible = "worldsemi,ws2812-rpi_pico-pio";
controller = <&pio0_ws2812>;
};

0 comments on commit 6150e1a

Please sign in to comment.