Praneeth Paladugu | bcb9f5a | 2017-03-21 17:55:19 -0700 | [diff] [blame] | 1 | /* Copyright (c) 2017, The Linux Foundation. All rights reserved. |
Saurabh Kothawade | 78041ee | 2017-01-16 16:38:09 -0800 | [diff] [blame] | 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 | #include <dt-bindings/msm/msm-bus-ids.h> |
| 15 | #include <dt-bindings/clock/qcom,videocc-sdm845.h> |
| 16 | |
| 17 | &soc { |
Praneeth Paladugu | 8b9c21c | 2017-03-16 17:49:31 -0700 | [diff] [blame] | 18 | msm_vidc: qcom,vidc@aa00000 { |
Praneeth Paladugu | d5bf7bc | 2017-05-29 23:41:04 -0700 | [diff] [blame] | 19 | compatible = "qcom,msm-vidc", "qcom,sdm845-vidc"; |
Maheshwar Ajja | fd1dc75 | 2017-04-13 12:51:43 -0700 | [diff] [blame] | 20 | status = "ok"; |
Praneeth Paladugu | b71968b | 2015-08-19 20:47:57 -0700 | [diff] [blame] | 21 | reg = <0xaa00000 0x200000>; |
| 22 | interrupts = <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>; |
Praneeth Paladugu | 8b9c21c | 2017-03-16 17:49:31 -0700 | [diff] [blame] | 23 | |
Shivendra Kakrania | 15bc7da | 2017-05-10 13:51:00 -0700 | [diff] [blame] | 24 | /* LLCC Info */ |
| 25 | cache-slice-names = "vidsc0", "vidsc1"; |
| 26 | cache-slices = <&llcc 2>, <&llcc 3>; |
| 27 | |
Praneeth Paladugu | b71968b | 2015-08-19 20:47:57 -0700 | [diff] [blame] | 28 | /* Supply */ |
| 29 | venus-supply = <&venus_gdsc>; |
| 30 | venus-core0-supply = <&vcodec0_gdsc>; |
| 31 | venus-core1-supply = <&vcodec1_gdsc>; |
Praneeth Paladugu | 8b9c21c | 2017-03-16 17:49:31 -0700 | [diff] [blame] | 32 | |
Praneeth Paladugu | b71968b | 2015-08-19 20:47:57 -0700 | [diff] [blame] | 33 | /* Clocks */ |
| 34 | clock-names = "core_clk", "iface_clk", "bus_clk", |
Maheshwar Ajja | bd96a43 | 2017-04-18 16:41:44 -0700 | [diff] [blame] | 35 | "core0_clk", "core0_bus_clk", |
| 36 | "core1_clk", "core1_bus_clk"; |
Praneeth Paladugu | b71968b | 2015-08-19 20:47:57 -0700 | [diff] [blame] | 37 | clocks = <&clock_videocc VIDEO_CC_VENUS_CTL_CORE_CLK>, |
| 38 | <&clock_videocc VIDEO_CC_VENUS_AHB_CLK>, |
| 39 | <&clock_videocc VIDEO_CC_VENUS_CTL_AXI_CLK>, |
| 40 | <&clock_videocc VIDEO_CC_VCODEC0_CORE_CLK>, |
Maheshwar Ajja | bd96a43 | 2017-04-18 16:41:44 -0700 | [diff] [blame] | 41 | <&clock_videocc VIDEO_CC_VCODEC0_AXI_CLK>, |
| 42 | <&clock_videocc VIDEO_CC_VCODEC1_CORE_CLK>, |
| 43 | <&clock_videocc VIDEO_CC_VCODEC1_AXI_CLK>; |
Praneeth Paladugu | b71968b | 2015-08-19 20:47:57 -0700 | [diff] [blame] | 44 | qcom,proxy-clock-names = "core_clk", "iface_clk", |
Maheshwar Ajja | bd96a43 | 2017-04-18 16:41:44 -0700 | [diff] [blame] | 45 | "bus_clk", "core0_clk", "core0_bus_clk", |
| 46 | "core1_clk", "core1_bus_clk"; |
Maheshwar Ajja | 522758b | 2017-04-20 15:31:13 -0700 | [diff] [blame] | 47 | qcom,clock-configs = <0x1 0x0 0x0 0x1 0x0 0x1 0x0>; |
Praneeth Paladugu | 74906ec | 2017-06-29 14:59:27 -0700 | [diff] [blame] | 48 | qcom,allowed-clock-rates = <100000000 200000000 320000000 |
| 49 | 380000000 444000000 533000000>; |
Praneeth Paladugu | 8b9c21c | 2017-03-16 17:49:31 -0700 | [diff] [blame] | 50 | |
Praneeth Paladugu | b71968b | 2015-08-19 20:47:57 -0700 | [diff] [blame] | 51 | /* Buses */ |
| 52 | bus_cnoc { |
| 53 | compatible = "qcom,msm-vidc,bus"; |
| 54 | label = "cnoc"; |
| 55 | qcom,bus-master = <MSM_BUS_MASTER_AMPSS_M0>; |
| 56 | qcom,bus-slave = <MSM_BUS_SLAVE_VENUS_CFG>; |
| 57 | qcom,bus-governor = "performance"; |
| 58 | qcom,bus-range-kbps = <1000 1000>; |
| 59 | }; |
Praneeth Paladugu | 8b9c21c | 2017-03-16 17:49:31 -0700 | [diff] [blame] | 60 | |
Praneeth Paladugu | b71968b | 2015-08-19 20:47:57 -0700 | [diff] [blame] | 61 | venus_bus_ddr { |
| 62 | compatible = "qcom,msm-vidc,bus"; |
| 63 | label = "venus-ddr"; |
| 64 | qcom,bus-master = <MSM_BUS_MASTER_VIDEO_P0>; |
| 65 | qcom,bus-slave = <MSM_BUS_SLAVE_EBI_CH0>; |
Praneeth Paladugu | f0bbd53 | 2017-06-16 07:27:08 -0700 | [diff] [blame] | 66 | qcom,bus-governor = "msm-vidc-ddr"; |
Praneeth Paladugu | b71968b | 2015-08-19 20:47:57 -0700 | [diff] [blame] | 67 | qcom,bus-range-kbps = <1000 3388000>; |
| 68 | }; |
| 69 | arm9_bus_ddr { |
| 70 | compatible = "qcom,msm-vidc,bus"; |
| 71 | label = "venus-arm9-ddr"; |
| 72 | qcom,bus-master = <MSM_BUS_MASTER_VIDEO_P0>; |
| 73 | qcom,bus-slave = <MSM_BUS_SLAVE_EBI_CH0>; |
| 74 | qcom,bus-governor = "performance"; |
| 75 | qcom,bus-range-kbps = <1000 1000>; |
| 76 | }; |
Shivendra Kakrania | 15bc7da | 2017-05-10 13:51:00 -0700 | [diff] [blame] | 77 | venus_bus_llcc { |
| 78 | compatible = "qcom,msm-vidc,bus"; |
| 79 | label = "venus-llcc"; |
| 80 | qcom,bus-master = <MSM_BUS_MASTER_VIDEO_P0>; |
| 81 | qcom,bus-slave = <MSM_BUS_SLAVE_LLCC>; |
Shivendra Kakrania | 93d1046 | 2017-07-27 17:20:55 -0700 | [diff] [blame^] | 82 | qcom,bus-governor = "msm-vidc-llcc"; |
Shivendra Kakrania | 15bc7da | 2017-05-10 13:51:00 -0700 | [diff] [blame] | 83 | qcom,bus-range-kbps = <17000 125700>; |
| 84 | }; |
Praneeth Paladugu | 8b9c21c | 2017-03-16 17:49:31 -0700 | [diff] [blame] | 85 | |
Praneeth Paladugu | b71968b | 2015-08-19 20:47:57 -0700 | [diff] [blame] | 86 | /* MMUs */ |
| 87 | non_secure_cb { |
| 88 | compatible = "qcom,msm-vidc,context-bank"; |
| 89 | label = "venus_ns"; |
| 90 | iommus = |
Patrick Daly | 38ff087 | 2017-04-18 16:37:44 -0700 | [diff] [blame] | 91 | <&apps_smmu 0x10a0 0x8>, |
Patrick Daly | c4aaa90 | 2017-04-24 12:45:11 -0700 | [diff] [blame] | 92 | <&apps_smmu 0x10b0 0x0>; |
Praneeth Paladugu | b71968b | 2015-08-19 20:47:57 -0700 | [diff] [blame] | 93 | buffer-types = <0xfff>; |
| 94 | virtual-addr-pool = <0x70800000 0x6f800000>; |
| 95 | }; |
Praneeth Paladugu | 8b9c21c | 2017-03-16 17:49:31 -0700 | [diff] [blame] | 96 | |
Praneeth Paladugu | b71968b | 2015-08-19 20:47:57 -0700 | [diff] [blame] | 97 | secure_bitstream_cb { |
| 98 | compatible = "qcom,msm-vidc,context-bank"; |
| 99 | label = "venus_sec_bitstream"; |
| 100 | iommus = |
Patrick Daly | 38ff087 | 2017-04-18 16:37:44 -0700 | [diff] [blame] | 101 | <&apps_smmu 0x10a1 0x8>, |
| 102 | <&apps_smmu 0x10a5 0x8>; |
Praneeth Paladugu | b71968b | 2015-08-19 20:47:57 -0700 | [diff] [blame] | 103 | buffer-types = <0x241>; |
| 104 | virtual-addr-pool = <0x4b000000 0x25800000>; |
| 105 | qcom,secure-context-bank; |
| 106 | }; |
Praneeth Paladugu | 8b9c21c | 2017-03-16 17:49:31 -0700 | [diff] [blame] | 107 | |
Praneeth Paladugu | b71968b | 2015-08-19 20:47:57 -0700 | [diff] [blame] | 108 | secure_pixel_cb { |
| 109 | compatible = "qcom,msm-vidc,context-bank"; |
| 110 | label = "venus_sec_pixel"; |
| 111 | iommus = |
Patrick Daly | 38ff087 | 2017-04-18 16:37:44 -0700 | [diff] [blame] | 112 | <&apps_smmu 0x10a3 0x8>; |
Praneeth Paladugu | b71968b | 2015-08-19 20:47:57 -0700 | [diff] [blame] | 113 | buffer-types = <0x106>; |
| 114 | virtual-addr-pool = <0x25800000 0x25800000>; |
| 115 | qcom,secure-context-bank; |
| 116 | }; |
Praneeth Paladugu | 8b9c21c | 2017-03-16 17:49:31 -0700 | [diff] [blame] | 117 | |
Praneeth Paladugu | b71968b | 2015-08-19 20:47:57 -0700 | [diff] [blame] | 118 | secure_non_pixel_cb { |
| 119 | compatible = "qcom,msm-vidc,context-bank"; |
| 120 | label = "venus_sec_non_pixel"; |
| 121 | iommus = |
Patrick Daly | 38ff087 | 2017-04-18 16:37:44 -0700 | [diff] [blame] | 122 | <&apps_smmu 0x10a4 0x8>, |
Patrick Daly | c4aaa90 | 2017-04-24 12:45:11 -0700 | [diff] [blame] | 123 | <&apps_smmu 0x10b4 0x0>; |
Praneeth Paladugu | b71968b | 2015-08-19 20:47:57 -0700 | [diff] [blame] | 124 | buffer-types = <0x480>; |
| 125 | virtual-addr-pool = <0x1000000 0x24800000>; |
| 126 | qcom,secure-context-bank; |
| 127 | }; |
| 128 | }; |
Saurabh Kothawade | 78041ee | 2017-01-16 16:38:09 -0800 | [diff] [blame] | 129 | }; |