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

Improve test infrastructure #154

Merged
merged 31 commits into from
Nov 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
b487ec0
tests: grove: base: set Seeeduino equal to Arduino Zero
rexut Nov 5, 2023
f67478f
tests: grove: btn: set Seeeduino equal to Arduino Zero
rexut Nov 6, 2023
87e5725
tests: grove: led: set Seeeduino equal to Arduino Zero
rexut Nov 6, 2023
5ca5d7f
boards: seeeduino_lotus: expand Grove PWM mapping
rexut Nov 6, 2023
e2dd3e5
boards: seeeduino_cm0: expand Grove PWM mapping
rexut Nov 6, 2023
1cd59a9
shields: grove: set Seeeduino equal to Arduino Zero
rexut Nov 6, 2023
7a8916e
boards: arm: seeed_xiao_samd21: add XIAO DAC feature
rexut Nov 6, 2023
5661ca2
shields: grove: set all RPi Pico based boards equal
rexut Nov 6, 2023
b715531
boards: waveshare_rp2040: add RPi Pico features
rexut Nov 6, 2023
10fb149
tests: add global quarantine list
rexut Nov 8, 2023
3a7990e
tests: grove: base: use integration platform tests
rexut Nov 8, 2023
41f69df
tests: grove: btn: use integration platform tests
rexut Nov 8, 2023
f5375a4
tests: grove: led: use integration platform tests
rexut Nov 8, 2023
ec3fe6a
tests: x_grove_testbed: use integration platform tests
rexut Nov 8, 2023
4cf1630
shield: x_grove_testbed: avoid duplicate code
rexut Nov 8, 2023
be7f3fb
doc: shields: grove: nucleo_f413zh: add PWM mapping
rexut Nov 8, 2023
0aa9616
boards: seeeduino_lotus: add label grove_pwm_d8 in DTS
rexut Nov 8, 2023
353c9d3
samples: helloshell: add RPi Pico (W) for integration
rexut Nov 8, 2023
a3e47c8
samples: helloshell: add WS RP4020 Plus for integration
rexut Nov 8, 2023
6c81feb
tests: x_grove_testbed: support RPi Pico W
rexut Nov 8, 2023
7fc600f
shield: x_grove_testbed: add RPi Pico W
rexut Nov 8, 2023
5529976
tests: x_grove_testbed: support WS RP2040-LCD-0.96
rexut Nov 9, 2023
b8912b7
shield: x_grove_testbed: add WS RP2040-LCD-0.96
rexut Nov 9, 2023
e0a5841
shields: grove: restruct RPi Pico shield interface
rexut Nov 9, 2023
916054d
shields: grove: set Nucleo F413ZH equal to F767ZI
rexut Nov 9, 2023
d82512e
shields: grove: add note on additional resistores
rexut Nov 9, 2023
6e23c2f
shields: grove: fix typos in comments
rexut Nov 9, 2023
d0388b4
dts: vendor-prefixes: update entries
rexut Nov 9, 2023
be888fa
boards: add vendor to board yaml
rexut Nov 9, 2023
db3cd4d
release: update draft notes for upcoming 3.5.1
rexut Nov 8, 2023
95ffbd4
ci: github: qa-integration: use integration platforms
rexut Nov 8, 2023
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
23 changes: 6 additions & 17 deletions .github/workflows/qa-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,29 +235,18 @@ jobs:
run: |
#
# Disabled in the meantime because the execution time is still
# too high:
# too high (up to about 45 min):
#
# --> Grove Button Shields, ~640% more time (~550 more tests)
# --testsuite-root bridle/tests/shields/grove_btn/dts_bindings \
#
# --> Grove LED Shields, ~880% more time (~890 more tests)
# --testsuite-root bridle/tests/shields/grove_led/dts_bindings \
#
west twister --verbose \
west twister --verbose --integration --cmake-only \
--outdir twister-out --no-clean --inline-logs \
--enable-size-report --platform-reports \
--platform arduino_zero \
--platform mimxrt1010_evk \
--platform mimxrt1060_evk \
--platform mimxrt1060_evkb \
--platform nucleo_f303re \
--platform nucleo_f401re \
--platform nucleo_f413zh \
--platform nucleo_f767zi \
--platform rpi_pico \
--platform seeed_xiao_samd21 \
--platform seeeduino_xiao \
--platform seeeduino_cm0 \
--platform seeeduino_lotus \
--platform waveshare_rp2040_plus \
--platform waveshare_rp2040_plus@16mb \
--quarantine-list bridle/tests/quarantine.yaml \
--testsuite-root bridle/tests/shields/grove/dts_bindings \
--testsuite-root bridle/tests/shields/x_grove_testbed/dts_bindings

