dts: v2m_beetle: Add WDOG support

This patch adds the ARM CMSDK WDOG 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 11:19:27 +01:00 committed by Kumar Gala
commit 8219923c26
4 changed files with 29 additions and 3 deletions

View file

@ -113,9 +113,6 @@
/* CMSDK APB Dual Timer */
#define CMSDK_APB_DTIMER _BEETLE_DTIMER_BASE
/* CMSDK APB Watchdog */
#define CMSDK_APB_WDOG _BEETLE_WDOG_BASE
#endif /* !_ASMLANGUAGE */
#endif /* _ARM_BEETLE_SOC_H_ */

View file

@ -43,6 +43,11 @@
interrupts = <IRQ_UART1 3>;
current-speed = <115200>;
};
wdog0: wdog@40008000 {
compatible = "arm,cmsdk-watchdog";
reg = <0x40008000 0x1000>;
};
};
};

View file

@ -10,3 +10,6 @@
#define CMSDK_APB_UART_1_IRQ ARM_CMSDK_UART_40005000_IRQ_0
#define CONFIG_UART_CMSDK_APB_PORT1_IRQ_PRI ARM_CMSDK_UART_40005000_IRQ_0_PRIORITY
#define CONFIG_UART_CMSDK_APB_PORT1_BAUD_RATE ARM_CMSDK_UART_40005000_CURRENT_SPEED
/* CMSDK APB Watchdog */
#define CMSDK_APB_WDOG ARM_CMSDK_WATCHDOG_40008000_BASE_ADDRESS_0

View file

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