drivers: gpio: mmio32: update gpio_mmio32 to behave like other divers
The current implementation requires SoCs/Boards to manualy instantiate the preripherals and initilize them. The change lets Zephyr rely on the device tree setup to instantiate & initialize the relevant gpio peripheral. Signed-off-by: Wilfried Chauveau <wilfried.chauveau@arm.com>
This commit is contained in:
parent
eb4c8fc319
commit
c0139fad06
14 changed files with 83 additions and 184 deletions
|
@ -236,7 +236,7 @@
|
|||
};
|
||||
|
||||
gpio_led0: mps2_fpgaio@40028000 {
|
||||
compatible = "arm,mps2-fpgaio-gpio";
|
||||
compatible = "arm,mmio32-gpio";
|
||||
reg = <0x40028000 0x4>;
|
||||
gpio-controller;
|
||||
#gpio-cells = <1>;
|
||||
|
@ -244,15 +244,16 @@
|
|||
};
|
||||
|
||||
gpio_button: mps2_fpgaio@40028008 {
|
||||
compatible = "arm,mps2-fpgaio-gpio";
|
||||
compatible = "arm,mmio32-gpio";
|
||||
reg = <0x40028008 0x4>;
|
||||
gpio-controller;
|
||||
#gpio-cells = <1>;
|
||||
ngpios = <2>;
|
||||
direction-input;
|
||||
};
|
||||
|
||||
gpio_misc: mps2_fpgaio@4002804c {
|
||||
compatible = "arm,mps2-fpgaio-gpio";
|
||||
compatible = "arm,mmio32-gpio";
|
||||
reg = <0x4002804c 0x4>;
|
||||
gpio-controller;
|
||||
#gpio-cells = <1>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue