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

Lenovo Yoga Tab 3 10 LTE initial support #374

Merged

Conversation

exkc
Copy link

@exkc exkc commented Oct 26, 2024

No description provided.

Copy link
Member

@TravMurav TravMurav left a comment

Choose a reason for hiding this comment

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

For the final commit you will also need to write a suitable commit message. Please see how other 8909 devices added in our tree are described.

arch/arm/boot/dts/qcom/qcom-msm8909-lenovo-lxf-p5100.dts Outdated Show resolved Hide resolved
arch/arm/boot/dts/qcom/qcom-msm8909-lenovo-lxf-p5100.dts Outdated Show resolved Hide resolved
arch/arm/boot/dts/qcom/qcom-msm8909-lenovo-lxf-p5100.dts Outdated Show resolved Hide resolved
arch/arm/boot/dts/qcom/qcom-msm8909-lenovo-lxf-p5100.dts Outdated Show resolved Hide resolved
@exkc exkc force-pushed the wip/msm8916/6.10 branch 2 times, most recently from 1282b83 to a415df4 Compare October 26, 2024 23:45
@exkc exkc marked this pull request as draft October 27, 2024 00:39
@exkc exkc force-pushed the wip/msm8916/6.10 branch 5 times, most recently from 78a214d to 0e8bcc8 Compare October 27, 2024 08:37
@exkc exkc marked this pull request as ready for review October 27, 2024 08:37
@exkc exkc changed the title WiP : Lenovo Yoga Tab 3 10 LTE initial support Lenovo Yoga Tab 3 10 LTE initial support Oct 27, 2024
@exkc exkc force-pushed the wip/msm8916/6.10 branch 2 times, most recently from c454705 to 00cb640 Compare October 27, 2024 08:46
@exkc exkc force-pushed the wip/msm8916/6.10 branch from 00cb640 to 96910d4 Compare October 27, 2024 09:07
@exkc exkc force-pushed the wip/msm8916/6.10 branch 2 times, most recently from 3c87b13 to 09297b5 Compare October 27, 2024 23:13
Copy link
Member

@TravMurav TravMurav left a comment

Choose a reason for hiding this comment

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

Small nit, otherwise this looks fine. Are you planning to work more on this devicetree?

arch/arm/boot/dts/qcom/qcom-msm8909-lenovo-lxf-p5100.dts Outdated Show resolved Hide resolved
@wonderfulShrineMaidenOfParadise

6.11 should just work, if you can confirm that.

@exkc exkc force-pushed the wip/msm8916/6.10 branch from 09297b5 to 9db112a Compare October 30, 2024 08:09
@exkc
Copy link
Author

exkc commented Oct 30, 2024

Small nit, otherwise this looks fine. Are you planning to work more on this devicetree?

I think that's it.the only thing left is the usb and the other things that mainline don't have driver for

as you know I was quite struggling to get the USB work (power out/mode switching/guest mode)

@TravMurav
Copy link
Member

This looks good, however few things still left:

  • Please fix checkpatch errors (for author matching signed-off, you can do commit --amend --author "your name <your@email>" or something like that)
  • Please rebase on the latest branch (currently it's wip/msm8916/6.12-rc4) and check that there are no regressions

@exkc
Copy link
Author

exkc commented Oct 30, 2024

oh wait i forgot the hall sensor
but I don't know how to test it and idk will gpio-hell work on it
anyway i will add it to the tree using gpio-hell

@exkc exkc changed the base branch from wip/msm8916/6.10 to wip/msm8916/6.12-rc4 October 30, 2024 14:02
@exkc exkc force-pushed the wip/msm8916/6.10 branch 5 times, most recently from 83dea42 to 582ebef Compare October 30, 2024 14:30
@exkc
Copy link
Author

exkc commented Oct 30, 2024

that really should be the final I guess.I will do a boot test

@exkc
Copy link
Author

exkc commented Oct 30, 2024

image
it boot

@exkc exkc closed this Oct 30, 2024
@exkc exkc reopened this Oct 30, 2024
@exkc
Copy link
Author

exkc commented Oct 30, 2024

closed bc of missclick

Copy link
Member

@TravMurav TravMurav left a comment

Choose a reason for hiding this comment

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

Was about to merge but saw a few more things to improve

linux,code = <KEY_VOLUMEUP>;
};

