]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
ARM64: zcu102: GT selection via DT
authorMichal Simek <michal.simek@xilinx.com>
Thu, 26 Nov 2015 14:02:01 +0000 (15:02 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 11 Feb 2016 15:39:41 +0000 (16:39 +0100)
Use gpio hogs to select GT muxes based on HW design.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/arm/dts/zynqmp-zcu102.dts

index 3bb291c3b77670b755ab8328003c9e95f9b3cee8..afb840d7d20d61c5fc374fd6f829c3f84697c868 100644 (file)
                 * 6 - GEM3_EXP_RESET_B
                 * 7, 10 - 17 - not connected
                 */
+
+               gtr_sel0 {
+                       gpio-hog;
+                       gpios = <0 0>;
+                       output-high; /* PCIE = 0, DP = 1 */
+                       line-name = "sel0";
+               };
+               gtr_sel1 {
+                       gpio-hog;
+                       gpios = <1 0>;
+                       output-high; /* PCIE = 0, DP = 1 */
+                       line-name = "sel1";
+               };
+               gtr_sel2 {
+                       gpio-hog;
+                       gpios = <2 0>;
+                       output-high; /* PCIE = 0, USB0 = 1 */
+                       line-name = "sel2";
+               };
+               gtr_sel3 {
+                       gpio-hog;
+                       gpios = <3 0>;
+                       output-high; /* PCIE = 0, SATA = 1 */
+                       line-name = "sel3";
+               };
        };
 
        tca6416_u61: gpio@21 { /* FIXME enable it by i2c mw 21 6 0 */