Skip to content

Commit

Permalink
Add SM-T590 (gta2xlwifi) support
Browse files Browse the repository at this point in the history
Add support for the Samsung Galaxy Tab A2 XL WiFI (2018) Rev05.
  • Loading branch information
quent1-fr authored and alikates committed Mar 27, 2023
1 parent af185a6 commit 549b4a2
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ and then loaded by lk2nd.
- Xiaomi Mi A2 Lite - daisy
- Xiaomi Mi A1 - tissot
- XIaomi Mi A2 Lite - daisy
- Samsung Galaxy Tab A2 XL WiFi (2018) - SM-T590

## Installation
1. Download `lk2nd.img` (as of now there's no build available so you'll need to build it yourself.)
Expand Down
3 changes: 2 additions & 1 deletion dts/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ DTBS += \
$(LOCAL_DIR)/msm8953-xiaomi-markw.dtb \
$(LOCAL_DIR)/msm8953-meizu-m1721.dtb \
$(LOCAL_DIR)/msm8953-motorola-potter.dtb \
$(LOCAL_DIR)/msm8953-tenor-holland.dtb
$(LOCAL_DIR)/msm8953-tenor-holland.dtb \
$(LOCAL_DIR)/sdm450-samsung-r05.dtb
endif
ifeq ($(PROJECT), msm8952-secondary)
DTBS += \
Expand Down
63 changes: 63 additions & 0 deletions dts/sdm450-samsung-r05.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
// SPDX-License-Identifier: GPL-2.0-only

/dts-v1/;

/include/ "msm8953.dtsi"

/ {
// This is used by the bootloader to find the correct DTB
qcom,msm-id = <351 0x0>;
qcom,board-id = <8 5>;

gta2xlwifi-generic {
model = "Samsung Tab A2 XL WIFI Rev05";
compatible = "samsung,gta2xlwifi-eur", "qcom,sdm450", "qcom,msm8953", "lk2nd,device";
lk2nd,match-bootloader = "T590*";
lk2nd,pstore = <0x86100000 0x100000>;
};

// Bootloader won't continue if it can't delete some nodes from below
soc {
#address-cells = <1>;
#size-cells = <1>;
ranges = <0x0 0x0 0x0 0xffffffff>;

qcom,memshare {
qcom,client_4 {
qcom,peripheral-size = <0x6000000>;
};
};
};

reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;

sec_debug_region@0 {
compatible = "removed-dma-pool";
no-map;
reg = <0x0 0x85000000 0x0 0x800000>;
};

sec_debug_low_region@0 {
compatible = "removed-dma-pool";
no-map;
reg = <0x0 0x85000000 0x0 0x400000>;
};

lk_region@0 {
linux,reserve-contiguous-region;
linux,reserve-region;
linux,remove-completely;
no-map;
reg = <0x0 0x8f600000 0x0 0x300000>;
label = "lk_mem";
};

modem_shared_mem_region@0x93000000 {
reg = <0x0 0x93000000 0x0 0x6000000>;
};

};
};

1 comment on commit 549b4a2

@J0SH1X
Copy link

@J0SH1X J0SH1X commented on 549b4a2 Nov 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any idea why usb doesnt work ?

Please sign in to comment.