x86: link: Add required GPIO properties
authorSimon Glass <sjg@chromium.org>
Mon, 7 Mar 2016 02:28:10 +0000 (19:28 -0700)
committerBin Meng <bmeng.cn@gmail.com>
Thu, 17 Mar 2016 02:27:23 +0000 (10:27 +0800)
In order to use GPIO phandles we need to add some GPIO properties as
specified by the GPIO bindings. Add these for link.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/dts/chromebook_link.dts

index f85e55cd6d542a2661417ed61a140648fdf96ed4..e2031398557c4ce23d3fb3b959c34d24827615f6 100644 (file)
                                };
                        };
 
-                       gpioa {
+                       gpio_a: gpioa {
                                compatible = "intel,ich6-gpio";
                                u-boot,dm-pre-reloc;
+                               #gpio-cells = <2>;
+                               gpio-controller;
                                reg = <0 0x10>;
                                bank-name = "A";
                        };
 
-                       gpiob {
+                       gpio_b: gpiob {
                                compatible = "intel,ich6-gpio";
                                u-boot,dm-pre-reloc;
+                               #gpio-cells = <2>;
+                               gpio-controller;
                                reg = <0x30 0x10>;
                                bank-name = "B";
                        };
 
-                       gpioc {
+                       gpio_c: gpioc {
                                compatible = "intel,ich6-gpio";
                                u-boot,dm-pre-reloc;
+                               #gpio-cells = <2>;
+                               gpio-controller;
                                reg = <0x40 0x10>;
                                bank-name = "C";
                        };