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