realtek: rtl931x: fix I2C sda pin

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>
This commit is contained in:
Jonas Jelonek 2025-06-16 19:57:27 +00:00 committed by Hauke Mehrtens
parent 24d9fdff2e
commit 0bd5d5f748
2 changed files with 2 additions and 2 deletions

View 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,

View 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,