palmbus.yaml 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/bus/palmbus.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Ralink PalmBus
  7. maintainers:
  8. - Sergio Paracuellos <sergio.paracuellos@gmail.com>
  9. description: |
  10. The ralink palmbus controller can be found in all ralink MIPS
  11. SoCs. It provides an external bus for connecting multiple
  12. external devices to the SoC.
  13. properties:
  14. $nodename:
  15. pattern: "^palmbus(@[0-9a-f]+)?$"
  16. "#address-cells":
  17. const: 1
  18. "#size-cells":
  19. const: 1
  20. compatible:
  21. const: palmbus
  22. reg:
  23. maxItems: 1
  24. ranges: true
  25. patternProperties:
  26. # All other properties should be child nodes with unit-address and 'reg'
  27. "@[0-9a-f]+$":
  28. type: object
  29. additionalProperties: true
  30. properties:
  31. reg:
  32. maxItems: 1
  33. required:
  34. - reg
  35. required:
  36. - compatible
  37. - reg
  38. - "#address-cells"
  39. - "#size-cells"
  40. - ranges
  41. additionalProperties: false
  42. examples:
  43. - |
  44. #include <dt-bindings/interrupt-controller/mips-gic.h>
  45. #include <dt-bindings/interrupt-controller/irq.h>
  46. palmbus@1e000000 {
  47. compatible = "palmbus";
  48. reg = <0x1e000000 0x100000>;
  49. #address-cells = <1>;
  50. #size-cells = <1>;
  51. ranges = <0x0 0x1e000000 0x0fffff>;
  52. gpio@600 {
  53. #gpio-cells = <2>;
  54. #interrupt-cells = <2>;
  55. compatible = "mediatek,mt7621-gpio";
  56. gpio-controller;
  57. gpio-ranges = <&pinctrl 0 0 95>;
  58. interrupt-controller;
  59. reg = <0x600 0x100>;
  60. interrupt-parent = <&gic>;
  61. interrupts = <GIC_SHARED 12 IRQ_TYPE_LEVEL_HIGH>;
  62. };
  63. };
  64. ...