]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mips: bmips: add bcm6345-gpio driver support for BCM63268
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Sun, 7 May 2017 18:09:33 +0000 (20:09 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 10 May 2017 14:16:09 +0000 (16:16 +0200)
This SoC has one gpio bank divided into two 32 bit registers, with a total of
52 GPIOs.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/mips/dts/brcm,bcm63268.dtsi

index 3d810473ec60364f30283cc2bf77b755b1e9bfb3..3eda77db5a234f934b9cb0a6f3eed694f9c6d7aa 100644 (file)
                        mask = <0x1>;
                };
 
+               gpio1: gpio-controller@100000c0 {
+                       compatible = "brcm,bcm6345-gpio";
+                       reg = <0x100000c0 0x4>, <0x100000c8 0x4>;
+                       gpio-controller;
+                       #gpio-cells = <2>;
+                       ngpios = <20>;
+
+                       status = "disabled";
+               };
+
+               gpio0: gpio-controller@100000c4 {
+                       compatible = "brcm,bcm6345-gpio";
+                       reg = <0x100000c4 0x4>, <0x100000cc 0x4>;
+                       gpio-controller;
+                       #gpio-cells = <2>;
+
+                       status = "disabled";
+               };
+
                uart0: serial@10000180 {
                        compatible = "brcm,bcm6345-uart";
                        reg = <0x10000180 0x18>;