daae20c0d5a3295a7a05e79cc226805094289430
[openwrt/staging/noltari.git] / target / linux / brcm2708 / patches-4.19 / 950-0695-ARM-dts-bcm2711-rpi-4-b-I2C-aliases-and-pulls.patch
1 From 188bd7c0085ac5b3d966aa899c6be644907157ea Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Mon, 12 Aug 2019 15:48:39 +0100
4 Subject: [PATCH] ARM: dts: bcm2711-rpi-4-b: I2C aliases and pulls
5
6 The I2C interface nodes need aliases to give them fixed bus numbers,
7 and setting the pulls on the GPIOs (particularly 9-13) increases the
8 chances of the bus working with weak or absent external pulls.
9
10 See: https://www.raspberrypi.org/forums/posting.php?mode=reply&f=107&t=248439
11
12 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
13 ---
14 arch/arm/boot/dts/bcm2711-rpi-4-b.dts | 10 ++++++++++
15 1 file changed, 10 insertions(+)
16
17 --- a/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
18 +++ b/arch/arm/boot/dts/bcm2711-rpi-4-b.dts
19 @@ -23,6 +23,10 @@
20 mmc0 = &emmc2;
21 mmc1 = &mmcnr;
22 mmc2 = &sdhost;
23 + i2c3 = &i2c3;
24 + i2c4 = &i2c4;
25 + i2c5 = &i2c5;
26 + i2c6 = &i2c6;
27 /delete-property/ ethernet;
28 /delete-property/ intc;
29 ethernet0 = &genet;
30 @@ -207,31 +211,37 @@
31 i2c0_pins: i2c0 {
32 brcm,pins = <0 1>;
33 brcm,function = <BCM2835_FSEL_ALT0>;
34 + brcm,pull = <BCM2835_PUD_UP>;
35 };
36
37 i2c1_pins: i2c1 {
38 brcm,pins = <2 3>;
39 brcm,function = <BCM2835_FSEL_ALT0>;
40 + brcm,pull = <BCM2835_PUD_UP>;
41 };
42
43 i2c3_pins: i2c3 {
44 brcm,pins = <4 5>;
45 brcm,function = <BCM2835_FSEL_ALT5>;
46 + brcm,pull = <BCM2835_PUD_UP>;
47 };
48
49 i2c4_pins: i2c4 {
50 brcm,pins = <8 9>;
51 brcm,function = <BCM2835_FSEL_ALT5>;
52 + brcm,pull = <BCM2835_PUD_UP>;
53 };
54
55 i2c5_pins: i2c5 {
56 brcm,pins = <12 13>;
57 brcm,function = <BCM2835_FSEL_ALT5>;
58 + brcm,pull = <BCM2835_PUD_UP>;
59 };
60
61 i2c6_pins: i2c6 {
62 brcm,pins = <22 23>;
63 brcm,function = <BCM2835_FSEL_ALT5>;
64 + brcm,pull = <BCM2835_PUD_UP>;
65 };
66
67 i2s_pins: i2s {