forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 185
arm64: dts: qcom: msm8916-asus-z010d: hardware support and panel fix #450
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
Open
FoxWind-coder
wants to merge
5
commits into
msm8916-mainline:wip/msm8916/7.0
Choose a base branch
from
FoxWind-coder:asus-z010d-improvements
base: wip/msm8916/7.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
aaf4a0b
dt-bindings: iio: light: Add DynaImage AP3216C and AP3426 bindings
7f394ed
iio: light: Add AP3216C/AP3426 ambient light sensor driver
13cae28
arm64: configs: msm8916: Enable AP3216C as a module
db78e8b
arm64: dts: qcom: msm8916-asus-z010d: Add SMB1360 charger and AP3426 ALS
dc13bb8
drm/panel: asus-z010d-r69339: Fix initial brightness and power-on seq…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
74 changes: 74 additions & 0 deletions
74
Documentation/devicetree/bindings/iio/light/dynaimage,ap3216c.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) | ||
| %YAML 1.2 | ||
| --- | ||
| $id: http://devicetree.org/schemas/iio/light/dynaimage,ap3216c.yaml# | ||
| $schema: http://devicetree.org/schemas/meta-schemas/core.yaml# | ||
|
|
||
| title: DynaImage AP3216C / AP3426 Ambient Light and Proximity Sensor | ||
|
|
||
| maintainers: | ||
| - Vladislav Dubrovin <foxy9855@gmail.com> | ||
|
|
||
| description: | | ||
| DynaImage AP3216C and AP3426 are integrated digital ambient light, | ||
| proximity, and IR sensor. | ||
|
|
||
| Specifications about the devices can be found at: | ||
| https://github.com/RT-Thread-packages/ap3216c/blob/master/ap3216c_datasheet.pdf | ||
|
|
||
| properties: | ||
| compatible: | ||
| oneOf: | ||
| - items: | ||
| - const: dynaimage,ap3426 | ||
| - const: dynaimage,ap3216c | ||
| - enum: | ||
| - dynaimage,ap3216c | ||
| - dynaimage,ap3426 | ||
|
|
||
| reg: | ||
| maxItems: 1 | ||
|
|
||
| interrupts: | ||
| maxItems: 1 | ||
|
|
||
| vdd-supply: | ||
| description: Regulator powering the sensor VDD pin. | ||
|
|
||
| vddio-supply: | ||
| description: Regulator powering the sensor VDDIO pin. | ||
|
|
||
| proximity-near-level: | ||
| $ref: /schemas/types.yaml#/definitions/uint32 | ||
| description: | ||
| Raw proximity threshold level above which an object is considered "near". | ||
| default: 300 | ||
|
|
||
| required: | ||
| - compatible | ||
| - reg | ||
|
|
||
| additionalProperties: false | ||
|
|
||
| examples: | ||
| - | | ||
| #include <dt-bindings/interrupt-controller/irq.h> | ||
|
|
||
| i2c { | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
|
|
||
| light-sensor@1e { | ||
| compatible = "dynaimage,ap3426", "dynaimage,ap3216c"; | ||
| reg = <0x1e>; | ||
|
|
||
| interrupt-parent = <&tlmm>; | ||
| interrupts = <113 IRQ_TYPE_EDGE_FALLING>; | ||
| vdd-supply = <&pm8916_l17>; | ||
| vddio-supply = <&pm8916_l6>; | ||
| proximity-near-level = <300>; | ||
|
|
||
| pinctrl-0 = <&als_int_default>; | ||
| pinctrl-names = "default"; | ||
| }; | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.