mirror of
git://nv-tegra.nvidia.com/device/hardware/nvidia/t23x-public-dts.git
synced 2025-12-22 09:12:02 +03:00
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:
committed by
mobile promotions
parent
aa5a375761
commit
6c7331c543
@@ -4,7 +4,6 @@
|
|||||||
#include <dt-bindings/clock/tegra234-clock.h>
|
#include <dt-bindings/clock/tegra234-clock.h>
|
||||||
|
|
||||||
#define CAM0_PWDN TEGRA234_AON_GPIO(AA, 4)
|
#define CAM0_PWDN TEGRA234_AON_GPIO(AA, 4)
|
||||||
#define CAMERA_I2C_MUX_BUS(x) (0x1E + x)
|
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
fragment-camera@0 {
|
fragment-camera@0 {
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
#include <dt-bindings/gpio/tegra234-gpio.h>
|
#include <dt-bindings/gpio/tegra234-gpio.h>
|
||||||
|
|
||||||
#define CAM0_RST_L TEGRA234_MAIN_GPIO(H, 3)
|
#define CAM0_RST_L TEGRA234_MAIN_GPIO(H, 3)
|
||||||
#define CAMERA_I2C_MUX_BUS(x) (0x1E + x)
|
|
||||||
|
|
||||||
/* camera control gpio definitions */
|
/* camera control gpio definitions */
|
||||||
|
|
||||||
@@ -30,7 +29,6 @@
|
|||||||
#address-cells = <1>;
|
#address-cells = <1>;
|
||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
skip_mux_detect = "yes";
|
skip_mux_detect = "yes";
|
||||||
force_bus_start = <CAMERA_I2C_MUX_BUS(0)>;
|
|
||||||
|
|
||||||
i2c@0 {
|
i2c@0 {
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
|
|
||||||
#define CAM0_RST_L TEGRA234_MAIN_GPIO(H, 3)
|
#define CAM0_RST_L TEGRA234_MAIN_GPIO(H, 3)
|
||||||
#define CAM0_PWDN TEGRA234_MAIN_GPIO(H, 6)
|
#define CAM0_PWDN TEGRA234_MAIN_GPIO(H, 6)
|
||||||
#define CAMERA_I2C_MUX_BUS(x) (0x1E + x)
|
|
||||||
|
|
||||||
/* camera control gpio definitions */
|
/* camera control gpio definitions */
|
||||||
/ {
|
/ {
|
||||||
@@ -30,7 +29,6 @@
|
|||||||
#size-cells = <0>;
|
#size-cells = <0>;
|
||||||
skip_mux_detect = "yes";
|
skip_mux_detect = "yes";
|
||||||
vcc-supply = <&vdd_1v8_ls>;
|
vcc-supply = <&vdd_1v8_ls>;
|
||||||
force_bus_start = <CAMERA_I2C_MUX_BUS(0)>;
|
|
||||||
i2c@0 {
|
i2c@0 {
|
||||||
reg = <0>;
|
reg = <0>;
|
||||||
i2c-mux,deselect-on-exit;
|
i2c-mux,deselect-on-exit;
|
||||||
|
|||||||
@@ -16,8 +16,6 @@
|
|||||||
#define GYRO1_IRQ_GPIO TEGRA234_AON_GPIO(CC, 1)
|
#define GYRO1_IRQ_GPIO TEGRA234_AON_GPIO(CC, 1)
|
||||||
#define ACCE1_IRQ_GPIO TEGRA234_AON_GPIO(CC, 0)
|
#define ACCE1_IRQ_GPIO TEGRA234_AON_GPIO(CC, 0)
|
||||||
|
|
||||||
#define CAMERA_I2C_MUX_BUS(x) (0x1E + x)
|
|
||||||
|
|
||||||
/* camera control gpio definitions */
|
/* camera control gpio definitions */
|
||||||
/ {
|
/ {
|
||||||
overlay-name = "Jetson Camera Hawk-Owl p3762 module";
|
overlay-name = "Jetson Camera Hawk-Owl p3762 module";
|
||||||
|
|||||||
@@ -16,8 +16,6 @@
|
|||||||
#define GYRO1_IRQ_GPIO TEGRA234_AON_GPIO(CC, 1)
|
#define GYRO1_IRQ_GPIO TEGRA234_AON_GPIO(CC, 1)
|
||||||
#define ACCE1_IRQ_GPIO TEGRA234_AON_GPIO(CC, 0)
|
#define ACCE1_IRQ_GPIO TEGRA234_AON_GPIO(CC, 0)
|
||||||
|
|
||||||
#define CAMERA_I2C_MUX_BUS(x) (0x1E + x)
|
|
||||||
|
|
||||||
/* camera control gpio definitions */
|
/* camera control gpio definitions */
|
||||||
/ {
|
/ {
|
||||||
overlay-name = "Jetson Camera Hawk-Owl p3783 module";
|
overlay-name = "Jetson Camera Hawk-Owl p3783 module";
|
||||||
|
|||||||
Reference in New Issue
Block a user