]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: exynos: Add pinctrl settings for s5p_goni
authorSimon Glass <sjg@chromium.org>
Tue, 21 Oct 2014 01:48:34 +0000 (19:48 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 22 Oct 2014 16:36:04 +0000 (10:36 -0600)
These describe the GPIOs in enough detail for U-Boot's GPIO driver to
operate.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/arm/dts/s5pc110-pinctrl.dtsi [new file with mode: 0644]
arch/arm/dts/s5pc1xx-goni.dts

diff --git a/arch/arm/dts/s5pc110-pinctrl.dtsi b/arch/arm/dts/s5pc110-pinctrl.dtsi
new file mode 100644 (file)
index 0000000..d21b6ab
--- /dev/null
@@ -0,0 +1,273 @@
+/*
+ * U-Boot additions to enable a generic Exynos GPIO driver
+ *
+ * Copyright (c) 2014 Google, Inc
+ */
+
+/ {
+       pinctrl@e0200000 {
+               #address-cells = <1>;
+               #size-cells = <0>;
+               gpa0: gpa0 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpa1: gpa1 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpb: gpb {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpc0: gpc0 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpc1: gpc1 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpd0: gpd0 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpd1: gpd1 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpe0: gpe0 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpe1: gpe1 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpf0: gpf0 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpf1: gpf1 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpf2: gpf2 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpf3: gpf3 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpg0: gpg0 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpg1: gpg1 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpg2: gpg2 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpg3: gpg3 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpi: gpi {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpj0: gpj0 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpj1: gpj1 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpj2: gpj2 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpj3: gpj3 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpj4: gpj4 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp01: gpmp01 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp02: gpmp02 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp03: gpmp03 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp04: gpmp04 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp05: gpmp05 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp06: gpmp06 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp07: gpmp07 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp10: gpmp10 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp11: gpmp11 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp12: gpmp12 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp13: gpmp13 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp14: gpmp14 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp15: gpmp15 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp16: gpmp16 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp17: gpmp17 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp18: gpmp18 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp20: gpmp20 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp21: gpmp21 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp22: gpmp22 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp23: gpmp23 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp24: gpmp24 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp25: gpmp25 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp26: gpmp26 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp27: gpmp27 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gpmp28: gpmp28 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gph0: gph0 {
+                       reg = <0xc00>;
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gph1: gph1 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gph2: gph2 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+               gph3: gph3 {
+                       gpio-controller;
+                       #gpio-cells = <2>;
+               };
+
+       };
+};
index 2e671bbf7e9a99f54ad5c4b0d0e26c43ff49c5f5..7bbfe591cd88e1ae45bc25e7cbaf5d8a2fe5c67c 100644 (file)
@@ -9,6 +9,7 @@
 /dts-v1/;
 
 #include "skeleton.dtsi"
+#include "s5pc110-pinctrl.dtsi"
 
 / {
        model = "Samsung Goni based on S5PC110";
        aliases {
                serial2 = "/serial@e2900800";
                console = "/serial@e2900800";
+               pinctrl0 = &pinctrl0;
+       };
+
+       pinctrl0: pinctrl@e0200000 {
+               compatible = "samsung,s5pc110-pinctrl";
+               reg = <0xe0200000 0x1000>;
        };
 
        serial@e2900800 {