bmips: inteno-xg6846: Add EEPROM node
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 14 Aug 2024 08:26:25 +0000 (10:26 +0200)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Wed, 14 Aug 2024 09:29:40 +0000 (11:29 +0200)
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@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
target/linux/bmips/dts/bcm6328-inteno-xg6846.dts

index 4079bfff1782bb5b1946df1fb974155e574523a5..94e57dcb0d4960db6529bc71534410071ba54580 100644 (file)
                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) */