Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New shield Waveshare Pico Shields #184

Merged
merged 23 commits into from
Jan 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
583718a
boards: picoboy: setup clock controller
rexut Jan 16, 2024
4c737e2
boards: cytron_rp2040: setup clock controller
rexut Jan 16, 2024
136cf8f
boards: waveshare_rp2040: setup clock controller
rexut Jan 16, 2024
f7a21ca
boards: cytron_rp2040: set WS2312 color order to RGB
rexut Jan 13, 2024
a2f03a7
boards: waveshare_rp2040: set WS2312 color order to RGB
rexut Jan 13, 2024
084b623
boards: waveshare_rp2040: optimize WS2312 animations
rexut Jan 13, 2024
cc9f0b2
boards: picoboy: add missing gpio dts include
rexut Jan 15, 2024
5049d22
boards: cytron_rp2040: add missing gpio dts include
rexut Jan 15, 2024
3dd3f8f
boards: rpi_pico(_w): add missing gpio dts include
rexut Jan 15, 2024
f813c18
shields: rpi_pico_lcd: add missing pinctrl include
rexut Jan 13, 2024
bc8638f
shields: rpi_pico_test: add missing pinctrl include
rexut Jan 13, 2024
9309954
shields: waveshare_lcd: add missing gpio dts include
rexut Jan 15, 2024
ee1748b
shields: ws_pico_envsens: add missing pinctrl include
rexut Jan 13, 2024
4fab035
shields: ws_pico_envsens: doc: fix typos and add VEN
rexut Jan 15, 2024
b42e1f8
shields: ws_pico_envsens: add missing gpio dts include
rexut Jan 15, 2024
3303185
shields: ws_pico_envsens: add sensing interface
rexut Jan 16, 2024
f54ca07
samples: ws_pico_envsens: cmake and src: fix typos
rexut Jan 15, 2024
29d4a0b
samples: ws_pico_envsens: improve stability
rexut Jan 15, 2024
7929f2c
shields: add Waveshare Pico RGB LED
rexut Jan 12, 2024
5499ccb
samples: add Waveshare Pico 10-DOF IMU Sensor
rexut Jan 15, 2024
bcab29e
shields: add Waveshare Pico 10-DOF IMU Sensor
rexut Jan 14, 2024
416f4af
release: add draft notes for upcoming 3.6.0
rexut Jan 14, 2024
76586bf
ci: github: qa-integration: test wsptdis shield
rexut Jan 16, 2024
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
1 change: 1 addition & 0 deletions .github/workflows/qa-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ jobs:
--testsuite-root bridle/samples/button \
--testsuite-root bridle/samples/buzzer \
--testsuite-root bridle/samples/helloshell \
--testsuite-root bridle/samples/waveshare_pico_10dof_imu_sensor \
--testsuite-root bridle/samples/waveshare_pico_environment_sensor

- name: Upload integration test results
Expand Down
1 change: 1 addition & 0 deletions boards/arm/cytron_rp2040/cytron_rp2040-flash.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
/* Rest for code */
code_partition: partition@100 {
label = "code-partition";
read-only;
};
};
};
2 changes: 2 additions & 0 deletions boards/arm/cytron_rp2040/cytron_rp2040-makernano-tweaks.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/gpio/gpio.h>

