|
| 1 | +// SPDX-License-Identifier: BSD-3-Clause |
| 2 | + |
| 3 | +#include <skeleton64.dtsi> |
| 4 | +#include <lk2nd.dtsi> |
| 5 | + |
| 6 | +#define I2C_GPIO_FLAGS (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN | GPIO_BIAS_DISABLE) |
| 7 | + |
| 8 | +/ { |
| 9 | + qcom,msm-id = <QCOM_ID_MSM8996 0x30001>; |
| 10 | + qcom,board-id = <QCOM_BOARD_ID_MTP 0>, |
| 11 | + <QCOM_BOARD_ID_MTP 1>, |
| 12 | + <QCOM_BOARD_ID_MTP 2>, |
| 13 | + <QCOM_BOARD_ID_MTP 3>, |
| 14 | + <QCOM_BOARD_ID_MTP 5>, |
| 15 | + <QCOM_BOARD_ID_MTP 6>, |
| 16 | + <QCOM_BOARD_ID_MTP 7>, |
| 17 | + <QCOM_BOARD_ID_MTP 8>, |
| 18 | + <QCOM_BOARD_ID_MTP 9>, |
| 19 | + <QCOM_BOARD_ID_MTP 10>, |
| 20 | + <QCOM_BOARD_ID_MTP 11>, |
| 21 | + <QCOM_BOARD_ID_MTP 13>, |
| 22 | + <QCOM_BOARD_ID_MTP 15>; |
| 23 | + qcom,pmic-id = <0x20009 0x1000C 0x0 0x0>; |
| 24 | + |
| 25 | + /* bootloader refuses the dtb if it cannot delete some nodes. */ |
| 26 | + soc { |
| 27 | + #address-cells = <1>; |
| 28 | + #size-cells = <1>; |
| 29 | + ranges = <0x0 0x0 0x0 0xffffffff>; |
| 30 | + compatible = "simple-bus"; |
| 31 | + |
| 32 | + qcom,memshare { |
| 33 | + compatible = "qcom,memshare"; |
| 34 | + memory-region = <&modem_shared_mem>; |
| 35 | + |
| 36 | + qcom,client_1 { |
| 37 | + compatible = "qcom,memshare-peripheral"; |
| 38 | + qcom,peripheral-size = <0x0>; |
| 39 | + qcom,client-id = <1>; |
| 40 | + label = "modem"; |
| 41 | + }; |
| 42 | + }; |
| 43 | + }; |
| 44 | + |
| 45 | + reserved-memory { |
| 46 | + #address-cells = <2>; |
| 47 | + #size-cells = <2>; |
| 48 | + ranges; |
| 49 | + |
| 50 | + lk_region: lk_region@0 { |
| 51 | + compatible = "removed-dma-pool"; |
| 52 | + no-map; |
| 53 | + reg = <0x0 0x84C00000 0x0 0x00400000>; |
| 54 | + |
| 55 | + }; |
| 56 | + |
| 57 | + sec_debug_region: sec_debug_region@0 { |
| 58 | + compatible = "removed-dma-pool"; |
| 59 | + no-map; |
| 60 | + reg = <0x0 0x85000000 0x0 0x00800000>; |
| 61 | + }; |
| 62 | + |
| 63 | + klog_region: klog_region@0 { |
| 64 | + compatible = "removed-dma-pool"; |
| 65 | + no-map; |
| 66 | + reg = <0x0 0x851FF000 0x0 0x00201000>; |
| 67 | + }; |
| 68 | + |
| 69 | + modem_shared_mem: modem_shared_mem_region@0x93000000 { |
| 70 | + compatible = "removed-dma-pool"; |
| 71 | + no-map; |
| 72 | + reg = <0x0 0x93000000 0x0 0x6000000>; |
| 73 | + }; |
| 74 | + }; |
| 75 | +}; |
| 76 | + |
| 77 | +&lk2nd { |
| 78 | + graceqlte { |
| 79 | + model = "Samsung Galaxy Note 7"; |
| 80 | + compatible = "samsung,graceqlte"; |
| 81 | + lk2nd,match-bootloader = "N930*"; |
| 82 | + |
| 83 | + lk2nd,dtb-files = "msm8996-samsung-graceqlte"; |
| 84 | + |
| 85 | + muic-reset { |
| 86 | + compatible = "samsung,muic-reset"; |
| 87 | + i2c-reg = <0x66>; |
| 88 | + i2c-sda-gpios = <&tlmm 33 I2C_GPIO_FLAGS>; |
| 89 | + i2c-scl-gpios = <&tlmm 32 I2C_GPIO_FLAGS>; |
| 90 | + }; |
| 91 | + |
| 92 | + gpio-keys { |
| 93 | + compatible = "gpio-keys"; |
| 94 | + |
| 95 | + home-key { |
| 96 | + lk2nd,code = <KEY_HOME>; |
| 97 | + gpios = <&pmic 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
| 98 | + }; |
| 99 | + |
| 100 | + vol-up-key { |
| 101 | + lk2nd,code = <KEY_VOLUMEUP>; |
| 102 | + gpios = <&pmic 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
| 103 | + }; |
| 104 | + }; |
| 105 | + |
| 106 | + panel { |
| 107 | + compatible = "samsung,graceqlte-panel", "lk2nd,panel"; |
| 108 | + |
| 109 | + ss_dsi_panel_PBA_BOOTING_HD { |
| 110 | + compatible = "samsung,ea8061v-ams391dt01"; |
| 111 | + }; |
| 112 | + ss_dsi_panel_S6E3HF4_AMB526JS01_WQHD { |
| 113 | + compatible = "samsung,s6e3hf4-amb526js01"; |
| 114 | + }; |
| 115 | + ss_dsi_panel_S6E3HA5_AMB567MK01_WQHD { |
| 116 | + compatible = "samsung,s6e3ha5-amb567mk01"; |
| 117 | + }; |
| 118 | + }; |
| 119 | + }; |
| 120 | + |
| 121 | + heroqlte { |
| 122 | + model = "Samsung Galaxy S7"; |
| 123 | + compatible = "samsung,heroqlte"; |
| 124 | + lk2nd,match-bootloader = "G930*"; |
| 125 | + |
| 126 | + lk2nd,dtb-files = "msm8996-samsung-heroqlte"; |
| 127 | + |
| 128 | + muic-reset { |
| 129 | + compatible = "samsung,muic-reset"; |
| 130 | + i2c-reg = <0x66>; |
| 131 | + i2c-sda-gpios = <&tlmm 33 I2C_GPIO_FLAGS>; |
| 132 | + i2c-scl-gpios = <&tlmm 32 I2C_GPIO_FLAGS>; |
| 133 | + }; |
| 134 | + |
| 135 | + gpio-keys { |
| 136 | + compatible = "gpio-keys"; |
| 137 | + |
| 138 | + home-key { |
| 139 | + lk2nd,code = <KEY_HOME>; |
| 140 | + gpios = <&pmic 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
| 141 | + }; |
| 142 | + |
| 143 | + vol-up-key { |
| 144 | + lk2nd,code = <KEY_VOLUMEUP>; |
| 145 | + gpios = <&pmic 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
| 146 | + }; |
| 147 | + }; |
| 148 | + |
| 149 | + panel { |
| 150 | + compatible = "samsung,heroqlte-panel", "lk2nd,panel"; |
| 151 | + |
| 152 | + ss_dsi_panel_PBA_BOOTING_HD { |
| 153 | + compatible = "samsung,ea8061v-ams391dt01"; |
| 154 | + }; |
| 155 | + ss_dsi_panel_S6E3HA2_AMS509ES01_WQHD { |
| 156 | + compatible = "samsung,s6e3ha2-ams509es01"; |
| 157 | + }; |
| 158 | + ss_dsi_panel_S6E3HA3_AMS567JA01_WQHD { |
| 159 | + compatible = "samsung,s6e3ha3-ams567ja01"; |
| 160 | + }; |
| 161 | + ss_dsi_panel_S6E3HF4_AMB526JS01_WQHD { |
| 162 | + compatible = "samsung,s6e3hf4-amb526js01"; |
| 163 | + }; |
| 164 | + }; |
| 165 | + }; |
| 166 | + |
| 167 | + hero2qlte { |
| 168 | + model = "Samsung Galaxy S7 Edge"; |
| 169 | + compatible = "samsung,hero2qlte"; |
| 170 | + lk2nd,match-bootloader = "G935*"; |
| 171 | + |
| 172 | + lk2nd,dtb-files = "msm8996-samsung-hero2qlte"; |
| 173 | + |
| 174 | + muic-reset { |
| 175 | + compatible = "samsung,muic-reset"; |
| 176 | + i2c-reg = <0x66>; |
| 177 | + i2c-sda-gpios = <&tlmm 33 I2C_GPIO_FLAGS>; |
| 178 | + i2c-scl-gpios = <&tlmm 32 I2C_GPIO_FLAGS>; |
| 179 | + }; |
| 180 | + |
| 181 | + gpio-keys { |
| 182 | + compatible = "gpio-keys"; |
| 183 | + |
| 184 | + home-key { |
| 185 | + lk2nd,code = <KEY_HOME>; |
| 186 | + gpios = <&pmic 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
| 187 | + }; |
| 188 | + |
| 189 | + vol-up-key { |
| 190 | + lk2nd,code = <KEY_VOLUMEUP>; |
| 191 | + gpios = <&pmic 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
| 192 | + }; |
| 193 | + }; |
| 194 | + |
| 195 | + panel { |
| 196 | + compatible = "samsung,hero2qlte-panel", "lk2nd,panel"; |
| 197 | + |
| 198 | + ss_dsi_panel_PBA_BOOTING_HD { |
| 199 | + compatible = "samsung,ea8061v-ams391dt01"; |
| 200 | + }; |
| 201 | + ss_dsi_panel_S6E3HA2_AMS509ES01_WQHD { |
| 202 | + compatible = "samsung,s6e3ha2-ams509es01"; |
| 203 | + }; |
| 204 | + ss_dsi_panel_S6E3HA3_AMS567JA01_WQHD { |
| 205 | + compatible = "samsung,s6e3ha3-ams567ja01"; |
| 206 | + }; |
| 207 | + ss_dsi_panel_S6E3HF4_AMB526JS01_WQHD { |
| 208 | + compatible = "samsung,s6e3hf4-amb526js01"; |
| 209 | + }; |
| 210 | + }; |
| 211 | + }; |
| 212 | +}; |
0 commit comments