12eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 22eb4d8dcSEmmanuel Vadot%YAML 1.2 32eb4d8dcSEmmanuel Vadot--- 42eb4d8dcSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/brcm,bcm6318-pinctrl.yaml# 52eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 62eb4d8dcSEmmanuel Vadot 72eb4d8dcSEmmanuel Vadottitle: Broadcom BCM6318 pin controller 82eb4d8dcSEmmanuel Vadot 92eb4d8dcSEmmanuel Vadotmaintainers: 102eb4d8dcSEmmanuel Vadot - Álvaro Fernández Rojas <noltari@gmail.com> 112eb4d8dcSEmmanuel Vadot - Jonas Gorski <jonas.gorski@gmail.com> 122eb4d8dcSEmmanuel Vadot 132eb4d8dcSEmmanuel Vadotdescription: 142eb4d8dcSEmmanuel Vadot Bindings for Broadcom's BCM6318 memory-mapped pin controller. 152eb4d8dcSEmmanuel Vadot 162eb4d8dcSEmmanuel Vadotproperties: 172eb4d8dcSEmmanuel Vadot compatible: 182eb4d8dcSEmmanuel Vadot const: brcm,bcm6318-pinctrl 192eb4d8dcSEmmanuel Vadot 202eb4d8dcSEmmanuel Vadot reg: 212eb4d8dcSEmmanuel Vadot maxItems: 2 222eb4d8dcSEmmanuel Vadot 232eb4d8dcSEmmanuel VadotpatternProperties: 242eb4d8dcSEmmanuel Vadot '-pins$': 252eb4d8dcSEmmanuel Vadot type: object 262eb4d8dcSEmmanuel Vadot $ref: pinmux-node.yaml# 27*84943d6fSEmmanuel Vadot additionalProperties: false 282eb4d8dcSEmmanuel Vadot 292eb4d8dcSEmmanuel Vadot properties: 302eb4d8dcSEmmanuel Vadot function: 312eb4d8dcSEmmanuel Vadot enum: [ ephy0_spd_led, ephy1_spd_led, ephy2_spd_led, ephy3_spd_led, 322eb4d8dcSEmmanuel Vadot ephy0_act_led, ephy1_act_led, ephy2_act_led, ephy3_act_led, 332eb4d8dcSEmmanuel Vadot serial_led_data, serial_led_clk, inet_act_led, inet_fail_led, 342eb4d8dcSEmmanuel Vadot dsl_led, post_fail_led, wlan_wps_led, usb_pwron, 352eb4d8dcSEmmanuel Vadot usb_device_led, usb_active ] 362eb4d8dcSEmmanuel Vadot 372eb4d8dcSEmmanuel Vadot pins: 382eb4d8dcSEmmanuel Vadot enum: [ gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7, 392eb4d8dcSEmmanuel Vadot gpio8, gpio9, gpio10, gpio11, gpio12, gpio13, gpio40 ] 402eb4d8dcSEmmanuel Vadot 41*84943d6fSEmmanuel Vadot patternProperties: 42*84943d6fSEmmanuel Vadot '-pins$': 43*84943d6fSEmmanuel Vadot $ref: '#/patternProperties/-pins$' 44*84943d6fSEmmanuel Vadot 45e67e8565SEmmanuel VadotallOf: 46fac71e4eSEmmanuel Vadot - $ref: pinctrl.yaml# 47e67e8565SEmmanuel Vadot 482eb4d8dcSEmmanuel Vadotrequired: 492eb4d8dcSEmmanuel Vadot - compatible 502eb4d8dcSEmmanuel Vadot - reg 512eb4d8dcSEmmanuel Vadot 522eb4d8dcSEmmanuel VadotadditionalProperties: false 532eb4d8dcSEmmanuel Vadot 542eb4d8dcSEmmanuel Vadotexamples: 552eb4d8dcSEmmanuel Vadot - | 562eb4d8dcSEmmanuel Vadot pinctrl@18 { 572eb4d8dcSEmmanuel Vadot compatible = "brcm,bcm6318-pinctrl"; 582eb4d8dcSEmmanuel Vadot reg = <0x18 0x10>, <0x54 0x18>; 592eb4d8dcSEmmanuel Vadot 602eb4d8dcSEmmanuel Vadot pinctrl_ephy0_spd_led: ephy0_spd_led-pins { 612eb4d8dcSEmmanuel Vadot function = "ephy0_spd_led"; 622eb4d8dcSEmmanuel Vadot pins = "gpio0"; 632eb4d8dcSEmmanuel Vadot }; 642eb4d8dcSEmmanuel Vadot 652eb4d8dcSEmmanuel Vadot pinctrl_ephy1_spd_led: ephy1_spd_led-pins { 662eb4d8dcSEmmanuel Vadot function = "ephy1_spd_led"; 672eb4d8dcSEmmanuel Vadot pins = "gpio1"; 682eb4d8dcSEmmanuel Vadot }; 692eb4d8dcSEmmanuel Vadot 702eb4d8dcSEmmanuel Vadot pinctrl_ephy2_spd_led: ephy2_spd_led-pins { 712eb4d8dcSEmmanuel Vadot function = "ephy2_spd_led"; 722eb4d8dcSEmmanuel Vadot pins = "gpio2"; 732eb4d8dcSEmmanuel Vadot }; 742eb4d8dcSEmmanuel Vadot 752eb4d8dcSEmmanuel Vadot pinctrl_ephy3_spd_led: ephy3_spd_led-pins { 762eb4d8dcSEmmanuel Vadot function = "ephy3_spd_led"; 772eb4d8dcSEmmanuel Vadot pins = "gpio3"; 782eb4d8dcSEmmanuel Vadot }; 792eb4d8dcSEmmanuel Vadot 802eb4d8dcSEmmanuel Vadot pinctrl_ephy0_act_led: ephy0_act_led-pins { 812eb4d8dcSEmmanuel Vadot function = "ephy0_act_led"; 822eb4d8dcSEmmanuel Vadot pins = "gpio4"; 832eb4d8dcSEmmanuel Vadot }; 842eb4d8dcSEmmanuel Vadot 852eb4d8dcSEmmanuel Vadot pinctrl_ephy1_act_led: ephy1_act_led-pins { 862eb4d8dcSEmmanuel Vadot function = "ephy1_act_led"; 872eb4d8dcSEmmanuel Vadot pins = "gpio5"; 882eb4d8dcSEmmanuel Vadot }; 892eb4d8dcSEmmanuel Vadot 902eb4d8dcSEmmanuel Vadot pinctrl_ephy2_act_led: ephy2_act_led-pins { 912eb4d8dcSEmmanuel Vadot function = "ephy2_act_led"; 922eb4d8dcSEmmanuel Vadot pins = "gpio6"; 932eb4d8dcSEmmanuel Vadot }; 942eb4d8dcSEmmanuel Vadot 952eb4d8dcSEmmanuel Vadot pinctrl_ephy3_act_led: ephy3_act_led-pins { 962eb4d8dcSEmmanuel Vadot function = "ephy3_act_led"; 972eb4d8dcSEmmanuel Vadot pins = "gpio7"; 982eb4d8dcSEmmanuel Vadot }; 992eb4d8dcSEmmanuel Vadot 1002eb4d8dcSEmmanuel Vadot pinctrl_serial_led: serial_led-pins { 1012eb4d8dcSEmmanuel Vadot pinctrl_serial_led_data: serial_led_data-pins { 1022eb4d8dcSEmmanuel Vadot function = "serial_led_data"; 1032eb4d8dcSEmmanuel Vadot pins = "gpio6"; 1042eb4d8dcSEmmanuel Vadot }; 1052eb4d8dcSEmmanuel Vadot 1062eb4d8dcSEmmanuel Vadot pinctrl_serial_led_clk: serial_led_clk-pins { 1072eb4d8dcSEmmanuel Vadot function = "serial_led_clk"; 1082eb4d8dcSEmmanuel Vadot pins = "gpio7"; 1092eb4d8dcSEmmanuel Vadot }; 1102eb4d8dcSEmmanuel Vadot }; 1112eb4d8dcSEmmanuel Vadot 1122eb4d8dcSEmmanuel Vadot pinctrl_inet_act_led: inet_act_led-pins { 1132eb4d8dcSEmmanuel Vadot function = "inet_act_led"; 1142eb4d8dcSEmmanuel Vadot pins = "gpio8"; 1152eb4d8dcSEmmanuel Vadot }; 1162eb4d8dcSEmmanuel Vadot 1172eb4d8dcSEmmanuel Vadot pinctrl_inet_fail_led: inet_fail_led-pins { 1182eb4d8dcSEmmanuel Vadot function = "inet_fail_led"; 1192eb4d8dcSEmmanuel Vadot pins = "gpio9"; 1202eb4d8dcSEmmanuel Vadot }; 1212eb4d8dcSEmmanuel Vadot 1222eb4d8dcSEmmanuel Vadot pinctrl_dsl_led: dsl_led-pins { 1232eb4d8dcSEmmanuel Vadot function = "dsl_led"; 1242eb4d8dcSEmmanuel Vadot pins = "gpio10"; 1252eb4d8dcSEmmanuel Vadot }; 1262eb4d8dcSEmmanuel Vadot 1272eb4d8dcSEmmanuel Vadot pinctrl_post_fail_led: post_fail_led-pins { 1282eb4d8dcSEmmanuel Vadot function = "post_fail_led"; 1292eb4d8dcSEmmanuel Vadot pins = "gpio11"; 1302eb4d8dcSEmmanuel Vadot }; 1312eb4d8dcSEmmanuel Vadot 1322eb4d8dcSEmmanuel Vadot pinctrl_wlan_wps_led: wlan_wps_led-pins { 1332eb4d8dcSEmmanuel Vadot function = "wlan_wps_led"; 1342eb4d8dcSEmmanuel Vadot pins = "gpio12"; 1352eb4d8dcSEmmanuel Vadot }; 1362eb4d8dcSEmmanuel Vadot 1372eb4d8dcSEmmanuel Vadot pinctrl_usb_pwron: usb_pwron-pins { 1382eb4d8dcSEmmanuel Vadot function = "usb_pwron"; 1392eb4d8dcSEmmanuel Vadot pins = "gpio13"; 1402eb4d8dcSEmmanuel Vadot }; 1412eb4d8dcSEmmanuel Vadot 1422eb4d8dcSEmmanuel Vadot pinctrl_usb_device_led: usb_device_led-pins { 1432eb4d8dcSEmmanuel Vadot function = "usb_device_led"; 1442eb4d8dcSEmmanuel Vadot pins = "gpio13"; 1452eb4d8dcSEmmanuel Vadot }; 1462eb4d8dcSEmmanuel Vadot 1472eb4d8dcSEmmanuel Vadot pinctrl_usb_active: usb_active-pins { 1482eb4d8dcSEmmanuel Vadot function = "usb_active"; 1492eb4d8dcSEmmanuel Vadot pins = "gpio40"; 1502eb4d8dcSEmmanuel Vadot }; 1512eb4d8dcSEmmanuel Vadot }; 152