1 From 3f11e310d0e877d26958afe83975a5157e500ebe Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Thu, 12 May 2016 09:04:20 +0100
4 Subject: [PATCH 347/381] BCM270X_DT: Fix the tinylcd35 overlay RTC support
6 Now that overlay parameters are applied before the merge (a requirement
7 for kernel runtime overlays) it is illegal for parameters/overrides to
8 target nodes in the base DTB. Solve the problem of only enabling I2C
9 when an RTC option is used by making the RTC fragments conditional,
10 and including the required status="okay" within the fragments.
12 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
14 arch/arm/boot/dts/overlays/tinylcd35-overlay.dts | 18 ++++++++++--------
15 1 file changed, 10 insertions(+), 8 deletions(-)
17 --- a/arch/arm/boot/dts/overlays/tinylcd35-overlay.dts
18 +++ b/arch/arm/boot/dts/overlays/tinylcd35-overlay.dts
31 compatible = "nxp,pcf8563";
33 - status = "disabled";
49 compatible = "maxim,ds1307";
51 - status = "disabled";
57 <&tinylcd35_ts>,"interrupts:0",
58 <&tinylcd35_ts>,"pendown-gpio:4";
59 xohms = <&tinylcd35_ts>,"ti,x-plate-ohms;0";
60 - rtc-pcf = <&i2c1>,"status",
61 - <&pcf8563>,"status";
62 - rtc-ds = <&i2c1>,"status",
66 keypad = <&keypad>,"status";