-
Notifications
You must be signed in to change notification settings - Fork 345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Samsung Galaxy (Note 7 & S7 & S7 Edge) #458
Draft
playday3008
wants to merge
1
commit into
msm8916-mainline:main
Choose a base branch
from
playday3008:msm8996-samsung
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+216
−0
Draft
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,212 @@ | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#include <skeleton64.dtsi> | ||
#include <lk2nd.dtsi> | ||
|
||
#define I2C_GPIO_FLAGS (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN | GPIO_BIAS_DISABLE) | ||
|
||
/ { | ||
qcom,msm-id = <QCOM_ID_MSM8996 0x30001>; | ||
qcom,board-id = <QCOM_BOARD_ID_MTP 0>, | ||
<QCOM_BOARD_ID_MTP 1>, | ||
<QCOM_BOARD_ID_MTP 2>, | ||
<QCOM_BOARD_ID_MTP 3>, | ||
<QCOM_BOARD_ID_MTP 5>, | ||
<QCOM_BOARD_ID_MTP 6>, | ||
<QCOM_BOARD_ID_MTP 7>, | ||
<QCOM_BOARD_ID_MTP 8>, | ||
<QCOM_BOARD_ID_MTP 9>, | ||
<QCOM_BOARD_ID_MTP 10>, | ||
<QCOM_BOARD_ID_MTP 11>, | ||
<QCOM_BOARD_ID_MTP 13>, | ||
<QCOM_BOARD_ID_MTP 15>; | ||
qcom,pmic-id = <0x20009 0x1000C 0x0 0x0>; | ||
|
||
/* bootloader refuses the dtb if it cannot delete some nodes. */ | ||
soc { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
ranges = <0x0 0x0 0x0 0xffffffff>; | ||
compatible = "simple-bus"; | ||
|
||
qcom,memshare { | ||
compatible = "qcom,memshare"; | ||
memory-region = <&modem_shared_mem>; | ||
|
||
qcom,client_1 { | ||
compatible = "qcom,memshare-peripheral"; | ||
qcom,peripheral-size = <0x0>; | ||
qcom,client-id = <1>; | ||
label = "modem"; | ||
}; | ||
}; | ||
}; | ||
|
||
reserved-memory { | ||
#address-cells = <2>; | ||
#size-cells = <2>; | ||
ranges; | ||
|
||
lk_region: lk_region@0 { | ||
compatible = "removed-dma-pool"; | ||
no-map; | ||
reg = <0x0 0x84C00000 0x0 0x00400000>; | ||
|
||
}; | ||
|
||
sec_debug_region: sec_debug_region@0 { | ||
compatible = "removed-dma-pool"; | ||
no-map; | ||
reg = <0x0 0x85000000 0x0 0x00800000>; | ||
}; | ||
|
||
klog_region: klog_region@0 { | ||
compatible = "removed-dma-pool"; | ||
no-map; | ||
reg = <0x0 0x851FF000 0x0 0x00201000>; | ||
}; | ||
|
||
modem_shared_mem: modem_shared_mem_region@0x93000000 { | ||
compatible = "removed-dma-pool"; | ||
no-map; | ||
reg = <0x0 0x93000000 0x0 0x6000000>; | ||
}; | ||
}; | ||
}; | ||
|
||
&lk2nd { | ||
graceqlte { | ||
model = "Samsung Galaxy Note 7"; | ||
compatible = "samsung,graceqlte"; | ||
lk2nd,match-bootloader = "N930*"; | ||
|
||
lk2nd,dtb-files = "msm8996-samsung-graceqlte"; | ||
|
||
muic-reset { | ||
compatible = "samsung,muic-reset"; | ||
i2c-reg = <0x66>; | ||
i2c-sda-gpios = <&tlmm 33 I2C_GPIO_FLAGS>; | ||
i2c-scl-gpios = <&tlmm 32 I2C_GPIO_FLAGS>; | ||
}; | ||
|
||
gpio-keys { | ||
compatible = "gpio-keys"; | ||
|
||
home-key { | ||
lk2nd,code = <KEY_HOME>; | ||
gpios = <&pmic 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
}; | ||
|
||
vol-up-key { | ||
lk2nd,code = <KEY_VOLUMEUP>; | ||
gpios = <&pmic 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
}; | ||
}; | ||
|
||
panel { | ||
compatible = "samsung,graceqlte-panel", "lk2nd,panel"; | ||
|
||
ss_dsi_panel_PBA_BOOTING_HD { | ||
compatible = "samsung,ea8061v-ams391dt01"; | ||
}; | ||
ss_dsi_panel_S6E3HF4_AMB526JS01_WQHD { | ||
compatible = "samsung,s6e3hf4-amb526js01"; | ||
}; | ||
ss_dsi_panel_S6E3HA5_AMB567MK01_WQHD { | ||
compatible = "samsung,s6e3ha5-amb567mk01"; | ||
}; | ||
}; | ||
}; | ||
|
||
heroqlte { | ||
model = "Samsung Galaxy S7"; | ||
compatible = "samsung,heroqlte"; | ||
lk2nd,match-bootloader = "G930*"; | ||
|
||
lk2nd,dtb-files = "msm8996-samsung-heroqlte"; | ||
|
||
muic-reset { | ||
compatible = "samsung,muic-reset"; | ||
i2c-reg = <0x66>; | ||
i2c-sda-gpios = <&tlmm 33 I2C_GPIO_FLAGS>; | ||
i2c-scl-gpios = <&tlmm 32 I2C_GPIO_FLAGS>; | ||
}; | ||
|
||
gpio-keys { | ||
compatible = "gpio-keys"; | ||
|
||
home-key { | ||
lk2nd,code = <KEY_HOME>; | ||
gpios = <&pmic 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
}; | ||
|
||
vol-up-key { | ||
lk2nd,code = <KEY_VOLUMEUP>; | ||
gpios = <&pmic 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
}; | ||
}; | ||
|
||
panel { | ||
compatible = "samsung,heroqlte-panel", "lk2nd,panel"; | ||
|
||
ss_dsi_panel_PBA_BOOTING_HD { | ||
compatible = "samsung,ea8061v-ams391dt01"; | ||
}; | ||
ss_dsi_panel_S6E3HA2_AMS509ES01_WQHD { | ||
compatible = "samsung,s6e3ha2-ams509es01"; | ||
}; | ||
ss_dsi_panel_S6E3HA3_AMS567JA01_WQHD { | ||
compatible = "samsung,s6e3ha3-ams567ja01"; | ||
}; | ||
ss_dsi_panel_S6E3HF4_AMB526JS01_WQHD { | ||
compatible = "samsung,s6e3hf4-amb526js01"; | ||
}; | ||
}; | ||
}; | ||
|
||
hero2qlte { | ||
model = "Samsung Galaxy S7 Edge"; | ||
compatible = "samsung,hero2qlte"; | ||
lk2nd,match-bootloader = "G935*"; | ||
|
||
lk2nd,dtb-files = "msm8996-samsung-hero2qlte"; | ||
|
||
muic-reset { | ||
compatible = "samsung,muic-reset"; | ||
i2c-reg = <0x66>; | ||
i2c-sda-gpios = <&tlmm 33 I2C_GPIO_FLAGS>; | ||
i2c-scl-gpios = <&tlmm 32 I2C_GPIO_FLAGS>; | ||
}; | ||
|
||
gpio-keys { | ||
compatible = "gpio-keys"; | ||
|
||
home-key { | ||
lk2nd,code = <KEY_HOME>; | ||
gpios = <&pmic 2 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
}; | ||
|
||
vol-up-key { | ||
lk2nd,code = <KEY_VOLUMEUP>; | ||
gpios = <&pmic 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
}; | ||
}; | ||
|
||
panel { | ||
compatible = "samsung,hero2qlte-panel", "lk2nd,panel"; | ||
|
||
ss_dsi_panel_PBA_BOOTING_HD { | ||
compatible = "samsung,ea8061v-ams391dt01"; | ||
}; | ||
ss_dsi_panel_S6E3HA2_AMS509ES01_WQHD { | ||
compatible = "samsung,s6e3ha2-ams509es01"; | ||
}; | ||
ss_dsi_panel_S6E3HA3_AMS567JA01_WQHD { | ||
compatible = "samsung,s6e3ha3-ams567ja01"; | ||
}; | ||
ss_dsi_panel_S6E3HF4_AMB526JS01_WQHD { | ||
compatible = "samsung,s6e3hf4-amb526js01"; | ||
}; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to confirm, you actually need to reset the muic and you don't get usb unless you have this in, correct?