18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 28c2ecf20Sopenharmony_ci%YAML 1.2 38c2ecf20Sopenharmony_ci--- 48c2ecf20Sopenharmony_ci$id: http://devicetree.org/schemas/pinctrl/toshiba,visconti-pinctrl.yaml# 58c2ecf20Sopenharmony_ci$schema: http://devicetree.org/meta-schemas/core.yaml# 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_cititle: Toshiba Visconti TMPV770x pin mux/config controller 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_cimaintainers: 108c2ecf20Sopenharmony_ci - Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp> 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_cidescription: 138c2ecf20Sopenharmony_ci Toshiba's Visconti ARM SoC a pin mux/config controller. 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ciproperties: 168c2ecf20Sopenharmony_ci compatible: 178c2ecf20Sopenharmony_ci enum: 188c2ecf20Sopenharmony_ci - toshiba,tmpv7708-pinctrl 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci reg: 218c2ecf20Sopenharmony_ci maxItems: 1 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_cirequired: 248c2ecf20Sopenharmony_ci - compatible 258c2ecf20Sopenharmony_ci - reg 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_cipatternProperties: 288c2ecf20Sopenharmony_ci '-pins$': 298c2ecf20Sopenharmony_ci type: object 308c2ecf20Sopenharmony_ci description: | 318c2ecf20Sopenharmony_ci A pinctrl node should contain at least one subnodes representing the 328c2ecf20Sopenharmony_ci pinctrl groups available on the machine. Each subnode will list the 338c2ecf20Sopenharmony_ci pins it needs, and how they should be configured, with regard to muxer 348c2ecf20Sopenharmony_ci configuration, pullups, drive strength. 358c2ecf20Sopenharmony_ci $ref: "pinmux-node.yaml" 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci properties: 388c2ecf20Sopenharmony_ci function: 398c2ecf20Sopenharmony_ci description: 408c2ecf20Sopenharmony_ci Function to mux. 418c2ecf20Sopenharmony_ci $ref: "/schemas/types.yaml#/definitions/string" 428c2ecf20Sopenharmony_ci enum: [i2c0, i2c1, i2c2, i2c3, i2c4, i2c5, i2c6, i2c7, i2c8, 438c2ecf20Sopenharmony_ci spi0, spi1, spi2, spi3, spi4, spi5, spi6, 448c2ecf20Sopenharmony_ci uart0, uart1, uart2, uart3, pwm, pcmif_out, pcmif_in] 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ci groups: 478c2ecf20Sopenharmony_ci description: 488c2ecf20Sopenharmony_ci Name of the pin group to use for the functions. 498c2ecf20Sopenharmony_ci $ref: "/schemas/types.yaml#/definitions/string" 508c2ecf20Sopenharmony_ci enum: [i2c0_grp, i2c1_grp, i2c2_grp, i2c3_grp, i2c4_grp, 518c2ecf20Sopenharmony_ci i2c5_grp, i2c6_grp, i2c7_grp, i2c8_grp, 528c2ecf20Sopenharmony_ci spi0_grp, spi0_cs0_grp, spi0_cs1_grp, spi0_cs2_grp, 538c2ecf20Sopenharmony_ci spi1_grp, spi2_grp, spi3_grp, spi4_grp, spi5_grp, spi6_grp, 548c2ecf20Sopenharmony_ci uart0_grp, uart1_grp, uart2_grp, uart3_grp, 558c2ecf20Sopenharmony_ci pwm0_gpio4_grp, pwm0_gpio8_grp, pwm0_gpio12_grp, 568c2ecf20Sopenharmony_ci pwm0_gpio16_grp, pwm1_gpio5_grp, pwm1_gpio9_grp, 578c2ecf20Sopenharmony_ci pwm1_gpio13_grp, pwm1_gpio17_grp, pwm2_gpio6_grp, 588c2ecf20Sopenharmony_ci pwm2_gpio10_grp, pwm2_gpio14_grp, pwm2_gpio18_grp, 598c2ecf20Sopenharmony_ci pwm3_gpio7_grp, pwm3_gpio11_grp, pwm3_gpio15_grp, 608c2ecf20Sopenharmony_ci pwm3_gpio19_grp, pcmif_out_grp, pcmif_in_grp] 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci drive-strength: 638c2ecf20Sopenharmony_ci enum: [2, 4, 6, 8, 16, 24, 32] 648c2ecf20Sopenharmony_ci default: 2 658c2ecf20Sopenharmony_ci description: 668c2ecf20Sopenharmony_ci Selects the drive strength for the specified pins, in mA. 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ci bias-pull-up: true 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ci bias-pull-down: true 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ci bias-disable: true 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ciadditionalProperties: false 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_ciexamples: 778c2ecf20Sopenharmony_ci # Pinmux controller node 788c2ecf20Sopenharmony_ci - | 798c2ecf20Sopenharmony_ci soc { 808c2ecf20Sopenharmony_ci #address-cells = <2>; 818c2ecf20Sopenharmony_ci #size-cells = <2>; 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ci pmux: pmux@24190000 { 848c2ecf20Sopenharmony_ci compatible = "toshiba,tmpv7708-pinctrl"; 858c2ecf20Sopenharmony_ci reg = <0 0x24190000 0 0x10000>; 868c2ecf20Sopenharmony_ci 878c2ecf20Sopenharmony_ci spi0_pins: spi0-pins { 888c2ecf20Sopenharmony_ci function = "spi0"; 898c2ecf20Sopenharmony_ci groups = "spi0_grp"; 908c2ecf20Sopenharmony_ci }; 918c2ecf20Sopenharmony_ci }; 928c2ecf20Sopenharmony_ci }; 93