Expand Down
1 change: 1 addition & 0 deletions boards/arm/arduino_zero/arduino_zero.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor: arduino
identifier: arduino_zero
name: Arduino Zero
type: mcu
Expand Down
1 change: 1 addition & 0 deletions boards/arm/seeed_xiao_samd21/seeed_xiao_connector.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@
xiao_spi: &sercom0 {};
xiao_i2c: &sercom2 {};
xiao_serial: &sercom4 {};
xiao_dac: &dac0 {};
2 changes: 2 additions & 0 deletions boards/arm/seeed_xiao_samd21/seeed_xiao_samd21.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor: seeed
identifier: seeed_xiao_samd21
name: Seeed Studio XIAO SAMD21 (Seeeduino XIAO)
type: mcu
Expand All @@ -13,6 +14,7 @@ supported:
- xiao_i2c
- xiao_spi
- xiao_serial
- xiao_dac
- dma
- gpio
- hwinfo
Expand Down
8 changes: 4 additions & 4 deletions boards/arm/seeeduino_cm0/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ Following mappings are well known:
+--------------------+-----------------------------+-------------------------+-------------------------+
| Grove PWM Label | phandle index to shield --> | **Signal** : *Meaning* | ``seeeduino_cm0`` |
+====================+=============================+=========================+=========================+
| | ``<&grove_pwms 0 …>`` | **D0:** *UART-RX* | |
| | ``<&grove_pwms 0 …>`` | **D0:** *UART-RX* | **not possible** |
+--------------------+-----------------------------+-------------------------+-------------------------+
| | ``<&grove_pwms 1 …>`` | **D1:** *UART-TX* | |
| | ``<&grove_pwms 1 …>`` | **D1:** *UART-TX* | **not possible** |
+--------------------+-----------------------------+-------------------------+-------------------------+
| | ``<&grove_pwms 2 …>`` | **D2** | **not wired** |
+--------------------+-----------------------------+-------------------------+-------------------------+
Expand Down Expand Up @@ -237,9 +237,9 @@ Following mappings are well known:
+--------------------+-----------------------------+-------------------------+-------------------------+
| | ``<&grove_pwms 17 …>`` | **D17:** *A3* | **not wired** |
+--------------------+-----------------------------+-------------------------+-------------------------+
| | ``<&grove_pwms 18 …>`` | **D18:** *I2C-SDA* | |
| ``&grove_pwm_d18`` | ``<&grove_pwms 18 …>`` | **D18:** *I2C-SDA* | ``<&tcc0 0 …>`` (WO4) |
+--------------------+-----------------------------+-------------------------+-------------------------+
| | ``<&grove_pwms 19 …>`` | **D19:** *I2C-SCL* | |
| ``&grove_pwm_d19`` | ``<&grove_pwms 19 …>`` | **D19:** *I2C-SCL* | ``<&tcc0 1 …>`` (WO5) |
+--------------------+-----------------------------+-------------------------+-------------------------+
| | ``<&grove_pwms 20 …>`` | **D20:** *ADC6* | **not wired** |
+--------------------+-----------------------------+-------------------------+-------------------------+
Expand Down
32 changes: 19 additions & 13 deletions boards/arm/seeeduino_cm0/grove_connectors.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -40,26 +40,32 @@
#pwm-cells = <2>;
pwm-map-mask = <0xffffffff 0>;
pwm-map-pass-thru = <0 0xffffffff>;
pwm-map;
/* 0 - D0: not possible */
/* 1 - D1: not possible */
pwm-map =
/* 0 - D0: not possible */
/* 1 - D1: not possible */
/* 2 - D2: not wired */
/* 3 - D3: not wired */
/* 4 - D4: not wired */
/* 5 - D5: not wired */
/* 6 - D6: not wired */
/* 7 - D7: not wired */
/* 8 - D8: not possible */
/* 9 - D9: not possible */
/* 10 - D10: not possible */
/* 11 - D11: not possible */
/* 12 - D12: not possible */
/* 13 - D13: not possible */
/* 14 - D14: not possible */
/* 15 - D15: not possible */
/* 16 - D16: not possible */
/* 17 - D17: not possible */
/* 8 - D8: not wired */
/* 9 - D9: not wired */
/* 10 - D10: not wired */
/* 11 - D11: not wired */
/* 12 - D12: not wired */
/* 13 - D13: not wired */
/* 14 - D14: not wired */
/* 15 - D15: not wired */
/* 16 - D16: not wired */
/* 17 - D17: not wired */
<18 0 &tcc0 0 0>, /* D18: TCC0CH0 (WO4) */
<19 0 &tcc0 1 0>; /* D19: TCC0CH1 (WO5) */
};
};

