1 From 0676c7a6270df8f3bdc0cfee0025959e155c8c2a Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.org>
3 Date: Mon, 26 Nov 2018 17:02:15 +0000
4 Subject: [PATCH 213/703] dtoverlays: Add i2c on 0&1 option to TC358743,
7 Adds the option of configuring i2c0 to be on GPIOs 0&1 as
8 this is of use on the Compute Module.
10 Also fixes the ov5647 overlay where the override enabled the wrong
13 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
15 arch/arm/boot/dts/overlays/README | 14 ++++++++++++--
16 arch/arm/boot/dts/overlays/adv7282m-overlay.dts | 10 +++++++++-
17 arch/arm/boot/dts/overlays/ov5647-overlay.dts | 10 +++++++++-
18 arch/arm/boot/dts/overlays/tc358743-overlay.dts | 10 +++++++++-
19 4 files changed, 39 insertions(+), 5 deletions(-)
21 --- a/arch/arm/boot/dts/overlays/README
22 +++ b/arch/arm/boot/dts/overlays/README
23 @@ -277,7 +277,9 @@ Info: Analog Devices ADV7282M analogue
24 Uses Unicam1, which is the standard camera connector on most Pi
26 Load: dtoverlay=adv7282m,<param>=<val>
27 -Params: i2c_pins_28_29 Use pins 28&29 for the I2C instead of 44&45.
28 +Params: i2c_pins_0_1 Use pins 0&1 for the I2C instead of 44&45.
29 + Useful on Compute Modules.
30 + i2c_pins_28_29 Use pins 28&29 for the I2C instead of 44&45.
31 This is required for Pi B+, 2, 0, and 0W.
32 addr Overrides the I2C address (default 0x21)
34 @@ -286,7 +288,9 @@ Name: adv728x-m
35 Info: Analog Devices ADV728[0|1|2]-M analogue video to CSI2 bridges.
36 This is a wrapper for adv7282m, and defaults to ADV7282M.
37 Load: dtoverlay=adv728x-m,<param>=<val>
38 -Params: i2c_pins_28_29 Use pins 28&29 for the I2C instead of 44&45.
39 +Params: i2c_pins_0_1 Use pins 0&1 for the I2C instead of 44&45.
40 + Useful on Compute Modules.
41 + i2c_pins_28_29 Use pins 28&29 for the I2C instead of 44&45.
42 This is required for Pi B+, 2, 0, and 0W.
43 addr Overrides the I2C address (default 0x21)
44 adv7280m Select ADV7280-M.
45 @@ -1324,6 +1328,9 @@ Params: cam0-pwdn GPIO use
46 configuration of the particular Pi variant in
49 + i2c_pins_0_1 Use pins 0&1 for the I2C instead of 44&45.
50 + Useful on Compute Modules.
52 i2c_pins_28_29 Use pins 28&29 for the I2C instead of 44&45.
53 This is required for Pi B+, 2, 0, and 0W.
55 @@ -1949,6 +1956,9 @@ Params: 4lane Use 4 la
56 (574Mbit/s) and 486000000 (972Mbit/s - default)
57 are supported by the driver.
59 + i2c_pins_0_1 Use pins 0&1 for the I2C instead of 44&45.
60 + Useful on Compute Modules.
62 i2c_pins_28_29 Use pins 28&29 for the I2C instead of 44&45.
63 This is required for Pi B+, 2, 0, and 0W.
65 --- a/arch/arm/boot/dts/overlays/adv7282m-overlay.dts
66 +++ b/arch/arm/boot/dts/overlays/adv7282m-overlay.dts
71 + target = <&i2c0_pins>;
74 + brcm,function = <4>; /* alt0 */
85 - i2c_pins_28_29 = <0>,"+2-3";
86 + i2c_pins_0_1 = <0>,"-2-3+4";
87 + i2c_pins_28_29 = <0>,"+2-3-4";
88 addr = <&adv728x>,"reg:0";
91 --- a/arch/arm/boot/dts/overlays/ov5647-overlay.dts
92 +++ b/arch/arm/boot/dts/overlays/ov5647-overlay.dts
97 + target = <&i2c0_pins>;
100 + brcm,function = <4>; /* alt0 */
111 - i2c_pins_28_29 = <0>,"+4-5";
112 + i2c_pins_0_1 = <0>,"-2-3+4";
113 + i2c_pins_28_29 = <0>,"+2-3-4";
114 cam0-pwdn = <&ov5647>,"pwdn-gpios:4";
115 cam0-led = <&ov5647>,"pwdn-gpios:16";
117 --- a/arch/arm/boot/dts/overlays/tc358743-overlay.dts
118 +++ b/arch/arm/boot/dts/overlays/tc358743-overlay.dts
123 + target = <&i2c0_pins>;
126 + brcm,function = <4>; /* alt0 */
137 - i2c_pins_28_29 = <0>,"+4-5";
138 + i2c_pins_0_1 = <0>,"-4-5+6";
139 + i2c_pins_28_29 = <0>,"+4-5-6";
141 link-frequency = <&tc358743>,"link-frequencies#0";