Skip to content

Commit f7812cd

Browse files
committed
dt-bindings: net: davicom,dm9000: convert to DT schema
Convert the Davicom DM9000 Fast Ethernet Controller bindings to DT schema. Reviewed-by: Conor Dooley <conor.dooley@microchip.com> Link: https://lore.kernel.org/r/20230713152848.82752-4-krzysztof.kozlowski@linaro.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent a98dcaa commit f7812cd

File tree

2 files changed

+59
-27
lines changed

2 files changed

+59
-27
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/davicom,dm9000.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Davicom DM9000 Fast Ethernet Controller
8+
9+
maintainers:
10+
- Paul Cercueil <paul@crapouillou.net>
11+
12+
properties:
13+
compatible:
14+
const: davicom,dm9000
15+
16+
reg:
17+
items:
18+
- description: Address registers
19+
- description: Data registers
20+
21+
interrupts:
22+
maxItems: 1
23+
24+
davicom,no-eeprom:
25+
type: boolean
26+
description: Configuration EEPROM is not available
27+
28+
davicom,ext-phy:
29+
type: boolean
30+
description: Use external PHY
31+
32+
reset-gpios:
33+
maxItems: 1
34+
35+
vcc-supply: true
36+
37+
required:
38+
- compatible
39+
- reg
40+
- interrupts
41+
42+
allOf:
43+
- $ref: /schemas/memory-controllers/mc-peripheral-props.yaml#
44+
- $ref: /schemas/net/ethernet-controller.yaml#
45+
46+
unevaluatedProperties: false
47+
48+
examples:
49+
- |
50+
#include <dt-bindings/interrupt-controller/irq.h>
51+
52+
ethernet@a8000000 {
53+
compatible = "davicom,dm9000";
54+
reg = <0xa8000000 0x2>, <0xa8000002 0x2>;
55+
interrupt-parent = <&gph1>;
56+
interrupts = <1 IRQ_TYPE_LEVEL_HIGH>;
57+
local-mac-address = [00 00 de ad be ef];
58+
davicom,no-eeprom;
59+
};

Documentation/devicetree/bindings/net/davicom-dm9000.txt

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)