162306a36Sopenharmony_ciConexant Digicolor CX92755 General Purpose Pin Mapping
262306a36Sopenharmony_ci
362306a36Sopenharmony_ciThis document describes the device tree binding of the pin mapping hardware
462306a36Sopenharmony_cimodules in the Conexant Digicolor CX92755 SoCs. The CX92755 in one of the
562306a36Sopenharmony_ciDigicolor series of SoCs.
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci=== Pin Controller Node ===
862306a36Sopenharmony_ci
962306a36Sopenharmony_ciRequired Properties:
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci- compatible: Must be "cnxt,cx92755-pinctrl"
1262306a36Sopenharmony_ci- reg: Base address of the General Purpose Pin Mapping register block and the
1362306a36Sopenharmony_ci  size of the block.
1462306a36Sopenharmony_ci- gpio-controller: Marks the device node as a GPIO controller.
1562306a36Sopenharmony_ci- #gpio-cells: Must be <2>. The first cell is the pin number and the
1662306a36Sopenharmony_ci  second cell is used to specify flags. See include/dt-bindings/gpio/gpio.h
1762306a36Sopenharmony_ci  for possible values.
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ciFor example, the following is the bare minimum node:
2062306a36Sopenharmony_ci
2162306a36Sopenharmony_ci	pinctrl: pinctrl@f0000e20 {
2262306a36Sopenharmony_ci		compatible = "cnxt,cx92755-pinctrl";
2362306a36Sopenharmony_ci		reg = <0xf0000e20 0x100>;
2462306a36Sopenharmony_ci		gpio-controller;
2562306a36Sopenharmony_ci		#gpio-cells = <2>;
2662306a36Sopenharmony_ci	};
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ciAs a pin controller device, in addition to the required properties, this node
2962306a36Sopenharmony_cishould also contain the pin configuration nodes that client devices reference,
3062306a36Sopenharmony_ciif any.
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ciFor a general description of GPIO bindings, please refer to ../gpio/gpio.txt.
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_ci=== Pin Configuration Node ===
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ciEach pin configuration node is a sub-node of the pin controller node and is a
3762306a36Sopenharmony_cicontainer of an arbitrary number of subnodes, called pin group nodes in this
3862306a36Sopenharmony_cidocument.
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ciPlease refer to the pinctrl-bindings.txt in this directory for details of the
4162306a36Sopenharmony_cicommon pinctrl bindings used by client devices, including the definition of a
4262306a36Sopenharmony_ci"pin configuration node".
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ci=== Pin Group Node ===
4562306a36Sopenharmony_ci
4662306a36Sopenharmony_ciA pin group node specifies the desired pin mux for an arbitrary number of
4762306a36Sopenharmony_cipins. The name of the pin group node is optional and not used.
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ciA pin group node only affects the properties specified in the node, and has no
5062306a36Sopenharmony_cieffect on any properties that are omitted.
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ciThe pin group node accepts a subset of the generic pin config properties. For
5362306a36Sopenharmony_cidetails generic pin config properties, please refer to pinctrl-bindings.txt
5462306a36Sopenharmony_ciand <include/linux/pinctrl/pinconfig-generic.h>.
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_ciRequired Pin Group Node Properties:
5762306a36Sopenharmony_ci
5862306a36Sopenharmony_ci- pins: Multiple strings. Specifies the name(s) of one or more pins to be
5962306a36Sopenharmony_ci  configured by this node. The format of a pin name string is "GP_xy", where x
6062306a36Sopenharmony_ci  is an uppercase character from 'A' to 'R', and y is a digit from 0 to 7.
6162306a36Sopenharmony_ci- function: String. Specifies the pin mux selection. Values must be one of:
6262306a36Sopenharmony_ci  "gpio", "client_a", "client_b", "client_c"
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ciExample:
6562306a36Sopenharmony_ci	pinctrl: pinctrl@f0000e20 {
6662306a36Sopenharmony_ci		compatible = "cnxt,cx92755-pinctrl";
6762306a36Sopenharmony_ci		reg = <0xf0000e20 0x100>;
6862306a36Sopenharmony_ci
6962306a36Sopenharmony_ci		uart0_default: uart0_active {
7062306a36Sopenharmony_ci			data_signals {
7162306a36Sopenharmony_ci				pins = "GP_O0", "GP_O1";
7262306a36Sopenharmony_ci				function = "client_b";
7362306a36Sopenharmony_ci			};
7462306a36Sopenharmony_ci		};
7562306a36Sopenharmony_ci	};
7662306a36Sopenharmony_ci
7762306a36Sopenharmony_ci	uart0: uart@f0000740 {
7862306a36Sopenharmony_ci		compatible = "cnxt,cx92755-usart";
7962306a36Sopenharmony_ci		...
8062306a36Sopenharmony_ci		pinctrl-0 = <&uart0_default>;
8162306a36Sopenharmony_ci		pinctrl-names = "default";
8262306a36Sopenharmony_ci	};
8362306a36Sopenharmony_ci
8462306a36Sopenharmony_ciIn the example above, a single pin group configuration node defines the
8562306a36Sopenharmony_ci"client select" for the Rx and Tx signals of uart0. The uart0 node references
8662306a36Sopenharmony_cithat pin configuration node using the &uart0_default phandle.
87