Skip to content
Open
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
27 changes: 27 additions & 0 deletions boards/microchip/sam/sam_e54_xpro/sam_e54_xpro.dts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,17 @@
};

aliases {
led0 = &led0;
pwm-led0 = &pwm_led0;
sw0 = &button0;
};

leds {
compatible = "gpio-leds";
led0: led_0 {
gpios = <&portc 18 GPIO_ACTIVE_LOW>;
label = "Yellow LED";
};
};

pwmleds {
Expand All @@ -32,6 +42,15 @@
pwms = <&tcc0 2 PWM_MSEC(20) 0>;
};
};

buttons {
compatible = "gpio-keys";
button0: button_0 {
gpios = <&portb 31 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
label = "SW0";
zephyr,code = <INPUT_KEY_0>;
};
};
};

&flash0 {
Expand Down Expand Up @@ -84,3 +103,11 @@
prescaler = <8>;
channels = <6>;
};

&portb {
status = "okay";
};

&portc {
status = "okay";
};
1 change: 1 addition & 0 deletions boards/microchip/sam/sam_e54_xpro/sam_e54_xpro.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ toolchain:
flash: 1024
ram: 256
supported:
- gpio
- pinctrl
- pwm
- reset
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_g.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_18.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_g.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_19.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_j.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_18.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_j.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_19.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_j.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_20.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_19.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_n.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_20.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_n.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_19.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_p.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_20.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_p.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_g.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_18.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_g.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_19.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_j.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_18.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_j.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_19.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_j.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_20.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_19.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_n.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_20.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_n.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_j.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_18.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_j.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_19.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_j.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_20.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_19.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_n.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_20.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_n.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_19.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_n.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_20.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_n.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_19.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_p.dtsi>
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
*/

#include <mem.h>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_20.dtsi>
#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x_p.dtsi>
19 changes: 11 additions & 8 deletions dts/arm/microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include <arm/armv7-m.dtsi>
#include <zephyr/dt-bindings/gpio/gpio.h>
#include <zephyr/dt-bindings/pwm/pwm.h>
#include <zephyr/dt-bindings/clock/mchp_sam_d5x_e5x_clock.h>

Expand Down Expand Up @@ -88,19 +89,21 @@
ranges = <0x41008000 0x41008000 0x200>;

porta: gpio@41008000 {
compatible = "microchip,port-g1-gpio";
reg = <0x41008000 0x80>;
gpio-controller;
#gpio-cells = <2>;
#microchip,pin-cells = <2>;
status = "disabled";
};

portb: gpio@41008080 {
compatible = "microchip,port-g1-gpio";
reg = <0x41008080 0x80>;
};

portc: gpio@41008100 {
reg = <0x41008100 0x80>;
};

portd: gpio@41008180 {
reg = <0x41008180 0x80>;
gpio-controller;
#gpio-cells = <2>;
#microchip,pin-cells = <2>;
status = "disabled";
};
};

Expand Down
7 changes: 7 additions & 0 deletions dts/arm/microchip/sam/sam_d5x_e5x/common/samd5xe5x_g.dtsi
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
* Copyright (c) 2025 Microchip Technology Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/

#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>
2 changes: 2 additions & 0 deletions dts/arm/microchip/sam/sam_d5x_e5x/common/samd5xe5x_j.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>

/ {
soc {
tcc3: tcc@42001000 {
Expand Down
13 changes: 13 additions & 0 deletions dts/arm/microchip/sam/sam_d5x_e5x/common/samd5xe5x_n.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>

/ {
soc {
tcc3: tcc@42001000 {
Expand Down Expand Up @@ -49,3 +51,14 @@
};
};
};

&pinctrl {
portc: gpio@41008100 {
compatible = "microchip,port-g1-gpio";
reg = <0x41008100 0x80>;
gpio-controller;
#gpio-cells = <2>;
#microchip,pin-cells = <2>;
status = "disabled";
};
};
22 changes: 22 additions & 0 deletions dts/arm/microchip/sam/sam_d5x_e5x/common/samd5xe5x_p.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include <microchip/sam/sam_d5x_e5x/common/samd5xe5x.dtsi>

/ {
soc {
tcc3: tcc@42001000 {
Expand Down Expand Up @@ -49,3 +51,23 @@
};
};
};

&pinctrl {
portc: gpio@41008100 {
compatible = "microchip,port-g1-gpio";
reg = <0x41008100 0x80>;
gpio-controller;
#gpio-cells = <2>;
#microchip,pin-cells = <2>;
status = "disabled";
};

portd: gpio@41008180 {
compatible = "microchip,port-g1-gpio";
reg = <0x41008180 0x80>;
gpio-controller;
#gpio-cells = <2>;
#microchip,pin-cells = <2>;
status = "disabled";
};
};