ingenic,nemc.yaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. %YAML 1.2
  3. ---
  4. $id: http://devicetree.org/schemas/memory-controllers/ingenic,nemc.yaml#
  5. $schema: http://devicetree.org/meta-schemas/core.yaml#
  6. title: Ingenic SoCs NAND / External Memory Controller (NEMC)
  7. maintainers:
  8. - Paul Cercueil <paul@crapouillou.net>
  9. properties:
  10. $nodename:
  11. pattern: "^memory-controller@[0-9a-f]+$"
  12. compatible:
  13. oneOf:
  14. - enum:
  15. - ingenic,jz4740-nemc
  16. - ingenic,jz4780-nemc
  17. - items:
  18. - const: ingenic,jz4725b-nemc
  19. - const: ingenic,jz4740-nemc
  20. "#address-cells":
  21. const: 2
  22. "#size-cells":
  23. const: 1
  24. ranges: true
  25. reg:
  26. maxItems: 1
  27. clocks:
  28. maxItems: 1
  29. patternProperties:
  30. ".*@[0-9]+$":
  31. type: object
  32. $ref: mc-peripheral-props.yaml#
  33. additionalProperties: true
  34. required:
  35. - compatible
  36. - "#address-cells"
  37. - "#size-cells"
  38. - ranges
  39. - reg
  40. - clocks
  41. additionalProperties: false
  42. examples:
  43. - |
  44. #include <dt-bindings/clock/ingenic,jz4780-cgu.h>
  45. #include <dt-bindings/gpio/gpio.h>
  46. nemc: memory-controller@13410000 {
  47. compatible = "ingenic,jz4780-nemc";
  48. reg = <0x13410000 0x10000>;
  49. #address-cells = <2>;
  50. #size-cells = <1>;
  51. ranges = <1 0 0x1b000000 0x1000000>,
  52. <2 0 0x1a000000 0x1000000>,
  53. <3 0 0x19000000 0x1000000>,
  54. <4 0 0x18000000 0x1000000>,
  55. <5 0 0x17000000 0x1000000>,
  56. <6 0 0x16000000 0x1000000>;
  57. clocks = <&cgu JZ4780_CLK_NEMC>;
  58. ethernet@6 {
  59. compatible = "davicom,dm9000";
  60. davicom,no-eeprom;
  61. pinctrl-names = "default";
  62. pinctrl-0 = <&pins_nemc_cs6>;
  63. reg = <6 0 1>, /* addr */
  64. <6 2 1>; /* data */
  65. ingenic,nemc-tAS = <15>;
  66. ingenic,nemc-tAH = <10>;
  67. ingenic,nemc-tBP = <20>;
  68. ingenic,nemc-tAW = <50>;
  69. ingenic,nemc-tSTRV = <100>;
  70. reset-gpios = <&gpf 12 GPIO_ACTIVE_HIGH>;
  71. vcc-supply = <&eth0_power>;
  72. interrupt-parent = <&gpe>;
  73. interrupts = <19 4>;
  74. };
  75. };