Browse Source

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 <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
Linus Walleij 1 year ago
parent
commit
fb2eabfd6b
1 changed files with 6 additions and 0 deletions
  1. 6 0
      target/linux/bmips/dts/bcm6328-inteno-xg6846.dts

+ 6 - 0
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@50 {
+			compatible = "atmel,24c02";
+			reg = <0x50>;
+			read-only;
+		};
 	};
 
 	/* This I2C bus is used for the external CATV connector (usually unused) */