diff options
author | DENG Qingfang <dengqf6@mail2.sysu.edu.cn> | 2020-03-19 19:43:39 +0800 |
---|---|---|
committer | Chuanhong Guo <gch981213@gmail.com> | 2020-04-04 14:56:14 +0800 |
commit | 53b66248f4ad4767f19ff243d8f839d9dea15b00 (patch) | |
tree | 83b1aa195ea81af08b727ccc233a7338f9ddc558 /target/linux/ramips/dts/mt7621_ubiquiti_edgerouterx-sfp.dts | |
parent | 5acd1ed0be0d78847cd7d9d5599526f59babaf4d (diff) | |
download | upstream-53b66248f4ad4767f19ff243d8f839d9dea15b00.tar.gz upstream-53b66248f4ad4767f19ff243d8f839d9dea15b00.tar.bz2 upstream-53b66248f4ad4767f19ff243d8f839d9dea15b00.zip |
ramips: use SoC I2C instead of bitbanged for Ubiquiti ER-X-SFP
The original idea of bitbanged I2C is to use i2c-gpio-custom
Since i2c-gpio-custom is no longer available on 5.4, use SoC I2C instead
Signed-off-by: DENG Qingfang <dengqf6@mail2.sysu.edu.cn>
Diffstat (limited to 'target/linux/ramips/dts/mt7621_ubiquiti_edgerouterx-sfp.dts')
-rw-r--r-- | target/linux/ramips/dts/mt7621_ubiquiti_edgerouterx-sfp.dts | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/target/linux/ramips/dts/mt7621_ubiquiti_edgerouterx-sfp.dts b/target/linux/ramips/dts/mt7621_ubiquiti_edgerouterx-sfp.dts index c6a64c0528..b4deb490ed 100644 --- a/target/linux/ramips/dts/mt7621_ubiquiti_edgerouterx-sfp.dts +++ b/target/linux/ramips/dts/mt7621_ubiquiti_edgerouterx-sfp.dts @@ -5,18 +5,13 @@ / { model = "UBNT-ERX-SFP"; compatible = "ubiquiti,edgerouterx-sfp", "mediatek,mt7621-soc"; +}; - i2c-gpio { - compatible = "i2c-gpio"; - gpios = <&gpio 3 GPIO_ACTIVE_HIGH /* sda */ - &gpio 4 GPIO_ACTIVE_HIGH /* scl */ - >; - #address-cells = <1>; - #size-cells = <0>; +&i2c { + status = "okay"; - pca9555@25 { - compatible = "pca9555"; - reg = <0x25>; - }; + pca9555@25 { + compatible = "nxp,pca9555"; + reg = <0x25>; }; }; |