Back to home page

OSCL-LXR

 
 

    


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,bcm6328-gpio-sysctl.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Broadcom BCM6328 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 BCM6328 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,bcm6328-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,bcm6328-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,bcm6328-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,bcm6328-gpio-sysctl", "syscon", "simple-mfd";
0068       reg = <0x10000080 0x80>;
0069       ranges = <0 0x10000080 0x80>;
0070 
0071       gpio@0 {
0072         compatible = "brcm,bcm6328-gpio";
0073         reg-names = "dirout", "dat";
0074         reg = <0x0 0x8>, <0x8 0x8>;
0075 
0076         gpio-controller;
0077         gpio-ranges = <&pinctrl 0 0 32>;
0078         #gpio-cells = <2>;
0079       };
0080 
0081       pinctrl: pinctrl@18 {
0082         compatible = "brcm,bcm6328-pinctrl";
0083         reg = <0x18 0x10>;
0084 
0085         pinctrl_serial_led: serial_led-pins {
0086           pinctrl_serial_led_data: serial_led_data-pins {
0087             function = "serial_led_data";
0088             pins = "gpio6";
0089           };
0090 
0091           pinctrl_serial_led_clk: serial_led_clk-pins {
0092             function = "serial_led_clk";
0093             pins = "gpio7";
0094           };
0095         };
0096 
0097         pinctrl_inet_act_led: inet_act_led-pins {
0098           function = "inet_act_led";
0099           pins = "gpio11";
0100         };
0101 
0102         pinctrl_pcie_clkreq: pcie_clkreq-pins {
0103           function = "pcie_clkreq";
0104           pins = "gpio16";
0105         };
0106 
0107         pinctrl_ephy0_spd_led: ephy0_spd_led-pins {
0108           function = "led";
0109           pins = "gpio17";
0110         };
0111 
0112         pinctrl_ephy1_spd_led: ephy1_spd_led-pins {
0113           function = "led";
0114           pins = "gpio18";
0115         };
0116 
0117         pinctrl_ephy2_spd_led: ephy2_spd_led-pins {
0118           function = "led";
0119           pins = "gpio19";
0120         };
0121 
0122         pinctrl_ephy3_spd_led: ephy3_spd_led-pins {
0123           function = "led";
0124           pins = "gpio20";
0125         };
0126 
0127         pinctrl_ephy0_act_led: ephy0_act_led-pins {
0128           function = "ephy0_act_led";
0129           pins = "gpio25";
0130         };
0131 
0132         pinctrl_ephy1_act_led: ephy1_act_led-pins {
0133           function = "ephy1_act_led";
0134           pins = "gpio26";
0135         };
0136 
0137         pinctrl_ephy2_act_led: ephy2_act_led-pins {
0138           function = "ephy2_act_led";
0139           pins = "gpio27";
0140         };
0141 
0142         pinctrl_ephy3_act_led: ephy3_act_led-pins {
0143           function = "ephy3_act_led";
0144           pins = "gpio28";
0145         };
0146 
0147         pinctrl_hsspi_cs1: hsspi_cs1-pins {
0148           function = "hsspi_cs1";
0149           pins = "hsspi_cs1";
0150         };
0151 
0152         pinctrl_usb_port1_device: usb_port1_device-pins {
0153           function = "usb_device_port";
0154           pins = "usb_port1";
0155         };
0156 
0157         pinctrl_usb_port1_host: usb_port1_host-pins {
0158           function = "usb_host_port";
0159           pins = "usb_port1";
0160         };
0161       };
0162     };