]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/commitdiff
arm64: dts: pcie presence detection gpio
authorVidya Sagar <vidyas@nvidia.com>
Thu, 25 Dec 2014 14:56:37 +0000 (20:26 +0530)
committerLaxman Dewangan <ldewangan@nvidia.com>
Fri, 26 Dec 2014 07:39:04 +0000 (23:39 -0800)
overrides prsnt control based on card detection through
GPIO values that reflect PRSNT status
If the platform doesn't support PRSNT through GPIO, software
overrides will be enabled always

Bug 200067556

Change-Id: I24a91e0bcc0dcee842fcb82f306e7f4f5fb8bf95
Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Reviewed-on: http://git-master/r/667804
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Documentation/devicetree/bindings/pci/nvidia,tegra124-pcie.txt
arch/arm64/boot/dts/tegra210-ers-e2220-1180-a00-00.dts

index 9b7c1e228b72b19886169af7c1030d39d32bd351..8c021552de0315d1a65db582dcd7e66963042616 100644 (file)
@@ -72,6 +72,8 @@ Required properties:
 - nvidia,lane-map: Each nibble represent lane width starting from lowest
   nibble being RP0. Example:- 0x14 has lane width=4 for RP0 and width=1 for RP1
   valid values: 0xYZ, Y={0,1}, Z={0,1,2,4}
+- nvidia,presence-detection-gpio: Board specific, represents the present detection
+  pin status
 
 Example:
 
index 584a8b112a7bc7d4251e35133c086bfc5531de90..5e11f3e88aa93acb3b994c75139fcd0109cb11bf 100644 (file)
                status = "okay";
                pci@1,0 {
                        status = "okay";
+                       nvidia,presence-detection-gpio = <&pca9539_76 1 0>;
                };
 
                pci@2,0 {
                        status = "okay";
+                       nvidia,presence-detection-gpio = <&pca9539_76 2 0>;
                };
        };