1 From: Christian Lamparter <chunkeey@gmail.com>
2 Date: Sat, 12 Sep 2020 22:11:12 +0200
3 Subject: bcm53xx: Meraki MR32 use hw i2c
5 replace the i2c-gpio provided i2c functionality with the
6 hardware in the SoC. This can be activated once the
7 internal i2c works as well as the bit-banged i2c-gpio.
9 Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
11 --- a/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
12 +++ b/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
14 max-brightness = <255>;
20 - * The platform provided I2C does not budge.
21 - * This is a replacement until I can figure
22 - * out what are the missing bits...
25 - compatible = "i2c-gpio";
26 - sda-gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
27 - scl-gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
28 - i2c-gpio,delay-us = <10>; /* close to 100 kHz */
29 - #address-cells = <1>;
32 - current_sense: ina219@45 {
33 - compatible = "ti,ina219";
35 - shunt-resistor = <60000>; /* = 60 mOhms */
39 - compatible = "atmel,24c64";
43 - #address-cells = <1>;
46 - mac_address: mac-address@66 {
62 + pinctrl-names = "default";
63 + pinctrl-0 = <&pinmux_i2c>;
65 + clock-frequency = <100000>;
67 + current_sense: ina219@45 {
68 + compatible = "ti,ina219";
70 + shunt-resistor = <60000>; /* = 60 mOhms */
74 + compatible = "atmel,24c64";
78 + #address-cells = <1>;
81 + mac_address: mac-address@66 {