-
Notifications
You must be signed in to change notification settings - Fork 336
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
[experimental-tmp2] lk2nd: dts: msm8994: include xiaomi-libra dts #253
Open
fekz115
wants to merge
3
commits into
msm8916-mainline:experimental-tmp2
Choose a base branch
from
fekz115:libra-staging
base: experimental-tmp2
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.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
|
||
#include <skeleton32.dtsi> | ||
#include <lk2nd.dtsi> | ||
|
||
&lk2nd { | ||
nokia-moneypenny { | ||
model = "Nokia Lumia 630"; | ||
compatible = "nokia,moneypenny"; | ||
}; | ||
}; |
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,5 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
LOCAL_DIR := $(GET_LOCAL_DIR) | ||
|
||
DTBS += \ | ||
$(LOCAL_DIR)/lumia.dtb \ |
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,14 @@ | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
|
||
#include <skeleton64.dtsi> | ||
#include <lk2nd.dtsi> | ||
|
||
/ { | ||
qcom,msm-id = <QCOM_ID_APQ8016 0>; | ||
qcom,board-id = <QCOM_BOARD_ID_SBC 0>; | ||
}; | ||
|
||
&lk2nd { | ||
model = "APQ8016 SBC"; | ||
compatible = "apq8016,sbc"; | ||
}; |
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,6 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
#include "msm8916-motorola-harpia.dtsi" | ||
|
||
/ { | ||
qcom,board-id = <0x4D 0x81B0>; | ||
}; |
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,6 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
#include "msm8916-motorola-harpia.dtsi" | ||
|
||
/ { | ||
qcom,board-id = <0x4E 0x81B0>; | ||
}; |
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,18 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
#include "msm8916-motorola.dtsi" | ||
|
||
&lk2nd { | ||
model = "Motorola Moto G4 Play (harpia)"; | ||
compatible = "motorola,harpia"; | ||
|
||
panel { | ||
compatible = "motorola,harpia-panel", "lk2nd,panel"; | ||
|
||
qcom,mdss_dsi_mot_boe_499_720p_video_v1 { | ||
compatible = "motorola,harpia-panel-boe"; | ||
}; | ||
qcom,mdss_dsi_mot_tianma_499_720p_video_v2 { | ||
compatible = "motorola,harpia-panel-tianma"; | ||
}; | ||
}; | ||
}; |
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,17 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
|
||
/dts-v1/; | ||
|
||
#include <skeleton64.dtsi> | ||
#include <lk2nd.dtsi> | ||
#include <motorola-carrier-channel-ids.dtsi> | ||
|
||
/ { | ||
qcom,msm-id = <QCOM_ID_MSM8916 0>; | ||
}; | ||
|
||
&lk2nd { | ||
unit-info { | ||
compatible = "motorola,unit-info"; | ||
}; | ||
}; |
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,50 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
|
||
#include <skeleton64.dtsi> | ||
#include <lk2nd.dtsi> | ||
|
||
/ { | ||
qcom,msm-id = <QCOM_ID_MSM8916 0>; | ||
qcom,board-id = <QCOM_BOARD_ID_QRD 7>, <QCOM_BOARD_ID_QRD 12>; | ||
}; | ||
|
||
&lk2nd { | ||
wingtech-wt88047 { | ||
model = "Xiaomi Redmi 2 (Wingtech WT88047)"; | ||
compatible = "wingtech,wt88047"; | ||
lk2nd,match-panel; | ||
|
||
panel { | ||
compatible = "wingtech,wt88047-panel"; | ||
|
||
qcom,mdss_dsi_r69431_720p_video { | ||
compatible = "wingtech,sharp-r69431"; | ||
}; | ||
qcom,mdss_dsi_nt35521_720p_video { | ||
compatible = "wingtech,auo-nt35521"; | ||
}; | ||
qcom,mdss_dsi_nt35521s_720p_video { | ||
compatible = "wingtech,boe-nt35521s"; | ||
}; | ||
qcom,mdss_dsi_nt35521_ofilm_720p_video { | ||
compatible = "wingtech,ofilm-nt35521"; | ||
}; | ||
/* qcom,mdss_dsi_otm1285a_720p_video is not supported */ | ||
qcom,mdss_dsi_r61308_720p_video { | ||
compatible = "wingtech,auo-r61308"; | ||
}; | ||
qcom,mdss_dsi_otm1285a_otp_720p_video { | ||
compatible = "wingtech,ebbg-otm1285a"; | ||
}; | ||
qcom,mdss_dsi_r61308_s88047a1_720p_video { | ||
compatible = "wingtech,auo-r61308"; | ||
}; | ||
}; | ||
|
||
smb1360 { | ||
compatible = "wingtech,smb1360-wt88047", "qcom,smb1360"; | ||
bat-id-gpios = <&pmic 3 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN | GPIO_BIAS_DISABLE | | ||
GPIO_DRIVE_STR(3) | GPIO_PMIC_VIN_SEL(0))>; | ||
}; | ||
}; | ||
}; |
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,64 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
|
||
#include <skeleton64.dtsi> | ||
#include <lk2nd.dtsi> | ||
|
||
/ { | ||
qcom,msm-id = <QCOM_ID_MSM8916 0>; | ||
qcom,board-id = <QCOM_BOARD_ID_QRD 9>; | ||
}; | ||
|
||
&lk2nd { | ||
bq-paella { | ||
model = "BQ Aquaris X5 (Longcheer L8910)"; | ||
compatible = "bq,paella", "longcheer,l8910"; | ||
lk2nd,match-bootloader = "paella-*"; | ||
|
||
panel { | ||
compatible = "longcheer,l8910-panel", "lk2nd,panel"; | ||
|
||
qcom,mdss_dsi_truly_otm1288a_720p_video { | ||
compatible = "longcheer,truly-otm1288a"; | ||
}; | ||
qcom,mdss_dsi_truly_otm1288a_720p_cmd { | ||
compatible = "longcheer,truly-otm1288a"; | ||
}; | ||
qcom,mdss_dsi_yushun_NT35520_720p_cmd { | ||
compatible = "longcheer,yushun-nt35520"; | ||
}; | ||
qcom,mdss_dsi_truly_HX8394_720p_video { | ||
compatible = "longcheer,truly-hx8394"; | ||
}; | ||
qcom,mdss_dsi_yushun_NT35521S_720p_video { | ||
compatible = "longcheer,yushun-nt35521s"; | ||
}; | ||
}; | ||
|
||
smb1360 { | ||
compatible = "qcom,smb1360"; | ||
qcom,batt-profile-select; | ||
qcom,batt-id-vref-uv = <1800000>; | ||
qcom,batt-id-rpullup-kohm = <100>; | ||
qcom,profile-a-rid-kohm = <100>; | ||
qcom,profile-b-rid-kohm = <200>; | ||
}; | ||
}; | ||
|
||
wileyfox-crackling { | ||
model = "Wileyfox Swift (Longcheer L8150)"; | ||
compatible = "wileyfox,crackling", "longcheer,l8150"; | ||
lk2nd,match-bootloader = "crackling-*"; | ||
|
||
panel { | ||
compatible = "longcheer,l8150-panel", "lk2nd,panel"; | ||
|
||
/* TODO: qcom,mdss_dsi_truly_otm1288a_720p_video */ | ||
qcom,mdss_dsi_dijing_ILI9881C_720p_video { | ||
compatible = "longcheer,dijing-ili9881c"; | ||
}; | ||
qcom,mdss_dsi_booyi_OTM1287_720p_video { | ||
compatible = "longcheer,booyi-otm1287"; | ||
}; | ||
}; | ||
}; | ||
}; |
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,10 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
LOCAL_DIR := $(GET_LOCAL_DIR) | ||
|
||
QCDTBS += \ | ||
$(LOCAL_DIR)/apq8016-sbc.dtb \ | ||
$(LOCAL_DIR)/msm8916-motorola-harpia-p1b-4d.dtb \ | ||
$(LOCAL_DIR)/msm8916-motorola-harpia-p1b-4e.dtb \ | ||
$(LOCAL_DIR)/msm8916-qrd-7+12.dtb \ | ||
$(LOCAL_DIR)/msm8916-qrd-9.dtb \ | ||
$(LOCAL_DIR)/samsung.dtb \ |
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,89 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
|
||
#include <skeleton64.dtsi> | ||
#include <lk2nd.dtsi> | ||
|
||
#define I2C_GPIO_FLAGS (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN | GPIO_BIAS_DISABLE) | ||
|
||
/ { | ||
/* TODO: Add more */ | ||
qcom,msm-id = <QCOM_ID_MSM8916 0>; | ||
qcom,board-id = <0xCE08FF01 1>, <0xCE08FF01 3>, <0xCE08FF01 7>; | ||
}; | ||
|
||
&lk2nd { | ||
a3lte { | ||
model = "Samsung Galaxy A3 (SM-A300F)"; | ||
compatible = "samsung,a3lte", "samsung,a3"; | ||
lk2nd,match-bootloader = "A300F*"; | ||
|
||
qcom,msm-id = <QCOM_ID_MSM8916 0>; | ||
qcom,board-id = <0xCE08FF01 1>; | ||
|
||
gpio-keys { | ||
compatible = "gpio-keys"; | ||
home { | ||
lk2nd,code = <KEY_HOME>; | ||
gpios = <&tlmm 109 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
}; | ||
}; | ||
}; | ||
|
||
gt58lte { | ||
model = "Samsung Galaxy Tab A 8.0 (LTE, SM-T355)"; | ||
compatible = "samsung,gt58lte", "samsung,gt58"; | ||
lk2nd,match-bootloader = "T355*"; | ||
|
||
qcom,msm-id = <QCOM_ID_MSM8916 0>; | ||
qcom,board-id = <0xCE08FF01 1>; | ||
|
||
gpio-keys { | ||
compatible = "gpio-keys"; | ||
home { | ||
lk2nd,code = <KEY_HOME>; | ||
gpios = <&tlmm 109 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
}; | ||
}; | ||
}; | ||
|
||
gt510lte { | ||
model = "Samsung Galaxy Tab A 9.7 (LTE, SM-T555)"; | ||
compatible = "samsung,gt510lte", "samsung,gt510"; | ||
lk2nd,match-bootloader = "T555*"; | ||
|
||
qcom,msm-id = <QCOM_ID_MSM8916 0>; | ||
qcom,board-id = <0xCE08FF01 7>; | ||
|
||
gpio-keys { | ||
compatible = "gpio-keys"; | ||
home { | ||
lk2nd,code = <KEY_HOME>; | ||
gpios = <&tlmm 109 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
}; | ||
}; | ||
}; | ||
|
||
serranovelte { | ||
model = "Samsung Galaxy S4 Mini Value Edition"; | ||
compatible = "samsung,serranovelte", "samsung,serranove"; | ||
lk2nd,match-bootloader = "I9195I*"; | ||
|
||
qcom,msm-id = <QCOM_ID_MSM8916 0>; | ||
qcom,board-id = <0xCE08FF01 3>; | ||
|
||
muic-reset { | ||
compatible = "samsung,muic-reset"; | ||
i2c-reg = <0x14>; | ||
i2c-sda-gpios = <&tlmm 105 I2C_GPIO_FLAGS>; | ||
i2c-scl-gpios = <&tlmm 106 I2C_GPIO_FLAGS>; | ||
}; | ||
|
||
gpio-keys { | ||
compatible = "gpio-keys"; | ||
home { | ||
lk2nd,code = <KEY_HOME>; | ||
gpios = <&tlmm 109 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
}; | ||
}; | ||
}; | ||
}; |
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,28 @@ | ||
// SPDX-License-Identifier: BSD-3-Clause | ||
#include <skeleton32.dtsi> | ||
#include <lk2nd.dtsi> | ||
|
||
&lk2nd { | ||
samsung-serrano { | ||
model = "Samsung Galaxy S4 Mini (GT-I9195)"; | ||
compatible = "samsung,serranolte", "samsung,serrano"; | ||
lk2nd,match-bootloader = "I9195*"; | ||
|
||
gpio-keys { | ||
compatible = "gpio-keys"; | ||
|
||
volume-up { | ||
lk2nd,code = <KEY_VOLUMEUP>; | ||
gpios = <&tlmm 50 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
}; | ||
volume-down { | ||
lk2nd,code = <KEY_VOLUMEDOWN>; | ||
gpios = <&tlmm 81 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
}; | ||
home { | ||
lk2nd,code = <KEY_HOME>; | ||
gpios = <&tlmm 35 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
}; | ||
}; | ||
}; | ||
}; |
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,5 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
LOCAL_DIR := $(GET_LOCAL_DIR) | ||
|
||
DTBS += \ | ||
$(LOCAL_DIR)/bundle.dtb \ |
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,5 @@ | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
LOCAL_DIR := $(GET_LOCAL_DIR) | ||
|
||
QCDTBS += \ | ||
$(LOCAL_DIR)/samsung.dtb \ |
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,24 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
|
||
#include <skeleton32.dtsi> | ||
#include <lk2nd.dtsi> | ||
|
||
/ { | ||
qcom,msm-id = <0xC208FF01 14 0x10000>; | ||
}; | ||
|
||
&lk2nd { | ||
klte { | ||
model = "Samsung Galaxy S5 (SM-G900F)"; | ||
compatible = "samsung,klte"; | ||
lk2nd,match-bootloader = "G900F*"; | ||
|
||
gpio-keys { | ||
compatible = "gpio-keys"; | ||
home { | ||
lk2nd,code = <KEY_HOME>; | ||
gpios = <&pmic 3 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
}; | ||
}; | ||
}; | ||
}; |
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,4 @@ | ||
LOCAL_DIR := $(GET_LOCAL_DIR) | ||
|
||
ADTBS += \ | ||
$(LOCAL_DIR)/xiaomi-libra.dtb \ |
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,19 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
|
||
#include <skeleton64.dtsi> | ||
#include <lk2nd.dtsi> | ||
|
||
/ { | ||
qcom,msm-id = <QCOM_ID_MSM8992 0>, <252 0>; | ||
qcom,board-id = <12 0>; | ||
}; | ||
|
||
&lk2nd { | ||
libra { | ||
model = "Xiaomi Mi 4C"; | ||
compatible = "xiaomi,libra"; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @fekz115 Here is whitespace (2 tabs), please remove it). |
||
qcom,board-id = <12 0>; | ||
qcom,pmic-id = <65545 65546 0 0>; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd move these to the top level |
||
}; | ||
}; |
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.
I also wonder if there needs to be
libra
nod.