-
Notifications
You must be signed in to change notification settings - Fork 127
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
Lenovo Yoga Tab 3 10 LTE initial support #374
Conversation
There was a problem hiding this 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.
1282b83
to
a415df4
Compare
78a214d
to
0e8bcc8
Compare
c454705
to
00cb640
Compare
00cb640
to
96910d4
Compare
3c87b13
to
09297b5
Compare
There was a problem hiding this 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?
6.11 should just work, if you can confirm that. |
09297b5
to
9db112a
Compare
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) |
This looks good, however few things still left:
|
oh wait i forgot the hall sensor |
83dea42
to
582ebef
Compare
that really should be the final I guess.I will do a boot test |
closed bc of missclick |
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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-)
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
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.
reg = <1>; | ||
function = LED_FUNCTION_POWER; | ||
led-max-microamp = <5000>; |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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;
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
7536545
to
b029fdb
Compare
b029fdb
to
ad72dfe
Compare
41fb4ce
to
9b4943d
Compare
linux,code = <KEY_VOLUMEUP>; | ||
}; | ||
|
||
hall-sensor { |
There was a problem hiding this comment.
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.
}; | ||
}; | ||
|
||
magnetometer@c { |
There was a problem hiding this comment.
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
9b4943d
to
1afb56a
Compare
&pm8909_bms { | ||
status = "okay"; | ||
}; |
There was a problem hiding this comment.
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#
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
&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]>
431fd50
to
b88d0fd
Compare
191b461
into
msm8916-mainline:wip/msm8916/6.12-rc4
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 |
No description provided.