xref: /freebsd/sys/contrib/device-tree/Bindings/gnss/brcm,bcm4751.yaml (revision b2d2a78ad80ec68d4a17f5aef97d21686cb1e29b)
1d5b0e70fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2d5b0e70fSEmmanuel Vadot%YAML 1.2
3d5b0e70fSEmmanuel Vadot---
4d5b0e70fSEmmanuel Vadot$id: http://devicetree.org/schemas/gnss/brcm,bcm4751.yaml#
5d5b0e70fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6d5b0e70fSEmmanuel Vadot
77ef62cebSEmmanuel Vadottitle: Broadcom BCM4751 family GNSS Receiver
8d5b0e70fSEmmanuel Vadot
9d5b0e70fSEmmanuel Vadotmaintainers:
10d5b0e70fSEmmanuel Vadot  - Johan Hovold <johan@kernel.org>
11d5b0e70fSEmmanuel Vadot  - Linus Walleij <linus.walleij@linaro.org>
12d5b0e70fSEmmanuel Vadot
13d5b0e70fSEmmanuel Vadotdescription:
14d5b0e70fSEmmanuel Vadot  Broadcom GPS chips can be used over the UART or I2C bus. The UART
15d5b0e70fSEmmanuel Vadot  bus requires CTS/RTS support. The number of the capsule is more
16d5b0e70fSEmmanuel Vadot  elaborate than the compatibles BCM4751 may be printed
17d5b0e70fSEmmanuel Vadot  BCM4751IFBG for example.
18d5b0e70fSEmmanuel Vadot
19d5b0e70fSEmmanuel VadotallOf:
20d5b0e70fSEmmanuel Vadot  - $ref: gnss-common.yaml#
21*b2d2a78aSEmmanuel Vadot  - $ref: /schemas/serial/serial-peripheral-props.yaml#
22d5b0e70fSEmmanuel Vadot
23d5b0e70fSEmmanuel Vadotproperties:
24d5b0e70fSEmmanuel Vadot  compatible:
25d5b0e70fSEmmanuel Vadot    enum:
26d5b0e70fSEmmanuel Vadot      - brcm,bcm4751
27d5b0e70fSEmmanuel Vadot      - brcm,bcm4752
28d5b0e70fSEmmanuel Vadot      - brcm,bcm4753
29d5b0e70fSEmmanuel Vadot
30d5b0e70fSEmmanuel Vadot  reg:
31d5b0e70fSEmmanuel Vadot    description:
32d5b0e70fSEmmanuel Vadot      The I2C Address, not required on UART buses.
33d5b0e70fSEmmanuel Vadot
34d5b0e70fSEmmanuel Vadot  vdd-auxin-supply:
35d5b0e70fSEmmanuel Vadot    description:
36d5b0e70fSEmmanuel Vadot      Main voltage supply, pin name VDD_AUXIN, typically connected
37d5b0e70fSEmmanuel Vadot      directly to a battery such as LiIon 3.8V battery or a 2.6V supply.
38d5b0e70fSEmmanuel Vadot
39d5b0e70fSEmmanuel Vadot  vddio-supply:
40d5b0e70fSEmmanuel Vadot    description:
41d5b0e70fSEmmanuel Vadot      IO voltage supply, pin name VDDIO, typically 1.8V
42d5b0e70fSEmmanuel Vadot
43d5b0e70fSEmmanuel Vadot  reset-gpios:
44d5b0e70fSEmmanuel Vadot    maxItems: 1
45d5b0e70fSEmmanuel Vadot    description: An optional active low reset line, should be flagged with
46d5b0e70fSEmmanuel Vadot      GPIO_ACTIVE_LOW.
47d5b0e70fSEmmanuel Vadot
48d5b0e70fSEmmanuel Vadot  enable-gpios:
49d5b0e70fSEmmanuel Vadot    description: Enable GPIO line, connected to pins named REGPU or NSTANDBY.
50d5b0e70fSEmmanuel Vadot      If the line is active low such as NSTANDBY, it should be tagged
51d5b0e70fSEmmanuel Vadot      GPIO_ACTIVE_LOW.
52d5b0e70fSEmmanuel Vadot
53d5b0e70fSEmmanuel Vadotrequired:
54d5b0e70fSEmmanuel Vadot  - compatible
55d5b0e70fSEmmanuel Vadot  - enable-gpios
56d5b0e70fSEmmanuel Vadot
57d5b0e70fSEmmanuel VadotunevaluatedProperties: false
58d5b0e70fSEmmanuel Vadot
59d5b0e70fSEmmanuel Vadotexamples:
60d5b0e70fSEmmanuel Vadot  - |
61d5b0e70fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
62d5b0e70fSEmmanuel Vadot    serial {
63d5b0e70fSEmmanuel Vadot        gnss {
64d5b0e70fSEmmanuel Vadot            compatible = "brcm,bcm4751";
65d5b0e70fSEmmanuel Vadot            vdd-auxin-supply = <&vbat>;
66d5b0e70fSEmmanuel Vadot            reset-gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
67d5b0e70fSEmmanuel Vadot            enable-gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>;
68d5b0e70fSEmmanuel Vadot            current-speed = <38400>;
69d5b0e70fSEmmanuel Vadot        };
70d5b0e70fSEmmanuel Vadot    };
71