/*
* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
#include "tegra194-camera-rbpcv3-imx477-pca9548.dtsi"
#define CAM0_PWDN TEGRA194_MAIN_GPIO(N, 1) /*vsync_cam1_1, GPIO13, CAM0(J7)*/
#define CAM1_PWDN TEGRA194_MAIN_GPIO(Q, 6) /*vsync_cam1_2, GPIO11, CAM0(J14)*/
#define CAMERA_I2C_MUX_BUS(x) (0x1E + x)
/ {
gpio@2200000 {
camera-control-output-low {
gpio-hog;
output-low;
gpios = ;
label = "cam0-pwdn", "cam1-pwdn";
};
};
i2c@3180000 {
tca9548_70: tca9548@70{
status = "okay";
compatible = "nxp,pca9548";
reg = <0x70>;
#address-cells = <1>;
#size-cells = <0>;
/*vcc-supply = <&en_vdd_cam>;*/
/*vcc-supply = <&battery_reg>;*/
vcc-supply = <&p3509_vdd_3v3_cvb>;
skip_mux_detect = "yes";
force_bus_start = ;
i2c@0 {
reg = <0>;
i2c-mux,deselect-on-exit;
#address-cells = <1>;
#size-cells = <0>;
rbpcv3_imx477_g@1a {/*CSI G port, CAM0*/
reset-gpios = <&tegra_main_gpio CAM0_PWDN GPIO_ACTIVE_HIGH>;
};
};
i2c@1 {
reg = <1>;
i2c-mux,deselect-on-exit;
#address-cells = <1>;
#size-cells = <0>;
rbpcv3_imx477_c@1a {/*CSI C port, CAM1*/
reset-gpios = <&tegra_main_gpio CAM1_PWDN GPIO_ACTIVE_HIGH>;
};
};
};
};
};