qcom,serial-geni-qcom.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/serial/qcom,serial-geni-qcom.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Qualcomm Geni based QUP UART interface
  7. maintainers:
  8. - Andy Gross <agross@kernel.org>
  9. - Bjorn Andersson <bjorn.andersson@linaro.org>
  10. allOf:
  11. - $ref: /schemas/serial/serial.yaml#
  12. properties:
  13. compatible:
  14. enum:
  15. - qcom,geni-uart
  16. - qcom,geni-debug-uart
  17. clocks:
  18. maxItems: 1
  19. clock-names:
  20. const: se
  21. interconnects:
  22. maxItems: 2
  23. interconnect-names:
  24. items:
  25. - const: qup-core
  26. - const: qup-config
  27. interrupts:
  28. minItems: 1
  29. items:
  30. - description: UART core irq
  31. - description: Wakeup irq (RX GPIO)
  32. operating-points-v2: true
  33. pinctrl-0: true
  34. pinctrl-1: true
  35. pinctrl-names:
  36. minItems: 1
  37. items:
  38. - const: default
  39. - const: sleep
  40. power-domains:
  41. maxItems: 1
  42. reg:
  43. maxItems: 1
  44. required:
  45. - compatible
  46. - clocks
  47. - clock-names
  48. - interrupts
  49. - reg
  50. unevaluatedProperties: false
  51. examples:
  52. - |
  53. #include <dt-bindings/interrupt-controller/arm-gic.h>
  54. #include <dt-bindings/clock/qcom,gcc-sc7180.h>
  55. #include <dt-bindings/interconnect/qcom,sc7180.h>
  56. serial@a88000 {
  57. compatible = "qcom,geni-uart";
  58. reg = <0xa88000 0x7000>;
  59. interrupts = <GIC_SPI 355 IRQ_TYPE_LEVEL_HIGH>;
  60. clock-names = "se";
  61. clocks = <&gcc GCC_QUPV3_WRAP0_S0_CLK>;
  62. pinctrl-0 = <&qup_uart0_default>;
  63. pinctrl-names = "default";
  64. interconnects = <&qup_virt MASTER_QUP_CORE_0 0 &qup_virt SLAVE_QUP_CORE_0 0>,
  65. <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_QUP_0 0>;
  66. interconnect-names = "qup-core", "qup-config";
  67. };
  68. ...