grove_gpios: &grove_laced_if_cm0 {};
grove_pwms: &grove_laced_if_cm0 {};

grove_pwm_d18: &tcc0 {};
grove_pwm_d19: &tcc0 {};
53 changes: 53 additions & 0 deletions boards/arm/seeeduino_cm0/grove_i2c_connector.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/ {
grove_i2c_header: grove-i2c-connector {
compatible = "seeed,grove-connector";

#gpio-cells = <2>;
gpio-map-mask = <0xffffffff 0xffffffc0>;
gpio-map-pass-thru = <0 0x3f>;
Expand All @@ -15,3 +16,55 @@
};

grove_i2c: &sercom3 {};

#undef GROVE_PWM_D18_FAST
#define GROVE_PWM_D18_FAST \
&tcc0 { \
prescaler = <1>; \
};

#undef GROVE_PWM_D18_SLOW
#define GROVE_PWM_D18_SLOW \
&tcc0 { \
prescaler = <1024>; \
};

#undef GROVE_PWM_D18_ENABLE
#define GROVE_PWM_D18_ENABLE \
&tcc0 { \
status = "okay"; \
};

#undef GROVE_PWM_D18_PINCTRL
#define GROVE_PWM_D18_PINCTRL \
&tcc0_pwm_default { \
group4 { \
pinmux = <PA22F_TCC0_WO4>; \
}; \
};

#undef GROVE_PWM_D19_FAST
#define GROVE_PWM_D19_FAST \
&tcc0 { \
prescaler = <1>; \
};

#undef GROVE_PWM_D19_SLOW
#define GROVE_PWM_D19_SLOW \
&tcc0 { \
prescaler = <1024>; \
};

#undef GROVE_PWM_D19_ENABLE
#define GROVE_PWM_D19_ENABLE \
&tcc0 { \
status = "okay"; \
};

#undef GROVE_PWM_D19_PINCTRL
#define GROVE_PWM_D19_PINCTRL \
&tcc0_pwm_default { \
group5 { \
pinmux = <PA23F_TCC0_WO5>; \
}; \
};
2 changes: 2 additions & 0 deletions boards/arm/seeeduino_cm0/seeeduino_cm0-pinctrl.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
};
};

tcc0_pwm_default: tcc0_pwm_default {};

