Skip to content

Add support for Samsung Galaxy A71 #44

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

Open
wants to merge 25 commits into
base: v6.14
Choose a base branch
from

Conversation

WiiPlayer2
Copy link

This includes device-tree and generated panel driver.

Copy link
Member

@JIaxyga JIaxyga left a comment

Choose a reason for hiding this comment

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

This is just a quick review. Please fix all of this first of all

@@ -0,0 +1,788 @@
// SPDX-License-Identifier: BSD-3-Clause
/*
* Copyright (c) 2023, Danila Tikhonov <[email protected]>
Copy link
Member

Choose a reason for hiding this comment

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

Add your copyright too if you want

};

/* Limit CPU clock to 2.2 GHz */
&cpu6_opp14 {
Copy link
Member

Choose a reason for hiding this comment

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

Drop it

chassis-type = "handset";

qcom,msm-id = <QCOM_ID_SM7150 0>;
qcom,board-id = <34 0>, /* Rev0.0 */
Copy link
Member

Choose a reason for hiding this comment

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

msm-id and board-id are not required when using header v2. If there is no reason to use another header version, then drop it

wifi0 = &wifi;
};

battery: battery {
Copy link
Member

Choose a reason for hiding this comment

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

Are you sure Samsung uses qcom pmic for fg?

Copy link
Author

Choose a reason for hiding this comment

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

qcom,qgauge@4800 is enabled in the downstream device tree if that's what you mean.

qcom,pmic-id = "a";

vreg_s4a_1p1: smps4 {
regulator-min-microvolt = <824000>;
Copy link
Member

Choose a reason for hiding this comment

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

Add the regulator-name property to each regulator

sde_esd_active: sde-esd-state {
pins = "gpio63";
function = "gpio";
drive-strength = <0x08>;
bias-disable = <0x00>;
};

sde_esd_suspend: sde-esd-state {
Copy link
Member

Choose a reason for hiding this comment

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

Same pin configuration as sde_dsi suspend. Extend the pin list of sde_dsi_suspend instead of a separate node

};

&dispcc {
status = "okay";
Copy link
Member

Choose a reason for hiding this comment

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


&i2c0 {
clock-frequency = <100000>;
status = "okay";
Copy link
Member

Choose a reason for hiding this comment

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

Maybe you could at least leave a comment on what devices are connected? How can we be sure that this bus is used at all? Otherwise just don't enable i2cX until needed. I'm almost certainly sure that one of these buses is not used on your board, and the pins from the bus were reused. This is why you have a crashes when you enable gpi1

@@ -44,7 +44,7 @@
};

/ {
model = "Samsung A71";
Copy link
Member

Choose a reason for hiding this comment

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

Merge with DTS commit

@@ -1062,4 +1062,14 @@ config DRM_PANEL_XINPENG_XPP055C272
Say Y here if you want to enable support for the Xinpeng
Copy link
Member

Choose a reason for hiding this comment

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

Write dt-bindings for the panel driver

@JIaxyga JIaxyga assigned Gelbpunkt and unassigned Gelbpunkt Apr 9, 2025
* If it's not set at all the display won't show anything because reset-gpios is required by the driver.
*/
reset-gpios = <&tlmm 9 GPIO_ACTIVE_HIGH>; // TODO: Check this again or fix in driver
reset-gpios = <&tlmm 11 GPIO_ACTIVE_HIGH>;
Copy link
Member

Choose a reason for hiding this comment

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

your reset gpio is almost certainly active low and that should fix all your problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants