I have the following overlay that I am trying to get working on 4.1.x

I have tested with the UART4 & UART2 overlays provided and they work fine 
but I want to combine it into a single overlay and also add in GPIO3_19 
which delivers a PPS signal.

I compile the overlay fine with no errors and copy it across to 
/lib/firmware/PFRADAR.dtbo

However when I then go to run I get the following...

root@beaglebone:~# echo 'BBB-PF' > /sys/devices/platform/bone_capemgr/slots 
-su: echo: write error: No such file or directory

Overlay as follows...

/dts-v1/;
/plugin/;

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

        /* identification */
        part-number = "BBB-PF";
        version = "00A0";

        /* state the resources this cape uses */
        exclusive-use =
                /* the pin header uses */
                "P9.11",        /* uart4_rxd */
                "P9.13",        /* uart4_txd */
                "P9.22",        /* uart2_rxd */
                "P9.21",        /* uart2_txd */
                "P9.27",        /* GPIO3_19  */
                /* the hardware ip uses */
                "uart2", /* 0-based counting */
                "uart4", /* 0-based counting */
                "gpio3_19"; /* 0-based counting */

        fragment@0 {
                target = <&am33xx_pinmux>;
                __overlay__ {

                        receiver_uart2_pins: pinmux_receiver_uart2_pins {
                                pinctrl-single,pins = <
                                        0x150 0x26 /* P9.22 uart2_rxd MODE6 
INPUT (RX) */
                                        0x154 0x06 /* P9.21 uart2_txd MODE6 
OUTPUT (TX) */
                                >;
                        };

                        gps_uart4_pins: pinmux_gps_uart4_pins {
                                pinctrl-single,pins = <
                                        0x70 0x26 /* P9.11 uart4_rxd MODE6 
INPUT (RX) */
                                        0x74 0x06 /* P9.13 uart4_txd MODE6 
OUTPUT (TX) */
                                >;
                        };

                        gps_pps_pins: pinmux_gps_pps_pins {
                                pinctrl-single,pins = <
                                      0x1A4 0xf /* P9.27 gpio3_19 */
                                >;
                        };

                };
        };

        fragment@1 {
                target = <&uart3>;      /* 1-based counting */
                __overlay__ {
                        status = "okay";
                        pinctrl-names = "default";
                        pinctrl-0 = <&gps_uart2_pins>;
                };
        };

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

        fragment@3 {
                target = <&ocp>;

                __overlay__ {
                        pps {
                                compatible = "pps-gpio";
                                status = "okay";
                                pinctrl-names = "default";
                                pinctrl-0 = <&gps_pps_pins>;
                                gpios = <&gpio4 19 0 >; /* 1-based counting 
*/
                                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/d/optout.

Reply via email to