brcm2708: add linux 4.19 support
[oweals/openwrt.git] / target / linux / brcm2708 / patches-4.19 / 950-0353-overlays-balenaFin-v1.1.0-carrier-board-update.patch
1 From d9e484de16eef5f3daa61a8df462ff35ebe1aedc Mon Sep 17 00:00:00 2001
2 From: Zahari Petkov <zahari@balena.io>
3 Date: Fri, 8 Feb 2019 13:03:38 +0200
4 Subject: [PATCH 353/703] overlays: balenaFin v1.1.0 carrier board update
5
6 A backward compatible update for the balenaFin carrier board for the
7 Raspberry Pi Compute Module 3/3+ Lite.
8
9 The updated overlay includes:
10   * support for the newly introduced RGB LEDs
11   * i2c-gpio and SDIO improvements
12   * DT based Marvell 88W8887 configuration
13
14 Signed-off-by: Zahari Petkov <zahari@balena.io>
15 ---
16  arch/arm/boot/dts/overlays/README             |  2 +-
17  .../boot/dts/overlays/balena-fin-overlay.dts  | 46 ++++++++++++++++++-
18  2 files changed, 45 insertions(+), 3 deletions(-)
19
20 --- a/arch/arm/boot/dts/overlays/README
21 +++ b/arch/arm/boot/dts/overlays/README
22 @@ -472,7 +472,7 @@ Params: swap_lr                 Reverse
23  
24  Name:   balena-fin
25  Info:   Overlay that enables WiFi, Bluetooth and the GPIO expander on the
26 -        Balena Fin board.
27 +        balenaFin carrier board for the Raspberry Pi Compute Module 3/3+ Lite.
28  Load:   dtoverlay=balena-fin
29  Params: <None>
30  
31 --- a/arch/arm/boot/dts/overlays/balena-fin-overlay.dts
32 +++ b/arch/arm/boot/dts/overlays/balena-fin-overlay.dts
33 @@ -11,6 +11,7 @@
34                         pinctrl-0 = <&sdio_pins>;
35                         bus-width = <4>;
36                         brcm,overclock-50 = <35>;
37 +                       non-removable;
38                         status = "okay";
39                 };
40         };
41 @@ -34,7 +35,8 @@
42         fragment@2 {
43                 target-path = "/";
44                 __overlay__ {
45 -                       // We should investigate how to switch to mmc-pwrseq-sd8787
46 +                       // We should switch to mmc-pwrseq-sd8787 after making it
47 +                       // compatible with sd8887
48                         // Currently that module requires two GPIOs to function since it
49                         // targets a slightly different chip
50                         power_ctrl: power_ctrl {
51 @@ -46,10 +48,21 @@
52                         i2c_soft: i2c@0 {
53                                 compatible = "i2c-gpio";
54                                 gpios = <&gpio 43 0 /* sda */ &gpio 42 0 /* scl */>;
55 -                               i2c-gpio,delay-us = <2>; /* ~100 kHz */
56 +                               i2c-gpio,delay-us = <5>;
57 +                               i2c-gpio,scl-open-drain;
58 +                               i2c-gpio,sda-open-drain;
59                                 #address-cells = <1>;
60                                 #size-cells = <0>;
61                         };
62 +
63 +                       sd8xxx-wlan {
64 +                               drvdbg = <0x6>;
65 +                               drv_mode = <0x1>;
66 +                               cfg80211_wext = <0xf>;
67 +                               sta_name = "wlan";
68 +                               wfd_name = "p2p";
69 +                               cal_data_cfg = "none";
70 +                       };
71                 };
72         };
73  
74 @@ -74,6 +87,35 @@
75                                 reg = <0x68>;
76                                 status = "okay";
77                         };
78 +
79 +                       // RGB LEDs (>= v1.1.0)
80 +                       pca9633: pca9633@62 {
81 +                               compatible = "nxp,pca9633";
82 +                               reg = <0x62>;
83 +                               #address-cells = <1>;
84 +                               #size-cells = <0>;
85 +
86 +                               red@0 {
87 +                                       label = "red";
88 +                                       reg = <0>;
89 +                                       linux,default-trigger = "none";
90 +                               };
91 +                               green@1 {
92 +                                       label = "green";
93 +                                       reg = <1>;
94 +                                       linux,default-trigger = "none";
95 +                               };
96 +                               blue@2 {
97 +                                       label = "blue";
98 +                                       reg = <2>;
99 +                                       linux,default-trigger = "none";
100 +                               };
101 +                               unused@3 {
102 +                                       label = "unused";
103 +                                       reg = <3>;
104 +                                       linux,default-trigger = "none";
105 +                               };
106 +                       };
107                 };
108         };
109  };