hall-sensor {
Copy link
Member

Choose a reason for hiding this comment

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

we usually separate the hall sensor to it's own device, also these names doesn't conform to the dt bindings (should start with button- or event-)

https://github.com/msm8916-mainline/linux/blob/wip/msm8916/6.10/arch/arm64/boot/dts/qcom/msm8916-samsung-a2015-common.dtsi#L77

would you mind checking your dts with dtbs_check? I think it's make CHECK_DTBS=y W=1 qcom-msm8909-lenovo-lxf-p5100.dtb

Copy link
Author

Choose a reason for hiding this comment

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

 make ARCH=arm O=build/  CHECK_DTBS=y W=1 qcom-msm8909-lenovo-lxf-p5100.dtb
make[1]: Entering directory '/tmp/linux/build'
make[3]: *** No rule to make target 'arch/arm/boot/dts/qcom-msm8909-lenovo-lxf-p5100.dtb'.  Stop.
make[2]: *** [/tmp/linux/Makefile:1399: qcom-msm8909-lenovo-lxf-p5100.dtb] Error 2
make[1]: *** [/tmp/linux/Makefile:224: __sub-make] Error 2
make[1]: Leaving directory '/tmp/linux/build'
make: *** [Makefile:224: __sub-make] Error 2

eh?

Copy link
Member

Choose a reason for hiding this comment

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

perhaps add qcom/ to the dtb path, tho I thought it still uses flat scheme for arm32 even after the recent sorting refactor

Copy link
Author

Choose a reason for hiding this comment

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

a.log
i run it at the latest changes

Copy link
Member

Choose a reason for hiding this comment

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

do you have the latest version of dt-schema?
pip3 install git+https://github.com/devicetree-org/dt-schema.git@master

Copy link
Author

Choose a reason for hiding this comment

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

i did paru -S python-dtschema-git not long b4 i run that

Copy link
Member

Choose a reason for hiding this comment

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

cache-controller is in the recent dt-schema, I'm not sure why check crashes, it shouldn't...

Copy link
Member

Choose a reason for hiding this comment

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

regardless of the bindings check, the node name here is still wrong.

https://elixir.bootlin.com/linux/v6.11.5/source/Documentation/devicetree/bindings/input/gpio-keys.yaml#L26

Comment on lines 122 to 151
reg = <1>;
function = LED_FUNCTION_POWER;
led-max-microamp = <5000>;
Copy link
Member

Choose a reason for hiding this comment

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

I thought I saw a color prop here before? What does this led do even?

Copy link
Author

@exkc exkc Oct 30, 2024

Choose a reason for hiding this comment

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

I somehow revent some change during the rebase. I added those back i tink um i guess missed one

Copy link
Author

@exkc exkc Oct 30, 2024

Choose a reason for hiding this comment

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

What does this led do even?

it is notification / chagrining on stock android

it is at the same place at the power button so i added this line function = LED_FUNCTION_POWER;

Copy link
Member

Choose a reason for hiding this comment

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

please use LED_FUNCTION_INDICATOR or LED_FUNCTION_STATUS for notification led so software can find it

Copy link
Author

@exkc exkc Oct 30, 2024

Choose a reason for hiding this comment

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

#374 (comment)

ah also it is a heatbeat led.there are so many function cramming to the one led function

also LED_FUNCTION_CHARGING is also a thing

arch/arm/boot/dts/qcom/qcom-msm8909-lenovo-lxf-p5100.dts Outdated Show resolved Hide resolved
@exkc exkc force-pushed the wip/msm8916/6.10 branch from 7536545 to b029fdb Compare October 30, 2024 16:08
@exkc exkc requested a review from TravMurav October 30, 2024 16:24
@exkc exkc force-pushed the wip/msm8916/6.10 branch from b029fdb to ad72dfe Compare October 30, 2024 16:24
@exkc exkc force-pushed the wip/msm8916/6.10 branch from 41fb4ce to 9b4943d Compare October 30, 2024 17:10
@exkc exkc requested a review from TravMurav October 30, 2024 18:27
linux,code = <KEY_VOLUMEUP>;
};

hall-sensor {
Copy link
Member

Choose a reason for hiding this comment

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

regardless of the bindings check, the node name here is still wrong.

https://elixir.bootlin.com/linux/v6.11.5/source/Documentation/devicetree/bindings/input/gpio-keys.yaml#L26

};
};

magnetometer@c {
Copy link
Member

Choose a reason for hiding this comment

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

looking at this again, 0xc is before 0x68. Please sort those per unit address when it exists

@exkc exkc force-pushed the wip/msm8916/6.10 branch from 9b4943d to 1afb56a Compare October 31, 2024 13:12
@exkc exkc requested a review from TravMurav October 31, 2024 13:54
Comment on lines 183 to 186
&pm8909_bms {
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.

arch/arm/boot/dts/qcom/qcom-msm8909-lenovo-lxf-p5100.dtb: vm-bms@4000: 'monitored-battery' is a required property
	from schema $id: http://devicetree.org/schemas/power/supply/qcom,pm8916-bms-vm.yaml#

https://github.com/msm8916-mainline/linux/blob/wip/msm8916/6.10/arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts#L328-L333

Choose a reason for hiding this comment

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

Suggested change
&pm8909_bms {
status = "okay";
};
&pm8909_bms {
monitored-battery = <&bat>;
status = "okay";
};

Lenovo Yoga Tab 3 10 LTE is a tablet using the MSM8909 SoC released in 2016.

Add a device tree for with initial support for:

- GPIO keys
- pm8909-vibrator
- SDHCI (internal and external storage)
- UART
- WCNSS (WiFi/BT)
- Regulators
- Touchscreen
- PWM panel backlight
- Hall
- Power LED
- Framebuffer
- USB (Dont Work)
- Magnetometer

Signed-off-by: Karl Chan <[email protected]>
@exkc exkc force-pushed the wip/msm8916/6.10 branch 2 times, most recently from 431fd50 to b88d0fd Compare October 31, 2024 15:30
@TravMurav TravMurav merged commit 191b461 into msm8916-mainline:wip/msm8916/6.12-rc4 Nov 1, 2024
5 checks passed
@TravMurav
Copy link
Member

This is good now, thanks! Feel free to open a follow up with extra features or fixup commits later if you think the base dts needs to be changed

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