solomon,ssd132x.yaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/display/solomon,ssd132x.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Solomon SSD132x OLED Display Controllers
  7. maintainers:
  8. - Javier Martinez Canillas <javierm@redhat.com>
  9. properties:
  10. compatible:
  11. enum:
  12. - solomon,ssd1322
  13. - solomon,ssd1325
  14. - solomon,ssd1327
  15. required:
  16. - compatible
  17. - reg
  18. allOf:
  19. - $ref: solomon,ssd-common.yaml#
  20. - if:
  21. properties:
  22. compatible:
  23. contains:
  24. const: solomon,ssd1322
  25. then:
  26. properties:
  27. solomon,width:
  28. default: 480
  29. solomon,height:
  30. default: 128
  31. - if:
  32. properties:
  33. compatible:
  34. contains:
  35. const: solomon,ssd1325
  36. then:
  37. properties:
  38. solomon,width:
  39. default: 128
  40. solomon,height:
  41. default: 80
  42. - if:
  43. properties:
  44. compatible:
  45. contains:
  46. const: solomon,ssd1327
  47. then:
  48. properties:
  49. solomon,width:
  50. default: 128
  51. solomon,height:
  52. default: 128
  53. unevaluatedProperties: false
  54. examples:
  55. - |
  56. i2c {
  57. #address-cells = <1>;
  58. #size-cells = <0>;
  59. oled@3c {
  60. compatible = "solomon,ssd1327";
  61. reg = <0x3c>;
  62. reset-gpios = <&gpio2 7>;
  63. };
  64. };
  65. - |
  66. spi {
  67. #address-cells = <1>;
  68. #size-cells = <0>;
  69. oled@0 {
  70. compatible = "solomon,ssd1327";
  71. reg = <0x0>;
  72. reset-gpios = <&gpio2 7>;
  73. dc-gpios = <&gpio2 8>;
  74. spi-max-frequency = <10000000>;
  75. };
  76. };