1*2eb4d8dcSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 2*2eb4d8dcSEmmanuel Vadot%YAML 1.2 3*2eb4d8dcSEmmanuel Vadot--- 4*2eb4d8dcSEmmanuel Vadot$id: http://devicetree.org/schemas/pinctrl/brcm,bcm6318-pinctrl.yaml# 5*2eb4d8dcSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 6*2eb4d8dcSEmmanuel Vadot 7*2eb4d8dcSEmmanuel Vadottitle: Broadcom BCM6318 pin controller 8*2eb4d8dcSEmmanuel Vadot 9*2eb4d8dcSEmmanuel Vadotmaintainers: 10*2eb4d8dcSEmmanuel Vadot - Álvaro Fernández Rojas <noltari@gmail.com> 11*2eb4d8dcSEmmanuel Vadot - Jonas Gorski <jonas.gorski@gmail.com> 12*2eb4d8dcSEmmanuel Vadot 13*2eb4d8dcSEmmanuel Vadotdescription: 14*2eb4d8dcSEmmanuel Vadot Bindings for Broadcom's BCM6318 memory-mapped pin controller. 15*2eb4d8dcSEmmanuel Vadot 16*2eb4d8dcSEmmanuel Vadotproperties: 17*2eb4d8dcSEmmanuel Vadot compatible: 18*2eb4d8dcSEmmanuel Vadot const: brcm,bcm6318-pinctrl 19*2eb4d8dcSEmmanuel Vadot 20*2eb4d8dcSEmmanuel Vadot reg: 21*2eb4d8dcSEmmanuel Vadot maxItems: 2 22*2eb4d8dcSEmmanuel Vadot 23*2eb4d8dcSEmmanuel VadotpatternProperties: 24*2eb4d8dcSEmmanuel Vadot '-pins$': 25*2eb4d8dcSEmmanuel Vadot type: object 26*2eb4d8dcSEmmanuel Vadot $ref: pinmux-node.yaml# 27*2eb4d8dcSEmmanuel Vadot 28*2eb4d8dcSEmmanuel Vadot properties: 29*2eb4d8dcSEmmanuel Vadot function: 30*2eb4d8dcSEmmanuel Vadot enum: [ ephy0_spd_led, ephy1_spd_led, ephy2_spd_led, ephy3_spd_led, 31*2eb4d8dcSEmmanuel Vadot ephy0_act_led, ephy1_act_led, ephy2_act_led, ephy3_act_led, 32*2eb4d8dcSEmmanuel Vadot serial_led_data, serial_led_clk, inet_act_led, inet_fail_led, 33*2eb4d8dcSEmmanuel Vadot dsl_led, post_fail_led, wlan_wps_led, usb_pwron, 34*2eb4d8dcSEmmanuel Vadot usb_device_led, usb_active ] 35*2eb4d8dcSEmmanuel Vadot 36*2eb4d8dcSEmmanuel Vadot pins: 37*2eb4d8dcSEmmanuel Vadot enum: [ gpio0, gpio1, gpio2, gpio3, gpio4, gpio5, gpio6, gpio7, 38*2eb4d8dcSEmmanuel Vadot gpio8, gpio9, gpio10, gpio11, gpio12, gpio13, gpio40 ] 39*2eb4d8dcSEmmanuel Vadot 40*2eb4d8dcSEmmanuel Vadotrequired: 41*2eb4d8dcSEmmanuel Vadot - compatible 42*2eb4d8dcSEmmanuel Vadot - reg 43*2eb4d8dcSEmmanuel Vadot 44*2eb4d8dcSEmmanuel VadotadditionalProperties: false 45*2eb4d8dcSEmmanuel Vadot 46*2eb4d8dcSEmmanuel Vadotexamples: 47*2eb4d8dcSEmmanuel Vadot - | 48*2eb4d8dcSEmmanuel Vadot pinctrl@18 { 49*2eb4d8dcSEmmanuel Vadot compatible = "brcm,bcm6318-pinctrl"; 50*2eb4d8dcSEmmanuel Vadot reg = <0x18 0x10>, <0x54 0x18>; 51*2eb4d8dcSEmmanuel Vadot 52*2eb4d8dcSEmmanuel Vadot pinctrl_ephy0_spd_led: ephy0_spd_led-pins { 53*2eb4d8dcSEmmanuel Vadot function = "ephy0_spd_led"; 54*2eb4d8dcSEmmanuel Vadot pins = "gpio0"; 55*2eb4d8dcSEmmanuel Vadot }; 56*2eb4d8dcSEmmanuel Vadot 57*2eb4d8dcSEmmanuel Vadot pinctrl_ephy1_spd_led: ephy1_spd_led-pins { 58*2eb4d8dcSEmmanuel Vadot function = "ephy1_spd_led"; 59*2eb4d8dcSEmmanuel Vadot pins = "gpio1"; 60*2eb4d8dcSEmmanuel Vadot }; 61*2eb4d8dcSEmmanuel Vadot 62*2eb4d8dcSEmmanuel Vadot pinctrl_ephy2_spd_led: ephy2_spd_led-pins { 63*2eb4d8dcSEmmanuel Vadot function = "ephy2_spd_led"; 64*2eb4d8dcSEmmanuel Vadot pins = "gpio2"; 65*2eb4d8dcSEmmanuel Vadot }; 66*2eb4d8dcSEmmanuel Vadot 67*2eb4d8dcSEmmanuel Vadot pinctrl_ephy3_spd_led: ephy3_spd_led-pins { 68*2eb4d8dcSEmmanuel Vadot function = "ephy3_spd_led"; 69*2eb4d8dcSEmmanuel Vadot pins = "gpio3"; 70*2eb4d8dcSEmmanuel Vadot }; 71*2eb4d8dcSEmmanuel Vadot 72*2eb4d8dcSEmmanuel Vadot pinctrl_ephy0_act_led: ephy0_act_led-pins { 73*2eb4d8dcSEmmanuel Vadot function = "ephy0_act_led"; 74*2eb4d8dcSEmmanuel Vadot pins = "gpio4"; 75*2eb4d8dcSEmmanuel Vadot }; 76*2eb4d8dcSEmmanuel Vadot 77*2eb4d8dcSEmmanuel Vadot pinctrl_ephy1_act_led: ephy1_act_led-pins { 78*2eb4d8dcSEmmanuel Vadot function = "ephy1_act_led"; 79*2eb4d8dcSEmmanuel Vadot pins = "gpio5"; 80*2eb4d8dcSEmmanuel Vadot }; 81*2eb4d8dcSEmmanuel Vadot 82*2eb4d8dcSEmmanuel Vadot pinctrl_ephy2_act_led: ephy2_act_led-pins { 83*2eb4d8dcSEmmanuel Vadot function = "ephy2_act_led"; 84*2eb4d8dcSEmmanuel Vadot pins = "gpio6"; 85*2eb4d8dcSEmmanuel Vadot }; 86*2eb4d8dcSEmmanuel Vadot 87*2eb4d8dcSEmmanuel Vadot pinctrl_ephy3_act_led: ephy3_act_led-pins { 88*2eb4d8dcSEmmanuel Vadot function = "ephy3_act_led"; 89*2eb4d8dcSEmmanuel Vadot pins = "gpio7"; 90*2eb4d8dcSEmmanuel Vadot }; 91*2eb4d8dcSEmmanuel Vadot 92*2eb4d8dcSEmmanuel Vadot pinctrl_serial_led: serial_led-pins { 93*2eb4d8dcSEmmanuel Vadot pinctrl_serial_led_data: serial_led_data-pins { 94*2eb4d8dcSEmmanuel Vadot function = "serial_led_data"; 95*2eb4d8dcSEmmanuel Vadot pins = "gpio6"; 96*2eb4d8dcSEmmanuel Vadot }; 97*2eb4d8dcSEmmanuel Vadot 98*2eb4d8dcSEmmanuel Vadot pinctrl_serial_led_clk: serial_led_clk-pins { 99*2eb4d8dcSEmmanuel Vadot function = "serial_led_clk"; 100*2eb4d8dcSEmmanuel Vadot pins = "gpio7"; 101*2eb4d8dcSEmmanuel Vadot }; 102*2eb4d8dcSEmmanuel Vadot }; 103*2eb4d8dcSEmmanuel Vadot 104*2eb4d8dcSEmmanuel Vadot pinctrl_inet_act_led: inet_act_led-pins { 105*2eb4d8dcSEmmanuel Vadot function = "inet_act_led"; 106*2eb4d8dcSEmmanuel Vadot pins = "gpio8"; 107*2eb4d8dcSEmmanuel Vadot }; 108*2eb4d8dcSEmmanuel Vadot 109*2eb4d8dcSEmmanuel Vadot pinctrl_inet_fail_led: inet_fail_led-pins { 110*2eb4d8dcSEmmanuel Vadot function = "inet_fail_led"; 111*2eb4d8dcSEmmanuel Vadot pins = "gpio9"; 112*2eb4d8dcSEmmanuel Vadot }; 113*2eb4d8dcSEmmanuel Vadot 114*2eb4d8dcSEmmanuel Vadot pinctrl_dsl_led: dsl_led-pins { 115*2eb4d8dcSEmmanuel Vadot function = "dsl_led"; 116*2eb4d8dcSEmmanuel Vadot pins = "gpio10"; 117*2eb4d8dcSEmmanuel Vadot }; 118*2eb4d8dcSEmmanuel Vadot 119*2eb4d8dcSEmmanuel Vadot pinctrl_post_fail_led: post_fail_led-pins { 120*2eb4d8dcSEmmanuel Vadot function = "post_fail_led"; 121*2eb4d8dcSEmmanuel Vadot pins = "gpio11"; 122*2eb4d8dcSEmmanuel Vadot }; 123*2eb4d8dcSEmmanuel Vadot 124*2eb4d8dcSEmmanuel Vadot pinctrl_wlan_wps_led: wlan_wps_led-pins { 125*2eb4d8dcSEmmanuel Vadot function = "wlan_wps_led"; 126*2eb4d8dcSEmmanuel Vadot pins = "gpio12"; 127*2eb4d8dcSEmmanuel Vadot }; 128*2eb4d8dcSEmmanuel Vadot 129*2eb4d8dcSEmmanuel Vadot pinctrl_usb_pwron: usb_pwron-pins { 130*2eb4d8dcSEmmanuel Vadot function = "usb_pwron"; 131*2eb4d8dcSEmmanuel Vadot pins = "gpio13"; 132*2eb4d8dcSEmmanuel Vadot }; 133*2eb4d8dcSEmmanuel Vadot 134*2eb4d8dcSEmmanuel Vadot pinctrl_usb_device_led: usb_device_led-pins { 135*2eb4d8dcSEmmanuel Vadot function = "usb_device_led"; 136*2eb4d8dcSEmmanuel Vadot pins = "gpio13"; 137*2eb4d8dcSEmmanuel Vadot }; 138*2eb4d8dcSEmmanuel Vadot 139*2eb4d8dcSEmmanuel Vadot pinctrl_usb_active: usb_active-pins { 140*2eb4d8dcSEmmanuel Vadot function = "usb_active"; 141*2eb4d8dcSEmmanuel Vadot pins = "gpio40"; 142*2eb4d8dcSEmmanuel Vadot }; 143*2eb4d8dcSEmmanuel Vadot }; 144