From 9ed4f3911000568f18a5192f0127ef0719680aad Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Fri, 14 Feb 2020 09:04:13 -0600 Subject: [PATCH] dts: microchip,xec-timer: Add properties for GIRQ info Add girq and girq-bit to encode per device information. This allows the driver to get any device unique info from device tree. Signed-off-by: Kumar Gala --- dts/arm/microchip/mec1501hsz.dtsi | 6 ++++++ dts/bindings/rtc/microchip,xec-timer.yaml | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/dts/arm/microchip/mec1501hsz.dtsi b/dts/arm/microchip/mec1501hsz.dtsi index 4d2bb53116f..60f9d288f7f 100644 --- a/dts/arm/microchip/mec1501hsz.dtsi +++ b/dts/arm/microchip/mec1501hsz.dtsi @@ -194,6 +194,8 @@ max-value = <0xFFFF>; prescaler = <0>; status = "disabled"; + girq = <23>; + girq-bit = <0>; }; timer1: timer@40000c20 { compatible = "microchip,xec-timer"; @@ -204,6 +206,8 @@ max-value = <0xFFFF>; prescaler = <0>; status = "disabled"; + girq = <23>; + girq-bit = <1>; }; timer3: timer@40000ca0 { compatible = "microchip,xec-timer"; @@ -213,6 +217,8 @@ label = "TIMER_3"; max-value = <0xFFFFFFFF>; prescaler = <0>; + girq = <23>; + girq-bit = <5>; }; ps2_0: ps2@40009000 { compatible = "microchip,xec-ps2"; diff --git a/dts/bindings/rtc/microchip,xec-timer.yaml b/dts/bindings/rtc/microchip,xec-timer.yaml index 44ce02f924f..f10498c896f 100644 --- a/dts/bindings/rtc/microchip,xec-timer.yaml +++ b/dts/bindings/rtc/microchip,xec-timer.yaml @@ -26,3 +26,13 @@ properties: type: int required: true description: Maximum counter value the instance can handle + + girq: + type: int + required: true + description: GIRQ for this device + + girq-bit: + type: int + required: true + description: Bit position in GIRQ for this device