ARM: dts: omap3-gta04a5: add support for PPS
authorH. Nikolaus Schaller <hns@goldelico.com>
Tue, 31 Jul 2018 07:11:30 +0000 (09:11 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 7 Sep 2018 17:11:03 +0000 (10:11 -0700)
GPS receiver provides a 1PPS signal to a gpio.

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/boot/dts/omap3-gta04a5.dts

index d408eb0..e3f9e09 100644 (file)
        sound {
                ti,jack-det-gpio = <&twl_gpio 2 GPIO_ACTIVE_HIGH>;      /* GTA04A5 only */
        };
+
+       pps {
+               compatible = "pps-gpio";
+               pinctrl-names = "default";
+               pinctrl-0 = <&pps_pins>;
+
+               gpios = <&gpio4 18 GPIO_ACTIVE_HIGH>; /* GPIN_114 */
+       };
+
+};
+
+&omap3_pmx_core {
+       pps_pins: pinmux_pps_pins {
+               pinctrl-single,pins = <
+                       OMAP3_CORE1_IOPAD(0x2138, PIN_INPUT | MUX_MODE4) /* gpin114 */
+               >;
+       };
+
 };