&i2c0 {
compatible = "gpio-i2c";
sda-gpios = <&gpio0 12 (GPIO_OPEN_DRAIN | GPIO_PULL_UP)>;
Expand Down
2 changes: 2 additions & 0 deletions boards/arm/cytron_rp2040/cytron_rp2040-makerpi-tweaks.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/gpio/gpio.h>

&i2c0 {
compatible = "gpio-i2c";
sda-gpios = <&gpio0 16 (GPIO_OPEN_DRAIN | GPIO_PULL_UP)>;
Expand Down
4 changes: 4 additions & 0 deletions boards/arm/cytron_rp2040/cytron_rp2040-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#include <zephyr/dt-bindings/pinctrl/rpi-pico-rp2040-pinctrl.h>

&pinctrl {
clocks_default: clocks_default {
/* no external clocks */
};

uart0_default: uart0_default {
group0_uart {
pinmux = <UART0_TX_P0>; /* GP0: UART0_TX */
Expand Down
5 changes: 5 additions & 0 deletions boards/arm/cytron_rp2040/cytron_rp2040.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
regulator-allowed-modes = <REGULATOR_RPI_PICO_MODE_NORMAL>;
};

&clocks {
pinctrl-0 = <&clocks_default>;
pinctrl-names = "default";
};

&reset {
status = "okay";
};
Expand Down
4 changes: 2 additions & 2 deletions boards/arm/cytron_rp2040/makernano_led_ws2812.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
spi-zero-frame = <0xc0>;

chain-length = <2>;
color-mapping = <LED_COLOR_ID_GREEN
LED_COLOR_ID_RED
color-mapping = <LED_COLOR_ID_RED
LED_COLOR_ID_GREEN
LED_COLOR_ID_BLUE>;
};
};
4 changes: 2 additions & 2 deletions boards/arm/cytron_rp2040/makerpi_led_ws2812.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
status = "okay";

chain-length = <2>;
color-mapping = <LED_COLOR_ID_GREEN
LED_COLOR_ID_RED
color-mapping = <LED_COLOR_ID_RED
LED_COLOR_ID_GREEN
LED_COLOR_ID_BLUE>;

frequency = <DT_FREQ_K(800)>;
Expand Down
2 changes: 2 additions & 0 deletions boards/arm/picoboy/picoboy-core-tweaks.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/gpio/gpio.h>

&i2c0 {
compatible = "gpio-i2c";
sda-gpios = <&gpio0 20 (GPIO_OPEN_DRAIN | GPIO_PULL_UP)>;
Expand Down
1 change: 1 addition & 0 deletions boards/arm/picoboy/picoboy-flash.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
/* Rest for code */
code_partition: partition@100 {
label = "code-partition";
read-only;
};
};
};
4 changes: 4 additions & 0 deletions boards/arm/picoboy/picoboy-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#include <zephyr/dt-bindings/pinctrl/rpi-pico-rp2040-pinctrl.h>

&pinctrl {
clocks_default: clocks_default {
/* no external clocks */
};

i2c0_default: i2c0_default {
group2021 {
pinmux = <I2C0_SDA_P20>, /* acceleration */
Expand Down
5 changes: 5 additions & 0 deletions boards/arm/picoboy/picoboy.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
regulator-allowed-modes = <REGULATOR_RPI_PICO_MODE_NORMAL>;
};

&clocks {
pinctrl-0 = <&clocks_default>;
pinctrl-names = "default";
};

&reset {
status = "okay";
};
Expand Down
Binary file modified boards/arm/waveshare_rp2040/doc/rp2040-eth/ws2812b.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified boards/arm/waveshare_rp2040/doc/rp2040-matrix/ws2812b-5x5.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified boards/arm/waveshare_rp2040/doc/rp2040-one/ws2812b.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified boards/arm/waveshare_rp2040/doc/rp2040-tiny/ws2812b.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified boards/arm/waveshare_rp2040/doc/rp2040-zero/ws2812b.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions boards/arm/waveshare_rp2040/rp2040mini_led_ws2812.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
status = "okay";

chain-length = <1>;
color-mapping = <LED_COLOR_ID_GREEN
LED_COLOR_ID_RED
color-mapping = <LED_COLOR_ID_RED
LED_COLOR_ID_GREEN
LED_COLOR_ID_BLUE>;

frequency = <DT_FREQ_K(800)>;
Expand Down
1 change: 1 addition & 0 deletions boards/arm/waveshare_rp2040/rpipico_flash.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
/* Rest for code */
code_partition: partition@100 {
label = "code-partition";
read-only;
};
};
};
4 changes: 2 additions & 2 deletions boards/arm/waveshare_rp2040/rpipico_led_ws2812.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
status = "okay";

chain-length = <1>;
color-mapping = <LED_COLOR_ID_GREEN
LED_COLOR_ID_RED
color-mapping = <LED_COLOR_ID_RED
LED_COLOR_ID_GREEN
LED_COLOR_ID_BLUE>;

frequency = <DT_FREQ_K(800)>;
Expand Down
4 changes: 4 additions & 0 deletions boards/arm/waveshare_rp2040/waveshare_rp2040-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
#include <zephyr/dt-bindings/pinctrl/rpi-pico-rp2040-pinctrl.h>

&pinctrl {
clocks_default: clocks_default {
/* no external clocks */
};

uart0_default: uart0_default {
group0_uart {
pinmux = <UART0_TX_P0>; /* GP0: UART0_TX */
Expand Down
5 changes: 5 additions & 0 deletions boards/arm/waveshare_rp2040/waveshare_rp2040.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
regulator-allowed-modes = <REGULATOR_RPI_PICO_MODE_NORMAL>;
};

&clocks {
pinctrl-0 = <&clocks_default>;
pinctrl-names = "default";
};

&reset {
status = "okay";
};
Expand Down
2 changes: 2 additions & 0 deletions boards/extensions/rpi_pico/rpipico_r3-tweaks.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/gpio/gpio.h>

&rpipico_i2c0 {
compatible = "gpio-i2c"; /* I2C0_SDA_P4 and I2C0_SCL_P5 */
sda-gpios = <&rpipico_header 4 (GPIO_OPEN_DRAIN | GPIO_PULL_UP)>;
Expand Down
2 changes: 2 additions & 0 deletions boards/shields/rpi_pico_lcd/boards/rpipico_r3-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/pinctrl/rpi-pico-rp2040-pinctrl.h>

&pinctrl {
spi1_lcd: spi1_lcd {
group91011_spi {
Expand Down
12 changes: 12 additions & 0 deletions boards/shields/rpi_pico_led/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright (c) 2024 TiaC Systems
# SPDX-License-Identifier: Apache-2.0

config SHIELD_RPI_PICO_LED
bool
default y if SHIELD_WAVESHARE_PICO_RGB_LED
default n

choice WS2812_STRIP_DRIVER
default WS2812_STRIP_RPI_PICO_PIO
depends on DT_HAS_WORLDSEMI_WS2812_RPI_PICO_PIO_ENABLED
endchoice
5 changes: 5 additions & 0 deletions boards/shields/rpi_pico_led/Kconfig.shield
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Copyright (c) 2024 TiaC Systems
# SPDX-License-Identifier: Apache-2.0

config SHIELD_WAVESHARE_PICO_RGB_LED
def_bool $(shields_list_contains,waveshare_pico_rgb_led)
7 changes: 7 additions & 0 deletions boards/shields/rpi_pico_led/boards/rpi_pico.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright (c) 2024 TiaC Systems
* SPDX-License-Identifier: Apache-2.0
*/

#include "rpipico_r3-pinctrl.dtsi"
#include "rpipico_r3.dtsi"
7 changes: 7 additions & 0 deletions boards/shields/rpi_pico_led/boards/rpi_pico_w.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright (c) 2024 TiaC Systems
* SPDX-License-Identifier: Apache-2.0
*/

#include "rpipico_r3-pinctrl.dtsi"
#include "rpipico_r3.dtsi"
14 changes: 14 additions & 0 deletions boards/shields/rpi_pico_led/boards/rpipico_r3-pinctrl.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* Copyright (c) 2024 TiaC Systems
* SPDX-License-Identifier: Apache-2.0
*/

#include <zephyr/dt-bindings/pinctrl/rpi-pico-rp2040-pinctrl.h>

&pinctrl {
pio0_ws2812_leds_wsprl: pio0_ws2812_leds_wsprl {
group6_pio {
pinmux = <PIO0_P6>; /* GP6: PIO0 */
};
};
};
10 changes: 10 additions & 0 deletions boards/shields/rpi_pico_led/boards/rpipico_r3.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* Copyright (c) 2024 TiaC Systems
* SPDX-License-Identifier: Apache-2.0
*/

&pio0 {
status = "okay";
};

rpipico_pio_leds: &pio0 {};
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
* Copyright (c) 2024 TiaC Systems
* SPDX-License-Identifier: Apache-2.0
*/

#include <freq.h>
#include <zephyr/dt-bindings/gpio/gpio.h>
#include <zephyr/dt-bindings/led/led.h>

&rgb_led_pio {
rgb_led_pio_ws2812: rgb-led-pio-ws2812 {
compatible = "worldsemi,ws2812-rpi_pico-pio";

status = "disabled";

bit-waveform = <3>, <3>, <4>;

rgb_led_strip: rgb-led-strip {
status = "disabled";

chain-length = <160>;
color-mapping = <LED_COLOR_ID_RED
LED_COLOR_ID_GREEN
LED_COLOR_ID_BLUE>;

frequency = <DT_FREQ_K(800)>;
reset-delay = <280>;
};
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*
* Copyright (c) 2024 TiaC Systems
* SPDX-License-Identifier: Apache-2.0
*/

#include "rpipico_r3.dtsi"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*
* Copyright (c) 2024 TiaC Systems
* SPDX-License-Identifier: Apache-2.0
*/

#include "rpipico_r3.dtsi"
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 TiaC Systems
* SPDX-License-Identifier: Apache-2.0
*/

rgb_led_pio: &rpipico_pio_leds {};

#include "led_matrix.dtsi"

&rgb_led_strip {
output-pin = <6>; /* PIO0:OUT @ GP6 */
status = "okay";
};

&rgb_led_pio_ws2812 {
status = "okay";
pinctrl-0 = <&pio0_ws2812_leds_wsprl>;
pinctrl-names = "default";
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*
* Copyright (c) 2024 TiaC Systems
* SPDX-License-Identifier: Apache-2.0
*/

#include "rpipico_r3.dtsi"
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*
* Copyright (c) 2024 TiaC Systems
* SPDX-License-Identifier: Apache-2.0
*/

#include "rpipico_r3.dtsi"
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright (c) 2024 TiaC Systems
* SPDX-License-Identifier: Apache-2.0
*/

#include "rpipico_r3-pinctrl.dtsi"
#include "rpipico_r3.dtsi"
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright (c) 2024 TiaC Systems
* SPDX-License-Identifier: Apache-2.0
*/

#include "rpipico_r3-pinctrl.dtsi"
#include "rpipico_r3.dtsi"
Loading
Loading