0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/mfd/brcm,bcm6318-gpio-sysctl.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Broadcom BCM6318 GPIO System Controller Device Tree Bindings
0008
0009 maintainers:
0010 - Álvaro Fernández Rojas <noltari@gmail.com>
0011 - Jonas Gorski <jonas.gorski@gmail.com>
0012
0013 description:
0014 Broadcom BCM6318 SoC GPIO system controller which provides a register map
0015 for controlling the GPIO and pins of the SoC.
0016
0017 properties:
0018 "#address-cells": true
0019
0020 "#size-cells": true
0021
0022 compatible:
0023 items:
0024 - const: brcm,bcm6318-gpio-sysctl
0025 - const: syscon
0026 - const: simple-mfd
0027
0028 ranges:
0029 maxItems: 1
0030
0031 reg:
0032 maxItems: 1
0033
0034 patternProperties:
0035 "^gpio@[0-9a-f]+$":
0036 # Child node
0037 type: object
0038 $ref: "../gpio/brcm,bcm6345-gpio.yaml"
0039 description:
0040 GPIO controller for the SoC GPIOs. This child node definition
0041 should follow the bindings specified in
0042 Documentation/devicetree/bindings/gpio/brcm,bcm6345-gpio.yaml.
0043
0044 "^pinctrl@[0-9a-f]+$":
0045 # Child node
0046 type: object
0047 $ref: "../pinctrl/brcm,bcm6318-pinctrl.yaml"
0048 description:
0049 Pin controller for the SoC pins. This child node definition
0050 should follow the bindings specified in
0051 Documentation/devicetree/bindings/pinctrl/brcm,bcm6318-pinctrl.yaml.
0052
0053 required:
0054 - "#address-cells"
0055 - compatible
0056 - ranges
0057 - reg
0058 - "#size-cells"
0059
0060 additionalProperties: false
0061
0062 examples:
0063 - |
0064 syscon@10000080 {
0065 #address-cells = <1>;
0066 #size-cells = <1>;
0067 compatible = "brcm,bcm6318-gpio-sysctl", "syscon", "simple-mfd";
0068 reg = <0x10000080 0x80>;
0069 ranges = <0 0x10000080 0x80>;
0070
0071 gpio@0 {
0072 compatible = "brcm,bcm6318-gpio";
0073 reg-names = "dirout", "dat";
0074 reg = <0x0 0x8>, <0x8 0x8>;
0075
0076 gpio-controller;
0077 gpio-ranges = <&pinctrl 0 0 50>;
0078 #gpio-cells = <2>;
0079 };
0080
0081 pinctrl: pinctrl@10 {
0082 compatible = "brcm,bcm6318-pinctrl";
0083 reg = <0x18 0x10>, <0x54 0x18>;
0084
0085 pinctrl_ephy0_spd_led: ephy0_spd_led-pins {
0086 function = "ephy0_spd_led";
0087 pins = "gpio0";
0088 };
0089
0090 pinctrl_ephy1_spd_led: ephy1_spd_led-pins {
0091 function = "ephy1_spd_led";
0092 pins = "gpio1";
0093 };
0094
0095 pinctrl_ephy2_spd_led: ephy2_spd_led-pins {
0096 function = "ephy2_spd_led";
0097 pins = "gpio2";
0098 };
0099
0100 pinctrl_ephy3_spd_led: ephy3_spd_led-pins {
0101 function = "ephy3_spd_led";
0102 pins = "gpio3";
0103 };
0104
0105 pinctrl_ephy0_act_led: ephy0_act_led-pins {
0106 function = "ephy0_act_led";
0107 pins = "gpio4";
0108 };
0109
0110 pinctrl_ephy1_act_led: ephy1_act_led-pins {
0111 function = "ephy1_act_led";
0112 pins = "gpio5";
0113 };
0114
0115 pinctrl_ephy2_act_led: ephy2_act_led-pins {
0116 function = "ephy2_act_led";
0117 pins = "gpio6";
0118 };
0119
0120 pinctrl_ephy3_act_led: ephy3_act_led-pins {
0121 function = "ephy3_act_led";
0122 pins = "gpio7";
0123 };
0124
0125 pinctrl_serial_led: serial_led-pins {
0126 pinctrl_serial_led_data: serial_led_data-pins {
0127 function = "serial_led_data";
0128 pins = "gpio6";
0129 };
0130
0131 pinctrl_serial_led_clk: serial_led_clk-pins {
0132 function = "serial_led_clk";
0133 pins = "gpio7";
0134 };
0135 };
0136
0137 pinctrl_inet_act_led: inet_act_led-pins {
0138 function = "inet_act_led";
0139 pins = "gpio8";
0140 };
0141
0142 pinctrl_inet_fail_led: inet_fail_led-pins {
0143 function = "inet_fail_led";
0144 pins = "gpio9";
0145 };
0146
0147 pinctrl_dsl_led: dsl_led-pins {
0148 function = "dsl_led";
0149 pins = "gpio10";
0150 };
0151
0152 pinctrl_post_fail_led: post_fail_led-pins {
0153 function = "post_fail_led";
0154 pins = "gpio11";
0155 };
0156
0157 pinctrl_wlan_wps_led: wlan_wps_led-pins {
0158 function = "wlan_wps_led";
0159 pins = "gpio12";
0160 };
0161
0162 pinctrl_usb_pwron: usb_pwron-pins {
0163 function = "usb_pwron";
0164 pins = "gpio13";
0165 };
0166
0167 pinctrl_usb_device_led: usb_device_led-pins {
0168 function = "usb_device_led";
0169 pins = "gpio13";
0170 };
0171
0172 pinctrl_usb_active: usb_active-pins {
0173 function = "usb_active";
0174 pins = "gpio40";
0175 };
0176 };
0177 };