+ pps-gpio-add-device-tree-binding-and-support.patch added to -mm tree
Subsystems (2)
Subject: + pps-gpio-add-device-tree-binding-and-support.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 03 Jun 2013 15:57:10 -0700
The patch titled
Subject: pps-gpio: add device-tree binding and support
has been added to the -mm tree. Its filename is
pps-gpio-add-device-tree-binding-and-support.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Jan Luebbe <[email protected]>
Subject: pps-gpio: add device-tree binding and support
Instead of allocating a struct pps_gpio_platform_data in the DT case, store the necessary information in struct pps_gpio_device_data itself. This avoids an additional allocation and the ifdef. It also gets rid of some indirection.
Also use dev_err instead of pr_err in the changed code.
---
Documentation/devicetree/bindings/pps/pps-gpio.txt | 20 + drivers/pps/clients/pps-gpio.c | 127 ++++++----- 2 files changed, 93 insertions(+), 54 deletions(-)
Documentation/devicetree/bindings/pps/pps-gpio.txt new file +20 -0
@@ -0,0 +1,20 @@ +Device-Tree Bindings for a PPS Signal on GPIO + +These properties describe a PPS (pulse-per-second) signal connected to +a GPIO pin. + +Required properties: +- compatible: should be "pps-gpio" +- gpios: one PPS GPIO in the format described by ../gpio/gpio.txt + +Optional properties: +- assert-falling-edge: when present, assert is indicated by a falling edge + (instead of by a rising edge) + +Example: + pps { + compatible = "pps-gpio"; + gpios = <&gpio2 6 0>; + + assert-falling-edge; + };
drivers/pps/clients/pps-gpio.c renamed from drivers/pps/clients/pps-gpio.c~pps-gpio-add-device-tree-binding-and-support +73 -54
209 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
drivers-pps-clients-pps-gpioc-convert-to-devm_-helpers.patch drivers-pps-clients-pps-gpioc-convert-to-module_platform_driver.patch pps-gpio-add-device-tree-binding-and-support.patch