From 81754d37386134d5c1ea11b6783257844a2298bf Mon Sep 17 00:00:00 2001 From: Santoshkumar Zalake Date: Thu, 4 Feb 2021 12:56:48 -0800 Subject: [PATCH] dt-bindings: Add devicetree bindings to devicetree project Add devicetree bindings snapshot to the devicetree project Change-Id: Ie64349677227a47cd3528b2c5d8101bc00d70d76 --- bindings/gnsssirf/gnss_sirf.txt | 47 +++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 bindings/gnsssirf/gnss_sirf.txt diff --git a/bindings/gnsssirf/gnss_sirf.txt b/bindings/gnsssirf/gnss_sirf.txt new file mode 100644 index 000000000000..18e8b251d9c5 --- /dev/null +++ b/bindings/gnsssirf/gnss_sirf.txt @@ -0,0 +1,47 @@ +Binding for SIRF GNSS receiver control driver +GPIO pins are toggled to control GNSS receiver power states either to +wake it from sleep or put receiver into sleep mode + +Required properties: +- compatible: must be "gnss_sirf" +- #gpio-pins: + 0: GPIO 18 + 1: GPIO 87 + +Example: + ss5_pwr_ctrl0 { + compatible = "gnss_sirf"; + pinctrl-0 = <&ss5_pwr_ctrl_rst_on>; + ssVreset-gpio = <&tlmm 87 1>; + ssVonoff-gpio = <&tlmm 18 1>; + }; + + ss5_pwr_ctrl_pins: ss5_pwr_ctrl_pins { + ss5_pwr_ctrl_rst_on: ss5_pwr_ctrl_rst_on { + mux { + pins = "gpio87", "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio87", "gpio18"; + drive-strength = <16>; /* 16 mA */ + bias-pull-up; + output-high; + }; + }; + + ss5_pwr_ctrl_rst_off: ss5_pwr_ctrl_off { + mux { + pins = "gpio87", "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio87", "gpio18"; + drive-strength = <16>; /* 16 mA */ + bias-pull-up; + output-high; + }; + }; + };