bmips: intento-xg6846: Add EEPROM node inteno-xg6846
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 25 Apr 2024 20:31:21 +0000 (22:31 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 25 Apr 2024 20:31:21 +0000 (22:31 +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 775afa25603b2f505b2bd7de7bc79507e1ff7a51..85f22e341d0254f7a2afb6b2a4f34d0b874a0179 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) */