1 From 73d2665f0756435e50bb94039a28d47f6134bcb9 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Mon, 5 Aug 2019 14:17:14 +0100
4 Subject: [PATCH 748/773] overlays: Add baudrate parameter to i2c3-i2c6
6 The overlays for enabling the new BCM2711 I2C interfaces were lacking
7 the means to configure the baud/clock rate.
9 Also explictly set the default pins, rather than relying on the values
12 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
14 arch/arm/boot/dts/overlays/README | 8 ++++++++
15 arch/arm/boot/dts/overlays/i2c3-overlay.dts | 15 ++++++++++++---
16 arch/arm/boot/dts/overlays/i2c4-overlay.dts | 15 ++++++++++++---
17 arch/arm/boot/dts/overlays/i2c5-overlay.dts | 15 ++++++++++++---
18 arch/arm/boot/dts/overlays/i2c6-overlay.dts | 15 ++++++++++++---
19 5 files changed, 56 insertions(+), 12 deletions(-)
21 --- a/arch/arm/boot/dts/overlays/README
22 +++ b/arch/arm/boot/dts/overlays/README
23 @@ -1221,6 +1221,8 @@ Info: Enable the i2c3 bus
24 Load: dtoverlay=i2c3,<param>
25 Params: pins_2_3 Use GPIOs 2 and 3
26 pins_4_5 Use GPIOs 4 and 5 (default)
27 + baudrate Set the baudrate for the interface (default
32 @@ -1228,6 +1230,8 @@ Info: Enable the i2c4 bus
33 Load: dtoverlay=i2c4,<param>
34 Params: pins_6_7 Use GPIOs 6 and 7
35 pins_8_9 Use GPIOs 8 and 9 (default)
36 + baudrate Set the baudrate for the interface (default
41 @@ -1235,6 +1239,8 @@ Info: Enable the i2c5 bus
42 Load: dtoverlay=i2c5,<param>
43 Params: pins_10_11 Use GPIOs 10 and 11
44 pins_12_13 Use GPIOs 12 and 13 (default)
45 + baudrate Set the baudrate for the interface (default
50 @@ -1242,6 +1248,8 @@ Info: Enable the i2c6 bus
51 Load: dtoverlay=i2c6,<param>
52 Params: pins_0_1 Use GPIOs 0 and 1
53 pins_22_23 Use GPIOs 22 and 23 (default)
54 + baudrate Set the baudrate for the interface (default
59 --- a/arch/arm/boot/dts/overlays/i2c3-overlay.dts
60 +++ b/arch/arm/boot/dts/overlays/i2c3-overlay.dts
66 + frag0: __overlay__ {
68 pinctrl-names = "default";
69 pinctrl-0 = <&i2c3_pins>;
70 + clock-frequency = <100000>;
79 + target = <&i2c3_pins>;
86 - pins_2_3 = <0>,"=1";
87 - pins_4_5 = <0>,"!1";
88 + pins_2_3 = <0>,"=1!2";
89 + pins_4_5 = <0>,"!1=2";
90 + baudrate = <&frag0>, "clock-frequency:0";
93 --- a/arch/arm/boot/dts/overlays/i2c4-overlay.dts
94 +++ b/arch/arm/boot/dts/overlays/i2c4-overlay.dts
100 + frag0: __overlay__ {
102 pinctrl-names = "default";
103 pinctrl-0 = <&i2c4_pins>;
104 + clock-frequency = <100000>;
113 + target = <&i2c4_pins>;
120 - pins_6_7 = <0>,"=1";
121 - pins_8_9 = <0>,"!1";
122 + pins_6_7 = <0>,"=1!2";
123 + pins_8_9 = <0>,"!1=2";
124 + baudrate = <&frag0>, "clock-frequency:0";
127 --- a/arch/arm/boot/dts/overlays/i2c5-overlay.dts
128 +++ b/arch/arm/boot/dts/overlays/i2c5-overlay.dts
134 + frag0: __overlay__ {
136 pinctrl-names = "default";
137 pinctrl-0 = <&i2c5_pins>;
138 + clock-frequency = <100000>;
147 + target = <&i2c5_pins>;
149 + brcm,pins = <12 13>;
154 - pins_10_11 = <0>,"=1";
155 - pins_12_13 = <0>,"!1";
156 + pins_10_11 = <0>,"=1!2";
157 + pins_12_13 = <0>,"!1=2";
158 + baudrate = <&frag0>, "clock-frequency:0";
161 --- a/arch/arm/boot/dts/overlays/i2c6-overlay.dts
162 +++ b/arch/arm/boot/dts/overlays/i2c6-overlay.dts
168 + frag0: __overlay__ {
170 pinctrl-names = "default";
171 pinctrl-0 = <&i2c6_pins>;
172 + clock-frequency = <100000>;
181 + target = <&i2c6_pins>;
183 + brcm,pins = <22 23>;
188 - pins_0_1 = <0>,"=1";
189 - pins_22_23 = <0>,"!1";
190 + pins_0_1 = <0>,"=1!2";
191 + pins_22_23 = <0>,"!1=2";
192 + baudrate = <&frag0>, "clock-frequency:0";