dts: v2m_beetle: Add DualTimer support
This patch adds the ARM CMSDK DualTimer support to the V2M Beetle device tree. Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
This commit is contained in:
parent
2fe95044c2
commit
f906e7b099
5 changed files with 37 additions and 6 deletions
|
@ -106,9 +106,6 @@
|
||||||
#define CMSDK_AHB_GPIO2 _BEETLE_GPIO2_BASE
|
#define CMSDK_AHB_GPIO2 _BEETLE_GPIO2_BASE
|
||||||
#define CMSDK_AHB_GPIO3 _BEETLE_GPIO3_BASE
|
#define CMSDK_AHB_GPIO3 _BEETLE_GPIO3_BASE
|
||||||
|
|
||||||
/* CMSDK APB Dual Timer */
|
|
||||||
#define CMSDK_APB_DTIMER _BEETLE_DTIMER_BASE
|
|
||||||
|
|
||||||
#endif /* !_ASMLANGUAGE */
|
#endif /* !_ASMLANGUAGE */
|
||||||
|
|
||||||
#endif /* _ARM_BEETLE_SOC_H_ */
|
#endif /* _ARM_BEETLE_SOC_H_ */
|
||||||
|
|
|
@ -57,7 +57,4 @@
|
||||||
#define IRQ_PORT3_ALL 43 /* GPIO Port 3 combined Interrupt */
|
#define IRQ_PORT3_ALL 43 /* GPIO Port 3 combined Interrupt */
|
||||||
#define IRQ_TRNG 44 /* Random number generator Interrupt */
|
#define IRQ_TRNG 44 /* Random number generator Interrupt */
|
||||||
|
|
||||||
/* CMSDK APB Dualtimer */
|
|
||||||
#define CMSDK_APB_DUALTIMER_IRQ IRQ_DUALTIMER
|
|
||||||
|
|
||||||
#endif /* _ARM_BEETLE_SOC_IRQ_H_ */
|
#endif /* _ARM_BEETLE_SOC_IRQ_H_ */
|
||||||
|
|
|
@ -42,6 +42,12 @@
|
||||||
interrupts = <IRQ_TIMER1 3>;
|
interrupts = <IRQ_TIMER1 3>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dtimer0: dtimer@40002000 {
|
||||||
|
compatible = "arm,cmsdk-dtimer";
|
||||||
|
reg = <0x40000000 0x1000>;
|
||||||
|
interrupts = <IRQ_DUALTIMER 3>;
|
||||||
|
};
|
||||||
|
|
||||||
uart0: uart@40004000 {
|
uart0: uart@40004000 {
|
||||||
compatible = "arm,cmsdk-uart";
|
compatible = "arm,cmsdk-uart";
|
||||||
reg = <0x40004000 0x1000>;
|
reg = <0x40004000 0x1000>;
|
||||||
|
|
|
@ -7,6 +7,10 @@
|
||||||
#define CMSDK_APB_TIMER1 ARM_CMSDK_TIMER_40001000_BASE_ADDRESS_0
|
#define CMSDK_APB_TIMER1 ARM_CMSDK_TIMER_40001000_BASE_ADDRESS_0
|
||||||
#define CMSDK_APB_TIMER_1_IRQ IRQ_TIMER1 ARM_CMSDK_TIMER_40001000_IRQ_0
|
#define CMSDK_APB_TIMER_1_IRQ IRQ_TIMER1 ARM_CMSDK_TIMER_40001000_IRQ_0
|
||||||
|
|
||||||
|
/* CMSDK APB Dual Timer */
|
||||||
|
#define CMSDK_APB_DTIMER ARM_CMSDK_DTIMER_40002000_BASE_ADDRESS_0
|
||||||
|
#define CMSDK_APB_DUALTIMER_IRQ ARM_CMSDK_DTIMER_40002000_IRQ_0
|
||||||
|
|
||||||
/* CMSDK APB Universal Asynchronous Receiver-Transmitter (UART) */
|
/* CMSDK APB Universal Asynchronous Receiver-Transmitter (UART) */
|
||||||
#define CMSDK_APB_UART0 ARM_CMSDK_UART_40004000_BASE_ADDRESS_0
|
#define CMSDK_APB_UART0 ARM_CMSDK_UART_40004000_BASE_ADDRESS_0
|
||||||
#define CMSDK_APB_UART_0_IRQ ARM_CMSDK_UART_40004000_IRQ_0
|
#define CMSDK_APB_UART_0_IRQ ARM_CMSDK_UART_40004000_IRQ_0
|
||||||
|
|
27
dts/arm/yaml/arm,cmsdk-dtimer.yaml
Normal file
27
dts/arm/yaml/arm,cmsdk-dtimer.yaml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
---
|
||||||
|
title: ARM CMSDK DUALTIMER
|
||||||
|
id: arm,cmsdk-dtimer
|
||||||
|
version: 0.1
|
||||||
|
|
||||||
|
description: >
|
||||||
|
This binding gives a base representation of the ARM CMSDK DUALTIMER
|
||||||
|
|
||||||
|
properties:
|
||||||
|
- compatible:
|
||||||
|
type: string
|
||||||
|
category: required
|
||||||
|
description: compatible strings
|
||||||
|
constraint: "arm,cmsdk-dtimer"
|
||||||
|
|
||||||
|
- reg:
|
||||||
|
type: array
|
||||||
|
description: mmio register space
|
||||||
|
generation: define
|
||||||
|
category: required
|
||||||
|
|
||||||
|
- interrupts:
|
||||||
|
type: array
|
||||||
|
category: required
|
||||||
|
description: required interrupts
|
||||||
|
generation: define
|
||||||
|
...
|
Loading…
Add table
Add a link
Reference in a new issue