From 4421ee38ecbd88c6f3a179895352b83c47313183 Mon Sep 17 00:00:00 2001 From: Rashid Zafar Date: Tue, 31 Oct 2023 00:04:06 -0700 Subject: [PATCH 1/2] dt-bindings: soc: qcom: Add documentation for crm-v2 Add documentation for crm-v2 device. Change-Id: If2855bb1cf13843fe098f349b2fa5d3907f81927 Signed-off-by: Rashid Zafar --- bindings/soc/qcom/qcom,crm.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/bindings/soc/qcom/qcom,crm.yaml b/bindings/soc/qcom/qcom,crm.yaml index ecca5098..c7a4104e 100644 --- a/bindings/soc/qcom/qcom,crm.yaml +++ b/bindings/soc/qcom/qcom,crm.yaml @@ -19,22 +19,31 @@ properties: - items: - const: cam_crm - const: pcie_crm + - const: disp_crm - description: Specifies the name of the CRM. compatible: enum: - qcom,cam-crm - qcom,pcie-crm + - qcom,cam-crm-v2 + - qcom,pcie-crm-v2 + - qcom,disp-crm-v2 reg: - maxItems: 1 + maxItems: 4 items: - - description: Should specify the base address for the CRM device. + - description: + Should specify the addresses for the CRM device which includes + the base, common, crm_c and crm_b address. reg-names: - maxItems: 1 + maxItems: 4 items: - const: base + - const: common + - const: crm_b + - const: crm_c interrupts: maxItems: 1 @@ -47,6 +56,7 @@ properties: - items: - const: cam_crm - const: pcie_crm + - const: disp_crm qcom,hw-drv-ids: description: List of HW DRV IDs. From d5963677a9f609ba5a44aa903862f1c6f9a373b4 Mon Sep 17 00:00:00 2001 From: Rashid Zafar Date: Mon, 30 Oct 2023 10:40:36 -0700 Subject: [PATCH 2/2] ARM: dts: msm: Add CRM device for camera and PCIe for sun Add CRM device for camera and PCIe. Change-Id: I61c78a4c645f8e05402767a40ebb41fdcf0119d1 Signed-off-by: Rashid Zafar --- qcom/sun.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/qcom/sun.dtsi b/qcom/sun.dtsi index aac9e96c..4226d01a 100644 --- a/qcom/sun.dtsi +++ b/qcom/sun.dtsi @@ -852,6 +852,30 @@ }; }; + cam_crm: crm@adcb000 { + label = "cam_crm"; + compatible = "qcom,cam-crm-v2"; + reg = <0xadcb000 0x1e00>, <0xadcce00 0x400>, <0xadcd600 0x2000>, <0xadcfd00 0x100>; + reg-names = "base", "crm_b", "crm_c", "common"; + interrupts = ; + interrupt-names = "cam_crm_drv0"; + clocks = <&camcc CAM_CC_DRV_AHB_CLK>; + qcom,hw-drv-ids = <0 1 2>; + qcom,sw-drv-ids = <0>; + }; + + pcie_crm: crm@1d01000 { + label = "pcie_crm"; + compatible = "qcom,pcie-crm-v2"; + reg = <0x1d01000 0x2000>, <0x1d03000 0x400>, <0x1d03800 0x2000>, <0x1d05f00 0x100>; + reg-names = "base", "crm_b", "crm_c", "common"; + interrupts = ; + interrupt-names = "pcie_crm_drv0"; + clocks = <&pcie_0_pipe_clk>; + qcom,hw-drv-ids = <0 1>; + qcom,sw-drv-ids = <0>; + }; + cluster-device0 { compatible = "qcom,lpm-cluster-dev"; power-domains = <&CLUSTER_PD0>;