ipq806x: fix i2c support for m520

dmesg:
  [   15.868426] lm75 0-0048: hwmon0: sensor 'lm75'
  [   15.922580] Bluetooth: RFCOMM TTY layer initialized
  [   15.922610] Bluetooth: RFCOMM socket layer initialized
  [   15.926267] Bluetooth: RFCOMM ver 1.11
  [   15.939812] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as
  rtc0

Signed-off-by: AmadeusGhost <amadeus@jmu.edu.cn>
This commit is contained in:
AmadeusGhost 2020-03-23 19:28:37 +08:00
parent ca4a82b31a
commit b63e2effbd
2 changed files with 42 additions and 20 deletions

View File

@ -134,19 +134,11 @@
};
};
gsbi@16300000 {
gsbi2: gsbi@12480000 {
qcom,mode = <GSBI_PROT_I2C_UART>;
status = "ok";
serial@16340000 {
status = "ok";
};
};
gsbi5: gsbi@1a200000 {
qcom,mode = <GSBI_PROT_SPI>;
status = "ok";
i2c@1a280000 {
i2c@124a0000 {
status = "ok";
lm75@48 {
@ -161,6 +153,25 @@
reg = <0x51>;
};
};
};
gsbi@16300000 {
qcom,mode = <GSBI_PROT_I2C_UART>;
status = "ok";
serial@16340000 {
status = "ok";
};
/*
* The i2c device on gsbi4 should not be enabled.
* On ipq806x designs gsbi4 i2c is meant for exclusive
* RPM usage. Turning this on in kernel manifests as
* i2c failure for the RPM.
*/
};
gsbi5: gsbi@1a200000 {
qcom,mode = <GSBI_PROT_SPI>;
status = "ok";
spi4: spi@1a280000 {
status = "ok";

View File

@ -134,19 +134,11 @@
};
};
gsbi@16300000 {
gsbi2: gsbi@12480000 {
qcom,mode = <GSBI_PROT_I2C_UART>;
status = "ok";
serial@16340000 {
status = "ok";
};
};
gsbi5: gsbi@1a200000 {
qcom,mode = <GSBI_PROT_SPI>;
status = "ok";
i2c@1a280000 {
i2c@124a0000 {
status = "ok";
lm75@48 {
@ -161,6 +153,25 @@
reg = <0x51>;
};
};
};
gsbi@16300000 {
qcom,mode = <GSBI_PROT_I2C_UART>;
status = "ok";
serial@16340000 {
status = "ok";
};
/*
* The i2c device on gsbi4 should not be enabled.
* On ipq806x designs gsbi4 i2c is meant for exclusive
* RPM usage. Turning this on in kernel manifests as
* i2c failure for the RPM.
*/
};
gsbi5: gsbi@1a200000 {
qcom,mode = <GSBI_PROT_SPI>;
status = "ok";
spi4: spi@1a280000 {
status = "ok";