]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: rtl931x: fix I2C sda pin 19171/head
authorJonas Jelonek <jelonek.jonas@gmail.com>
Mon, 16 Jun 2025 19:57:27 +0000 (19:57 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 19 Jun 2025 17:31:41 +0000 (19:31 +0200)
The drivers for I2C bus and mux for RTL931x have an incorrectly defined
SDA0 pin number, causing an error with correct pin numbers specified in
the device tree.

Using the `show tech-support board` on the vendor firmware of a Netgear
MS510TXM shows the correct pin numbers but they don't work with the
drivers. So fix this.

Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/19171
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/i2c/busses/i2c-rtl9300.c
target/linux/realtek/files-6.12/drivers/i2c/muxes/i2c-mux-rtl9300.c

index 49d7dbf98bd86468f4a163a9c450479845dd7ec3..c4d973195ef39dc56d6207e665d279745525fcac 100644 (file)
@@ -447,7 +447,7 @@ struct i2c_drv_data rtl9300_i2c_drv_data = {
 struct i2c_drv_data rtl9310_i2c_drv_data = {
        .scl0_pin = 13,
        .scl1_pin = 14,
-       .sda0_pin = 0,
+       .sda0_pin = 15,
        .read = rtl9310_i2c_read,
        .write = rtl9310_i2c_write,
        .reg_addr_set = rtl9310_i2c_reg_addr_set,
index a19a1a148e6f1e9aaf2cb0a17004c8e41adaa146..a57e9e29b1b1a2f3377a8ad5a2f203214368fa66 100644 (file)
@@ -149,7 +149,7 @@ struct i2c_mux_data rtl9300_i2c_mux_data = {
 struct i2c_mux_data rtl9310_i2c_mux_data = {
        .scl0_pin = 13,
        .scl1_pin = 14,
-       .sda0_pin = 0,
+       .sda0_pin = 15,
        .sda_pins = 16,
        .i2c_mux_select = rtl9310_i2c_mux_select,
        .i2c_mux_deselect = rtl9300_i2c_mux_deselect,