From c831e5e8c53f8a6e555a593de336cd39e0b47fc4 Mon Sep 17 00:00:00 2001 From: Amir Vajid Date: Tue, 12 Dec 2023 12:52:50 -0800 Subject: [PATCH] dt-bindings: soc: qcom: Add non-early mapping to bwmon bindings Update bwmon bindings to include support for non-early memory mapping. Change-Id: I4f45ea0fd3f219325463d832c958ebd900f15f1c Signed-off-by: Amir Vajid Signed-off-by: Shivnandan Kumar --- bindings/soc/qcom/qcom,bwmon.yaml | 33 +++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/bindings/soc/qcom/qcom,bwmon.yaml b/bindings/soc/qcom/qcom,bwmon.yaml index 4bfac87b..ccfbcf48 100644 --- a/bindings/soc/qcom/qcom,bwmon.yaml +++ b/bindings/soc/qcom/qcom,bwmon.yaml @@ -8,7 +8,7 @@ title: Qualcomm Technologies, Inc. (QTI) BWMON Driver maintainers: - avajid@quicinc.com - - gurbaror@quicinc.com + - Shivnandan Kumar description: | The Qualcomm Technologies, Inc. BWMON Driver monitors bandwidth counters that @@ -31,8 +31,15 @@ properties: maxItems: 2 reg-names: - - const: base - - const: global_base + items: + - const: base + - const: global_base + + "#address-cells": + enum: [1, 2] + + "#size-cells": + enum: [1, 2] interrupts: description: Lists the threshold IRQ. @@ -49,7 +56,6 @@ properties: node will be using for voting in the SLOW path. qcom,hw-timer-hz: - $ref: /schemas/types.yaml#/definitions/uint32 description: Hardware sampling rate in Hz. This field must be specified for "qcom,bwmon4" @@ -69,19 +75,34 @@ properties: description: Number of bytes monitor counts in + qcom,map-ne: + type: boolean + description: | + Specify if the bwmon memory region should be mapped as nE (non-Early). + required: - compatible - reg - reg-names - interrupts - - qcom,target-dev + - qcom,mport - qcom,hw-timer-hz + - qcom,count-unit + - qcom,target-dev + - '#address-cells' + - '#size-cells' + +additionalProperties: true examples: - | + #include bwmon_llcc: qcom,bwmon-llcc@90b6400 { compatible = "qcom,bwmon4"; - reg = <0x90b6400 0x300>, <0x90b6300 0x200>; + #address-cells = <1>; + #size-cells = <1>; + reg = <0x90b6400 0x300>, + <0x90b6300 0x200>; reg-names = "base", "global_base"; interrupts = ; qcom,mport = <0>;