-
Notifications
You must be signed in to change notification settings - Fork 8.3k
boards: beagle_bcf: Move gpio-i2c-switch to i2c bus #65031
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 |
|---|---|---|
|
|
@@ -56,15 +56,6 @@ | |
| <&gpio0 30 GPIO_ACTIVE_HIGH>; // SubG TX/RX 0dB | ||
| }; | ||
| }; | ||
|
|
||
| sens_i2c: sensor-switch { | ||
| status = "okay"; | ||
| compatible = "gpio-i2c-switch"; | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
| controller = <&i2c0>; | ||
| gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; | ||
| }; | ||
| }; | ||
|
|
||
| &flash0 { | ||
|
|
@@ -127,16 +118,25 @@ | |
| reg = <0x4>; | ||
| }; | ||
|
|
||
| light: opt3001-light@44 { | ||
|
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. It looks like this was in the wrong place. It should go under the sens_i2c or i2c0s I think it was called on other versions. |
||
| sens_i2c: sensor-switch { | ||
|
||
| status = "okay"; | ||
| compatible = "ti,opt3001"; | ||
| reg = <0x44>; | ||
| }; | ||
| compatible = "gpio-i2c-switch"; | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
| controller = <&i2c0>; | ||
| gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; | ||
|
|
||
| humidity: hdc2010-humidity@41 { | ||
| status = "okay"; | ||
| compatible = "ti,hdc2010"; | ||
| reg = <0x41>; | ||
| light: opt3001-light@44 { | ||
| status = "okay"; | ||
| compatible = "ti,opt3001"; | ||
| reg = <0x44>; | ||
| }; | ||
|
|
||
| humidity: hdc2010-humidity@41 { | ||
| status = "okay"; | ||
| compatible = "ti,hdc2010"; | ||
| reg = <0x41>; | ||
| }; | ||
Ayush1325 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| }; | ||
| }; | ||
|
|
||
|
|
||
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.
OK, it looks like the way I had it before made more sense. I just listed a controller to define this new bus. I think @Ayush1325 might have had a different perspective on it, but I think the previous instance method was fine.