]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: rockchip: Add EEPROMs for Radxa rk35xx boards
authorFUKAUMI Naoki <naoki@radxa.com>
Tue, 2 Dec 2025 08:49:41 +0000 (08:49 +0000)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 22 Dec 2025 13:28:54 +0000 (14:28 +0100)
The BL24C16A EEPROM is found in the schematics for Radxa CM3I, Radxa
ROCK 3A, 3B, 5B+, and 5T. [1] [2] [3] [4] [5]

The BL24C16F EEPROM is found in the schematic for Radxa ROCK 4D. [6]

Add these eeprom nodes.

These are designed to have data written during factory programming
(regardless of whether data is actually written or not), and we at
Radxa permit users to read the data but not write to it. [8]
Therefore, we will add a read-only property to the eeprom node.

[1] https://dl.radxa.com/cm3i/docs/hw/radxa_cm3i_v1310_schematic.pdf p.8
[2] https://dl.radxa.com/rock3/docs/hw/3a/radxa_rock_3a_v1310_schematic.pdf p.7
[3] https://dl.radxa.com/rock3/docs/hw/3b/Radxa_ROCK_3B_V1.51_SCH.pdf p.35
[4] https://dl.radxa.com/rock5/5b+/docs/hw/radxa_rock5bp_v1.2_schematic.pdf p.29
[5] https://dl.radxa.com/rock5/5t/docs/hw/radxa_rock5t_schematic_v1.2_20250109.pdf p.36
[6] https://dl.radxa.com/rock4/4d/docs/hw/Radxa_ROCK_4D_SCH_V1.12.pdf p.23
[7] https://github.com/radxa/u-boot/blob/next-dev-v2024.10/drivers/misc/radxa-i2c-eeprom.c

Signed-off-by: FUKAUMI Naoki <naoki@radxa.com>
Link: https://patch.msgid.link/20251202084941.1785-4-naoki@radxa.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3568-radxa-cm3i.dtsi
arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts
arch/arm64/boot/dts/rockchip/rk3568-rock-3b.dts
arch/arm64/boot/dts/rockchip/rk3576-rock-4d.dts
arch/arm64/boot/dts/rockchip/rk3588-rock-5b-plus.dts
arch/arm64/boot/dts/rockchip/rk3588-rock-5t.dts

index 729e38b9f620eb1e49b74c7e558685f427c4ccff..f97a0eb7f7c0853b3918c15e8b17dd300e1e827b 100644 (file)
                                };
                        };
 
-                       vcc_3v3: SWITCH_REG1 {
+                       gpio_vref: vcc_3v3: SWITCH_REG1 {
                                regulator-name = "vcc_3v3";
                                regulator-always-on;
                                regulator-boot-on;
                        };
                };
        };
+
+       eeprom@50 {
+               compatible = "belling,bl24c16a", "atmel,24c16";
+               reg = <0x50>;
+               pagesize = <16>;
+               read-only;
+               vcc-supply = <&gpio_vref>;
+       };
 };
 
 &pinctrl {
index 44cfdfeed6681388202fa8f91683d1b86f3f8d54..9214e38648f257e8c349a265e48b202c6c87ec84 100644 (file)
                        };
                };
        };
+
+       eeprom@50 {
+               compatible = "belling,bl24c16a", "atmel,24c16";
+               reg = <0x50>;
+               pagesize = <16>;
+               read-only;
+               vcc-supply = <&vcc3v3_pmu>;
+       };
 };
 
 &i2c3 {
index 3d0c1ccfaa79635c05c7e1526e30f8d02695aa84..69001e453732ecf714fe0bf9cd159dd12ce8d8c2 100644 (file)
                        };
                };
        };
+
+       eeprom@50 {
+               compatible = "belling,bl24c16a", "atmel,24c16";
+               reg = <0x50>;
+               pagesize = <16>;
+               read-only;
+               vcc-supply = <&vcc3v3_sys>;
+       };
 };
 
 &i2c5 {
index 7023dc326d0e81bf7f01a690829ad2948e0db40e..899a84b1fbf9e8ad852c1f90be7ef593a62cdd73 100644 (file)
        };
 };
 
+&i2c6 {
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c6m3_xfer>;
+       status = "okay";
+
+       eeprom@50 {
+               compatible = "belling,bl24c16f", "atmel,24c16";
+               reg = <0x50>;
+               pagesize = <16>;
+               read-only;
+               vcc-supply = <&vcc_3v3_s3>;
+       };
+};
+
 &mdio0 {
        rgmii_phy0: ethernet-phy@1 {
                compatible = "ethernet-phy-id001c.c916";
index 07a840d9b385959d7e4d07aa70a077b85c444656..30d15c7e860a3a9c4d8ffcf243c6cd7b242f3b58 100644 (file)
        };
 };
 
+&i2c1 {
+       eeprom@50 {
+               compatible = "belling,bl24c16a", "atmel,24c16";
+               reg = <0x50>;
+               pagesize = <16>;
+               read-only;
+               vcc-supply = <&vcc_3v3_s3>;
+       };
+};
+
 &pcie30phy {
        data-lanes = <1 1 2 2>;
 };
index 0dd90c744380b7797beaaad3082b2da2d88cb35a..425036146b6d951b7703dd10faaf8f211d059c35 100644 (file)
        status = "okay";
 };
 
+&i2c1 {
+       eeprom@50 {
+               compatible = "belling,bl24c16a", "atmel,24c16";
+               reg = <0x50>;
+               pagesize = <16>;
+               read-only;
+               vcc-supply = <&vcc_3v3_s3>;
+       };
+};
+
 &pcie2x1l1 {
        pinctrl-names = "default";
        pinctrl-0 = <&pcie2_1_rst>;