Skip to content

Commit 5c20552

Browse files
committed
tests/samples: add samples for Serpente board
Add the supported features section to serpente.yaml and overlay files to the corresponding tests and samples. Signed-off-by: Alexander Falb <fal3xx@gmail.com>
1 parent 1519fab commit 5c20552

File tree

7 files changed

+96
-6
lines changed

7 files changed

+96
-6
lines changed

boards/arm/serpente/serpente.dts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@
7878

7979
&sercom2 {
8080
status = "okay";
81+
compatible = "atmel,sam0-uart";
82+
current-speed = <115200>;
83+
rxpo = <1>;
84+
txpo = <0>;
8185
};
8286

8387
&sercom3 {

boards/arm/serpente/serpente.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,15 @@ toolchain:
88
- zephyr
99
- gnuarmemb
1010
- xtools
11+
supported:
12+
- adc
13+
- counter
14+
- gpio
15+
- hwinfo
16+
- i2c
17+
- pinmux
18+
- pwm
19+
- spi
20+
- uart
21+
- usb_device
22+
- watchdog
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright (c) 2020 Alexander Falb <fal3xx@gmail.com>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
chosen {
9+
zephyr,console = &sercom0;
10+
zephyr,shell-uart = &sercom0;
11+
};
12+
};
13+
14+
&sercom0 {
15+
compatible = "atmel,sam0-uart";
16+
current-speed = <115200>;
17+
rxpo = <1>;
18+
txpo = <0>;
19+
};
20+
21+
&sercom2 {
22+
compatible = "atmel,sam0-i2c";
23+
clock-frequency = <I2C_BITRATE_FAST>;
24+
#address-cells = <1>;
25+
#size-cells = <0>;
26+
/delete-property/ current-speed;
27+
/delete-property/ rxpo;
28+
/delete-property/ txpo;
29+
};
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright (c) 2020 Alexander Falb <fal3xx@gmail.com>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
chosen {
9+
zephyr,console = &sercom0;
10+
zephyr,shell-uart = &sercom0;
11+
};
12+
};
13+
14+
&sercom0 {
15+
compatible = "atmel,sam0-uart";
16+
current-speed = <115200>;
17+
rxpo = <1>;
18+
txpo = <0>;
19+
};
20+
21+
&sercom2 {
22+
compatible = "atmel,sam0-i2c";
23+
clock-frequency = <I2C_BITRATE_FAST>;
24+
#address-cells = <1>;
25+
#size-cells = <0>;
26+
/delete-property/ current-speed;
27+
/delete-property/ rxpo;
28+
/delete-property/ txpo;
29+
};

samples/net/sockets/http_client/sample.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
common:
22
tags: net http http_client
33
min_ram: 32
4+
depends_on: netif
45
sample:
56
description: HTTP client sample
67
name: http_client
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Copyright (c) 2020 Alexander Falb <fal3xx@gmail.com>
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
&sercom0 {
8+
compatible = "atmel,sam0-i2c";
9+
clock-frequency = <I2C_BITRATE_FAST>;
10+
#address-cells = <1>;
11+
#size-cells = <0>;
12+
};

tests/drivers/build_all/testcase.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,43 +18,43 @@ tests:
1818
build_only: true
1919
extra_args: CONF_FILE=sensors_trigger_a_h.conf
2020
min_ram: 32
21-
platform_exclude: frdm_kw41z
21+
platform_exclude: frdm_kw41z serpente
2222
tags: drivers
2323
depends_on: adc spi
2424
sensors.build.trigger_i_z:
2525
build_only: true
2626
extra_args: CONF_FILE=sensors_trigger_i_z.conf
2727
min_ram: 32
28-
platform_exclude: frdm_kw41z
28+
platform_exclude: frdm_kw41z serpente
2929
tags: drivers
3030
depends_on: gpio adc spi
3131
sensors.build.a_h:
3232
build_only: true
3333
extra_args: CONF_FILE=sensors_a_h.conf
3434
min_flash: 44
3535
min_ram: 32
36-
platform_exclude: frdm_kw41z
36+
platform_exclude: frdm_kw41z serpente
3737
tags: drivers
3838
depends_on: adc spi
3939
sensors.build.i_z:
4040
build_only: true
4141
extra_args: CONF_FILE=sensors_i_z.conf
4242
min_ram: 32
43-
platform_exclude: frdm_kw41z
43+
platform_exclude: frdm_kw41z serpente
4444
tags: drivers
4545
depends_on: gpio adc spi
4646
sensors.build.stmemsc:
4747
build_only: true
4848
extra_args: CONF_FILE=sensors_stmemsc.conf
4949
min_ram: 32
50-
platform_exclude: frdm_kw41z
50+
platform_exclude: frdm_kw41z serpente
5151
tags: drivers
5252
depends_on: adc spi
5353
sensors.build.stmemsc_trigger:
5454
build_only: true
5555
extra_args: CONF_FILE=sensors_stmemsc_trigger.conf
5656
min_ram: 32
57-
platform_exclude: frdm_kw41z
57+
platform_exclude: frdm_kw41z serpente
5858
tags: drivers
5959
depends_on: adc spi
6060
drivers.clock.build:
@@ -65,17 +65,20 @@ tests:
6565
build_only: true
6666
extra_args: CONF_FILE=gpio.conf
6767
min_ram: 32
68+
platform_exclude: serpente
6869
depends_on: gpio spi
6970
drivers.eeprom.build:
7071
build_only: true
7172
extra_args: CONF_FILE=eeprom.conf
7273
min_ram: 32
74+
platform_exclude: serpente
7375
depends_on: gpio i2c spi
7476
drivers.adc.build:
7577
build_only: true
7678
extra_args: CONF_FILE=adc.conf
7779
min_ram: 32
7880
depends_on: adc spi
81+
platform_exclude: serpente
7982
drivers.dac.build:
8083
build_only: true
8184
extra_args: CONF_FILE=dac.conf

0 commit comments

Comments
 (0)