samsung,s5pv210-onenand.yaml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/mtd/samsung,s5pv210-onenand.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Samsung S5Pv210 SoC OneNAND Controller
  7. maintainers:
  8. - Krzysztof Kozlowski <krzk@kernel.org>
  9. properties:
  10. compatible:
  11. enum:
  12. - samsung,s5pv210-onenand
  13. reg:
  14. items:
  15. - description: Control registers
  16. - description: OneNAND interface nCE[0]
  17. - description: OneNAND interface nCE[1]
  18. clocks:
  19. maxItems: 2
  20. clock-names:
  21. items:
  22. - const: bus
  23. - const: onenand
  24. interrupts:
  25. maxItems: 1
  26. required:
  27. - compatible
  28. - reg
  29. - clocks
  30. - clock-names
  31. - interrupts
  32. allOf:
  33. - $ref: nand-controller.yaml
  34. unevaluatedProperties: false
  35. examples:
  36. - |
  37. #include <dt-bindings/clock/s5pv210.h>
  38. nand-controller@b0600000 {
  39. compatible = "samsung,s5pv210-onenand";
  40. reg = <0xb0600000 0x2000>,
  41. <0xb0000000 0x20000>,
  42. <0xb0040000 0x20000>;
  43. clocks = <&clocks CLK_NANDXL>, <&clocks DOUT_FLASH>;
  44. clock-names = "bus", "onenand";
  45. interrupt-parent = <&vic1>;
  46. interrupts = <31>;
  47. #address-cells = <1>;
  48. #size-cells = <0>;
  49. nand@0 {
  50. reg = <0>;
  51. };
  52. };