xref: /linux/drivers/of/unittest-data/overlay_gpio_03.dtso (revision a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0)
1e87cacadSFrank Rowand// SPDX-License-Identifier: GPL-2.0
2e87cacadSFrank Rowand/dts-v1/;
3e87cacadSFrank Rowand/plugin/;
4e87cacadSFrank Rowand
5e87cacadSFrank Rowand&unittest_test_bus {
6e87cacadSFrank Rowand	#address-cells = <1>;
7e87cacadSFrank Rowand	#size-cells = <0>;
8*517dba97SGeert Uytterhoeven
9e87cacadSFrank Rowand	gpio@3 {
10e87cacadSFrank Rowand		compatible = "unittest-gpio";
11e87cacadSFrank Rowand		reg = <3>;
12e87cacadSFrank Rowand		gpio-controller;
13e87cacadSFrank Rowand		#gpio-cells = <2>;
14e87cacadSFrank Rowand		ngpios = <2>;
15e87cacadSFrank Rowand		gpio-line-names = "line-A", "line-B", "line-C", "line-D";
16e87cacadSFrank Rowand
17e87cacadSFrank Rowand		line-d {
18e87cacadSFrank Rowand			gpio-hog;
19e87cacadSFrank Rowand			gpios = <4 0>;
20e87cacadSFrank Rowand			input;
21e87cacadSFrank Rowand			line-name = "line-D-input";
22e87cacadSFrank Rowand		};
23e87cacadSFrank Rowand	};
24e87cacadSFrank Rowand};
25