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

Clean ups and fixes for mido, ysl, tissot #125

Merged
merged 3 commits into from
Sep 5, 2023

Conversation

barni2000
Copy link
Member

@barni2000 barni2000 commented Aug 12, 2023

Ysl:

Mido:

  • I have removed wcnss related nodes they are already defined in the msm8953-xiaomi-common

Tissot:

  • I have removed duplicated panel nodes
  • wcnss_iris has been set to qcom,wcn3680 tissot has 3680b

&pm8953_l10 {
regulator-min-microvolt = <2800000>;
regulator-max-microvolt = <3000000>;
};
Copy link

Choose a reason for hiding this comment

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

Can you add a comment to both l6 and l10 why they're different here or something. Especially the always-on should have a reason

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't really know a good comment for this, i just saw downstream uses different voltage values for l10 and there is no always-on definitions in the common.
I have checked other devices and tissot regulators also differs from the common in downstream.

Copy link

Choose a reason for hiding this comment

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

No schematics available? Maybe git history downstream might help? Assuming Xiaomi doesn't just publish an archive without git history.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have checked L10 related to sensors and default value should be 2.800 v but i don't find any info about max why should be 3v. L6 also used by the sensors.
MiCode/Xiaomi_Kernel_OpenSource@09f6450#diff-1d92316904c11eef1f77aa098cc2b3c418bf8ff1e1fcb7f9fef834f3b8ef0b2eL219-R228

Copy link
Member Author

@barni2000 barni2000 Aug 13, 2023

Choose a reason for hiding this comment

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

https://github.com/MiCode/Xiaomi_Kernel_OpenSource/blob/09f6450330b57b8df8b4472917c2d71adc0386d4/arch/arm/boot/dts/qcom/msm8953-mtp.dtsi#L149C1-L151C3 it is setting back the max voltage to 2.85v
:(
ysl-o-oss and ysl-p-oss branch is different in the max-voltage android-p using 2.85v

Copy link
Member Author

@barni2000 barni2000 Aug 13, 2023

Choose a reason for hiding this comment

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

I have build and decompiled the downstream devicetrees
Android P:

 regulator-l10 {
          compatible = "qcom,rpm-smd-regulator";
          regulator-name = "pm8953_l10";
          qcom,set = <0x03>;
          status = "okay";
          regulator-min-microvolt = <0x2ab980>;
          regulator-max-microvolt = <0x2b7cd0>;
          qcom,init-voltage = <0x2ab980>;
          regulator-always-on;
          linux,phandle = <0xd5>;
          phandle = <0xd5>;
  };

Android O:

regulator-l10 {
        compatible = "qcom,rpm-smd-regulator";
        regulator-name = "pm8953_l10";
        qcom,set = <0x03>;
        status = "okay";
        regulator-min-microvolt = <0x2ab980>;
        regulator-max-microvolt = <0x2b7cd0>;
        qcom,init-voltage = <0x2ab980>;
        linux,phandle = <0xd5>;
        phandle = <0xd5>;
};

It should be between 2.8-2.85 but fdt dumped from recovery uses 2.8-2.8

wcnss and wcnss_iris node is removed because they are defined in the msm8953-xiaomi-common.

Signed-off-by: Barnabás Czémán <trabarni@gmail.com>
@barni2000 barni2000 force-pushed the dts_fixes branch 2 times, most recently from 51f2445 to 4009108 Compare August 13, 2023 18:53
@barni2000 barni2000 changed the title Clean ups and fixes for mido and ysl Clean ups and fixes for mido, ysl, tissot Aug 14, 2023
@barni2000 barni2000 requested a review from z3ntu August 25, 2023 20:15
- fixed regulators
- add alias for sdhc_1 and sdhc_2
- remove invalid ramoops node
- remove led definition

Signed-off-by: Barnabás Czémán <trabarni@gmail.com>
Duplicated panel node has been removed.
wcnss_iris compatible has been set to qcom,wcn3680.

Signed-off-by: Barnabás Czémán <trabarni@gmail.com>
@alikates alikates merged commit c56ef21 into msm8953-mainline:6.4.7/main Sep 5, 2023
@barni2000 barni2000 deleted the dts_fixes branch April 20, 2024 17:47
@barni2000 barni2000 restored the dts_fixes branch April 20, 2024 17:48
@barni2000 barni2000 deleted the dts_fixes branch April 20, 2024 17:48
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.

None yet

3 participants