qcom,spmi-pmic-arb.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. Qualcomm SPMI Controller (PMIC Arbiter)
  2. The SPMI PMIC Arbiter is found on Snapdragon chipsets. It is an SPMI
  3. controller with wrapping arbitration logic to allow for multiple on-chip
  4. devices to control a single SPMI master.
  5. The PMIC Arbiter can also act as an interrupt controller, providing interrupts
  6. to slave devices.
  7. See spmi.txt for the generic SPMI controller binding requirements for child
  8. nodes.
  9. See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt for
  10. generic interrupt controller binding documentation.
  11. Required properties:
  12. - compatible : should be "qcom,spmi-pmic-arb".
  13. - reg-names : must contain:
  14. "core" - core registers
  15. "intr" - interrupt controller registers
  16. "cnfg" - configuration registers
  17. Registers used only for V2 PMIC Arbiter:
  18. "chnls" - tx-channel per virtual slave registers.
  19. "obsrvr" - rx-channel (called observer) per virtual slave registers.
  20. - reg : address + size pairs describing the PMIC arb register sets; order must
  21. correspond with the order of entries in reg-names
  22. - #address-cells : must be set to 2
  23. - #size-cells : must be set to 0
  24. - qcom,ee : indicates the active Execution Environment identifier (0-5)
  25. - qcom,channel : which of the PMIC Arb provided channels to use for accesses (0-5)
  26. - interrupts : interrupt list for the PMIC Arb controller, must contain a
  27. single interrupt entry for the peripheral interrupt
  28. - interrupt-names : corresponding interrupt names for the interrupts
  29. listed in the 'interrupts' property, must contain:
  30. "periph_irq" - summary interrupt for PMIC peripherals
  31. - interrupt-controller : boolean indicator that the PMIC arbiter is an interrupt controller
  32. - #interrupt-cells : must be set to 4. Interrupts are specified as a 4-tuple:
  33. cell 1: slave ID for the requested interrupt (0-15)
  34. cell 2: peripheral ID for requested interrupt (0-255)
  35. cell 3: the requested peripheral interrupt (0-7)
  36. cell 4: interrupt flags indicating level-sense information, as defined in
  37. dt-bindings/interrupt-controller/irq.h
  38. Example:
  39. spmi {
  40. compatible = "qcom,spmi-pmic-arb";
  41. reg-names = "core", "intr", "cnfg";
  42. reg = <0xfc4cf000 0x1000>,
  43. <0xfc4cb000 0x1000>,
  44. <0xfc4ca000 0x1000>;
  45. interrupt-names = "periph_irq";
  46. interrupts = <0 190 0>;
  47. qcom,ee = <0>;
  48. qcom,channel = <0>;
  49. #address-cells = <2>;
  50. #size-cells = <0>;
  51. interrupt-controller;
  52. #interrupt-cells = <4>;
  53. };