Skip to content

Commit

Permalink
Add support for Xiaomi Redmi 7 (onclite)
Browse files Browse the repository at this point in the history
  • Loading branch information
barni2000 committed Aug 9, 2023
1 parent 54174be commit a6c6e39
Show file tree
Hide file tree
Showing 3 changed files with 345 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ and then loaded by lk2nd.
- Xiaomi Redmi Note 5 / 5 Plus Snapdragon - vince
- Xiaomi Redmi S2 / Y2 - ysl
- Xiaomi Redmi 6 Pro - sakura
- Xiaomi Redmi 7 - onclite
- Meizu M6 Note - m1721
- Motorola Moto G7 Power - ocean
- Xiaomi Mi A2 Lite - daisy
Expand Down
3 changes: 2 additions & 1 deletion dts/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ DTBS += \
$(LOCAL_DIR)/sdm450-samsung-r04.dtb \
$(LOCAL_DIR)/sdm450-samsung-r05.dtb \
$(LOCAL_DIR)/sdm632-fairphone-fp3.dtb \
$(LOCAL_DIR)/sdm632-motorola-ocean.dtb
$(LOCAL_DIR)/sdm632-motorola-ocean.dtb \
$(LOCAL_DIR)/sdm632-xiaomi-onclite.dtb
endif
ifeq ($(PROJECT), msm8952-secondary)
DTBS += \
Expand Down
342 changes: 342 additions & 0 deletions dts/sdm632-xiaomi-onclite.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,342 @@
/dts-v1/;

/include/ "msm8953.dtsi"

