dts: v2m_beetle: Add GPIO support

This patch adds the ARM CMSDK GPIO support to the V2M Beetle
device tree.

Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
This commit is contained in:
Vincenzo Frascino 2017-05-11 13:29:17 +01:00 committed by Kumar Gala
commit df3cec7641
4 changed files with 60 additions and 6 deletions

View file

@ -100,12 +100,6 @@
/* System Control Register (SYSCON) */
#define __BEETLE_SYSCON ((volatile struct syscon *)_BEETLE_SYSCON_BASE)
/* CMSDK AHB General Purpose Input/Output (GPIO) */
#define CMSDK_AHB_GPIO0 _BEETLE_GPIO0_BASE
#define CMSDK_AHB_GPIO1 _BEETLE_GPIO1_BASE
#define CMSDK_AHB_GPIO2 _BEETLE_GPIO2_BASE
#define CMSDK_AHB_GPIO3 _BEETLE_GPIO3_BASE
#endif /* !_ASMLANGUAGE */
#endif /* _ARM_BEETLE_SOC_H_ */

View file

@ -66,6 +66,30 @@
compatible = "arm,cmsdk-watchdog";
reg = <0x40008000 0x1000>;
};
gpio0: gpio@40010000 {
compatible = "arm,cmsdk-gpio";
reg = <0x40010000 0x1000>;
interrupts = <IRQ_PORT0_ALL 3>;
};
gpio1: gpio@40011000 {
compatible = "arm,cmsdk-gpio";
reg = <0x40011000 0x1000>;
interrupts = <IRQ_PORT1_ALL 3>;
};
gpio2: gpio@40012000 {
compatible = "arm,cmsdk-gpio";
reg = <0x40012000 0x1000>;
interrupts = <IRQ_PORT2_ALL 3>;
};
gpio3: gpio@40013000 {
compatible = "arm,cmsdk-gpio";
reg = <0x40013000 0x1000>;
interrupts = <IRQ_PORT3_ALL 3>;
};
};
};

View file

@ -24,3 +24,12 @@
/* CMSDK APB Watchdog */
#define CMSDK_APB_WDOG ARM_CMSDK_WATCHDOG_40008000_BASE_ADDRESS_0
/* CMSDK AHB General Purpose Input/Output (GPIO) */
#define CMSDK_AHB_GPIO0 ARM_CMSDK_GPIO_40010000_BASE_ADDRESS_0
#define CMSDK_AHB_GPIO1 ARM_CMSDK_GPIO_40011000_BASE_ADDRESS_0
#define CMSDK_AHB_GPIO2 ARM_CMSDK_GPIO_40012000_BASE_ADDRESS_0
#define CMSDK_AHB_GPIO3 ARM_CMSDK_GPIO_40013000_BASE_ADDRESS_0

View file

@ -0,0 +1,27 @@
---
title: ARM CMSDK GPIO
id: arm,cmsdk-gpio
version: 0.1
description: >
This binding gives a base representation of the ARM CMSDK GPIO
properties:
- compatible:
type: string
category: required
description: compatible strings
constraint: "arm,cmsdk-gpio"
- reg:
type: array
description: mmio register space
generation: define
category: required
- interrupts:
type: array
category: required
description: required interrupts
generation: define
...