DT: camera: dynamic I2C address

pca945x I2C mux driver fix the bus address
for camera sensor when it reads force_bus_start
property in DT, which has value 0x1e = 30. To remove
this hard coding, delete force_bus_start, devname
properties. And use sysfs-device-tree instead of
proc-device-tree.

Bug 4097754

Change-Id: Ibc7aedefe0fdb0eee2c77a034e5b08e8c83ccd87
Signed-off-by: Ankur Pawar <ankurp@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/device/hardware/nvidia/t23x-public-dts/+/2924945
Reviewed-by: Praveen AC <pac@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Ankur Pawar
2023-06-23 05:21:04 +00:00
committed by mobile promotions
parent aa5a375761
commit 6c7331c543
5 changed files with 0 additions and 9 deletions

View File

@@ -4,7 +4,6 @@
#include <dt-bindings/clock/tegra234-clock.h>
#define CAM0_PWDN TEGRA234_AON_GPIO(AA, 4)
#define CAMERA_I2C_MUX_BUS(x) (0x1E + x)
/ {
fragment-camera@0 {

View File

@@ -6,7 +6,6 @@
#include <dt-bindings/gpio/tegra234-gpio.h>
#define CAM0_RST_L TEGRA234_MAIN_GPIO(H, 3)
#define CAMERA_I2C_MUX_BUS(x) (0x1E + x)
/* camera control gpio definitions */
@@ -30,7 +29,6 @@
#address-cells = <1>;
#size-cells = <0>;
skip_mux_detect = "yes";
force_bus_start = <CAMERA_I2C_MUX_BUS(0)>;
i2c@0 {
reg = <0>;

View File

@@ -7,7 +7,6 @@
#define CAM0_RST_L TEGRA234_MAIN_GPIO(H, 3)
#define CAM0_PWDN TEGRA234_MAIN_GPIO(H, 6)
#define CAMERA_I2C_MUX_BUS(x) (0x1E + x)
/* camera control gpio definitions */
/ {
@@ -30,7 +29,6 @@
#size-cells = <0>;
skip_mux_detect = "yes";
vcc-supply = <&vdd_1v8_ls>;
force_bus_start = <CAMERA_I2C_MUX_BUS(0)>;
i2c@0 {
reg = <0>;
i2c-mux,deselect-on-exit;

View File

@@ -16,8 +16,6 @@
#define GYRO1_IRQ_GPIO TEGRA234_AON_GPIO(CC, 1)
#define ACCE1_IRQ_GPIO TEGRA234_AON_GPIO(CC, 0)
#define CAMERA_I2C_MUX_BUS(x) (0x1E + x)
/* camera control gpio definitions */
/ {
overlay-name = "Jetson Camera Hawk-Owl p3762 module";

View File

@@ -16,8 +16,6 @@
#define GYRO1_IRQ_GPIO TEGRA234_AON_GPIO(CC, 1)
#define ACCE1_IRQ_GPIO TEGRA234_AON_GPIO(CC, 0)
#define CAMERA_I2C_MUX_BUS(x) (0x1E + x)
/* camera control gpio definitions */
/ {
overlay-name = "Jetson Camera Hawk-Owl p3783 module";