Skip to content

Commit 1022a89

Browse files
soburikartben
authored andcommitted
tests: drivers: build_all: ethernet: Test handling plural "compatible"s
Add device definitions in dt to test drivers that handle multiple "compatible"s by a single driver. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent ce03a8c commit 1022a89

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

tests/drivers/build_all/ethernet/app.overlay

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,36 @@
4949
int-gpios = <&test_gpio 0 0>;
5050
microchip,interface-type = "rmii";
5151
};
52+
53+
ethernet-phy@3 {
54+
reg = <0x3>;
55+
compatible = "microchip,ksz8794";
56+
status = "okay";
57+
reset-gpios = <&test_gpio 0 0>;
58+
int-gpios = <&test_gpio 0 0>;
59+
microchip,interface-type = "rmii";
60+
};
61+
62+
ethernet-phy@4 {
63+
reg = <0x4>;
64+
compatible = "microchip,ksz8863";
65+
status = "okay";
66+
reset-gpios = <&test_gpio 0 0>;
67+
int-gpios = <&test_gpio 0 0>;
68+
microchip,interface-type = "rmii";
69+
};
70+
71+
ethernet-phy@5 {
72+
reg = <0x5>;
73+
compatible = "adi,adin1100-phy";
74+
status = "okay";
75+
};
76+
77+
ethernet-phy@6 {
78+
reg = <0x6>;
79+
compatible = "adi,adin2111-phy";
80+
status = "okay";
81+
};
5282
};
5383
};
5484
};

0 commit comments

Comments
 (0)