qcom-ipq8064-asus-onhub.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. chosen {
  13. bootargs-append = " rootwait";
  14. };
  15. };
  16. &qcom_pinmux {
  17. ap3223_pins: ap3223_pinmux {
  18. pins = "gpio22";
  19. function = "gpio";
  20. bias-none;
  21. };
  22. i2c7_pins: i2c7_pinmux {
  23. mux {
  24. pins = "gpio8", "gpio9";
  25. function = "gsbi7";
  26. };
  27. data {
  28. pins = "gpio8";
  29. bias-disable;
  30. };
  31. clk {
  32. pins = "gpio9";
  33. bias-disable;
  34. };
  35. };
  36. };
  37. &gsbi7 {
  38. status = "okay";
  39. qcom,mode = <GSBI_PROT_I2C_UART>;
  40. };
  41. &gsbi7_i2c {
  42. status = "okay";
  43. clock-frequency = <100000>;
  44. pinctrl-0 = <&i2c7_pins>;
  45. pinctrl-names = "default";
  46. ap3223@1c {
  47. compatible = "dynaimage,ap3223";
  48. reg = <0x1c>;
  49. pinctrl-0 = <&ap3223_pins>;
  50. pinctrl-names = "default";
  51. int-gpio = <&qcom_pinmux 22 GPIO_ACTIVE_LOW>;
  52. };
  53. led-controller@32 {
  54. compatible = "national,lp5523";
  55. reg = <0x32>;
  56. clock-mode = /bits/ 8 <1>;
  57. #address-cells = <1>;
  58. #size-cells = <0>;
  59. led@4 {
  60. reg = <4>;
  61. color = <LED_COLOR_ID_GREEN>;
  62. chan-name = "green:status";
  63. linux,default-trigger = "default-on";
  64. led-cur = /bits/ 8 <0xfa>;
  65. max-cur = /bits/ 8 <0xff>;
  66. };
  67. led@5 {
  68. reg = <5>;
  69. color = <LED_COLOR_ID_BLUE>;
  70. chan-name = "blue:status";
  71. led-cur = /bits/ 8 <0xfa>;
  72. max-cur = /bits/ 8 <0xff>;
  73. };
  74. led@8 {
  75. reg = <8>;
  76. color = <LED_COLOR_ID_RED>;
  77. chan-name = "red:status";
  78. led-cur = /bits/ 8 <0xfa>;
  79. max-cur = /bits/ 8 <0xff>;
  80. };
  81. };
  82. };