Skip to content

Conversation

@fekz115
Copy link

@fekz115 fekz115 commented Oct 11, 2025

Here is actual changes for nothing-spacewar. I created this PR as we have plan to merge our pmaports to postmarketos upstream.

  • new focaltech driver wip, but actually working
  • wcd938x driver wip, microphone doesn't work
  • sony imx471 works
  • samsung s5kjn1 works
  • tfa987x (tfa9873) works as driver allows(no TPM and other features)

@fekz115 fekz115 force-pushed the fekz115/spacewar-6.17-rebase branch 7 times, most recently from 659a8ef to 7b449ba Compare October 11, 2025 18:13
N1kroks and others added 11 commits October 11, 2025 21:15
DW9800 is a 10 bit DAC from Dongwoon, designed for linear
control of voice coil motor.

This driver creates a V4L2 subdevice and
provides control to set the desired focus.

Signed-off-by: Vitalii Skorkin <nikroksm@mail.ru>
Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
Add support for ak7377 VCM, which has 10-bit position values, requiring
a shift of 6 bits. It also has a different standby mode setting (0x10
instead of 0x40) and a significantly longer control delay. The maximum
focus position is 1023, and the control step count is increased to 100.

Tested on sm7325-nothing-spacewar phone.

Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
It appears to sometimes take longer than two seconds for the tx_sdw_dev
to appear, to increase the timeout.

Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
Signed-off-by: Eugene Lepshy <fekz115@gmail.com>
…r from DS

This is some preparation for rewriting the driver:
- Drop downstream pinctrl, point report check, gesture, pen, ESD, drm
notifier implementation
- Drop unused code
- Drop old firmware files
- Switch to tabs in main files
- Refactor regulators & reset gpio implementation
- Drop FTS macros & use kernel log func calls
- And other minor changes...

Signed-off-by: Danila Tikhonov <danila@jiaxyga.com>
Co-developed-by: Eugene Lepshy <fekz115@gmail.com>
Signed-off-by: Eugene Lepshy <fekz115@gmail.com>
* pkt_per_line will be equal to slice per intf for now.
*/
pkt_per_line = slice_per_intf;
pkt_per_line = slice_per_intf * 2; // HACK
Copy link
Member

Choose a reason for hiding this comment

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

Can you guard this under of_machine_is_compatible("nothing,spacewar")?

I assume https://lore.kernel.org/linux-arm-msm/20251001135914.13754-3-caojunjie650@gmail.com/ would be the proper fix? Do you know anything about that?

Copy link
Member

Choose a reason for hiding this comment

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

Please try if dongwoon,dw9800k (on the lists, but also in sc7280 6.17.y branch) works instead? Then we can drop this custom dw9800 driver.

Copy link
Member

Choose a reason for hiding this comment

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

Hm, not sure if this version or https://lore.kernel.org/linux-arm-msm/20251009-ak7377-driver-v1-2-29e4f6e16ed3@fairphone.com/ is more correct. Do you have any extra insights there?

Copy link
Member

Choose a reason for hiding this comment

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

@JIaxyga Do you have any input here?

compatible = "qcom,sm7325-lpassaudiocc",
"qcom,qcm6490-lpassaudiocc";
/delete-property/ power-domains;
};
Copy link
Member

Choose a reason for hiding this comment

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

/delete-property/ power-domains;
};

&lpass_cpu { status = "disabled"; };
Copy link
Member

Choose a reason for hiding this comment

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

this is already disabled in sc7280.dtsi?


&lpass_dmic23_data {
bias-pull-down;
};
Copy link
Member

Choose a reason for hiding this comment

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

I'm unsure whether all this stuff, not just dmic should go into sm7325.dtsi or into the device itself.

It's per-se not really sm7325-specific, when an SM7325 device gets an Android 16 upgrade (looks like the Nothing phone 1 is already basically EOL, wtf?) the ADSP firmware from my understanding should be doing Audioreach instead of Elite, no q6afecc anymore. This opens a whole other can of worms, so not sure...

#size-cells = <2>;
ranges;

bootargs = "clk_ignore_unused pd_ignore_unused";
Copy link
Member

Choose a reason for hiding this comment

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

?

"TX SWR_INPUT0", "ADC1_OUTPUT", // txmacro >= v9.2
"TX SWR_INPUT1", "ADC2_OUTPUT",
"TX SWR_INPUT4", "ADC3_OUTPUT",
"TX SWR_INPUT5", "ADC4_OUTPUT";
Copy link
Member

Choose a reason for hiding this comment

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

Can you clean up this list?


platform {
sound-dai = <&q6routing>;
};
Copy link
Member

Choose a reason for hiding this comment

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

alphabetically: codec < cpu < platform


platform {
sound-dai = <&q6routing>;
};
Copy link
Member

Choose a reason for hiding this comment

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

Does microphone work by now? Last I heard it's broken

Copy link
Member

Choose a reason for hiding this comment

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

Can you update the commit message for touchscreen commit to be fixup! $your_original_commit so it gets auto-squashed in the next rebase?

Copy link
Member

Choose a reason for hiding this comment

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

Feel free to also add some options to fp5_defconfig, Alex also wants it renamed to sc7280_defconfig. Personally my muscle memory is already with fp5_defconfig ;)

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.

5 participants