Skip to content

Commit

Permalink
soc/gr716a: Enable GPIO support on LEON GR716A
Browse files Browse the repository at this point in the history
GR716A has two GRGPIO2 controllers.

This adds the GPIO controller description to the DTS and
makes the GPIO option available in the kernel configuration.

Signed-off-by: Martin Åberg <[email protected]>
  • Loading branch information
tbr-tt authored and aescolar committed Jul 29, 2024
1 parent 7dbc5f0 commit 1320dc7
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
8 changes: 8 additions & 0 deletions boards/gaisler/gr716a_mini/gr716a_mini.dts
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,11 @@
jedec-id = [c2 20 19];
};
};

&gpio0 {
status = "okay";
};

&gpio1 {
status = "okay";
};
1 change: 1 addition & 0 deletions boards/gaisler/gr716a_mini/gr716a_mini.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ toolchain:
supported:
- netif
- spi
- gpio
testing:
ignore_tags:
- net
Expand Down
19 changes: 19 additions & 0 deletions dts/sparc/gaisler/gr716a.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*/

#include "skeleton.dtsi"
#include <dt-bindings/gpio/gpio.h>

/ {
cpus {
Expand Down Expand Up @@ -107,5 +108,23 @@
#size-cells = <0>;
status = "disabled";
};

gpio0: gpio@8030c000 {
interrupts = <17>;
reg = <0x8030c000 0x1000>;
compatible = "gaisler,grgpio";
gpio-controller;
#gpio-cells = <2>;
status = "disabled";
};

gpio1: gpio@8030d000 {
interrupts = <16>;
reg = <0x8030d000 0x1000>;
compatible = "gaisler,grgpio";
gpio-controller;
#gpio-cells = <2>;
status = "disabled";
};
};
};

0 comments on commit 1320dc7

Please sign in to comment.