--- zzzz-none-000/linux-3.10.107/Documentation/devicetree/bindings/tty/serial/msm_serial.txt 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/Documentation/devicetree/bindings/tty/serial/msm_serial.txt 2021-02-04 17:41:59.000000000 +0000 @@ -25,3 +25,60 @@ <0x19c00000 0x1000>; interrupts = <195>; }; + +* Qualcomm MSM HSUART + +Required properties: +- compatible : one of: + - "qcom,msm-lsuart-v14" +- reg : offset and length of the register set for the device. +- interrupts : should contain the uart interrupt. + +Optional properties: +- qcom,config-gpio : Set this value if UART GPIOs need to be configured by driver. +set 4 if 4-wire UART used (for Tx, Rx, CTS, RFR GPIOs). +Set 1 if 2-wire UART used (for Tx, Rx GPIOs). +- qcom,-gpio : handle to the GPIO node, see "gpios property" in +Documentation/devicetree/bindings/gpio/gpio.txt. +"gpio-name" can be "tx", "rx", "cts" and "rfr" based on number of UART GPIOs +need to configured. +qcom,use-pm : If present, this property will cause the device to prevent system +suspend as long as the port remains open. +- Refer to "Documentation/devicetree/bindings/arm/msm/msm_bus.txt" for below properties: + - qcom,msm_bus,name + - qcom,msm_bus,num_cases + - qcom,msm_bus,active_only + - qcom,msm_bus,num_paths + - qcom,msm_bus,vectors + +Aliases: +An alias may optionally be used to bind the serial device to a tty device +(ttyHSLx) with a given line number. Aliases are of the form serial where +is an integer representing the line number to use. On systems with multiple +serial devices present it is recommended that an alias be defined for each such +device. + +Example: + aliases { + serial0 = &uart0; // This device will be called ttyHSL0 + }; + + uart0: serial@19c400000 { + compatible = "qcom,msm-lsuart-v14" + reg = <0x19c40000 0x1000">; + interrupts = <195>; + + qcom,config-gpio = <4>; + qcom,tx-gpio = <&msmgpio 41 0x00>; + qcom,rx-gpio = <&msmgpio 42 0x00>; + qcom,cts-gpio = <&msmgpio 43 0x00>; + qcom,rfr-gpio = <&msmgpio 44 0x00>; + qcom,use-pm; + + qcom,msm-bus,name = "serial_uart0"; + qcom,msm-bus,num-cases = <2>; + qcom,msm-bus,num-paths = <1>; + qcom,msm-bus,vectors-KBps = + <84 512 0 0>, + <84 512 500 800>; + };