/ {
model = "Xiaomi Redmi 7 (onclite)";
compatible = "xiaomi-onclite", "qcom,sdm632", "lk2nd,device";
qcom,msm-id = <349 0>;
qcom,board-id = <8 0>;

soc {
qcom,rpm-smd {

rpm-regulator-ldoa2 {

regulator-l2 {};
};

rpm-regulator-ldoa5 {

regulator-l5 {};
};

rpm-regulator-ldoa6 {

regulator-l6 {};
};

rpm-regulator-ldoa8 {
regulator-l8 {};
};

rpm-regulator-ldoa10 {

regulator-l10 {};
};

rpm-regulator-ldoa11 {

regulator-l11 {};
};

rpm-regulator-ldoa12 {

regulator-l12 {};
};

rpm-regulator-ldoa17 {

regulator-l17 {};
};

rpm-regulator-ldoa22 {

regulator-l22 {};
};

};

qcom,gcc@1800000 {};

pinctrl@1000000 {

pmx-uartconsole {
uart_console_active {};
};

cam_sensor_mclk0_default {};

cam_sensor_mclk0_sleep {};

cam_sensor_rear_default {};

cam_sensor_rear_sleep {};

cam_sensor_rear_vdig {};

cam_sensor_rear_vdig_sleep {};

cam_sensor_mclk1_default {};

cam_sensor_mclk1_sleep {};

cam_sensor_front_default {};

cam_sensor_front_sleep {};

cam_sensor_mclk2_default {};

cam_sensor_mclk2_sleep {};

cam_sensor_front1_default {};

cam_sensor_front1_sleep {};


pmx_mdss {
mdss_dsi_active {};

mdss_dsi_suspend {};
};

pmx_mdss_te {
mdss_te_active {};

mdss_te_suspend {};
};

sdc1_clk_on {};

sdc1_clk_off {};

sdc1_cmd_on {};

sdc1_cmd_off {};

sdc1_data_on {};

sdc1_data_off {};

sdc1_rclk_on {};

sdc1_rclk_off {};

sdc2_clk_on {};

sdc2_clk_off {};

sdc2_cmd_on {};

sdc2_cmd_off {};

sdc2_data_on {};

sdc2_data_off {};

cd_on {};

nfc {

nfc_int_active {};

nfc_int_suspend {};

nfc_disable_active {};

nfc_disable_suspend {};
};

ts_int_default {};

ts_int_output_high {};

ts_int_output_low {};

ts_int_input {};

ts_rst_default {};

ts_rst_output_high {};

ts_rst_output_low {};

ts_rst_input {};

pmx_ts_int_active {
ts_int_active {};
};

pmx_ts_int_suspend {
ts_int_suspend {};
};

pmx_ts_reset_active {
ts_reset_active {};
};

pmx_ts_reset_suspend {
ts_reset_suspend {};
};

pmx_ts_int_release {
ts_as_int {};
};

pmx_ts_reset_release {
ts_as_reset {};
};

pmx_ts_release {
ts_release {};
};

tlmm_gpio_key {
gpio_key_active {};

gpio_key_suspend {};
};

};

sdhci@7824900 {};

qcom,mdss_mdp@1a00000 {};

qcom,mdss_dsi@0 {
qcom,mdss_dsi_ctrl0@1a94000 {};
qcom,mdss_dsi_ctrl1@1a96000 {};
};

interrupt-controller@b000000 {};

thermal-zones {};

serial@78af000 {};

spi@7af6000 {};

i2c@78b7000 {};

i2c@7af5000 {};

sdhci@7864900 {};

qcom,spmi@200f000 {
qcom,pm8953@0 {
gpios {};
};

qcom,pmi632@2 {};

qcom,pmi632@3 {
qpnp-lcdb@ec00 {
ldo {};
ncp {};
bst {};
};

};
};

qcom,cci@1b0c000 {};

qcom,camera-flash {};
};

__symbols__ {
soc = "/soc";
rpm_bus = "/soc/qcom,rpm-smd";
pm8953_l2 = "/soc/qcom,rpm-smd/rpm-regulator-ldoa2/regulator-l2";
pm8953_l5 = "/soc/qcom,rpm-smd/rpm-regulator-ldoa5/regulator-l5";
pm8953_l6 = "/soc/qcom,rpm-smd/rpm-regulator-ldoa6/regulator-l6";
pm8953_l8 = "/soc/qcom,rpm-smd/rpm-regulator-ldoa8/regulator-l8";
pm8953_l10 = "/soc/qcom,rpm-smd/rpm-regulator-ldoa10/regulator-l10";
pm8953_l11 = "/soc/qcom,rpm-smd/rpm-regulator-ldoa11/regulator-l11";
pm8953_l12 = "/soc/qcom,rpm-smd/rpm-regulator-ldoa12/regulator-l12";
pm8953_l17 = "/soc/qcom,rpm-smd/rpm-regulator-ldoa17/regulator-l17";
pm8953_l22 = "/soc/qcom,rpm-smd/rpm-regulator-ldoa22/regulator-l22";
clock_gcc = "/soc/qcom,gcc@1800000";
tlmm = "/soc/pinctrl@1000000";
uart_console_active = "/soc/pinctrl@1000000/pmx-uartconsole/uart_console_active";
cam_sensor_mclk0_default = "/soc/pinctrl@1000000/cam_sensor_mclk0_default";
cam_sensor_mclk0_sleep = "/soc/pinctrl@1000000/cam_sensor_mclk0_sleep";
cam_sensor_rear_default = "/soc/pinctrl@1000000/cam_sensor_rear_default";
cam_sensor_rear_sleep = "/soc/pinctrl@1000000/cam_sensor_rear_sleep";
cam_sensor_ir_cut_default = "/soc/pinctrl@1000000/cam_sensor_ir_cut_default";
cam_sensor_ir_cut_sleep = "/soc/pinctrl@1000000/cam_sensor_ir_cut_sleep";
cam_sensor_rear_vana = "/soc/pinctrl@1000000/cam_sensor_rear_vdig";
cam_sensor_rear_vana_sleep = "/soc/pinctrl@1000000/cam_sensor_rear_vdig_sleep";
cam_sensor_mclk1_default = "/soc/pinctrl@1000000/cam_sensor_mclk1_default";
cam_sensor_mclk1_sleep = "/soc/pinctrl@1000000/cam_sensor_mclk1_sleep";
cam_sensor_front_default = "/soc/pinctrl@1000000/cam_sensor_front_default";
cam_sensor_front_sleep = "/soc/pinctrl@1000000/cam_sensor_front_sleep";
cam_sensor_mclk2_default = "/soc/pinctrl@1000000/cam_sensor_mclk2_default";
cam_sensor_mclk2_sleep = "/soc/pinctrl@1000000/cam_sensor_mclk2_sleep";
cam_sensor_front1_default = "/soc/pinctrl@1000000/cam_sensor_front1_default";
cam_sensor_front1_sleep = "/soc/pinctrl@1000000/cam_sensor_front1_sleep";
pmx_mdss = "/soc/pinctrl@1000000/pmx_mdss";
mdss_dsi_active = "/soc/pinctrl@1000000/pmx_mdss/mdss_dsi_active";
mdss_dsi_suspend = "/soc/pinctrl@1000000/pmx_mdss/mdss_dsi_suspend";
mdss_te_active = "/soc/pinctrl@1000000/pmx_mdss_te/mdss_te_active";
mdss_te_suspend = "/soc/pinctrl@1000000/pmx_mdss_te/mdss_te_suspend";
sdc1_clk_on = "/soc/pinctrl@1000000/sdc1_clk_on";
sdc1_clk_off = "/soc/pinctrl@1000000/sdc1_clk_off";
sdc1_cmd_on = "/soc/pinctrl@1000000/sdc1_cmd_on";
sdc1_cmd_off = "/soc/pinctrl@1000000/sdc1_cmd_off";
sdc1_data_on = "/soc/pinctrl@1000000/sdc1_data_on";
sdc1_data_off = "/soc/pinctrl@1000000/sdc1_data_off";
sdc1_rclk_on = "/soc/pinctrl@1000000/sdc1_rclk_on";
sdc1_rclk_off = "/soc/pinctrl@1000000/sdc1_rclk_off";
sdc2_clk_on = "/soc/pinctrl@1000000/sdc2_clk_on";
sdc2_clk_off = "/soc/pinctrl@1000000/sdc2_clk_off";
sdc2_cmd_on = "/soc/pinctrl@1000000/sdc2_cmd_on";
sdc2_cmd_off = "/soc/pinctrl@1000000/sdc2_cmd_off";
sdc2_data_on = "/soc/pinctrl@1000000/sdc2_data_on";
sdc2_data_off = "/soc/pinctrl@1000000/sdc2_data_off";
sdc2_cd_on = "/soc/pinctrl@1000000/cd_on";
sdc2_cd_off = "/soc/pinctrl@1000000/cd_off";
nfc_int_active = "/soc/pinctrl@1000000/nfc/nfc_int_active";
nfc_int_suspend = "/soc/pinctrl@1000000/nfc/nfc_int_suspend";
nfc_disable_active = "/soc/pinctrl@1000000/nfc/nfc_disable_active";
nfc_disable_suspend = "/soc/pinctrl@1000000/nfc/nfc_disable_suspend";
ts_int_default = "/soc/pinctrl@1000000/ts_int_default";
ts_int_output_high = "/soc/pinctrl@1000000/ts_int_output_high";
ts_int_output_low = "/soc/pinctrl@1000000/ts_int_output_low";
ts_int_input = "/soc/pinctrl@1000000/ts_int_input";
ts_rst_default = "/soc/pinctrl@1000000/ts_rst_default";
ts_rst_output_high = "/soc/pinctrl@1000000/ts_rst_output_high";
ts_rst_output_low = "/soc/pinctrl@1000000/ts_rst_output_low";
ts_rst_input = "/soc/pinctrl@1000000/ts_rst_input";
ts_int_active = "/soc/pinctrl@1000000/pmx_ts_int_active/ts_int_active";
ts_int_suspend = "/soc/pinctrl@1000000/pmx_ts_int_suspend/ts_int_suspend";
ts_reset_active = "/soc/pinctrl@1000000/pmx_ts_reset_active/ts_reset_active";
ts_reset_suspend = "/soc/pinctrl@1000000/pmx_ts_reset_suspend/ts_reset_suspend";
ts_as_int = "/soc/pinctrl@1000000/pmx_ts_int_release/ts_as_int";
ts_as_reset = "/soc/pinctrl@1000000/pmx_ts_reset_release/ts_as_reset";
ts_release = "/soc/pinctrl@1000000/pmx_ts_release/ts_release";
gpio_key_active = "/soc/pinctrl@1000000/tlmm_gpio_key/gpio_key_active";
gpio_key_suspend = "/soc/pinctrl@1000000/tlmm_gpio_key/gpio_key_suspend";
sdhc_1 = "/soc/sdhci@7824900";
mdss_mdp = "/soc/qcom,mdss_mdp@1a00000";
mdss_dsi = "/soc/qcom,mdss_dsi@0";
mdss_dsi0 = "/soc/qcom,mdss_dsi@0/qcom,mdss_dsi_ctrl0@1a94000";
mdss_dsi1 = "/soc/qcom,mdss_dsi@0/qcom,mdss_dsi_ctrl1@1a96000";
intc = "/soc/interrupt-controller@b000000";
thermal_zones = "/soc/thermal-zones";
blsp1_uart0 = "/soc/serial@78af000";
spi_6 = "/soc/spi@7af6000";
i2c_3 = "/soc/i2c@78b7000";
i2c_5 = "/soc/i2c@7af5000";
sdhc_2 = "/soc/sdhci@7864900";
spmi_bus = "/soc/qcom,spmi@200f000";
pm8953_gpios = "/soc/qcom,spmi@200f000/qcom,pm8953@0/gpios";
pmi632_3 = "/soc/qcom,spmi@200f000/qcom,pmi632@3";
pmi632_lcdb = "/soc/qcom,spmi@200f000/qcom,pmi632@3/qpnp-lcdb@ec00";
lcdb_ldo_vreg = "/soc/qcom,spmi@200f000/qcom,pmi632@3/qpnp-lcdb@ec00/ldo";
lcdb_ncp_vreg = "/soc/qcom,spmi@200f000/qcom,pmi632@3/qpnp-lcdb@ec00/ncp";
lcdb_bst_vreg = "/soc/qcom,spmi@200f000/qcom,pmi632@3/qpnp-lcdb@ec00/bst";
cci = "/soc/qcom,cci@1b0c000";
led_flash0 = "/soc/qcom,camera-flash";
};
};

0 comments on commit a6c6e39

Please sign in to comment.