summaryrefslogtreecommitdiff
path: root/arch/arm/boot
diff options
context:
space:
mode:
authorMing Wong <miwong@nvidia.com>2014-09-23 15:33:11 -0700
committerWinnie Hsu <whsu@nvidia.com>2014-11-04 14:48:12 -0800
commit7a84cd9698c8c8ecb56b45a5a5ed20efeee6dca8 (patch)
tree0e60ff77852d92d55f63402180a1e23efc1cb8f5 /arch/arm/boot
parentccf3d3edeb67edaf82153566d9a8641edd2adc0b (diff)
kernel: add ar0330 support
add support for dual ar0330 Bug 1552628 Change-Id: I6ccd6ea0886f17710de3e241c408788cc608dce9 Signed-off-by: Ming Wong <miwong@nvidia.com> Reviewed-on: http://git-master/r/558147 GVS: Gerrit_Virtual_Submit Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'arch/arm/boot')
-rw-r--r--arch/arm/boot/dts/tegra124-platforms/tegra124-jetson_tk1-gpio-pm375-0000-c00-00.dtsi1
-rw-r--r--arch/arm/boot/dts/tegra124-platforms/tegra124-jetson_tk1-pmic-pm375-0000-c00-00.dtsi12
-rw-r--r--arch/arm/boot/dts/tegra124-platforms/tegra124-tn8-camera-e1780-a00.dtsi94
3 files changed, 106 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/tegra124-platforms/tegra124-jetson_tk1-gpio-pm375-0000-c00-00.dtsi b/arch/arm/boot/dts/tegra124-platforms/tegra124-jetson_tk1-gpio-pm375-0000-c00-00.dtsi
index 1f505efd5009..50422d05b006 100644
--- a/arch/arm/boot/dts/tegra124-platforms/tegra124-jetson_tk1-gpio-pm375-0000-c00-00.dtsi
+++ b/arch/arm/boot/dts/tegra124-platforms/tegra124-jetson_tk1-gpio-pm375-0000-c00-00.dtsi
@@ -52,7 +52,6 @@
TEGRA_GPIO(P, 0)
TEGRA_GPIO(P, 1)
TEGRA_GPIO(P, 2)
- TEGRA_GPIO(BB, 4)
TEGRA_GPIO(G, 1)
TEGRA_GPIO(H, 3)
TEGRA_GPIO(H, 5)
diff --git a/arch/arm/boot/dts/tegra124-platforms/tegra124-jetson_tk1-pmic-pm375-0000-c00-00.dtsi b/arch/arm/boot/dts/tegra124-platforms/tegra124-jetson_tk1-pmic-pm375-0000-c00-00.dtsi
index 4281344c19d4..dfaf9d0259ec 100644
--- a/arch/arm/boot/dts/tegra124-platforms/tegra124-jetson_tk1-pmic-pm375-0000-c00-00.dtsi
+++ b/arch/arm/boot/dts/tegra124-platforms/tegra124-jetson_tk1-pmic-pm375-0000-c00-00.dtsi
@@ -313,6 +313,10 @@
regulator-consumer-supply = "vdd_i2c";
regulator-consumer-device = "2-0010";
};
+ c8 {
+ regulator-consumer-supply = "vif";
+ regulator-consumer-device = "2-0018";
+ };
};
};
@@ -397,6 +401,10 @@
regulator-consumer-supply = "vana";
regulator-consumer-device = "2-000c";
};
+ c5 {
+ regulator-consumer-supply = "vana";
+ regulator-consumer-device = "2-0018";
+ };
};
};
@@ -413,6 +421,10 @@
regulator-consumer-supply = "vdig";
regulator-consumer-device = "2-0010";
};
+ c3 {
+ regulator-consumer-supply = "vdig";
+ regulator-consumer-device = "2-0018";
+ };
};
};
diff --git a/arch/arm/boot/dts/tegra124-platforms/tegra124-tn8-camera-e1780-a00.dtsi b/arch/arm/boot/dts/tegra124-platforms/tegra124-tn8-camera-e1780-a00.dtsi
index 8fa23ec20adc..bd3a887eef91 100644
--- a/arch/arm/boot/dts/tegra124-platforms/tegra124-tn8-camera-e1780-a00.dtsi
+++ b/arch/arm/boot/dts/tegra124-platforms/tegra124-tn8-camera-e1780-a00.dtsi
@@ -67,6 +67,24 @@
platformdata = "ardbeg_ov7695_pdata";
};
};
+ module6: module6@modules {
+ compatible = "sensor,rear";
+ badge_info = "e1633_rear_camera";
+
+ sensor {
+ profile = <&ar0330_1>;
+ platformdata = "ardbeg_ar0330_pdata";
+ };
+ };
+ module7: module7@modules {
+ compatible = "sensor,front";
+ badge_info = "e1633_front_camera";
+
+ sensor {
+ profile = <&ar0330_2>;
+ platformdata = "ardbeg_ar0330_front_pdata";
+ };
+ };
};
profiles {
@@ -354,6 +372,82 @@
CAMERA_END
>;
};
+ ar0330_1: ar0330@2_0010 {
+ index = <9>;
+ chipname = "pcl_AR0330";
+ type = "sensor";
+ guid = "s_AR0330";
+ position = <0>;
+ bustype = "i2c";
+ busnum = <2>;
+ addr = <0x10>;
+ datalen = <2>;
+ pinmuxgrp = <0xFFFF>;
+ gpios = <3>;
+ regulators = "vana", "vdig", "vif";
+ clocks = "mclk";
+ drivername = "ar0330";
+ detect = <0x0002 0x3000 0xFFFF 0x2604>;
+ devid = <0x0330>;
+ poweron = <
+ CAMERA_IND_CLK_SET(10000)
+ CAMERA_GPIO_CLR(219)
+ CAMERA_REGULATOR_ON(0)
+ CAMERA_REGULATOR_ON(1)
+ CAMERA_REGULATOR_ON(2)
+ CAMERA_WAITMS(40)
+ CAMERA_GPIO_SET(219)
+ CAMERA_WAITMS(20)
+ CAMERA_END
+ >;
+ poweroff = <
+ CAMERA_IND_CLK_CLR
+ CAMERA_GPIO_CLR(219)
+ CAMERA_WAITUS(10)
+ CAMERA_REGULATOR_OFF(2)
+ CAMERA_REGULATOR_OFF(1)
+ CAMERA_REGULATOR_OFF(0)
+ CAMERA_END
+ >;
+ };
+ ar0330_2: ar0330@2_0018 {
+ index = <11>;
+ chipname = "pcl_AR0330";
+ type = "sensor";
+ guid = "sAR0330f";
+ position = <1>;
+ bustype = "i2c";
+ busnum = <2>;
+ addr = <0x18>;
+ datalen = <2>;
+ pinmuxgrp = <0xFFFF>;
+ gpios = <3>;
+ regulators = "avdd_cam1_cam", "vdd_1v2_cam", "vdd_cam1_1v8_cam";
+ clocks = "mclk";
+ drivername = "ar0330";
+ detect = <0x0002 0x3000 0xFFFF 0x2604>;
+ devid = <0x0330>;
+ poweron = <
+ CAMERA_IND_CLK_SET(10000)
+ CAMERA_GPIO_CLR(219)
+ CAMERA_REGULATOR_ON(0)
+ CAMERA_REGULATOR_ON(1)
+ CAMERA_REGULATOR_ON(2)
+ CAMERA_WAITMS(40)
+ CAMERA_GPIO_SET(219)
+ CAMERA_WAITMS(20)
+ CAMERA_END
+ >;
+ poweroff = <
+ CAMERA_IND_CLK_CLR
+ CAMERA_GPIO_CLR(219)
+ CAMERA_WAITUS(10)
+ CAMERA_REGULATOR_OFF(2)
+ CAMERA_REGULATOR_OFF(1)
+ CAMERA_REGULATOR_OFF(0)
+ CAMERA_END
+ >;
+ };
};
};
};