023-ARM-dts-ipq806x-Disable-i2c-device-on-gsbi4.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --- a/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
  2. +++ b/arch/arm/boot/dts/qcom-ipq8064-ap148.dts
  3. @@ -46,15 +46,12 @@
  4. serial@16340000 {
  5. status = "ok";
  6. };
  7. -
  8. - i2c4: i2c@16380000 {
  9. - status = "ok";
  10. -
  11. - clock-frequency = <200000>;
  12. -
  13. - pinctrl-0 = <&i2c4_pins>;
  14. - pinctrl-names = "default";
  15. - };
  16. + /*
  17. + * The i2c device on gsbi4 should not be enabled.
  18. + * On ipq806x designs gsbi4 i2c is meant for exclusive
  19. + * RPM usage. Turning this on in kernel manifests as
  20. + * i2c failure for the RPM.
  21. + */
  22. };
  23. gsbi5: gsbi@1a200000 {
  24. --- a/drivers/clk/qcom/gcc-ipq806x.c
  25. +++ b/drivers/clk/qcom/gcc-ipq806x.c
  26. @@ -794,7 +794,7 @@ static struct clk_rcg gsbi7_qup_src = {
  27. .parent_names = gcc_pxo_pll8,
  28. .num_parents = 2,
  29. .ops = &clk_rcg_ops,
  30. - .flags = CLK_SET_PARENT_GATE,
  31. + .flags = CLK_SET_PARENT_GATE | CLK_IGNORE_UNUSED,
  32. },
  33. },
  34. };
  35. @@ -810,7 +810,7 @@ static struct clk_branch gsbi7_qup_clk =
  36. .parent_names = (const char *[]){ "gsbi7_qup_src" },
  37. .num_parents = 1,
  38. .ops = &clk_branch_ops,
  39. - .flags = CLK_SET_RATE_PARENT,
  40. + .flags = CLK_SET_RATE_PARENT | CLK_IGNORE_UNUSED,
  41. },
  42. },
  43. };
  44. @@ -858,7 +858,7 @@ static struct clk_branch gsbi4_h_clk = {
  45. .hw.init = &(struct clk_init_data){
  46. .name = "gsbi4_h_clk",
  47. .ops = &clk_branch_ops,
  48. - .flags = CLK_IS_ROOT,
  49. + .flags = CLK_IS_ROOT | CLK_IGNORE_UNUSED,
  50. },
  51. },
  52. };