-
Notifications
You must be signed in to change notification settings - Fork 8.2k
samples: sensor: adt7420: correct devicetree and improve sample #21558
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
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 |
|---|---|---|
|
|
@@ -4,13 +4,13 @@ | |
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| &i2c1 { | ||
| &i2c0 { | ||
| status = "okay"; | ||
| clock-frequency = <I2C_BITRATE_STANDARD>; | ||
| adt7420@13 { | ||
| adt7420@48 { | ||
| compatible = "adi,adt7420"; | ||
| reg = <0x13>; | ||
| reg = <0x48>; | ||
| label = "ADT7420"; | ||
| int-gpios = <&gpioc 6 0>; | ||
| int-gpios = <&gpioc 16 0>; | ||
|
Member
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. Let's replace with
Contributor
Author
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. Makes sense, but this propagated from the original conversion to devicetree, and isn't specific to this sample: there are at least twelve samples that bypass the Ardunio alias and nexus map for this platform, probably more that do it for other platforms. Can we do this in a separate PR that fixes it for all samples at once, after the dust settles on topic-gpio and it won't create conflicts?
Member
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. Sure |
||
| }; | ||
| }; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| /* | ||
| * Copyright (c) 2019 Linaro Limited | ||
| * | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| */ | ||
|
|
||
| &i2c0 { /* SDA P0.26, SCL P0.27, ALERT P0.11 */ | ||
| status = "okay"; | ||
| clock-frequency = <I2C_BITRATE_STANDARD>; | ||
| adt7420@48 { | ||
| compatible = "adi,adt7420"; | ||
| reg = <0x48>; | ||
| label = "ADT7420"; | ||
| int-gpios = <&gpio0 11 0>; | ||
|
Member
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. Use arduino here too |
||
| }; | ||
| }; | ||
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.
Let's replace with
arduino_i2c