qcom-ipq8064-asus-onhub.dts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright 2014 The ChromiumOS Authors
  4. */
  5. #include "qcom-ipq8064-onhub.dtsi"
  6. #include <dt-bindings/gpio/gpio.h>
  7. #include <dt-bindings/leds/common.h>
  8. #include <dt-bindings/soc/qcom,gsbi.h>
  9. / {
  10. model = "ASUS OnHub";
  11. compatible = "asus,onhub", "google,arkham", "qcom,ipq8064";
  12. };
  13. &qcom_pinmux {
  14. ap3223_pins: ap3223_pinmux {
  15. pins = "gpio22";
  16. function = "gpio";
  17. bias-none;
  18. };
  19. i2c7_pins: i2c7_pinmux {
  20. mux {
  21. pins = "gpio8", "gpio9";
  22. function = "gsbi7";
  23. };
  24. data {
  25. pins = "gpio8";
  26. bias-disable;
  27. };
  28. clk {
  29. pins = "gpio9";
  30. bias-disable;
  31. };
  32. };
  33. };
  34. &gsbi7 {
  35. status = "okay";
  36. qcom,mode = <GSBI_PROT_I2C_UART>;
  37. };
  38. &gsbi7_i2c {
  39. status = "okay";
  40. clock-frequency = <100000>;
  41. pinctrl-0 = <&i2c7_pins>;
  42. pinctrl-names = "default";
  43. ap3223@1c {
  44. compatible = "dynaimage,ap3223";
  45. reg = <0x1c>;
  46. pinctrl-0 = <&ap3223_pins>;
  47. pinctrl-names = "default";
  48. int-gpio = <&qcom_pinmux 22 GPIO_ACTIVE_LOW>;
  49. };
  50. led-controller@32 {
  51. compatible = "national,lp5523";
  52. reg = <0x32>;
  53. clock-mode = /bits/ 8 <1>;
  54. #address-cells = <1>;
  55. #size-cells = <0>;
  56. led@4 {
  57. reg = <4>;
  58. color = <LED_COLOR_ID_GREEN>;
  59. chan-name = "green:status";
  60. linux,default-trigger = "default-on";
  61. led-cur = /bits/ 8 <0xfa>;
  62. max-cur = /bits/ 8 <0xff>;
  63. };
  64. led@5 {
  65. reg = <5>;
  66. color = <LED_COLOR_ID_BLUE>;
  67. chan-name = "blue:status";
  68. led-cur = /bits/ 8 <0xfa>;
  69. max-cur = /bits/ 8 <0xff>;
  70. };
  71. led@8 {
  72. reg = <8>;
  73. color = <LED_COLOR_ID_RED>;
  74. chan-name = "red:status";
  75. led-cur = /bits/ 8 <0xfa>;
  76. max-cur = /bits/ 8 <0xff>;
  77. };
  78. };
  79. };