From e5ca79c865e2b5f92f88e281a739fe6a09ed2dc1 Mon Sep 17 00:00:00 2001 From: Praveen AC Date: Wed, 8 May 2024 09:11:20 +0000 Subject: [PATCH] t234:[P3762/P3783]: Fix probe fail of Hawks during boot. 1. Made all sensors of Hawks as master sensors so any sensor is capable to program SERIALIZERS i2c address translation during probe time i.e first come first basis.So, We wont miss or skip SERIALIZERS i2c trans. 2. Changed i2c bus 8 freq to 400khz Bug 4510846 Change-Id: I4f62d1d5a7f75f507273c06b5118814e4867f8a9 Signed-off-by: Praveen AC Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/3133426 Tested-by: Shubham Chandra Reviewed-by: Shubham Chandra GVS: buildbot_gerritrpt Reviewed-by: Bitan Biswas --- overlay/tegra234-camera-p3762-a00.dtsi | 4 +++- overlay/tegra234-camera-p3783-a00.dtsi | 4 +++- overlay/tegra234-p3737-camera-p3762-a00-overlay.dts | 8 ++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/overlay/tegra234-camera-p3762-a00.dtsi b/overlay/tegra234-camera-p3762-a00.dtsi index 918dbf1..64b9c6a 100644 --- a/overlay/tegra234-camera-p3762-a00.dtsi +++ b/overlay/tegra234-camera-p3762-a00.dtsi @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only -// SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-FileCopyrightText: Copyright (c) 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. /* 12 camera module with 4 hawks and 4 Owls * HAWK1 - 2 ar0234 cameras - max96712 Aggregator 1 - GMSL0 @@ -750,6 +750,8 @@ }; /*i2c8*/ i2c@31e0000 { + /* Set i2c freq to 400khz */ + clock-frequency = <400000>; virtual_i2c_mux@50 { i2c@0 { ar0234_a@30 { diff --git a/overlay/tegra234-camera-p3783-a00.dtsi b/overlay/tegra234-camera-p3783-a00.dtsi index e64a856..c31e907 100644 --- a/overlay/tegra234-camera-p3783-a00.dtsi +++ b/overlay/tegra234-camera-p3783-a00.dtsi @@ -1,5 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only -// SPDX-FileCopyrightText: Copyright (c) 2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved. +// SPDX-FileCopyrightText: Copyright (c) 2023-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved. /* 12 camera module with 4 hawks and 4 Owls * HAWK1 - 2 ar0234 cameras - max96712 Aggregator 1 - GMSL0 @@ -750,6 +750,8 @@ }; /*i2c8*/ i2c@31e0000 { + /* Set i2c freq to 400khz */ + clock-frequency = <400000>; virtual_i2c_mux@50 { i2c@0 { ar0234_a@30 { diff --git a/overlay/tegra234-p3737-camera-p3762-a00-overlay.dts b/overlay/tegra234-p3737-camera-p3762-a00-overlay.dts index 2ccbc2b..a3a1e08 100644 --- a/overlay/tegra234-p3737-camera-p3762-a00-overlay.dts +++ b/overlay/tegra234-p3737-camera-p3762-a00-overlay.dts @@ -171,7 +171,7 @@ <&bpmp TEGRA234_CLK_EXTPERIPH1>; clock-names = "extperiph1", "pllp_grtba"; mclk = "extperiph1"; - channel = "c"; + channel = "a"; has-eeprom; eeprom-addr = <0x40>; reset-gpios = <&gpio CAM0_RST_L GPIO_ACTIVE_HIGH>; @@ -209,7 +209,7 @@ <&bpmp TEGRA234_CLK_EXTPERIPH1>; clock-names = "extperiph1", "pllp_grtba"; mclk = "extperiph1"; - channel = "c"; + channel = "a"; has-eeprom; eeprom-addr = <0x42>; reset-gpios = <&gpio CAM0_RST_L GPIO_ACTIVE_HIGH>; @@ -241,7 +241,7 @@ <&bpmp TEGRA234_CLK_EXTPERIPH1>; clock-names = "extperiph1", "pllp_grtba"; mclk = "extperiph1"; - channel = "c"; + channel = "a"; has-eeprom; eeprom-addr = <0x44>; reset-gpios = <&gpio CAM0_RST_L GPIO_ACTIVE_HIGH>; @@ -273,7 +273,7 @@ <&bpmp TEGRA234_CLK_EXTPERIPH1>; clock-names = "extperiph1", "pllp_grtba"; mclk = "extperiph1"; - channel = "c"; + channel = "a"; has-eeprom; eeprom-addr = <0x46>; reset-gpios = <&gpio CAM0_RST_L GPIO_ACTIVE_HIGH>;