soc/gr716a: Enable GPIO support on LEON GR716A
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 <martin.aberg@gaisler.com>
This commit is contained in:
parent
7dbc5f09ed
commit
1320dc7d99
3 changed files with 28 additions and 0 deletions
|
|
@ -35,3 +35,11 @@
|
|||
jedec-id = [c2 20 19];
|
||||
};
|
||||
};
|
||||
|
||||
&gpio0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&gpio1 {
|
||||
status = "okay";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ toolchain:
|
|||
supported:
|
||||
- netif
|
||||
- spi
|
||||
- gpio
|
||||
testing:
|
||||
ignore_tags:
|
||||
- net
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
|
||||
#include "skeleton.dtsi"
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
/ {
|
||||
cpus {
|
||||
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue