Trying Two UARTs and One GPIO on the BBBlue...

Hello,

I am trying to make an overlay:

/*
 * Copyright (C) 2018 Robert Nelson <robertcnelson@gmail.com>
 *
 * 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.
 *
 * https://www.mikroe.com/gnss-4-click
 * https://download.mikroe.com/documents/add-on-boards/click/gnss-4/gnss4-click-schematic-v100.pdf
 */

/dts-v1/;
/plugin/;

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/pinctrl/am33xx.h>
#include <dt-bindings/interrupt-controller/irq.h>

&{/chosen} {
        /*
         * Helper to show loaded overlays under: /proc/device-tree/chosen/overlays/
         */
        overlays {
                BBBLUE-GPS-PPS = __TIMESTAMP__;
                };
};

        /*
         * Free up the pins used by the cape from the pinmux helpers.
         */
&ocp {
        P9_12_pinmux { status = "disabled"; };  /* gpio - GP0 */
        P9_24_pinmux { status = "disabled"; };  /* gpio0_30 - TXD */
        P9_26_pinmux { status = "disabled"; };  /* gpio0_31 - RXD */
};

&{/} {
        aliases {
                GPS-PPS0 = "/GPS-PPS-0";
        };

        GPS-PPS-0 {
                compatible = "linux,GPS-PPS";
                status = "okay";
                pinctrl-names = "default,GPS-PPS";
                pinctrl-0 = <
                        &P9_12_gpio_input_pin
                        &P9_24_uart_pin
                        &P9_26_uart_pin
                >;
                GPS-PPS = <&gpio1 12 0>;
        };
};

&uart1 {
        status = "okay";
};

Does anyone see why this would not cause errors but make the BBBlue w/ the am335x on it non-bootable?

Seth

P.S. I did notice that on the .dts, I have some errors but not in the sudo make install_arm or make portion. Also, I did notice that my overlay for GPS-PPS was not highlighted in the /boot/dtbs/5.10.x/overlays/My_Overlay.dts once I received no errors after building w/ make and sudo make install_arm.

Does anyone know of why the highlighted permissions notification did not make it and why the board may not boot due to the above .dts?

I don’t have a BBBlue, this is only a guess.
Check for conflicts with other overlays.
Get on the linux debug port and see where it hangs.

1 Like

Okay…

I will check the debug port. UART0?

Seth

On BBBlack it is on the male connector next to the female header.

1 Like

right but on the BBBlue, it is a bit different.

I think it is UART0. I will triple check.

Seth

Okay and About this Subject,

I think for a general standpoint here, PPS and GPS via GPSD is not available due to lack of GPIO that is available on the BBBlue.

Seth

P.S. I am closing this issue as solved since I am not going to hardwire the GPIOs available from the motor drivers.