I have what I think is a working DTS as the UART is working fine but I 
cannot get the system to read the PPS from a GPS unit I have connected.

Below is my DTS and the UART 4 is working fine and I have the GPS's PPS 
connected to P8-26 and so I'm hoping my DTS puts it into Mode7 on that pin.

PPS support is inside my kernel

Any ideas at all?

Lee

/*
 * Copyright (C) 2013 the8thlayerof.net
 *
 * GPS cape for UART4
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */
/dts-v1/;
/plugin/;

/ {
    compatible = "ti,beaglebone", "ti,beaglebone-black";

        /* identification */
        part-number = "T8LO-GPS";
        version = "00A0";

        /* state the resources this cape uses */
        exclusive-use =
                /* the pin header uses */
                "P9.11",        /* uart4_rxd */
                "P9.13",        /* uart4_txd */
                "P8.26",        /* gpio1_29   */
                /* the hardware ip uses */
                "uart4",
                "gpio1_29";

        fragment@0 {
                target = <&am33xx_pinmux>;
                __overlay__ {
                        gps_uart4_pins: pinmux_gps_uart4_pins {
                                pinctrl-single,pins = <
                                        0x70 0x26 /* P9.11 
uart4_rxd.uart4_rxd MODE6 INPUT (RX) */
                                        0x74 0x26 /* P9.13 
uart4_txd.uart4_rxd MODE6 OUTPUT (TX) */
                                >;
                        };
                        
                        gps_pps_pins: pinmux_gps_pps_pins {
pinctrl-single,pins = <
0x7c 0x27 /* P8.26 gpio1_29 */
>;
};
                };
        };

fragment@1 {
                target = <&uart5>; /* really uart4 */
                __overlay__ {
                        status = "okay";
                        pinctrl-names = "default";
                        pinctrl-0 = <&gps_uart4_pins>;
                };
};

fragment@2 {
target = <&ocp>;
                __overlay__ {
pps {
compatible = "pps-gpio";
                        status = "okay";
                        pinctrl-names = "default";
                        pinctrl-0 = <&gps_pps_pins>;
                        gpios = <&gpio2 7 0 >;
                        assert-rising-edge;
};
};
};
};

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to