brcm2708: add kernel 4.14 support
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.14 / 950-0160-overlays-Fix-resetgpio-and-ledgpio-for-hy28a-b.patch
1 From c912fa6af8ed1452717a4754960f328b6fc09ff0 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Tue, 16 Jan 2018 12:59:17 +0000
4 Subject: [PATCH 160/454] overlays: Fix resetgpio and ledgpio for hy28a/b
5
6 Offsets for overlay parameters are specified in bytes, not in access
7 units.
8
9 See: https://github.com/raspberrypi/linux/issues/2344
10
11 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
12 ---
13 arch/arm/boot/dts/overlays/hy28a-overlay.dts | 4 ++--
14 arch/arm/boot/dts/overlays/hy28b-overlay.dts | 4 ++--
15 2 files changed, 4 insertions(+), 4 deletions(-)
16
17 --- a/arch/arm/boot/dts/overlays/hy28a-overlay.dts
18 +++ b/arch/arm/boot/dts/overlays/hy28a-overlay.dts
19 @@ -86,8 +86,8 @@
20 debug = <&hy28a>,"debug:0";
21 xohms = <&hy28a_ts>,"ti,x-plate-ohms;0";
22 resetgpio = <&hy28a>,"reset-gpios:4",
23 - <&hy28a_pins>, "brcm,pins:1";
24 + <&hy28a_pins>, "brcm,pins:4";
25 ledgpio = <&hy28a>,"led-gpios:4",
26 - <&hy28a_pins>, "brcm,pins:2";
27 + <&hy28a_pins>, "brcm,pins:8";
28 };
29 };
30 --- a/arch/arm/boot/dts/overlays/hy28b-overlay.dts
31 +++ b/arch/arm/boot/dts/overlays/hy28b-overlay.dts
32 @@ -141,8 +141,8 @@
33 debug = <&hy28b>,"debug:0";
34 xohms = <&hy28b_ts>,"ti,x-plate-ohms;0";
35 resetgpio = <&hy28b>,"reset-gpios:4",
36 - <&hy28b_pins>, "brcm,pins:1";
37 + <&hy28b_pins>, "brcm,pins:4";
38 ledgpio = <&hy28b>,"led-gpios:4",
39 - <&hy28b_pins>, "brcm,pins:2";
40 + <&hy28b_pins>, "brcm,pins:8";
41 };
42 };