tcc2_pwm_default: tcc2_pwm_default {
group1 {
pinmux = <PA17E_TCC2_WO1>;
Expand Down
10 changes: 10 additions & 0 deletions boards/arm/seeeduino_cm0/seeeduino_cm0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@
pinctrl-names = "default";
};

&tcc0 {
status = "okay";
compatible = "atmel,sam0-tcc-pwm";
prescaler = <1>;
#pwm-cells = <2>;

pinctrl-0 = <&tcc0_pwm_default>;
pinctrl-names = "default";
};

&tcc2 {
status = "okay";
compatible = "atmel,sam0-tcc-pwm";
Expand Down
3 changes: 3 additions & 0 deletions boards/arm/seeeduino_cm0/seeeduino_cm0.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
vendor: seeed
identifier: seeeduino_cm0
name: Seeeduino Cortex-M0+
type: mcu
Expand All @@ -13,6 +14,8 @@ supported:
- arduino_i2c
- arduino_spi
- arduino_serial
- grove_gpio
- grove_pwm
- grove_i2c
- grove_serial
- hwinfo
Expand Down
18 changes: 9 additions & 9 deletions boards/arm/seeeduino_lotus/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,9 @@ Following mappings are well known:
+--------------------+-----------------------------+-------------------------+-------------------------+
| Grove PWM Label | phandle index to shield --> | **Signal** : *Meaning* | ``seeeduino_lotus`` |
+====================+=============================+=========================+=========================+
| | ``<&grove_pwms 0 …>`` | **D0:** *UART-RX* | |
| | ``<&grove_pwms 0 …>`` | **D0:** *UART-RX* | **not possible** |
+--------------------+-----------------------------+-------------------------+-------------------------+
| | ``<&grove_pwms 1 …>`` | **D1:** *UART-TX* | |
| | ``<&grove_pwms 1 …>`` | **D1:** *UART-TX* | **not possible** |
+--------------------+-----------------------------+-------------------------+-------------------------+
| ``&grove_pwm_d2`` | ``<&grove_pwms 2 …>`` | **D2** | ``<&tcc0 0 …>`` (WO4) |
+--------------------+-----------------------------+-------------------------+-------------------------+
Expand All @@ -235,7 +235,7 @@ Following mappings are well known:
+--------------------+-----------------------------+-------------------------+-------------------------+
| ``&grove_pwm_d7`` | ``<&grove_pwms 7 …>`` | **D7** | ``<&tcc0 3 …>`` (WO7) |
+--------------------+-----------------------------+-------------------------+-------------------------+
| | ``<&grove_pwms 8 …>`` | **D8** | |
| ``&grove_pwm_d8`` | ``<&grove_pwms 8 …>`` | **D8** | ``<&tcc1 0 …>`` (WO0) |
+--------------------+-----------------------------+-------------------------+-------------------------+
| | ``<&grove_pwms 9 …>`` | **D9** | **not wired** |
+--------------------+-----------------------------+-------------------------+-------------------------+
Expand All @@ -247,17 +247,17 @@ Following mappings are well known:
+--------------------+-----------------------------+-------------------------+-------------------------+
| | ``<&grove_pwms 13 …>`` | **D13:** *SPI-CLK* | **not wired** |
+--------------------+-----------------------------+-------------------------+-------------------------+
| | ``<&grove_pwms 14 …>`` | **D14:** *A0* | |
| | ``<&grove_pwms 14 …>`` | **D14:** *A0* | **not possible** |
+--------------------+-----------------------------+-------------------------+-------------------------+
| | ``<&grove_pwms 15 …>`` | **D15:** *A1* | |
| | ``<&grove_pwms 15 …>`` | **D15:** *A1* | **not possible** |
+--------------------+-----------------------------+-------------------------+-------------------------+
| | ``<&grove_pwms 16 …>`` | **D16:** *A2* | |
| | ``<&grove_pwms 16 …>`` | **D16:** *A2* | **not possible** |
+--------------------+-----------------------------+-------------------------+-------------------------+
| | ``<&grove_pwms 17 …>`` | **D17:** *A3* | |
| | ``<&grove_pwms 17 …>`` | **D17:** *A3* | **not possible** |
+--------------------+-----------------------------+-------------------------+-------------------------+
| | ``<&grove_pwms 18 …>`` | **D18:** *I2C-SDA* | |
| ``&grove_pwm_d18`` | ``<&grove_pwms 18 …>`` | **D18:** *I2C-SDA* | ``<&tcc0 0 …>`` (WO4) |
+--------------------+-----------------------------+-------------------------+-------------------------+
| | ``<&grove_pwms 19 …>`` | **D19:** *I2C-SCL* | |
| ``&grove_pwm_d19`` | ``<&grove_pwms 19 …>`` | **D19:** *I2C-SCL* | ``<&tcc0 1 …>`` (WO5) |
+--------------------+-----------------------------+-------------------------+-------------------------+
| | ``<&grove_pwms 20 …>`` | **D20:** *ADC6* | **not wired** |
+--------------------+-----------------------------+-------------------------+-------------------------+
Expand Down
36 changes: 24 additions & 12 deletions boards/arm/seeeduino_lotus/grove_connectors.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -54,24 +54,36 @@
pwm-map =
/* 0 - D0: not possible */
/* 1 - D1: not possible */
<2 0 &grove_pwm_d2 0 0>, /* D2: TCC0CH0 (WO4) */
<3 0 &grove_pwm_d3 1 0>, /* D3: TCC0CH1 (WO1) */
<4 0 &grove_pwm_d4 0 0>, /* D4: TCC0CH0 (WO0) */
<5 0 &grove_pwm_d5 1 0>, /* D5: TCC0CH1 (WO5) */
<6 0 &grove_pwm_d6 2 0>, /* D6: TCC0CH2 (WO6) */
<7 0 &grove_pwm_d7 3 0>; /* D7: TCC0CH3 (WO7) */
/* 8 - D8: not possible */
/* 9 - D9: not possible */
/* 10 - D10: not possible */
/* 11 - D11: not possible */
/* 12 - D12: not possible */
/* 13 - D13: not possible */
<2 0 &tcc0 0 0>, /* D2: TCC0CH0 (WO4) & D4/D18 */
<3 0 &tcc0 1 0>, /* D3: TCC0CH1 (WO1) & D5/D19 */
<4 0 &tcc0 0 0>, /* D4: TCC0CH0 (WO0) & D2/D18 */
<5 0 &tcc0 1 0>, /* D5: TCC0CH1 (WO5) & D3/D19 */
<6 0 &tcc0 2 0>, /* D6: TCC0CH2 (WO6) */
<7 0 &tcc0 3 0>, /* D7: TCC0CH3 (WO7) */
<8 0 &tcc1 0 0>, /* D8: TCC1CH0 (WO0) */
/* 9 - D9: not wired */
/* 10 - D10: not wired */
/* 11 - D11: not wired */
/* 12 - D12: not wired */
/* 13 - D13: not wired */
/* 14 - D14: not possible */
/* 15 - D15: not possible */
/* 16 - D16: not possible */
/* 17 - D17: not possible */
<18 0 &tcc0 0 0>, /* D18: TCC0CH0 (WO4) & D2/D4 */
<19 0 &tcc0 1 0>; /* D19: TCC0CH1 (WO5) & D3/D5 */
};
};

