0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/memory-controllers/ingenic,nemc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Ingenic SoCs NAND / External Memory Controller (NEMC) devicetree bindings
0008
0009 maintainers:
0010 - Paul Cercueil <paul@crapouillou.net>
0011
0012 properties:
0013 $nodename:
0014 pattern: "^memory-controller@[0-9a-f]+$"
0015
0016 compatible:
0017 oneOf:
0018 - enum:
0019 - ingenic,jz4740-nemc
0020 - ingenic,jz4780-nemc
0021 - items:
0022 - const: ingenic,jz4725b-nemc
0023 - const: ingenic,jz4740-nemc
0024
0025 "#address-cells":
0026 const: 2
0027
0028 "#size-cells":
0029 const: 1
0030
0031 ranges: true
0032
0033 reg:
0034 maxItems: 1
0035
0036 clocks:
0037 maxItems: 1
0038
0039 patternProperties:
0040 ".*@[0-9]+$":
0041 type: object
0042
0043 required:
0044 - compatible
0045 - "#address-cells"
0046 - "#size-cells"
0047 - ranges
0048 - reg
0049 - clocks
0050
0051 additionalProperties: false
0052
0053 examples:
0054 - |
0055 #include <dt-bindings/clock/ingenic,jz4780-cgu.h>
0056 #include <dt-bindings/gpio/gpio.h>
0057 nemc: memory-controller@13410000 {
0058 compatible = "ingenic,jz4780-nemc";
0059 reg = <0x13410000 0x10000>;
0060 #address-cells = <2>;
0061 #size-cells = <1>;
0062 ranges = <1 0 0x1b000000 0x1000000>,
0063 <2 0 0x1a000000 0x1000000>,
0064 <3 0 0x19000000 0x1000000>,
0065 <4 0 0x18000000 0x1000000>,
0066 <5 0 0x17000000 0x1000000>,
0067 <6 0 0x16000000 0x1000000>;
0068
0069 clocks = <&cgu JZ4780_CLK_NEMC>;
0070
0071 ethernet@6 {
0072 compatible = "davicom,dm9000";
0073 davicom,no-eeprom;
0074
0075 pinctrl-names = "default";
0076 pinctrl-0 = <&pins_nemc_cs6>;
0077
0078 reg = <6 0 1>, /* addr */
0079 <6 2 1>; /* data */
0080
0081 ingenic,nemc-tAS = <15>;
0082 ingenic,nemc-tAH = <10>;
0083 ingenic,nemc-tBP = <20>;
0084 ingenic,nemc-tAW = <50>;
0085 ingenic,nemc-tSTRV = <100>;
0086
0087 reset-gpios = <&gpf 12 GPIO_ACTIVE_HIGH>;
0088 vcc-supply = <ð0_power>;
0089
0090 interrupt-parent = <&gpe>;
0091 interrupts = <19 4>;
0092 };
0093 };