The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/contrib/device-tree/Bindings/soc/qcom/qcom,gsbi.txt

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 QCOM GSBI (General Serial Bus Interface) Driver
    2 
    3 The GSBI controller is modeled as a node with zero or more child nodes, each
    4 representing a serial sub-node device that is mux'd as part of the GSBI
    5 configuration settings.  The mode setting will govern the input/output mode of
    6 the 4 GSBI IOs.
    7 
    8 Required properties:
    9 - compatible:   Should contain "qcom,gsbi-v1.0.0"
   10 - cell-index:   Should contain the GSBI index
   11 - reg: Address range for GSBI registers
   12 - clocks: required clock
   13 - clock-names: must contain "iface" entry
   14 - qcom,mode : indicates MUX value for configuration of the serial interface.
   15   Please reference dt-bindings/soc/qcom,gsbi.h for valid mux values.
   16 
   17 Optional properties:
   18 - qcom,crci : indicates CRCI MUX value for QUP CRCI ports.  Please reference
   19   dt-bindings/soc/qcom,gsbi.h for valid CRCI mux values.
   20 - syscon-tcsr: indicates phandle of TCSR syscon node.  Required if child uses
   21   dma.
   22 
   23 Required properties if child node exists:
   24 - #address-cells: Must be 1
   25 - #size-cells: Must be 1
   26 - ranges: Must be present
   27 
   28 Properties for children:
   29 
   30 A GSBI controller node can contain 0 or more child nodes representing serial
   31 devices.  These serial devices can be a QCOM UART, I2C controller, spi
   32 controller, or some combination of aforementioned devices.
   33 
   34 See the following for child node definitions:
   35 Documentation/devicetree/bindings/i2c/qcom,i2c-qup.txt
   36 Documentation/devicetree/bindings/spi/qcom,spi-qup.txt
   37 Documentation/devicetree/bindings/serial/qcom,msm-uartdm.txt
   38 
   39 Example for APQ8064:
   40 
   41 #include <dt-bindings/soc/qcom,gsbi.h>
   42 
   43         gsbi4@16300000 {
   44                 compatible = "qcom,gsbi-v1.0.0";
   45                 cell-index = <4>;
   46                 reg = <0x16300000 0x100>;
   47                 clocks = <&gcc GSBI4_H_CLK>;
   48                 clock-names = "iface";
   49                 #address-cells = <1>;
   50                 #size-cells = <1>;
   51                 ranges;
   52                 qcom,mode = <GSBI_PROT_I2C_UART>;
   53                 qcom,crci = <GSBI_CRCI_QUP>;
   54 
   55                 syscon-tcsr = <&tcsr>;
   56 
   57                 /* child nodes go under here */
   58 
   59                 i2c_qup4: i2c@16380000 {
   60                         compatible = "qcom,i2c-qup-v1.1.1";
   61                         reg = <0x16380000 0x1000>;
   62                         interrupts = <0 153 0>;
   63 
   64                         clocks = <&gcc GSBI4_QUP_CLK>, <&gcc GSBI4_H_CLK>;
   65                         clock-names = "core", "iface";
   66 
   67                         clock-frequency = <200000>;
   68 
   69                         #address-cells = <1>;
   70                         #size-cells = <0>;
   71 
   72                 };
   73 
   74                 uart4:  serial@16340000 {
   75                         compatible = "qcom,msm-uartdm-v1.3", "qcom,msm-uartdm";
   76                         reg = <0x16340000 0x1000>,
   77                                 <0x16300000 0x1000>;
   78                         interrupts = <0 152 0x0>;
   79                         clocks = <&gcc GSBI4_UART_CLK>, <&gcc GSBI4_H_CLK>;
   80                         clock-names = "core", "iface";
   81                 };
   82         };
   83 
   84         tcsr: syscon@1a400000 {
   85                 compatible = "qcom,apq8064-tcsr", "syscon";
   86                 reg = <0x1a400000 0x100>;
   87         };

Cache object: 27ad899fceef6c237c35550626fe8b12


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.