Repository navigation
kernel: Give the iPad 6 its ambient light sensor - #130
Merged
Merged
Conversation
Apple's device trees put the same CT819 light sensor on the iPad 6 and iPad 7 (i2c2 0x39, GPIO 27). It was described only in the iPad 7 file; it now sits in the shared iPad 6 file, so the iPad 6 (J71b/J72b) gets automatic brightness readings too and the iPad 7 is unchanged. Untested on the iPad 6.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Apple's device trees put the same CT819 light sensor on the iPad 6 and iPad 7 (i2c2 0x39, GPIO 27 level-low). It was described in t8010-ipad7.dtsi only, which includes t8010-ipad6.dtsi; the node and its als0 alias move to the iPad 6 file. The iPad 6 (J71b/J72b) gains it, the iPad 7 is unchanged. Driver list regenerated from a built kernel: tsl2583 now binds on j71b and j72b. Untested on the iPad 6.