[openwrt/openwrt] bmips: inteno-xg6846: Add EEPROM node

LEDE Commits lede-commits at lists.infradead.org
Wed Aug 14 10:38:40 PDT 2024


noltari pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/fb2eabfd6b6e9e02dda659668fb91d5a02e9e652

commit fb2eabfd6b6e9e02dda659668fb91d5a02e9e652
Author: Linus Walleij <linus.walleij at linaro.org>
AuthorDate: Wed Aug 14 10:26:25 2024 +0200

    bmips: inteno-xg6846: Add EEPROM node
    
    For some troublesome devices it is necessary to obtain direct access
    to the SFP module EEPROM so define it in the device tree.
    
    Suggested-by: Paul Donald <newtwen at gmail.com>
    Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
---
 target/linux/bmips/dts/bcm6328-inteno-xg6846.dts | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/target/linux/bmips/dts/bcm6328-inteno-xg6846.dts b/target/linux/bmips/dts/bcm6328-inteno-xg6846.dts
index 4079bfff17..94e57dcb0d 100644
--- a/target/linux/bmips/dts/bcm6328-inteno-xg6846.dts
+++ b/target/linux/bmips/dts/bcm6328-inteno-xg6846.dts
@@ -40,6 +40,12 @@
 		scl-gpios = <&gpio 19 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>;
 		#address-cells = <1>;
 		#size-cells = <0>;
+
+		sfp_eeprom: eeprom at 50 {
+			compatible = "atmel,24c02";
+			reg = <0x50>;
+			read-only;
+		};
 	};
 
 	/* This I2C bus is used for the external CATV connector (usually unused) */




More information about the lede-commits mailing list