1 From 2fea9b14e39bd6c64e362ba7d170b67d09206987 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Thu, 15 Jan 2015 10:39:06 +0000
4 Subject: [PATCH 070/114] Adding w1-gpio device tree overlays
6 N.B. Requires firmware supporting multi-target overrides
9 Use if a pullup pin is not required.
11 gpiopin=<i/o pin> // default 4
13 w1-gpio-pullup-overlay:
14 Use if a pullup pin is required.
16 gpiopin=<i/o pin> // default 4
17 pullup=<pullup pin> // default 5
19 arch/arm/boot/dts/w1-gpio-overlay.dts | 37 ++++++++++++++++++++++++++
20 arch/arm/boot/dts/w1-gpio-pullup-overlay.dts | 39 ++++++++++++++++++++++++++++
21 2 files changed, 76 insertions(+)
22 create mode 100644 arch/arm/boot/dts/w1-gpio-overlay.dts
23 create mode 100644 arch/arm/boot/dts/w1-gpio-pullup-overlay.dts
26 +++ b/arch/arm/boot/dts/w1-gpio-overlay.dts
28 +// Definitions for lirc-rpi module
33 + compatible = "brcm,bcm2708";
40 + compatible = "w1-gpio";
41 + pinctrl-names = "default";
42 + pinctrl-0 = <&w1_pins>;
43 + gpios = <&gpio 4 0>;
54 + brcm,function = <0>; // in (initially)
55 + brcm,pull = <0>; // off
61 + gpiopin = <&w1>,"gpios:4",
62 + <&w1_pins>,"brcm,pins:0";
66 +++ b/arch/arm/boot/dts/w1-gpio-pullup-overlay.dts
68 +// Definitions for lirc-rpi module
73 + compatible = "brcm,bcm2708";
80 + compatible = "w1-gpio";
81 + pinctrl-names = "default";
82 + pinctrl-0 = <&w1_pins>;
83 + gpios = <&gpio 4 0>, <&gpio 5 1>;
94 + brcm,function = <0 1>; // in out
95 + brcm,pull = <0 0>; // off off
101 + gpiopin = <&w1>,"gpios:4",
102 + <&w1_pins>,"brcm,pins:0";
103 + pullup = <&w1>,"gpios:16",
104 + <&w1_pins>,"brcm,pins:4";