-
Notifications
You must be signed in to change notification settings - Fork 25
arm64: dts: qcom: add sdm660-xiaomi-common.dtsi for Xiaomi SDM660-family devices #161
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
base: qcom-sdm660-6.18.y
Are you sure you want to change the base?
arm64: dts: qcom: add sdm660-xiaomi-common.dtsi for Xiaomi SDM660-family devices #161
Conversation
|
Just to leave a note about different Wi-Fi powering (maybe it's better to create a separate issue instead), there's this -> https://lore.kernel.org/linux-arm-msm/20251231-wcn3990-pwrctl-v1-0-1ff4d6028ad5@oss.qualcomm.com/T/ |
|
New revision of wcm399x patches https://lore.kernel.org/linux-arm-msm/20260106-wcn3990-pwrctl-v2-0-0386204328be@oss.qualcomm.com/T/ |
8b2da34 to
b093a8e
Compare
this channel setup from looks more like copy-paste, but pointless setup |
|
Maybe it can be removed in the lavender's dts |
3761880 to
f224430
Compare
I removed vdd-3.3-ch1-supply property, was introduced by me only to silence some dmesg messages, has no effects |
|
I would ask on mailing list, maybe ch1 was never included in wcm3980 and thus the warning is bogus? (just guessing here, someone from QCOM may know) |
f224430 to
e9b5d89
Compare
e9b5d89 to
17e6aec
Compare
|
Also clover uses zap-shader from modem partition, so it is better to change the shader extension from mbn to mdt |
998d80b to
50951b1
Compare
I unified the naming and firmware like for other socs. |
|
Maybe it is better to squash the shader to mbn file using pil-squasher, isn't it? |
|
I was thinking about this for some time and I think this MR can't go in right now, because it will create unmaintainable difference to upstream and will cause big problems when sending patches, because -common is not there and patches will have to be recreated from scratch. Maintaining 2 separate source trees is not fun 😢 But this is still very good example of how it should be done. Just not here.. What needs to be done first, I think, is to create
If you send such rework upstream now, chances are it can be upstream by linux 6.20 release. And then, when rebasing our fork on top of 6.20 release we can have it. It will be painful manual rebase of every xiaomi-sdm660 dts, but it's doable and needs to be done once. Then it will all be easier. Should be noted here that some drivers are not upstream (like panel driver and e.g. fuelgauge), therefore dts cannot be sent fully as is. So you'll have to remove for example fulegauge node and display stack (mdss/adreno/panel) and keep it framebuffer-only for now. Maybe better to start witl sending fg and panel drivers first? For now if you don't want to send patches upstream, and just have some fixups to tulip audio, place them into existing tulip's dts 😔 |
|
Maybe, just maybe, upstream could accept even the split into the common, when developers will reasonably be convinced that other devices sharing the common would follow. I think it would be worth try it (any suggested variant). |
…ily devices Create a common device tree include file for all Xiaomi SDM630/SDM636/SDM660 devices to reduce code duplication and simplify maintenance. The common file includes: - PMIC configurations (pm660, pm660l) - GPIO keys and hall sensor (disabled by default) - Peripheral enables (GPU, UART, MDSS, USB, WiFi, Venus, modem) - SD card and eMMC configurations - Audio DAI link base configurations Each device file now includes the common file and defines device-specific elements such as battery capacity, display resolution, panel configuration, and voltage regulators. Signed-off-by: Gianluca Boiano <morf3089@gmail.com>
b21f851 to
b436a92
Compare
|
btw. regarding the firmware paths, it should look like (e.g. the convention Linux kernel uses) thus something like |
|
From this MR we can have the "align GPU firmware paths" commit as separate MR maybe? |
b436a92 to
435a9e3
Compare



This patch creates a common devicetree include file for Xiaomi devices based on SDM630/SDM636/SDM660 SoCs, reducing code duplication across 6 device trees.
Affected devices:
The common file includes shared configuration for:
Device-specific elements (battery, panel, touchscreen, reserved-memory, regulator voltages) remain in individual device files.