18c2ecf20Sopenharmony_ciBindings for the Western Digital's MyBook Live memory-mapped GPIO controllers.
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThe Western Digital MyBook Live has two memory-mapped GPIO controllers.
48c2ecf20Sopenharmony_ciBoth GPIO controller only have a single 8-bit data register, where GPIO
58c2ecf20Sopenharmony_cistate can be read and/or written.
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciRequired properties:
88c2ecf20Sopenharmony_ci	- compatible: should be "wd,mbl-gpio"
98c2ecf20Sopenharmony_ci	- reg-names: must contain
108c2ecf20Sopenharmony_ci		"dat" - data register
118c2ecf20Sopenharmony_ci	- reg: address + size pairs describing the GPIO register sets;
128c2ecf20Sopenharmony_ci		order must correspond with the order of entries in reg-names
138c2ecf20Sopenharmony_ci	- #gpio-cells: must be set to 2. The first cell is the pin number and
148c2ecf20Sopenharmony_ci			the second cell is used to specify the gpio polarity:
158c2ecf20Sopenharmony_ci			0 = active high
168c2ecf20Sopenharmony_ci			1 = active low
178c2ecf20Sopenharmony_ci	- gpio-controller: Marks the device node as a gpio controller.
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciOptional properties:
208c2ecf20Sopenharmony_ci	- no-output: GPIOs are read-only.
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ciExamples:
238c2ecf20Sopenharmony_ci	gpio0: gpio0@e0000000 {
248c2ecf20Sopenharmony_ci		compatible = "wd,mbl-gpio";
258c2ecf20Sopenharmony_ci		reg-names = "dat";
268c2ecf20Sopenharmony_ci		reg = <0xe0000000 0x1>;
278c2ecf20Sopenharmony_ci		#gpio-cells = <2>;
288c2ecf20Sopenharmony_ci		gpio-controller;
298c2ecf20Sopenharmony_ci	};
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci	gpio1: gpio1@e0100000 {
328c2ecf20Sopenharmony_ci		compatible = "wd,mbl-gpio";
338c2ecf20Sopenharmony_ci		reg-names = "dat";
348c2ecf20Sopenharmony_ci		reg = <0xe0100000 0x1>;
358c2ecf20Sopenharmony_ci		#gpio-cells = <2>;
368c2ecf20Sopenharmony_ci		gpio-controller;
378c2ecf20Sopenharmony_ci		no-output;
388c2ecf20Sopenharmony_ci	};
39