/* * Copyright (C) 2016 Shane Short * Hardware design by Brenton Hewitt * * Combined GPS (with PPS) and Dallas 1W sensor bus cape. * * 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/; #include #include #include / { compatible = "ti,beaglebone", "ti,beaglebone-black", "ti,beaglebone-green"; /* identification */ part-number = "BBB-WACAN-GPS"; version = "00A0"; /* state the resources this cape uses */ exclusive-use = "P8.8", /* GPS PPS Signal */ "P9.11", /* UART4_rxd */ "P9.13", /* UART4_txd */ "P9.22", /* Dallas 1W Bus */ "uart4", /* UART 4 for GPS NMEA */ "gpio2_3"; /* 1PPS timing signal */ fragment@0 { target = <&am33xx_pinmux>; __overlay__ { /* Dallas 1W bus pinmux */ dallas_w1_pins: pinmux_dallas_w1_pins { pinctrl-single,pins = < BONE_P9_22 (PIN_INPUT_PULLUP | MUX_MODE7) >; }; /* Standard BB UART4 Pinmux */ bb_uart4_pins: pinmux_bb_uart4_pins { pinctrl-single,pins = < BONE_P9_13 (PIN_OUTPUT | MUX_MODE6) BONE_P9_11 (PIN_INPUT | MUX_MODE6) >; }; /* GPS 1 PPS Input */ gps_pps_pins: pinmux_gps_pps_pins { pinctrl-single,pins = < BONE_P8_08 (PIN_INPUT | MUX_MODE7) >; }; }; }; /* UART 4 Fragment */ fragment@1 { target = <&uart4>; __overlay__ { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&bb_uart4_pins>; }; }; /* PPS GPIO Fragment */ fragment@2 { target = <&ocp>; __overlay__ { pps { compatible = "pps-gpio"; status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&gps_pps_pins>; gpios = <&gpio2 3 0 >; assert-rising-edge; }; }; }; /* Dallas 1W Fragment */ fragment@3 { target-path="/"; __overlay__ { onewire { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&dallas_w1_pins>; compatible = "w1-gpio"; gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>; }; }; }; };