Skip to content

New device: Blackberry KEY2 LE (luna) #97

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 8 commits into
base: qcom-sdm660-6.15.y
Choose a base branch
from

Conversation

sajattack
Copy link

@sajattack sajattack commented Jun 30, 2025

Adds:

  • panel driver
  • keypad driver
  • dts

Updates:

  • sdm660_defconfig

dmesg.txt

@sajattack sajattack force-pushed the saj/bbry-luna-for-upstream branch from bcafa30 to 7684de3 Compare June 30, 2025 04:56
@minlexx
Copy link
Member

minlexx commented Jul 7, 2025

Please open CI (actions) checks named "Device tree validation", expand the "Analyze results" section and fix all the dt-schema validation errors that are fixable within your .dts. Some errors come from included .dtsi files; those are not your obligation to fix.

@sajattack sajattack force-pushed the saj/bbry-luna-for-upstream branch from 3d71d3e to 3b77ce1 Compare July 8, 2025 05:35
@minlexx
Copy link
Member

minlexx commented Jul 10, 2025

All commits that are intended to go upstream should have proper descriptions in commit messages. (Commit modifying sdm660_defconfig, which is not upstream, does not qualify here).

I not fully understand, you have have changed ~1300 lines in this PR, but can't type few words to describe your changes?.. For inspiration l'd suggest to look for similar commits around neighbouring files histories, or ask more questions


qcom,msm-id = <0x159 0x0>;
qcom,board-id = <0xaa000008 0x00>;
qcom,pmic-id = <0x1001b 0x101011a 0x00 0x00 0x1001b 0x201011a 0x00 0x00>;
Copy link
Member

Choose a reason for hiding this comment

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

Likely ll of these qcom,*-id will have to be removed before sending this upstream.

Copy link
Author

Choose a reason for hiding this comment

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

I think it's best to keep these as long as possible.

regulator-max-microvolt = <3300000>;
regulator-enable-ramp-delay = <250>;
regulator-allow-set-load;
regulator-always-on;
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 your device needs this? Usually l3b is always-on only on xiaomi-sdm660 platform.

If you bindly copied regulators block from one of xiaomi devices I suggest you carefully re-check each regulator again.

Copy link
Author

Choose a reason for hiding this comment

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

How should I check them without schematics? Just turn them off one by one and see if it still works?

Copy link
Member

@minlexx minlexx Jul 11, 2025

Choose a reason for hiding this comment

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

From downstream dts if you have it? (adb pull /sys/firmware/fdt)

If you don't have downstream dts then just remove regulator-always-on here and see if it works;

The change for xiaomi was originally done in 301cf4f

Copy link
Member

Choose a reason for hiding this comment

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

Were you able to confirm regulators settings?

Copy link
Author

Choose a reason for hiding this comment

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

not yet

Copy link
Author

Choose a reason for hiding this comment

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

made regulator settings match downstream more closely

struct device *dev = &dsi->dev;
int ret;

mipi_dsi_generic_write_seq(dsi, 0x00, 0x00);
Copy link
Member

Choose a reason for hiding this comment

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

geerate usin fresh generator, these should use new multi-functions

Copy link
Author

Choose a reason for hiding this comment

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

regenerated

sajattack and others added 6 commits July 15, 2025 19:58
The mfd is already supported upstream, but not in the dt-bindings.

Signed-off-by: Paul Sajna <hello@paulsajna.com>
"Livata Video Panel" used by BlackBerry KEY2 LE (luna)

Signed-off-by: Paul Sajna <hello@paulsajna.com>
"Livata Video Panel" used by BlackBerry KEY2 LE (luna)

Generated by mdss-panel-generator

Signed-off-by: Paul Sajna <hello@paulsajna.com>
This chip variant differs from others - it has different register
map and swapped rows/columns.

Signed-off-by: Sergey Larin <cerg2010cerg2010@mail.ru>
That's what they referred to themselves as in downstream kernels
(at least TCL ones)

Signed-off-by: Paul Sajna <hello@paulsajna.com>
Add bbry,luna under supported sdm636 devices

Signed-off-by: Paul Sajna <hello@paulsajna.com>
@sajattack sajattack force-pushed the saj/bbry-luna-for-upstream branch 2 times, most recently from 6b55943 to d8f38b5 Compare July 16, 2025 03:18
@minlexx
Copy link
Member

minlexx commented Jul 16, 2025

Can you attach dmesg of booting to OP post?

@sajattack
Copy link
Author

Can you attach dmesg of booting to OP post?

added.

working features:
- Internal MMC
- External SDcard
- Wi-Fi
- Bluetooth
- Keypad
- Panel
- GPU (bit crashy)
- fuel gauge
- volume buttons
- usb

TODO:
- keypad backlight
- modem
- audio
- 3-button row
- gps
- fm radio
- camera

Signed-off-by: Paul Sajna <hello@paulsajna.com>
…erals

Signed-off-by: Paul Sajna <hello@paulsajna.com>
@sajattack sajattack force-pushed the saj/bbry-luna-for-upstream branch from d8f38b5 to 97b4208 Compare July 17, 2025 02:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants