Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Gnss bindings

Single-page view · as markdown

Broadcom BCM4751 family GNSS Receiver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gnss bindings

Schema identifier ($id): "http://devicetree.org/schemas/gnss/brcm,bcm4751.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Johan Hovold <johan@kernel.org>", "Linus Walleij <linusw@kernel.org>"

Broadcom GPS chips can be used over the UART or I2C bus. The UART bus requires CTS/RTS support. The number of the capsule is more elaborate than the compatibles BCM4751 may be printed BCM4751IFBG for example.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): gnss-common.yaml#

Rule 2 #

Shared schema rule ($ref): /schemas/serial/serial-peripheral-props.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "brcm,bcm4751", "brcm,bcm4752", "brcm,bcm4753"

reg — not listed as required here #

The I2C Address, not required on UART buses.

vdd-auxin-supply — not listed as required here #

Main voltage supply, pin name VDD_AUXIN, typically connected directly to a battery such as LiIon 3.8V battery or a 2.6V supply.

vddio-supply — not listed as required here #

IO voltage supply, pin name VDDIO, typically 1.8V

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

An optional active low reset line, should be flagged with GPIO_ACTIVE_LOW.

enable-gpios — required here #

Enable GPIO line, connected to pins named REGPU or NSTANDBY. If the line is active low such as NSTANDBY, it should be tagged GPIO_ACTIVE_LOW.

Required in this object (required): "compatible", "enable-gpios"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
serial {
    gnss {
        compatible = "brcm,bcm4751";
        vdd-auxin-supply = <&vbat>;
        reset-gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
        enable-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
        current-speed = <38400>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Common Properties for Global Navigation Satellite Systems (GNSS) receiver devices

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gnss bindings

Schema identifier ($id): "http://devicetree.org/schemas/gnss/gnss-common.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Johan Hovold <johan@kernel.org>"

This document defines device tree properties common to Global Navigation Satellite System receivers.

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^gnss(@.*)?$"

lna-supply — not listed as required here #

A separate regulator supplying power for the Low Noise Amplifier (LNA). This is an amplifier connected between the GNSS device and the receiver antenna.

enable-gpios — not listed as required here #

A GPIO line that will enable the GNSS receiver when asserted. If this line is active low, the GPIO phandle should consequently be tagged with the GPIO_ACTIVE_LOW flag so the operating system can rely on asserting the line to enable the GNSS device.

Maximum number of items (maxItems): 1

timepulse-gpios — not listed as required here #

Timepulse signal

Maximum number of items (maxItems): 1

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
serial {
  gnss {
    compatible = "u-blox,neo-8";
    vcc-supply = <&gnss_reg>;
    timepulse-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
    current-speed = <4800>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Mediatek GNSS Receiver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gnss bindings

Schema identifier ($id): "http://devicetree.org/schemas/gnss/mediatek.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Johan Hovold <johan@kernel.org>"

Mediatek chipsets are used in GNSS-receiver modules produced by several vendors and can use a UART interface.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): gnss-common.yaml#

Rule 2 #

Shared schema rule ($ref): /schemas/serial/serial-peripheral-props.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "globaltop,pa6h"

vcc-supply — required here #

Main voltage regulator, pin name VCC.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

An optional reset line, with names such as RESET or NRESET. If the line is active low it should be flagged with GPIO_ACTIVE_LOW.

timepulse-gpios — not listed as required here #

Comes with pin names such as PPS1 or 1PPS.

gnss-fix-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO used to determine device position fix state, pin names FIX or 3D_FIX.

vbackup-supply — not listed as required here #

Regulator providing backup voltage, pin names such as VBAT or VBACKUP.

Required in this object (required): "compatible", "vcc-supply"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
serial {
    gnss {
        compatible = "globaltop,pa6h";
        vcc-supply = <&vcc_3v3>;
        reset-gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

SiRFstar GNSS Receiver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gnss bindings

Schema identifier ($id): "http://devicetree.org/schemas/gnss/sirfstar.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Johan Hovold <johan@kernel.org>"

The SiRFstar GNSS receivers have incarnated over the years in different chips, starting from the SiRFstarIII which was a chip that was introduced in 2004 and used in a lot of dedicated GPS devices. In 2009 SiRF was acquired by CSR (Cambridge Silicon Radio) and in 2012 the CSR GPS business was acquired by Samsung, while some products remained with CSR. In 2014 CSR was acquired by Qualcomm who still sell some of the SiRF products. SiRF chips can be used over UART, I2C or SPI buses.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): gnss-common.yaml#

Rule 2 #

Shared schema rule ($ref): /schemas/serial/serial-peripheral-props.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "csr,gsd4t", "csr,csrg05ta03-icje-r", "fastrax,uc430", "linx,r4", "wi2wi,w2sg0004", "wi2wi,w2sg0008i", "wi2wi,w2sg0084i"

reg — not listed as required here #

The I2C Address, SPI chip select address. Not required on UART buses.

vcc-supply — required here #

Main voltage regulator, pin names such as 3V3_IN, VCC, VDD.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

An optional active low reset line, should be flagged with GPIO_ACTIVE_LOW.

sirf,onoff-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO used to power on and off device, pin name ON_OFF.

sirf,wakeup-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO used to determine device power state, pin names such as RFPWRUP, WAKEUP.

Required in this object (required): "compatible", "vcc-supply"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
serial {
    gnss {
        compatible = "wi2wi,w2sg0084i";
        vcc-supply = <&gnss_vcc_reg>;
        reset-gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
        sirf,onoff-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
        sirf,wakeup-gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
        current-speed = <38400>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

u-blox GNSS receiver

Peios Kernel / Hardware and drivers / Device-tree binding reference / Gnss bindings

Schema identifier ($id): "http://devicetree.org/schemas/gnss/u-blox,neo-6m.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): gnss-common.yaml#

Rule 2 #

Shared schema rule ($ref): /schemas/serial/serial-peripheral-props.yaml#

Maintainers (maintainers): "Johan Hovold <johan@kernel.org>"

The u-blox GNSS receivers can use UART, DDC (I2C), SPI and USB interfaces.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "u-blox,neo-6m", "u-blox,neo-8", "u-blox,neo-m8"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "u-blox,neo-m9"

Item 2

Exact value (const): "u-blox,neo-m8"

reg — not listed as required here #

The DDC Slave Address, SPI chip select address, the number of the USB hub port or the USB host-controller port to which this device is attached, depending on the bus used. Required for the DDC, SPI or USB busses.

reset-gpios — not listed as required here #

Maximum number of items (maxItems): 1

safeboot-gpios — not listed as required here #

Maximum number of items (maxItems): 1

vcc-supply — required here #

Main voltage regulator

u-blox,extint-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO connected to the "external interrupt" input pin

v-bckp-supply — not listed as required here #

Backup voltage regulator

Required in this object (required): "compatible", "vcc-supply"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

serial {
    gnss {
        compatible = "u-blox,neo-8";
        v-bckp-supply = <&gnss_v_bckp_reg>;
        vcc-supply = <&gnss_vcc_reg>;
        reset-gpios = <&gpio 1 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
        safeboot-gpios = <&gpio 2 (GPIO_ACTIVE_LOW | GPIO_OPEN_DRAIN)>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Peios Learn — documentation for Peios software.

Built with Trail.