/*
* 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
// #include "dt-bindings/clock/tegra194-clock.h"
//#include "tegra210-camera-e3323-a00.dtsi"
#include "tegra210-camera-ar0231-a00.dtsi"
#define CAM0_RST_L TEGRA_GPIO(S, 4)
#define CAM0_PWDN TEGRA_GPIO(S, 7)
// #define CAM1_RST_L TEGRA_GPIO(S, 5)
// #define CAM1_PWDN TEGRA_GPIO(T, 0)
#define CAMERA_I2C_MUX_BUS(x) (0x1E + x)
/* camera control gpio definitions */
/ {
host1x {
gpio@6000d000 {
camera-control-output-low {
gpio-hog;
output-low;
gpios = ;
label = "cam0-rst", "cam0-pwdn";
};
};
i2c@7000c500 {
ar0231_a@48 {
/* Define any required hw resources needed by driver */
/* ie. clocks, io pins, power sources */
// clocks = <&tegra_car TEGRA210_CLK_CLK_OUT_3>;
// clock-names = "clk_out_3";
// clock-frequency = <24000000>;
// mclk = "clk_out_3";
// reset-gpios = <&gpio CAM0_RST_L GPIO_ACTIVE_HIGH>;
// pown-gpios = <&gpio CAM0_PWDN GPIO_ACTIVE_HIGH>;
//vana-supply = <&en_vdd_cam_hv_2v8>;
//vif-supply = <&en_vdd_cam>;
status = "okay";
reset-gpios = <&gpio CAM1_PWDN GPIO_ACTIVE_HIGH>;
};
};
};
};