ARM: dts: aspeed-g6: Add gpio devices
authorRashmica Gupta <rashmica.g@gmail.com>
Thu, 22 Aug 2019 07:13:15 +0000 (17:13 +1000)
committerJoel Stanley <joel@jms.id.au>
Fri, 1 Nov 2019 04:59:48 +0000 (15:29 +1030)
The AST2600 has 208 normal GPIO pins and 36 1.8V GPIOs.

Signed-off-by: Rashmica Gupta <rashmica.g@gmail.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-g6.dtsi

index 7ca45b0ce3c3d30693f4c691aae43bc28d58157e..e7ba75a35855936c545bedbc31acab52c4fef2a2 100644 (file)
                                quality = <100>;
                        };
 
+                       gpio0: gpio@1e780000 {
+                               #gpio-cells = <2>;
+                               gpio-controller;
+                               compatible = "aspeed,ast2600-gpio";
+                               reg = <0x1e780000 0x800>;
+                               interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>;
+                               gpio-ranges = <&pinctrl 0 0 208>;
+                               ngpios = <208>;
+                               clocks = <&syscon ASPEED_CLK_APB2>;
+                               interrupt-controller;
+                               #interrupt-cells = <2>;
+                       };
+
+                       gpio1: gpio@1e780800 {
+                               #gpio-cells = <2>;
+                               gpio-controller;
+                               compatible = "aspeed,ast2600-gpio";
+                               reg = <0x1e780800 0x800>;
+                               interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
+                               gpio-ranges = <&pinctrl 0 208 36>;
+                               ngpios = <36>;
+                               clocks = <&syscon ASPEED_CLK_APB1>;
+                               interrupt-controller;
+                               #interrupt-cells = <2>;
+                       };
+
                        rtc: rtc@1e781000 {
                                compatible = "aspeed,ast2600-rtc";
                                reg = <0x1e781000 0x18>;