arm64: tegra210: fix DT for node xusb_padctl
Hans Yang [Fri, 4 Dec 2015 09:11:38 +0000 (17:11 +0800)]
This commit fixed xusb_padctl node in DT source files
by means of "check_padctl_dt_auto_fix.sh"

It automatically checks .dtb and does following actions
in .dts/.dtsi files

1) Replace padctl@0 by xusb_padctl.
2) Correct "nvidia,enable-sata-port" if sata is enabled/disabled.
3) Correct "nvidia,lane-map=0x??" if pcie is enabled/disabled.
4) Correct "status=??" depends on sata/pcie/xusb lane owner.
5) Add needed regulators depends on sata/pcie/xusb lane owner.

Bug 200153624

Change-Id: I1546a1ab2dd6217ca17bb5433206dd672aac84d1
Signed-off-by: Hans Yang <hansy@nvidia.com>
Reviewed-on: http://git-master/r/841580
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>

arch/arm64/boot/dts/tegra210-loki-e-p2530-common.dtsi
arch/arm64/boot/dts/tegra210-platforms/tegra210-darcy-pcie.dtsi
arch/arm64/boot/dts/tegra210-proto-darcy-hdd-p2892-0030-a00-00.dts
arch/arm64/boot/dts/tegra210-vcm31-e2379-common.dtsi

index 3e5663b..3888915 100644 (file)
 
        /* Put common control config here */
        xusb_pad_ctl: xusb_padctl {
+               status = "disabled";
                nvidia,ss_portmap = <0x7770>;
                nvidia,lane_owner = <0xFFFF>; /* Use 0xF to disable lane assign */
-               status = "okay";
        };
 
        xusb@70090000 {
index e6342fa..ffaa27b 100644 (file)
  *
  */
 / {
+       xusb_padctl {
+               nvidia,lane-map = <0x14>;
+       };
+
        pcie-controller {
                nvidia,wake-gpio = <&gpio TEGRA_GPIO(A, 2) 0>;
                nvidia,lane-map = <0x14>;
index 3cd48ba..7df00f7 100644 (file)
        nvidia,dtsfilename = __FILE__;
        nvidia,fastboot-usb-pid = <0xb422>;
 
+       xusb_padctl {
+               nvidia,enable-sata-port;
+       };
+
        sata@70020000 {
                status = "okay";
                nvidia,enable-sata-port;
index 3637d7b..456477b 100644 (file)
                nvidia,ss_portmap = <0x0277>;
                nvidia,lane_owner = <0x43FF>; /* Use 0xF to disable lane assign */
                nvidia,otg_portmap = <0x0100>;
-               nvidia,lane-map = <0x12>;
                status = "okay";
        };