Satyajit Desai | 6dfa303 | 2016-08-19 11:34:39 -0700 | [diff] [blame] | 1 | Qualcomm IMEM |
| 2 | |
| 3 | IMEM is fast on-chip memory used for various debug features and dma transactions. |
| 4 | |
| 5 | Required properties |
| 6 | |
| 7 | -compatible: "qcom,msm-imem" |
| 8 | -reg: start address and size of imem memory |
| 9 | |
| 10 | If any children nodes exist the following properties are required: |
| 11 | -#address-cells: should be 1 |
| 12 | -#size-cells: should be 1 |
| 13 | -ranges: A triplet that includes the child address, parent address, & |
| 14 | length. The child address is assumed to be 0. |
| 15 | |
| 16 | Child nodes: |
| 17 | ------------ |
| 18 | |
| 19 | Peripheral Image Loader (pil): |
| 20 | ------------------------------ |
| 21 | Required properties: |
| 22 | -compatible: "qcom,msm-imem-pil" |
| 23 | -reg: start address and size of PIL region in imem |
| 24 | |
| 25 | Bootloader Stats: |
| 26 | ----------------- |
| 27 | Required properties: |
| 28 | -compatible: "qcom,msm-imem-boot_stats" |
| 29 | -reg: start address and size of boot_stats region in imem |
| 30 | |
| 31 | Cache error reporting: |
| 32 | ----------------- |
| 33 | Required properties: |
| 34 | -compatible: "qcom,msm-imem-cache_erp" |
| 35 | -reg: start address and size of cache_erp region in imem |
| 36 | |
| 37 | Memory Dump: |
| 38 | ------------ |
| 39 | Required properties: |
| 40 | -compatible: "qcom,msm-imem-mem_dump_table" |
| 41 | -reg: start address and size of mem_dump_table region in imem |
| 42 | |
| 43 | Restart Reason: |
| 44 | --------------- |
| 45 | Required properties: |
| 46 | -compatible: "qcom,msm-imem-restart_reason |
| 47 | -reg: start address and size of restart_reason region in imem |
| 48 | |
| 49 | Download Mode: |
| 50 | -------------- |
| 51 | Required properties: |
| 52 | -compatible: "qcom,msm-imem-download_mode" |
| 53 | -reg: start address and size of download_mode region in imem |
| 54 | |
| 55 | Emergency Download Mode: |
| 56 | ------------------------ |
| 57 | -compatible: "qcom,msm-imem-emergency_download_mode" |
| 58 | -reg: start address and size of emergency_download_mode region in imem |
| 59 | |
Channagoud Kadabi | ca9159d | 2017-04-25 19:44:07 -0700 | [diff] [blame] | 60 | Kaslr Offset: |
| 61 | ------------------------ |
| 62 | -compatible: "qcom,msm-imem-kaslr_offset" |
| 63 | -reg: start address and size of kaslr_offset region in imem |
| 64 | |
Satyajit Desai | 6dfa303 | 2016-08-19 11:34:39 -0700 | [diff] [blame] | 65 | USB Diag Cookies: |
| 66 | ----------------- |
| 67 | Memory region used to store USB PID and serial numbers to be used by |
| 68 | bootloader in download mode. |
| 69 | |
Avaneesh Kumar Dwivedi | ec6d139 | 2017-07-06 21:18:03 +0530 | [diff] [blame] | 70 | SSR Minidump Offset |
| 71 | ------------------- |
| 72 | -Compatible: "qcom,msm-imem-minidump" |
| 73 | -reg: start address and size of ssr imem region |
| 74 | |
Satyajit Desai | 6dfa303 | 2016-08-19 11:34:39 -0700 | [diff] [blame] | 75 | Required properties: |
| 76 | -compatible: "qcom,msm-imem-diag-dload" |
| 77 | -reg: start address and size of USB Diag download mode region in imem |
| 78 | |
| 79 | Example: |
| 80 | |
| 81 | qcom,msm-imem { |
| 82 | compatible = "qcom,msm-imem"; |
| 83 | reg = <0xdeadbeef 0x1000>; /* < start_address size > */ |
| 84 | ranges = <0x0 0xdeadbeef 0x1000>; |
| 85 | #address-cells = <1>; |
| 86 | #size-cells = <1>; |
| 87 | |
| 88 | download_mode@0 { |
| 89 | compatible = "qcom,msm-imem-download_mode"; |
| 90 | reg = <0x0 8>; |
| 91 | }; |
| 92 | |
| 93 | restart_reason@65c { |
| 94 | compatible = "qcom,msm-imem-restart_reason"; |
| 95 | reg = <0x65c 4>; |
| 96 | }; |
| 97 | |
| 98 | imem_cache_erp: cache_erp@6a4 { |
| 99 | compatible = "qcom,msm-imem-cache_erp"; |
| 100 | reg = <0x6a4 4>; |
| 101 | }; |
| 102 | |
| 103 | boot_stats@6b0 { |
| 104 | compatible = "qcom,msm-imem-boot_stats"; |
| 105 | reg = <0x6b0 32>; |
| 106 | }; |
| 107 | |
Channagoud Kadabi | ca9159d | 2017-04-25 19:44:07 -0700 | [diff] [blame] | 108 | kaslr_offset@6d0 { |
| 109 | compatible = "qcom,msm-imem-kaslr_offset"; |
| 110 | reg = <0x6d0 12>; |
| 111 | }; |
| 112 | |
| 113 | |
Satyajit Desai | 6dfa303 | 2016-08-19 11:34:39 -0700 | [diff] [blame] | 114 | pil@94c { |
| 115 | compatible = "qcom,msm-imem-pil"; |
| 116 | reg = <0x94c 200>; |
| 117 | }; |
| 118 | |
| 119 | emergency_download_mode@fe0 { |
| 120 | compatible = "qcom,msm-imem-emergency_download_mode"; |
| 121 | reg = <0xfe0 12>; |
| 122 | }; |
Avaneesh Kumar Dwivedi | ec6d139 | 2017-07-06 21:18:03 +0530 | [diff] [blame] | 123 | |
| 124 | ss_mdump@b88 { |
| 125 | compatible = "qcom,msm-imem-minidump"; |
| 126 | reg = <0xb88 28>; |
| 127 | }; |
Satyajit Desai | 6dfa303 | 2016-08-19 11:34:39 -0700 | [diff] [blame] | 128 | }; |