brintos

brintos / linux-shallow public Read only

0
0
Text · 3.5 KiB · c337043 Raw
133 lines · yaml
1# SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause2%YAML 1.23---4$id: http://devicetree.org/schemas/soc/qcom/qcom,gsbi.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Qualcomm General Serial Bus Interface (GSBI)8 9maintainers:10  - Andy Gross <agross@kernel.org>11  - Bjorn Andersson <bjorn.andersson@linaro.org>12  - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>13 14description:15  The GSBI controller is modeled as a node with zero or more child nodes, each16  representing a serial sub-node device that is mux'd as part of the GSBI17  configuration settings.  The mode setting will govern the input/output mode18  of the 4 GSBI IOs.19 20  A GSBI controller node can contain 0 or more child nodes representing serial21  devices.  These serial devices can be a QCOM UART, I2C controller, spi22  controller, or some combination of aforementioned devices.23 24properties:25  compatible:26    const: qcom,gsbi-v1.0.027 28  '#address-cells':29    const: 130 31  cell-index:32    $ref: /schemas/types.yaml#/definitions/uint3233    description:34      The GSBI index.35 36  clocks:37    maxItems: 138 39  clock-names:40    const: iface41 42  qcom,crci:43    $ref: /schemas/types.yaml#/definitions/uint3244    description:45      CRCI MUX value for QUP CRCI ports.  Please reference46      include/dt-bindings/soc/qcom,gsbi.h for valid CRCI mux values.47 48  qcom,mode:49    $ref: /schemas/types.yaml#/definitions/uint3250    description:51      MUX value for configuration of the serial interface.  Please reference52      include/dt-bindings/soc/qcom,gsbi.h for valid mux values.53 54  '#size-cells':55    const: 156 57  syscon-tcsr:58    $ref: /schemas/types.yaml#/definitions/phandle59    description:60      Phandle of TCSR syscon node.Required if child uses dma.61 62  ranges: true63 64  reg:65    maxItems: 166 67patternProperties:68  "spi@[0-9a-f]+$":69    type: object70    $ref: /schemas/spi/qcom,spi-qup.yaml#71 72  "i2c@[0-9a-f]+$":73    type: object74    $ref: /schemas/i2c/qcom,i2c-qup.yaml#75 76  "serial@[0-9a-f]+$":77    type: object78    $ref: /schemas/serial/qcom,msm-uartdm.yaml#79 80required:81  - compatible82  - cell-index83  - clocks84  - clock-names85  - qcom,mode86  - reg87 88additionalProperties: false89 90examples:91  - |92    #include <dt-bindings/clock/qcom,gcc-msm8960.h>93    #include <dt-bindings/interrupt-controller/arm-gic.h>94    #include <dt-bindings/soc/qcom,gsbi.h>95 96    gsbi@12440000 {97        compatible = "qcom,gsbi-v1.0.0";98        reg = <0x12440000 0x100>;99        cell-index = <1>;100        clocks = <&gcc GSBI1_H_CLK>;101        clock-names = "iface";102        #address-cells = <1>;103        #size-cells = <1>;104        ranges;105 106        syscon-tcsr = <&tcsr>;107        qcom,mode = <GSBI_PROT_I2C_UART>;108 109        serial@12450000 {110            compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";111            reg = <0x12450000 0x100>,112                  <0x12400000 0x03>;113            interrupts = <0 193 IRQ_TYPE_LEVEL_HIGH>;114            clocks = <&gcc GSBI1_UART_CLK>, <&gcc GSBI1_H_CLK>;115            clock-names = "core", "iface";116        };117 118        i2c@12460000 {119            compatible = "qcom,i2c-qup-v1.1.1";120            reg = <0x12460000 0x1000>;121            pinctrl-0 = <&i2c1_pins>;122            pinctrl-1 = <&i2c1_pins_sleep>;123            pinctrl-names = "default", "sleep";124            interrupts = <0 194 IRQ_TYPE_LEVEL_HIGH>;125            clocks = <&gcc GSBI1_QUP_CLK>, <&gcc GSBI1_H_CLK>;126            clock-names = "core", "iface";127            #address-cells = <1>;128            #size-cells = <0>;129 130            status = "disabled"; /* UART chosen */131        };132    };133