OpenWrt – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 From 3826d26d2a41f03c82c45465ff4759891c1688c6 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Mon, 19 Feb 2018 17:29:15 +0000
4 Subject: [PATCH 222/454] overlays: i2c-gpio: Support for multiple instances
5  
6 Add a 'bus' parameter that, if set to a unique, non-zero
7 value, allows multiple i2c-gpio instances to coexist. The chosen
8 value doesn't determine the /dev/i2c-* value, but starting with
9 1 or 2 and counting upwards seems sensible. N.B. The bus parameter
10 has a default value of zero, so one instance doesn't need to specify
11 a value.
12  
13 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
14 ---
15 arch/arm/boot/dts/overlays/README | 3 +++
16 arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts | 2 +-
17 2 files changed, 4 insertions(+), 1 deletion(-)
18  
19 --- a/arch/arm/boot/dts/overlays/README
20 +++ b/arch/arm/boot/dts/overlays/README
21 @@ -693,6 +693,9 @@ Params: i2c_gpio_sda GPIO use
22 i2c_gpio_delay_us Clock delay in microseconds
23 (default "2" = ~100kHz)
24  
25 + bus Set to a unique, non-zero value if wanting
26 + multiple i2c-gpio busses (default "0")
27 +
28  
29 Name: i2c-mux
30 Info: Adds support for a number of I2C bus multiplexers on i2c_arm
31 --- a/arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
32 +++ b/arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
33 @@ -38,6 +38,6 @@
34 i2c_gpio_sda = <&i2c_gpio>,"gpios:4";
35 i2c_gpio_scl = <&i2c_gpio>,"gpios:16";
36 i2c_gpio_delay_us = <&i2c_gpio>,"i2c-gpio,delay-us:0";
37 + bus = <&i2c_gpio>, "reg:0";
38 };
39 };
40 -