arm64: dts: exynos: gs101: enable eeprom on gs101-oriole
authorTudor Ambarus <tudor.ambarus@linaro.org>
Fri, 19 Jan 2024 11:11:32 +0000 (11:11 +0000)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tue, 23 Jan 2024 12:53:20 +0000 (13:53 +0100)
Enable the eeprom found on the battery connector.

The selection of the USI protocol is done in the board dts file because
the USI CONFIG register comes with a 0x0 reset value, meaning that USI8
does not have a default protocol (I2C, SPI, UART) at reset.

Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Tudor Ambarus <tudor.ambarus@linaro.org>
Link: https://lore.kernel.org/r/20240119111132.1290455-9-tudor.ambarus@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
arch/arm64/boot/dts/exynos/google/gs101-oriole.dts

index 4a71f752200df1eabd2de6f69be5ddfbbbb40643..cb4d17339b6b26952c152fb4429e8afa868316a2 100644 (file)
        clock-frequency = <200000000>;
 };
 
+&hsi2c_8 {
+       status = "okay";
+
+       eeprom: eeprom@50 {
+               compatible = "atmel,24c08";
+               reg = <0x50>;
+       };
+};
+
 &pinctrl_far_alive {
        key_voldown: key-voldown-pins {
                samsung,pins = "gpa7-3";
        status = "okay";
 };
 
+&usi8 {
+       samsung,mode = <USI_V2_I2C>;
+       status = "okay";
+};
+
 &watchdog_cl0 {
        timeout-sec = <30>;
        status = "okay";