tegra: jetson: Add support for flash module.
Jitendra Kumar [Wed, 17 Dec 2014 06:45:03 +0000 (11:45 +0530)]
Bug 200062768

Change-Id: I18211dfd4735c868a03bbc62d7f9cea4d0d1af05
Signed-off-by: Jitendra Kumar <jitendrak@nvidia.com>
Reviewed-on: http://git-master/r/662717
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>

arch/arm/boot/dts/tegra124-platforms/tegra124-jetson_tk1-fixed-pm375-0000-c00-00.dtsi
arch/arm/boot/dts/tegra124-platforms/tegra124-jetson_tk1-pmic-pm375-0000-c00-00.dtsi
arch/arm/boot/dts/tegra124-platforms/tegra124-pm359-camera-a00.dtsi

index 3415f28..2a4a1b3 100644 (file)
                                        regulator-consumer-device = "0-0077";
                                };
                                c21 {
-                                       regulator-consumer-supply = "vi2c";
-                                       regulator-consumer-device = "2-0030";
-                               };
-                               c22 {
                                        regulator-consumer-supply = "avdd_pll_utmip";
                                        regulator-consumer-device = "tegra-udc.0";
                                };
-                               c23 {
+                               c22 {
                                        regulator-consumer-supply = "avdd_pll_utmip";
                                        regulator-consumer-device = "tegra-ehci.0";
                                };
-                               c24 {
+                               c23 {
                                        regulator-consumer-supply = "avdd_pll_utmip";
                                        regulator-consumer-device = "tegra-ehci.1";
                                };
-                               c25 {
+                               c24 {
                                        regulator-consumer-supply = "avdd_pll_utmip";
                                        regulator-consumer-device = "tegra-ehci.2";
                                };
-                               c26 {
+                               c25 {
                                        regulator-consumer-supply = "avdd_pll_utmip";
                                        regulator-consumer-device = "tegra-xhci";
                                };
index f413a45..7f79631 100644 (file)
                                                     regulator-consumer-supply = "vif";
                                                     regulator-consumer-device = "2-0018";
                                             };
+                                            c9 {
+                                                    regulator-consumer-supply = "vi2c";
+                                                    regulator-consumer-device = "2-0030";
+                                            };
                                     };
                             };
 
index d911161..566180d 100644 (file)
                                        profile = <&dw9718_1>;
                                        platformdata = "ardbeg_dw9718_pdata";
                                };
+                               flash {
+                                       profile = <&as3648_1>;
+                                       platformdata = "ardbeg_as3648_pdata";
+                               };
                        };
                        module2: module2@modules {
                                compatible = "sensor,front";
                                        CAMERA_END
                                        >;
                        };
+                       as3648_1: as3648@2_0030 {
+                               index = <6>;
+                               chipname = "pcl_AS3648";
+                               type = "flash";
+                               guid = "l_NVCAM0";
+                               position = <0>;
+                               bustype = "i2c";
+                               busnum = <2>;
+                               addr = <0x30>;
+                               datalen = <1>;
+                               pinmuxgrp = <0xFFFF>;
+                               gpios = <3>;
+                               regulators = "vi2c", "vin";
+                               drivername = "as3648";
+                               detect = <0x0001 0x0000 0x00F0 0x00b0>;
+                               devid = <0x3648>;
+                               poweron = <
+                                       CAMERA_REGULATOR_ON(1)
+                                       CAMERA_REGULATOR_ON(0)
+                                       CAMERA_WAITUS(1000)
+                                       CAMERA_END
+                                       >;
+                               poweroff = <
+                                       CAMERA_REGULATOR_OFF(0)
+                                       CAMERA_REGULATOR_OFF(1)
+                                       CAMERA_WAITUS(10)
+                                       CAMERA_END
+                                       >;
+                       };
                        ar0261_1: ar0261@2_0036 {
                                index = <3>;
                                chipname = "pcl_AR0261";