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