Girish Mahadevan | ebeed35 | 2016-11-23 10:59:29 -0700 | [diff] [blame] | 1 | * MSM Serial UART for GENI based cores. |
| 2 | |
| 3 | The MSM serial UART driver supports low speed and high speed use-cases. |
| 4 | This is meant only for QUPv3 GENI based cores and isn't backwards compatible. |
| 5 | There is support for console usecases and for higher speed usecases that need |
| 6 | DMA. |
| 7 | |
| 8 | Required properties: |
| 9 | - compatible: should contain "qcom,msm-geni-uart, qcom,msm-geni-console" |
| 10 | for UART console usecases, "qcom,msm-geni-uart, qcom,msm-geni-serial-hs" |
| 11 | for High Speed (HS) usecases. |
| 12 | - reg: Should contain UART register location and length. |
| 13 | - interrupts: Should contain UART core interrupts. |
| 14 | - clocks: clocks needed for UART, includes the core and AHB clock. |
| 15 | - pinctrl-names/pinctrl-0/1: The GPIOs assigned to this core. The names |
| 16 | Should be "active" and "sleep" for the pin confuguration when core is active |
| 17 | or when entering sleep state. |
| 18 | |
Girish Mahadevan | 3e694cc | 2017-04-19 16:50:03 -0600 | [diff] [blame] | 19 | Optional properties: |
| 20 | - qcom,bus-mas: contains the bus master id needed to put in bus bandwidth votes |
| 21 | for inter-connect buses. |
Girish Mahadevan | 7115f4e | 2017-03-15 15:18:34 -0600 | [diff] [blame^] | 22 | - qcom,wakeup-byte: Byte to be injected in the tty layer during wakeup isr. |
Girish Mahadevan | 3e694cc | 2017-04-19 16:50:03 -0600 | [diff] [blame] | 23 | |
Girish Mahadevan | ebeed35 | 2016-11-23 10:59:29 -0700 | [diff] [blame] | 24 | Example: |
| 25 | qupv3_uart11: qcom,qup_uart@0xa88000 { |
| 26 | compatible = "qcom,msm-geni-uart"; |
| 27 | reg = <0xa88000 0x7000>; |
| 28 | reg-names = "se_phys"; |
| 29 | clock-names = "se-clk", "m-ahb", "s-ahb"; |
| 30 | clocks = <&clock_gcc GCC_QUPV3_WRAP0_S0_CLK>, |
| 31 | <&clock_gcc GCC_QUPV3_WRAP_0_M_AHB_CLK>, |
| 32 | <&clock_gcc GCC_QUPV3_WRAP_0_S_AHB_CLK>; |
| 33 | pinctrl-names = "default", "sleep"; |
| 34 | pinctrl-0 = <&qup_1_uart_3_active>; |
| 35 | pinctrl-1 = <&qup_1_uart_3_sleep>; |
| 36 | interrupts = <0 355 0>; |
Girish Mahadevan | 3e694cc | 2017-04-19 16:50:03 -0600 | [diff] [blame] | 37 | qcom,bus-mas = <MASTER_BLSP_2>; |
Girish Mahadevan | 7115f4e | 2017-03-15 15:18:34 -0600 | [diff] [blame^] | 38 | qcom,wakeup-byte = <0xFF>; |
Girish Mahadevan | ebeed35 | 2016-11-23 10:59:29 -0700 | [diff] [blame] | 39 | }; |