162306a36Sopenharmony_ciPincontrol driver for RK805 Power management IC. 262306a36Sopenharmony_ci 362306a36Sopenharmony_ciRK805 has 2 pins which can be configured as GPIO output only. 462306a36Sopenharmony_ci 562306a36Sopenharmony_ciPlease refer file <devicetree/bindings/pinctrl/pinctrl-bindings.txt> 662306a36Sopenharmony_cifor details of the common pinctrl bindings used by client devices, 762306a36Sopenharmony_ciincluding the meaning of the phrase "pin configuration node". 862306a36Sopenharmony_ci 962306a36Sopenharmony_ciOptional Pinmux properties: 1062306a36Sopenharmony_ci-------------------------- 1162306a36Sopenharmony_ciFollowing properties are required if default setting of pins are required 1262306a36Sopenharmony_ciat boot. 1362306a36Sopenharmony_ci- pinctrl-names: A pinctrl state named per <pinctrl-bindings.txt>. 1462306a36Sopenharmony_ci- pinctrl[0...n]: Properties to contain the phandle for pinctrl states per 1562306a36Sopenharmony_ci <pinctrl-bindings.txt>. 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ciThe pin configurations are defined as child of the pinctrl states node. Each 1862306a36Sopenharmony_cisub-node have following properties: 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ciRequired properties: 2162306a36Sopenharmony_ci------------------ 2262306a36Sopenharmony_ci- #gpio-cells: Should be two. The first cell is the pin number and the 2362306a36Sopenharmony_ci second is the GPIO flags. 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci- gpio-controller: Marks the device node as a GPIO controller. 2662306a36Sopenharmony_ci 2762306a36Sopenharmony_ci- pins: List of pins. Valid values of pins properties are: gpio0, gpio1. 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ciFirst 2 properties must be added in the RK805 PMIC node, documented in 3062306a36Sopenharmony_ciDocumentation/devicetree/bindings/mfd/rockchip,rk808.yaml 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ciOptional properties: 3362306a36Sopenharmony_ci------------------- 3462306a36Sopenharmony_ciFollowing are optional properties defined as pinmux DT binding document 3562306a36Sopenharmony_ci<pinctrl-bindings.txt>. Absence of properties will leave the configuration 3662306a36Sopenharmony_cion default. 3762306a36Sopenharmony_ci function, 3862306a36Sopenharmony_ci output-low, 3962306a36Sopenharmony_ci output-high. 4062306a36Sopenharmony_ci 4162306a36Sopenharmony_ciValid values for function properties are: gpio. 4262306a36Sopenharmony_ci 4362306a36Sopenharmony_ciThere are also not customised properties for any GPIO. 4462306a36Sopenharmony_ci 4562306a36Sopenharmony_ciExample: 4662306a36Sopenharmony_ci-------- 4762306a36Sopenharmony_cirk805: rk805@18 { 4862306a36Sopenharmony_ci compatible = "rockchip,rk805"; 4962306a36Sopenharmony_ci ... 5062306a36Sopenharmony_ci gpio-controller; 5162306a36Sopenharmony_ci #gpio-cells = <2>; 5262306a36Sopenharmony_ci 5362306a36Sopenharmony_ci pinctrl-names = "default"; 5462306a36Sopenharmony_ci pinctrl-0 = <&pmic_int_l>, <&rk805_default>; 5562306a36Sopenharmony_ci 5662306a36Sopenharmony_ci rk805_default: pinmux { 5762306a36Sopenharmony_ci gpio01 { 5862306a36Sopenharmony_ci pins = "gpio0", "gpio1"; 5962306a36Sopenharmony_ci function = "gpio"; 6062306a36Sopenharmony_ci output-high; 6162306a36Sopenharmony_ci }; 6262306a36Sopenharmony_ci }; 6362306a36Sopenharmony_ci}; 64