-
Notifications
You must be signed in to change notification settings - Fork 11
otter: initial bringup #8
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: sc7280-6.17.y
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -183,6 +183,20 @@ | |
| }; | ||
| }; | ||
|
|
||
| mem-thermal { | ||
| polling-delay-passive = <0>; | ||
|
|
||
| thermal-sensors = <&pm7250b_adc_tm 2>; | ||
|
|
||
| trips { | ||
| active-config0 { | ||
| temperature = <125000>; | ||
| hysteresis = <1000>; | ||
| type = "passive"; | ||
| }; | ||
| }; | ||
| }; | ||
|
|
||
| quiet-thermal { | ||
| polling-delay-passive = <0>; | ||
|
|
||
|
|
@@ -654,6 +668,9 @@ | |
| }; | ||
|
|
||
| &pm7250b_adc { | ||
| pinctrl-0 = <&pm7250b_adc_default>; | ||
| pinctrl-names = "default"; | ||
|
|
||
| channel@4d { | ||
| reg = <ADC5_AMUX_THM1_100K_PU>; | ||
| qcom,ratiometric; | ||
|
|
@@ -669,6 +686,14 @@ | |
| qcom,pre-scaling = <1 1>; | ||
| label = "conn_therm"; | ||
| }; | ||
|
|
||
| channel@53 { | ||
| reg = <ADC5_GPIO2_100K_PU>; | ||
| qcom,ratiometric; | ||
| qcom,hw-settle-time = <200>; | ||
| qcom,pre-scaling = <1 1>; | ||
| label = "mem_therm"; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Idk if it also applies to adc, but generally generic properties first, then vendor specific ones. And boolean ones go to the end. So reg - label - qcom,hw-settle-time - qcom,pre-scaling - qcom,ratiometric. But also fine to keep it in this order since the ones above have this order so it'd make it inconsistent to change it There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm. yeah 😅 the ordering is 'preferred' but lots of (merged) device trees do it weirdly. here's what the fairphone 5 has: all qcom ADCs i've encountered have the label at the bottom for some reason. seems to be more of a "feels right" order. no idea when and how and of these commits would go mainline. if they do, one could ask the maintainer whether they deem starting to do it correctly worthy of their time. |
||
| }; | ||
| }; | ||
|
|
||
| &pm7250b_adc_tm { | ||
|
|
@@ -687,6 +712,21 @@ | |
| qcom,ratiometric; | ||
| qcom,hw-settle-time-us = <200>; | ||
| }; | ||
|
|
||
| mem-therm@2 { | ||
| reg = <2>; | ||
| io-channels = <&pm7250b_adc ADC5_GPIO2_100K_PU>; | ||
| qcom,ratiometric; | ||
| qcom,hw-settle-time-us = <200>; | ||
| }; | ||
| }; | ||
|
|
||
| &pm7250b_gpios { | ||
| pm7250b_adc_default: adc-default-state { | ||
| pins = "gpio12"; | ||
| function = PMIC_GPIO_FUNC_NORMAL; | ||
| bias-high-impedance; | ||
| }; | ||
| }; | ||
|
|
||
| &pm7325_gpios { | ||
|
|
||
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.
this can be removed since it's 0
Uh oh!
There was an error while loading. Please reload this page.
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.
@z3ntu while it does work without, it is not uncommon to include it.
(the verbosity makes it easier to understand the delay)
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.
yes it's not uncommon because this piece of code in the kernel hasn't existed for long, so in the past you had to explicitly set it to 0.
So it shouldn't be added anymore because it's redundant info