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>
master
DENG Qingfang 4 years ago committed by Chuanhong Guo
parent 5acd1ed0be
commit 53b66248f4

@ -5,18 +5,13 @@
/ { / {
model = "UBNT-ERX-SFP"; model = "UBNT-ERX-SFP";
compatible = "ubiquiti,edgerouterx-sfp", "mediatek,mt7621-soc"; compatible = "ubiquiti,edgerouterx-sfp", "mediatek,mt7621-soc";
};
i2c-gpio { &i2c {
compatible = "i2c-gpio"; status = "okay";
gpios = <&gpio 3 GPIO_ACTIVE_HIGH /* sda */
&gpio 4 GPIO_ACTIVE_HIGH /* scl */
>;
#address-cells = <1>;
#size-cells = <0>;
pca9555@25 { pca9555@25 {
compatible = "pca9555"; compatible = "nxp,pca9555";
reg = <0x25>; reg = <0x25>;
};
}; };
}; };

@ -109,7 +109,7 @@
&state_default { &state_default {
gpio { gpio {
groups = "uart2", "uart3", "i2c", "pcie", "rgmii2", "jtag"; groups = "uart2", "uart3", "pcie", "rgmii2", "jtag";
function = "gpio"; function = "gpio";
}; };
}; };

@ -785,7 +785,7 @@ define Device/ubiquiti_edgerouterx-sfp
$(Device/ubiquiti_edgerouterx) $(Device/ubiquiti_edgerouterx)
DEVICE_VENDOR := Ubiquiti DEVICE_VENDOR := Ubiquiti
DEVICE_MODEL := EdgeRouter X-SFP DEVICE_MODEL := EdgeRouter X-SFP
DEVICE_PACKAGES += kmod-i2c-algo-pca kmod-gpio-pca953x kmod-i2c-gpio-custom DEVICE_PACKAGES += kmod-i2c-algo-pca kmod-gpio-pca953x
SUPPORTED_DEVICES += ubnt-erx-sfp SUPPORTED_DEVICES += ubnt-erx-sfp
endef endef
TARGET_DEVICES += ubiquiti_edgerouterx-sfp TARGET_DEVICES += ubiquiti_edgerouterx-sfp

Loading…
Cancel
Save