From eb454fb41fe9aa83ef2570ef18a62741b569faf3 Mon Sep 17 00:00:00 2001 From: Ravikishore Pampana Date: Tue, 1 Sep 2020 20:07:08 +0530 Subject: [PATCH] ARM: dts: msm: camera: Add hw pid info to tfe nodes Each tfe hardware instance has unique pid values. Add pid values to each tfe node instance. These are used to find the tfe instance that caused page fault. Added pid values to all tfe based targets. CRs-Fixed: 2775154 Change-Id: I16b5253bd02c499899ca3c1c2d2e1a24bf62845d --- bengal-camera.dtsi | 3 +++ bindings/msm-cam-tfe.txt | 5 +++++ holi-camera.dtsi | 3 +++ scuba-camera.dtsi | 2 ++ 4 files changed, 13 insertions(+) diff --git a/bengal-camera.dtsi b/bengal-camera.dtsi index 0c55ca288a4a..c1d49c349d03 100644 --- a/bengal-camera.dtsi +++ b/bengal-camera.dtsi @@ -650,6 +650,7 @@ src-clock-name = "tfe_clk_src"; clock-control-debugfs = "true"; qcom,cam-cx-ipeak = <&cx_ipeak_lm 8>; + cam_hw_pid = <4>; status = "ok"; }; @@ -714,6 +715,7 @@ src-clock-name = "tfe_clk_src"; clock-control-debugfs = "true"; qcom,cam-cx-ipeak = <&cx_ipeak_lm 8>; + cam_hw_pid = <5>; status = "ok"; }; @@ -778,6 +780,7 @@ src-clock-name = "tfe_clk_src"; clock-control-debugfs = "true"; qcom,cam-cx-ipeak = <&cx_ipeak_lm 8>; + cam_hw_pid = <6>; status = "ok"; }; diff --git a/bindings/msm-cam-tfe.txt b/bindings/msm-cam-tfe.txt index 8f7c21b97765..f851784a73d7 100644 --- a/bindings/msm-cam-tfe.txt +++ b/bindings/msm-cam-tfe.txt @@ -112,6 +112,11 @@ Optional properties: Definition: Scalable clock names to identify which clocks needs to update along with source clock. +- cam_hw_pid: + Usage: optional + Value type: + Definition: HW unique Pid values + Example: cam_tfe0: qcom,tfe0@5c6e000{ cell-index = <0>; diff --git a/holi-camera.dtsi b/holi-camera.dtsi index b014237d6977..56f569ccd007 100644 --- a/holi-camera.dtsi +++ b/holi-camera.dtsi @@ -764,6 +764,7 @@ clock-cntl-level = "svs", "svs_l1", "turbo"; src-clock-name = "tfe_clk_src"; clock-control-debugfs = "true"; + cam_hw_pid = <4>; status = "ok"; }; @@ -827,6 +828,7 @@ clock-cntl-level = "svs", "svs_l1", "turbo"; src-clock-name = "tfe_clk_src"; clock-control-debugfs = "true"; + cam_hw_pid = <5>; status = "ok"; }; @@ -890,6 +892,7 @@ clock-cntl-level = "svs", "svs_l1", "turbo"; src-clock-name = "tfe_clk_src"; clock-control-debugfs = "true"; + cam_hw_pid = <6>; status = "ok"; }; diff --git a/scuba-camera.dtsi b/scuba-camera.dtsi index 7981c781f161..f611cc488929 100644 --- a/scuba-camera.dtsi +++ b/scuba-camera.dtsi @@ -596,6 +596,7 @@ clock-cntl-level = "svs", "svs_l1", "turbo"; src-clock-name = "tfe_clk_src"; clock-control-debugfs = "true"; + cam_hw_pid = <4>; status = "ok"; }; @@ -658,6 +659,7 @@ clock-cntl-level = "svs", "svs_l1", "turbo"; src-clock-name = "tfe_clk_src"; clock-control-debugfs = "true"; + cam_hw_pid = <5>; status = "ok"; };