diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2019-12-13 11:51:02 -0800 |
---|---|---|
committer | Florian Fainelli <f.fainelli@gmail.com> | 2019-12-16 16:15:52 -0800 |
commit | 030cc6cb1b6ccc09b74a7957958559dee00ec038 (patch) | |
tree | 36c724633ef9e12a5e981951df2c097a342486dd /arch/arm/boot/dts/bcm958625hr.dts | |
parent | e42617b825f8073569da76dc4510bfa019b1c35a (diff) | |
download | lwn-030cc6cb1b6ccc09b74a7957958559dee00ec038.tar.gz lwn-030cc6cb1b6ccc09b74a7957958559dee00ec038.zip |
ARM: dts: NSP: Use hardware I2C for BCM958625HR
Now that the i2c-bcm-iproc driver has been fixed to permit reading more
than 63 bytes in a single transaction with commit fd01eecdf959 ("i2c:
iproc: Fix i2c master read more than 63 bytes") we no longer need to
bitbang i2c over GPIOs which was necessary before to allow the
PHYLINK/SFP subsystems to read SFP modules.
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'arch/arm/boot/dts/bcm958625hr.dts')
-rw-r--r-- | arch/arm/boot/dts/bcm958625hr.dts | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/arch/arm/boot/dts/bcm958625hr.dts b/arch/arm/boot/dts/bcm958625hr.dts index a2c9de35ddfb..536fb24f38bb 100644 --- a/arch/arm/boot/dts/bcm958625hr.dts +++ b/arch/arm/boot/dts/bcm958625hr.dts @@ -55,18 +55,9 @@ priority = <200>; }; - /* Hardware I2C block cannot do more than 63 bytes per transfer, - * which would prevent reading from a SFP's EEPROM (256 byte). - */ - i2c1: i2c { - compatible = "i2c-gpio"; - sda-gpios = <&gpioa 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; - scl-gpios = <&gpioa 4 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; - }; - sfp: sfp { compatible = "sff,sfp"; - i2c-bus = <&i2c1>; + i2c-bus = <&i2c0>; mod-def0-gpios = <&gpioa 28 GPIO_ACTIVE_LOW>; los-gpios = <&gpioa 24 GPIO_ACTIVE_HIGH>; tx-fault-gpios = <&gpioa 30 GPIO_ACTIVE_HIGH>; @@ -74,6 +65,10 @@ }; }; +&i2c0 { + status = "okay"; +}; + &amac0 { status = "okay"; }; |