Chris Lew | 929d9ba | 2017-08-11 14:42:55 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2017, The Linux Foundation. All rights reserved. |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or modify |
| 4 | * it under the terms of the GNU General Public License version 2 and |
| 5 | * only version 2 as published by the Free Software Foundation. |
| 6 | * |
| 7 | * This program is distributed in the hope that it will be useful, |
| 8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 10 | * GNU General Public License for more details. |
| 11 | */ |
| 12 | |
| 13 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 14 | |
| 15 | &soc { |
| 16 | qcom,smp2p-modem@17811008 { |
| 17 | compatible = "qcom,smp2p"; |
| 18 | reg = <0x17811008 0x4>; |
| 19 | qcom,remote-pid = <1>; |
| 20 | qcom,irq-bitmask = <0x4000>; |
| 21 | interrupts = <GIC_SPI 113 IRQ_TYPE_EDGE_RISING>; |
| 22 | }; |
| 23 | |
| 24 | smp2pgpio_smp2p_15_in: qcom,smp2pgpio-smp2p-15-in { |
| 25 | compatible = "qcom,smp2pgpio"; |
| 26 | qcom,entry-name = "smp2p"; |
| 27 | qcom,remote-pid = <15>; |
| 28 | qcom,is-inbound; |
| 29 | gpio-controller; |
| 30 | #gpio-cells = <2>; |
| 31 | interrupt-controller; |
| 32 | #interrupt-cells = <2>; |
| 33 | }; |
| 34 | |
| 35 | qcom,smp2pgpio_test_smp2p_15_in { |
| 36 | compatible = "qcom,smp2pgpio_test_smp2p_15_in"; |
| 37 | gpios = <&smp2pgpio_smp2p_15_in 0 0>; |
| 38 | }; |
| 39 | |
| 40 | smp2pgpio_smp2p_15_out: qcom,smp2pgpio-smp2p-15-out { |
| 41 | compatible = "qcom,smp2pgpio"; |
| 42 | qcom,entry-name = "smp2p"; |
| 43 | qcom,remote-pid = <15>; |
| 44 | gpio-controller; |
| 45 | #gpio-cells = <2>; |
| 46 | interrupt-controller; |
| 47 | #interrupt-cells = <2>; |
| 48 | }; |
| 49 | |
| 50 | qcom,smp2pgpio_test_smp2p_15_out { |
| 51 | compatible = "qcom,smp2pgpio_test_smp2p_15_out"; |
| 52 | gpios = <&smp2pgpio_smp2p_15_out 0 0>; |
| 53 | }; |
| 54 | |
| 55 | smp2pgpio_smp2p_1_in: qcom,smp2pgpio-smp2p-1-in { |
| 56 | compatible = "qcom,smp2pgpio"; |
| 57 | qcom,entry-name = "smp2p"; |
| 58 | qcom,remote-pid = <1>; |
| 59 | qcom,is-inbound; |
| 60 | gpio-controller; |
| 61 | #gpio-cells = <2>; |
| 62 | interrupt-controller; |
| 63 | #interrupt-cells = <2>; |
| 64 | }; |
| 65 | |
| 66 | qcom,smp2pgpio_test_smp2p_1_in { |
| 67 | compatible = "qcom,smp2pgpio_test_smp2p_1_in"; |
| 68 | gpios = <&smp2pgpio_smp2p_1_in 0 0>; |
| 69 | }; |
| 70 | |
| 71 | smp2pgpio_smp2p_1_out: qcom,smp2pgpio-smp2p-1-out { |
| 72 | compatible = "qcom,smp2pgpio"; |
| 73 | qcom,entry-name = "smp2p"; |
| 74 | qcom,remote-pid = <1>; |
| 75 | gpio-controller; |
| 76 | #gpio-cells = <2>; |
| 77 | interrupt-controller; |
| 78 | #interrupt-cells = <2>; |
| 79 | }; |
| 80 | |
| 81 | qcom,smp2pgpio_test_smp2p_1_out { |
| 82 | compatible = "qcom,smp2pgpio_test_smp2p_1_out"; |
| 83 | gpios = <&smp2pgpio_smp2p_1_out 0 0>; |
| 84 | }; |
| 85 | |
| 86 | /* ssr - inbound entry from mss */ |
| 87 | smp2pgpio_ssr_smp2p_1_in: qcom,smp2pgpio-ssr-smp2p-1-in { |
| 88 | compatible = "qcom,smp2pgpio"; |
| 89 | qcom,entry-name = "slave-kernel"; |
| 90 | qcom,remote-pid = <1>; |
| 91 | qcom,is-inbound; |
| 92 | gpio-controller; |
| 93 | #gpio-cells = <2>; |
| 94 | interrupt-controller; |
| 95 | #interrupt-cells = <2>; |
| 96 | }; |
| 97 | |
| 98 | /* ssr - outbound entry to mss */ |
| 99 | smp2pgpio_ssr_smp2p_1_out: qcom,smp2pgpio-ssr-smp2p-1-out { |
| 100 | compatible = "qcom,smp2pgpio"; |
| 101 | qcom,entry-name = "master-kernel"; |
| 102 | qcom,remote-pid = <1>; |
| 103 | gpio-controller; |
| 104 | #gpio-cells = <2>; |
| 105 | interrupt-controller; |
| 106 | #interrupt-cells = <2>; |
| 107 | }; |
| 108 | }; |
| 109 | |