Advertisement
z3ntu

synaptics v1

Feb 28th, 2018
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.61 KB | None | 0 0
  1. diff --git a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts
  2. index 4642435fa551..0ea2744fce93 100644
  3. --- a/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts
  4. +++ b/arch/arm/boot/dts/qcom-msm8974-fairphone-fp2.dts
  5. @@ -283,7 +283,57 @@
  6.         pinctrl-0 = <&wcnss_pin_a>;
  7.     };
  8.  
  9. +   i2c@f9924000 {
  10. +       status = "ok";
  11. +
  12. +       clock-frequency = <384000>;
  13. +       qcom,src-freq = <19200000>;
  14. +
  15. +       pinctrl-names = "default";
  16. +       pinctrl-0 = <&i2c2_pins>;
  17. +
  18. +       synaptics@20 {
  19. +           compatible = "syna,rmi-i2c";
  20. +           reg = <0x20>;
  21. +
  22. +           interrupt-parent = <&msmgpio>;
  23. +           interrupts-extended = <&msmgpio 28 IRQ_TYPE_EDGE_FALLING>;
  24. +
  25. +           #address-cells = <1>;
  26. +           #size-cells = <0>;
  27. +
  28. +           vdd-supply = <&pm8941_s3>;
  29. +//             vio-supply = <&pm8941_lvs3>;
  30. +
  31. +           pinctrl-names = "default";
  32. +           pinctrl-0 = <&ts_int_pin>;
  33. +
  34. +           syna,startup-delay-ms = <160>;
  35. +
  36. +//             rmi4-f01@1 {
  37. +//                 reg = <0x1>;
  38. +//                 syna,nosleep-mode = <1>;
  39. +//             };
  40. +//
  41. +//             rmi4-f11@11 {
  42. +//                 reg = <0x11>;
  43. +//                 touchscreen-inverted-x;
  44. +//                 syna,sensor-type = <1>;
  45. +//             };
  46. +       };
  47. +   };
  48. +
  49.     pinctrl@fd510000 {
  50. +       i2c2_pins: i2c2 {
  51. +           mux {
  52. +               pins = "gpio55", "gpio28";
  53. +               function = "blsp_i2c2";
  54. +
  55. +               drive-strength = <16>;
  56. +               bias-pull-up;
  57. +           };
  58. +       };
  59. +
  60.         sdhc1_pin_a: sdhc1-pin-active {
  61.             clk {
  62.                 pins = "sdc1_clk";
  63. @@ -361,6 +411,17 @@
  64.                 bias-pull-down;
  65.             };
  66.         };
  67. +
  68. +       ts_int_pin: touch-int {
  69. +           pin {
  70. +               pins = "gpio28";
  71. +               function = "gpio";
  72. +
  73. +               drive-strength = <16>;
  74. +
  75. +               bias-pull-up;
  76. +           };
  77. +       };
  78.     };
  79.  
  80.     sdhci@f9824900 {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement