Skip to content
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

asus-x00td New fixes #30

Merged
merged 1 commit into from
Jun 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 44 additions & 32 deletions arch/arm64/boot/dts/qcom/sdm636-asus-x00td.dts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
/delete-node/ &qhee_code;
/delete-node/ &smem_region;
/delete-node/ &tz_mem;
///delete-node/ &mpss_region;
///delete-node/ &mba_region;
/delete-node/ &adsp_region;
/delete-node/ &buffer_mem;
/delete-node/ &zap_shader_region;
Expand Down Expand Up @@ -44,6 +42,10 @@
height = <2160>;
stride = <(1080 * 4)>;
format = "a8r8g8b8";

/* In order to allow simpledrm framebuffer to know
* physical dimensions */
panel = <&panel>;
};
};

Expand Down Expand Up @@ -109,24 +111,12 @@
}; */
/* which covers region starting from removed_regions to 0x88F00000 (end of our tz_mem) */

/* modem_fw_region */
modem_fw_mem: modem_fw_region@8ac00000 {
reg = <0x0 0x8ac00000 0x0 0x7e00000>;
no-map;
};

/* adsp_fw_region */
adsp_region: adsp@92a00000 {
reg = <0x0 0x92a00000 0x0 0x1e00000>;
no-map;
};

/* pil_mba_mem */
pil_mba_mem: mba@94800000 {
reg = <0x0 0x94800000 0x0 0x200000>;
no-map;
};

/* cdsp_fw_region */
buffer_mem: buffer_region@94a00000 {
reg = <0x0 0x94a00000 0x0 0x600000>;
Expand Down Expand Up @@ -206,6 +196,9 @@
regulators-0 {
compatible = "qcom,rpm-pm660-regulators";

vdd_s1-supply = <&vph_pwr>;
vdd_s2-supply = <&vph_pwr>;
vdd_s3-supply = <&vph_pwr>;
vdd_s4-supply = <&vph_pwr>;
vdd_s5-supply = <&vph_pwr>;
vdd_s6-supply = <&vph_pwr>;
Expand Down Expand Up @@ -335,6 +328,13 @@
regulator-enable-ramp-delay = <250>;
};

vreg_l16a_2p7: l16 {
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <2800000>;
regulator-enable-ramp-delay = <250>;
regulator-always-on;
};

vreg_l17a_1p8: l17 {
regulator-min-microvolt = <1648000>;
regulator-max-microvolt = <2952000>;
Expand Down Expand Up @@ -364,6 +364,12 @@
vdd_l4_l6-supply = <&vreg_bob>;
vdd_bob-supply = <&vph_pwr>;

vreg_bob: bob {
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3600000>;
regulator-enable-ramp-delay = <500>;
};

vreg_s1b_1p125: s1 {
regulator-min-microvolt = <1125000>;
regulator-max-microvolt = <1125000>;
Expand Down Expand Up @@ -397,6 +403,7 @@
regulator-max-microvolt = <3300000>;
regulator-enable-ramp-delay = <250>;
regulator-allow-set-load;
regulator-always-on;
};

vreg_l4b_2p95: l4 {
Expand Down Expand Up @@ -436,12 +443,6 @@
regulator-max-microvolt = <3400000>;
regulator-enable-ramp-delay = <250>;
};

vreg_bob: bob {
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3600000>;
regulator-enable-ramp-delay = <500>;
};
};
};

Expand Down Expand Up @@ -495,13 +496,19 @@
};

&usb3 {
qcom,select-utmi-as-pipe-clk;

status = "okay";
};

&usb3_dwc3 {
status = "okay";
dr_mode = "peripheral";
extcon = <&extcon_usb>;

maximum-speed = "high-speed";
phys = <&qusb2phy0>;
phy-names = "usb2-phy";
};

&wifi {
Expand All @@ -514,6 +521,9 @@

&qusb2phy0 {
status = "okay";

vdd-supply = <&vreg_l1b_0p925>;
vdda-phy-dpdm-supply = <&vreg_l7b_3p125>;
};

&blsp_i2c2 {
Expand Down Expand Up @@ -552,20 +562,26 @@
};

&mdss_dsi0 {
status = "okay";

#address-cells = <1>;
#size-cells = <0>;

vdd-supply = <&vreg_l1b_0p925>;
vdda-supply = <&vreg_l1a_1p225>;
status = "okay";
panel@0 {
compatible = "asus,nt36672-txd";

panel: panel@0 {
reg = <0>;
compatible = "asus,nt36672-txd";

backlight = <&pm660l_wled>;
//reset-gpios = <&tlmm XY GPIO_ACTIVE_LOW>;

reset-gpios = <&tlmm 53 GPIO_ACTIVE_HIGH>;
disp-te-gpios = <&tlmm 59 GPIO_ACTIVE_HIGH>;

width-mm = <68>;
height-mm = <136>;

pinctrl-names = "default";
pinctrl-0 = <&panel_reset_gpio &panel_te_gpio>;
port {
Expand All @@ -586,14 +602,6 @@
status = "okay";
};

&mdss_dsi1_phy {
status = "disabled";
};

&mdss_dsi1 {
status = "disabled";
};

&pm660l_wled {
status = "okay";
default-brightness = <512>;
Expand Down Expand Up @@ -665,6 +673,10 @@
qcom,max-voltage-uv= <4350000>;
};

&pm660_haptics {
status = "okay";
};

&pm660_rradc {
status = "okay";
};