162306a36Sopenharmony_ciLantiq SoC External Bus memory mapped GPIO controller
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciBy attaching hardware latches to the EBU it is possible to create output
462306a36Sopenharmony_cionly gpios. This driver configures a special memory address, which when
562306a36Sopenharmony_ciwritten to outputs 16 bit to the latches.
662306a36Sopenharmony_ci
762306a36Sopenharmony_ciThe node describing the memory mapped GPIOs needs to be a child of the node
862306a36Sopenharmony_cidescribing the "lantiq,localbus".
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ciRequired properties:
1162306a36Sopenharmony_ci- compatible : Should be "lantiq,gpio-mm-lantiq"
1262306a36Sopenharmony_ci- reg : Address and length of the register set for the device
1362306a36Sopenharmony_ci- #gpio-cells : Should be two.  The first cell is the pin number and
1462306a36Sopenharmony_ci  the second cell is used to specify optional parameters (currently
1562306a36Sopenharmony_ci  unused).
1662306a36Sopenharmony_ci- gpio-controller : Marks the device node as a gpio controller.
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ciOptional properties:
1962306a36Sopenharmony_ci- lantiq,shadow : The default value that we shall assume as already set on the
2062306a36Sopenharmony_ci  shift register cascade.
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ciExample:
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_cilocalbus@0 {
2562306a36Sopenharmony_ci	#address-cells = <2>;
2662306a36Sopenharmony_ci	#size-cells = <1>;
2762306a36Sopenharmony_ci	ranges = <0 0 0x0 0x3ffffff /* addrsel0 */
2862306a36Sopenharmony_ci		1 0 0x4000000 0x4000010>; /* addsel1 */
2962306a36Sopenharmony_ci	compatible = "lantiq,localbus", "simple-bus";
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci	gpio_mm0: gpio@4000000 {
3262306a36Sopenharmony_ci		compatible = "lantiq,gpio-mm";
3362306a36Sopenharmony_ci		reg = <1 0x0 0x10>;
3462306a36Sopenharmony_ci		gpio-controller;
3562306a36Sopenharmony_ci		#gpio-cells = <2>;
3662306a36Sopenharmony_ci		lantiq,shadow = <0x77f>
3762306a36Sopenharmony_ci	};
3862306a36Sopenharmony_ci}
39