18c2ecf20Sopenharmony_ciBindings for the Broadcom's brcm,bcm6345-gpio memory-mapped GPIO controllers.
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ciThese bindings can be used on any BCM63xx SoC. However, BCM6338 and BCM6345
48c2ecf20Sopenharmony_ciare the only ones which don't need a pinctrl driver.
58c2ecf20Sopenharmony_ciBCM6338 have 8-bit data and dirout registers, where GPIO state can be read
68c2ecf20Sopenharmony_ciand/or written, and the direction changed from input to output.
78c2ecf20Sopenharmony_ciBCM6345 have 16-bit data and dirout registers, where GPIO state can be read
88c2ecf20Sopenharmony_ciand/or written, and the direction changed from input to output.
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciRequired properties:
118c2ecf20Sopenharmony_ci	- compatible: should be "brcm,bcm6345-gpio"
128c2ecf20Sopenharmony_ci	- reg-names: must contain
138c2ecf20Sopenharmony_ci		"dat" - data register
148c2ecf20Sopenharmony_ci		"dirout" - direction (output) register
158c2ecf20Sopenharmony_ci	- reg: address + size pairs describing the GPIO register sets;
168c2ecf20Sopenharmony_ci		order must correspond with the order of entries in reg-names
178c2ecf20Sopenharmony_ci	- #gpio-cells: must be set to 2. The first cell is the pin number and
188c2ecf20Sopenharmony_ci			the second cell is used to specify the gpio polarity:
198c2ecf20Sopenharmony_ci			0 = active high
208c2ecf20Sopenharmony_ci			1 = active low
218c2ecf20Sopenharmony_ci	- gpio-controller: Marks the device node as a gpio controller.
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciOptional properties:
248c2ecf20Sopenharmony_ci	- native-endian: use native endian memory.
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciExamples:
278c2ecf20Sopenharmony_ci	- BCM6338:
288c2ecf20Sopenharmony_ci	gpio: gpio-controller@fffe0407 {
298c2ecf20Sopenharmony_ci		compatible = "brcm,bcm6345-gpio";
308c2ecf20Sopenharmony_ci		reg-names = "dirout", "dat";
318c2ecf20Sopenharmony_ci		reg = <0xfffe0407 1>, <0xfffe040f 1>;
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci		#gpio-cells = <2>;
348c2ecf20Sopenharmony_ci		gpio-controller;
358c2ecf20Sopenharmony_ci	};
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci	- BCM6345:
388c2ecf20Sopenharmony_ci	gpio: gpio-controller@fffe0406 {
398c2ecf20Sopenharmony_ci		compatible = "brcm,bcm6345-gpio";
408c2ecf20Sopenharmony_ci		reg-names = "dirout", "dat";
418c2ecf20Sopenharmony_ci		reg = <0xfffe0406 2>, <0xfffe040a 2>;
428c2ecf20Sopenharmony_ci		native-endian;
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci		#gpio-cells = <2>;
458c2ecf20Sopenharmony_ci		gpio-controller;
468c2ecf20Sopenharmony_ci	};
47