1 # SPDX-License-Identifier: GPL-2.0-only OR BSD 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/tos 4 $id: http://devicetree.org/schemas/pinctrl/toshiba,visconti-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Toshiba Visconti TMPV770x pin mux/confi 7 title: Toshiba Visconti TMPV770x pin mux/config controller 8 8 9 maintainers: 9 maintainers: 10 - Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshi 10 - Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp> 11 11 12 description: 12 description: 13 Toshiba's Visconti ARM SoC a pin mux/config 13 Toshiba's Visconti ARM SoC a pin mux/config controller. 14 14 15 properties: 15 properties: 16 compatible: 16 compatible: 17 enum: 17 enum: 18 - toshiba,tmpv7708-pinctrl 18 - toshiba,tmpv7708-pinctrl 19 19 20 reg: 20 reg: 21 maxItems: 1 21 maxItems: 1 22 22 23 allOf: 23 allOf: 24 - $ref: pinctrl.yaml# !! 24 - $ref: "pinctrl.yaml#" 25 25 26 required: 26 required: 27 - compatible 27 - compatible 28 - reg 28 - reg 29 29 30 patternProperties: 30 patternProperties: 31 '-pins$': 31 '-pins$': 32 type: object 32 type: object 33 description: | 33 description: | 34 A pinctrl node should contain at least o 34 A pinctrl node should contain at least one subnodes representing the 35 pinctrl groups available on the machine. 35 pinctrl groups available on the machine. Each subnode will list the 36 pins it needs, and how they should be co 36 pins it needs, and how they should be configured, with regard to muxer 37 configuration, pullups, drive strength. 37 configuration, pullups, drive strength. 38 $ref: pinmux-node.yaml !! 38 $ref: "pinmux-node.yaml" 39 additionalProperties: false << 40 39 41 properties: 40 properties: 42 function: 41 function: 43 description: 42 description: 44 Function to mux. 43 Function to mux. 45 $ref: /schemas/types.yaml#/definitions !! 44 $ref: "/schemas/types.yaml#/definitions/string" 46 enum: [i2c0, i2c1, i2c2, i2c3, i2c4, i 45 enum: [i2c0, i2c1, i2c2, i2c3, i2c4, i2c5, i2c6, i2c7, i2c8, 47 spi0, spi1, spi2, spi3, spi4, s 46 spi0, spi1, spi2, spi3, spi4, spi5, spi6, 48 uart0, uart1, uart2, uart3, pwm 47 uart0, uart1, uart2, uart3, pwm, pcmif_out, pcmif_in] 49 48 50 groups: 49 groups: 51 description: 50 description: 52 Name of the pin group to use for the 51 Name of the pin group to use for the functions. 53 $ref: /schemas/types.yaml#/definitions !! 52 $ref: "/schemas/types.yaml#/definitions/string" 54 enum: [i2c0_grp, i2c1_grp, i2c2_grp, i 53 enum: [i2c0_grp, i2c1_grp, i2c2_grp, i2c3_grp, i2c4_grp, 55 i2c5_grp, i2c6_grp, i2c7_grp, i 54 i2c5_grp, i2c6_grp, i2c7_grp, i2c8_grp, 56 spi0_grp, spi0_cs0_grp, spi0_cs 55 spi0_grp, spi0_cs0_grp, spi0_cs1_grp, spi0_cs2_grp, 57 spi1_grp, spi2_grp, spi3_grp, s 56 spi1_grp, spi2_grp, spi3_grp, spi4_grp, spi5_grp, spi6_grp, 58 uart0_grp, uart1_grp, uart2_grp 57 uart0_grp, uart1_grp, uart2_grp, uart3_grp, 59 pwm0_gpio4_grp, pwm0_gpio8_grp, 58 pwm0_gpio4_grp, pwm0_gpio8_grp, pwm0_gpio12_grp, 60 pwm0_gpio16_grp, pwm1_gpio5_grp 59 pwm0_gpio16_grp, pwm1_gpio5_grp, pwm1_gpio9_grp, 61 pwm1_gpio13_grp, pwm1_gpio17_gr 60 pwm1_gpio13_grp, pwm1_gpio17_grp, pwm2_gpio6_grp, 62 pwm2_gpio10_grp, pwm2_gpio14_gr 61 pwm2_gpio10_grp, pwm2_gpio14_grp, pwm2_gpio18_grp, 63 pwm3_gpio7_grp, pwm3_gpio11_grp 62 pwm3_gpio7_grp, pwm3_gpio11_grp, pwm3_gpio15_grp, 64 pwm3_gpio19_grp, pcmif_out_grp, 63 pwm3_gpio19_grp, pcmif_out_grp, pcmif_in_grp] 65 64 66 drive-strength: 65 drive-strength: 67 enum: [2, 4, 6, 8, 16, 24, 32] 66 enum: [2, 4, 6, 8, 16, 24, 32] 68 default: 2 67 default: 2 69 description: 68 description: 70 Selects the drive strength for the s 69 Selects the drive strength for the specified pins, in mA. 71 70 72 bias-pull-up: true 71 bias-pull-up: true 73 72 74 bias-pull-down: true 73 bias-pull-down: true 75 74 76 bias-disable: true 75 bias-disable: true 77 76 78 additionalProperties: false 77 additionalProperties: false 79 78 80 examples: 79 examples: 81 # Pinmux controller node 80 # Pinmux controller node 82 - | 81 - | 83 soc { 82 soc { 84 #address-cells = <2>; 83 #address-cells = <2>; 85 #size-cells = <2>; 84 #size-cells = <2>; 86 85 87 pmux: pinmux@24190000 { 86 pmux: pinmux@24190000 { 88 compatible = "toshiba,tmpv7708-pin 87 compatible = "toshiba,tmpv7708-pinctrl"; 89 reg = <0 0x24190000 0 0x10000>; 88 reg = <0 0x24190000 0 0x10000>; 90 89 91 spi0_pins: spi0-pins { 90 spi0_pins: spi0-pins { 92 function = "spi0"; 91 function = "spi0"; 93 groups = "spi0_grp"; 92 groups = "spi0_grp"; 94 }; 93 }; 95 }; 94 }; 96 }; 95 };
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.