qcom-ipq8064-v1.0.dtsi 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include "qcom-ipq8064.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. #include <dt-bindings/leds/common.h>
  5. / {
  6. model = "Qualcomm Technologies, Inc. IPQ8064-v1.0";
  7. aliases {
  8. serial0 = &gsbi4_serial;
  9. };
  10. chosen {
  11. stdout-path = "serial0:115200n8";
  12. };
  13. soc {
  14. gsbi@16300000 {
  15. qcom,mode = <GSBI_PROT_I2C_UART>;
  16. status = "okay";
  17. serial@16340000 {
  18. status = "okay";
  19. };
  20. };
  21. gsbi5: gsbi@1a200000 {
  22. qcom,mode = <GSBI_PROT_SPI>;
  23. status = "okay";
  24. spi4: spi@1a280000 {
  25. status = "okay";
  26. spi-max-frequency = <50000000>;
  27. pinctrl-0 = <&spi_pins>;
  28. pinctrl-names = "default";
  29. cs-gpios = <&qcom_pinmux 20 0>;
  30. flash: flash@0 {
  31. compatible = "s25fl256s1";
  32. #address-cells = <1>;
  33. #size-cells = <1>;
  34. spi-max-frequency = <50000000>;
  35. reg = <0>;
  36. partition@0 {
  37. label = "rootfs";
  38. reg = <0x0 0x1000000>;
  39. };
  40. partition@1 {
  41. label = "scratch";
  42. reg = <0x1000000 0x1000000>;
  43. };
  44. };
  45. };
  46. };
  47. sata-phy@1b400000 {
  48. status = "okay";
  49. };
  50. sata@29000000 {
  51. ports-implemented = <0x1>;
  52. status = "okay";
  53. };
  54. gpio-keys {
  55. compatible = "gpio-keys";
  56. pinctrl-0 = <&buttons_pins>;
  57. pinctrl-names = "default";
  58. button-1 {
  59. label = "reset";
  60. linux,code = <KEY_RESTART>;
  61. gpios = <&qcom_pinmux 54 GPIO_ACTIVE_LOW>;
  62. linux,input-type = <1>;
  63. debounce-interval = <60>;
  64. };
  65. button-2 {
  66. label = "wps";
  67. linux,code = <KEY_WPS_BUTTON>;
  68. gpios = <&qcom_pinmux 65 GPIO_ACTIVE_LOW>;
  69. linux,input-type = <1>;
  70. debounce-interval = <60>;
  71. };
  72. };
  73. leds {
  74. compatible = "gpio-leds";
  75. pinctrl-0 = <&leds_pins>;
  76. pinctrl-names = "default";
  77. led@7 {
  78. label = "led_usb1";
  79. gpios = <&qcom_pinmux 7 GPIO_ACTIVE_HIGH>;
  80. linux,default-trigger = "usbdev";
  81. default-state = "off";
  82. };
  83. led@8 {
  84. label = "led_usb3";
  85. gpios = <&qcom_pinmux 8 GPIO_ACTIVE_HIGH>;
  86. linux,default-trigger = "usbdev";
  87. default-state = "off";
  88. };
  89. led@9 {
  90. label = "status_led_fail";
  91. function = LED_FUNCTION_STATUS;
  92. gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
  93. default-state = "off";
  94. };
  95. led@26 {
  96. label = "sata_led";
  97. gpios = <&qcom_pinmux 26 GPIO_ACTIVE_HIGH>;
  98. default-state = "off";
  99. };
  100. led@53 {
  101. label = "status_led_pass";
  102. function = LED_FUNCTION_STATUS;
  103. gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
  104. default-state = "off";
  105. };
  106. };
  107. };
  108. };