18c2ecf20Sopenharmony_ciConexant Digicolor CX92755 General Purpose Pin Mapping 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciThis document describes the device tree binding of the pin mapping hardware 48c2ecf20Sopenharmony_cimodules in the Conexant Digicolor CX92755 SoCs. The CX92755 in one of the 58c2ecf20Sopenharmony_ciDigicolor series of SoCs. 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci=== Pin Controller Node === 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ciRequired Properties: 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci- compatible: Must be "cnxt,cx92755-pinctrl" 128c2ecf20Sopenharmony_ci- reg: Base address of the General Purpose Pin Mapping register block and the 138c2ecf20Sopenharmony_ci size of the block. 148c2ecf20Sopenharmony_ci- gpio-controller: Marks the device node as a GPIO controller. 158c2ecf20Sopenharmony_ci- #gpio-cells: Must be <2>. The first cell is the pin number and the 168c2ecf20Sopenharmony_ci second cell is used to specify flags. See include/dt-bindings/gpio/gpio.h 178c2ecf20Sopenharmony_ci for possible values. 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciFor example, the following is the bare minimum node: 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci pinctrl: pinctrl@f0000e20 { 228c2ecf20Sopenharmony_ci compatible = "cnxt,cx92755-pinctrl"; 238c2ecf20Sopenharmony_ci reg = <0xf0000e20 0x100>; 248c2ecf20Sopenharmony_ci gpio-controller; 258c2ecf20Sopenharmony_ci #gpio-cells = <2>; 268c2ecf20Sopenharmony_ci }; 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ciAs a pin controller device, in addition to the required properties, this node 298c2ecf20Sopenharmony_cishould also contain the pin configuration nodes that client devices reference, 308c2ecf20Sopenharmony_ciif any. 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ciFor a general description of GPIO bindings, please refer to ../gpio/gpio.txt. 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci=== Pin Configuration Node === 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ciEach pin configuration node is a sub-node of the pin controller node and is a 378c2ecf20Sopenharmony_cicontainer of an arbitrary number of subnodes, called pin group nodes in this 388c2ecf20Sopenharmony_cidocument. 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ciPlease refer to the pinctrl-bindings.txt in this directory for details of the 418c2ecf20Sopenharmony_cicommon pinctrl bindings used by client devices, including the definition of a 428c2ecf20Sopenharmony_ci"pin configuration node". 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci=== Pin Group Node === 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ciA pin group node specifies the desired pin mux for an arbitrary number of 478c2ecf20Sopenharmony_cipins. The name of the pin group node is optional and not used. 488c2ecf20Sopenharmony_ci 498c2ecf20Sopenharmony_ciA pin group node only affects the properties specified in the node, and has no 508c2ecf20Sopenharmony_cieffect on any properties that are omitted. 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ciThe pin group node accepts a subset of the generic pin config properties. For 538c2ecf20Sopenharmony_cidetails generic pin config properties, please refer to pinctrl-bindings.txt 548c2ecf20Sopenharmony_ciand <include/linux/pinctrl/pinconfig-generic.h>. 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ciRequired Pin Group Node Properties: 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci- pins: Multiple strings. Specifies the name(s) of one or more pins to be 598c2ecf20Sopenharmony_ci configured by this node. The format of a pin name string is "GP_xy", where x 608c2ecf20Sopenharmony_ci is an uppercase character from 'A' to 'R', and y is a digit from 0 to 7. 618c2ecf20Sopenharmony_ci- function: String. Specifies the pin mux selection. Values must be one of: 628c2ecf20Sopenharmony_ci "gpio", "client_a", "client_b", "client_c" 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ciExample: 658c2ecf20Sopenharmony_ci pinctrl: pinctrl@f0000e20 { 668c2ecf20Sopenharmony_ci compatible = "cnxt,cx92755-pinctrl"; 678c2ecf20Sopenharmony_ci reg = <0xf0000e20 0x100>; 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ci uart0_default: uart0_active { 708c2ecf20Sopenharmony_ci data_signals { 718c2ecf20Sopenharmony_ci pins = "GP_O0", "GP_O1"; 728c2ecf20Sopenharmony_ci function = "client_b"; 738c2ecf20Sopenharmony_ci }; 748c2ecf20Sopenharmony_ci }; 758c2ecf20Sopenharmony_ci }; 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ci uart0: uart@f0000740 { 788c2ecf20Sopenharmony_ci compatible = "cnxt,cx92755-usart"; 798c2ecf20Sopenharmony_ci ... 808c2ecf20Sopenharmony_ci pinctrl-0 = <&uart0_default>; 818c2ecf20Sopenharmony_ci pinctrl-names = "default"; 828c2ecf20Sopenharmony_ci }; 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ciIn the example above, a single pin group configuration node defines the 858c2ecf20Sopenharmony_ci"client select" for the Rx and Tx signals of uart0. The uart0 node references 868c2ecf20Sopenharmony_cithat pin configuration node using the &uart0_default phandle. 87