grove_gpios: &grove_laced_if_lotus {};
grove_pwms: &grove_laced_if_lotus {};

grove_pwm_d2: &tcc0 {};
grove_pwm_d3: &tcc0 {};
grove_pwm_d4: &tcc0 {};
grove_pwm_d5: &tcc0 {};
grove_pwm_d6: &tcc0 {};
grove_pwm_d7: &tcc0 {};
grove_pwm_d8: &tcc1 {};
grove_pwm_d18: &tcc0 {};
grove_pwm_d19: &tcc0 {};
2 changes: 0 additions & 2 deletions boards/arm/seeeduino_lotus/grove_d2_connector.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@
pinmux = <PA14F_TCC0_WO4>; \
}; \
};

grove_pwm_d2: &tcc0 {};
2 changes: 0 additions & 2 deletions boards/arm/seeeduino_lotus/grove_d3_connector.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@
pinmux = <PA9E_TCC0_WO1>; \
}; \
};

grove_pwm_d3: &tcc0 {};
2 changes: 0 additions & 2 deletions boards/arm/seeeduino_lotus/grove_d4_connector.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@
pinmux = <PA8E_TCC0_WO0>; \
}; \
};

grove_pwm_d4: &tcc0 {};
2 changes: 0 additions & 2 deletions boards/arm/seeeduino_lotus/grove_d5_connector.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@
pinmux = <PA15F_TCC0_WO5>; \
}; \
};

grove_pwm_d5: &tcc0 {};
2 changes: 0 additions & 2 deletions boards/arm/seeeduino_lotus/grove_d6_connector.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,3 @@
pinmux = <PA20F_TCC0_WO6>; \
}; \
};

grove_pwm_d6: &tcc0 {};
26 changes: 25 additions & 1 deletion boards/arm/seeeduino_lotus/grove_d7_connector.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,28 @@
}; \
};

grove_pwm_d7: &tcc0 {};
#undef GROVE_PWM_D8_FAST
#define GROVE_PWM_D8_FAST \
&tcc1 { \
prescaler = <1>; \
};

#undef GROVE_PWM_D8_SLOW
#define GROVE_PWM_D8_SLOW \
&tcc1 { \
prescaler = <1024>; \
};

#undef GROVE_PWM_D8_ENABLE
#define GROVE_PWM_D8_ENABLE \
&tcc1 { \
status = "okay"; \
};

#undef GROVE_PWM_D8_PINCTRL
#define GROVE_PWM_D8_PINCTRL \
&tcc1_pwm_default { \
group0 { \
pinmux = <PA6E_TCC1_WO0>; \
}; \
};
Loading