ath79: fix I2C on GL-AR300M devices
authorPtilopsis Leucotis <PtilopsisLeucotis@yandex.com>
Wed, 11 May 2022 16:55:05 +0000 (19:55 +0300)
committerChristian Lamparter <chunkeey@gmail.com>
Sun, 15 May 2022 14:06:20 +0000 (16:06 +0200)
commit57efdd6a2d815d2491c5b7f22ffaeb6a845bfd0a
tree4e2154b35ca2b1cdf063cd185adf67ad473b7f95
parent3e300e724b674b299d055d172a268c8cfa8489d2
ath79: fix I2C on GL-AR300M devices

On GL-AR300M Series GPIO17 described as I2C SDA in Device Tree.
Because of GPIO_OUT_FUNCTION4 register was not initialized on start,
GPIO17 was uncontrollable, it always in high state. According to QCA9531
documentation, default setting of GPIO17 is SYS_RST_L. In order to make
GPIO17 controllable, it should write value 0x00 on bits [15:8] of
GPIO_OUT_FUNCTION4 register, located at 0x1804003C address.

Signed-off-by: Ptilopsis Leucotis <PtilopsisLeucotis@yandex.com>
target/linux/ath79/dts/qca9531_glinet_gl-ar300m.dtsi