Skip to content

Conversation

@MaureenHelm
Copy link
Member

@MaureenHelm MaureenHelm commented Nov 6, 2023

Commit 944ced6 enabled CONFIG_UART_CONSOLE=y for the beagleconnect_freedom board, which had the side effect of satisfying a required dependency for the sensor shell sample application and causing new build errors in the weekly full twister run. Fix the build errors by moving the board's light and humidity sensor nodes to be children of the I2C controller node.

cc: @Ayush1325 @jadonk

https://github.com/zephyrproject-rtos/zephyr/actions/runs/6758835093/job/18371014455#step:14:4966

Commit 944ced6 enabled
CONFIG_UART_CONSOLE=y for the beagleconnect_freedom board, which had the
side effect of satisfying a required dependency for the sensor shell
sample application and causing new build errors in the weekly full
twister run. Fix the build errors by moving the board's light and
humidity sensor nodes to be children of the I2C controller node.

Signed-off-by: Maureen Helm <[email protected]>
@Ayush1325
Copy link
Member

Hi @MaureenHelm . #64693 will also fix the sensor shell sample (just tried west build -p -b beagleconnect_freedom samples/sensor/sensor_shell -T sample.sensor.shell on that branch).

Moving the sensors to i2c nodes seem to disable the sensors rather than fix the actual problem.

@nashif nashif merged commit 3769938 into zephyrproject-rtos:main Nov 9, 2023
@MaureenHelm MaureenHelm deleted the fix-sensor-shell-beagleconnect_freedom branch November 9, 2023 14:45
Ayush1325 added a commit to Ayush1325/zephyr that referenced this pull request Dec 8, 2023
zephyrproject-rtos#64881 breaks zephyrproject-rtos#64693
Instead of reverting, I thought it might be better to move the whole
switch to i2c.

Signed-off-by: Ayush Singh <[email protected]>
jadonk added a commit to beagleboard/zephyr that referenced this pull request Dec 12, 2023
…m board"

This reverts commit 3769938.

Now that gpio_i2c_switch is upstream, this hack should be removed. This
had the unintended effect of disabling the on-board sensors. The issue
was that the board was merged before this driver was upstream, resulting
in the issue this commit "fixed".

This revert also does not move the bus driver under the controller used
by the driver as the sensor bus I2C driver is not an I2C peripheral.

See:
* zephyrproject-rtos#64881
* zephyrproject-rtos#64693
* zephyrproject-rtos#65031

Signed-off-by: Jason Kridner <[email protected]>
carlescufi pushed a commit that referenced this pull request Dec 13, 2023
…m board"

This reverts commit 3769938.

Now that gpio_i2c_switch is upstream, this hack should be removed. This
had the unintended effect of disabling the on-board sensors. The issue
was that the board was merged before this driver was upstream, resulting
in the issue this commit "fixed".

This revert also does not move the bus driver under the controller used
by the driver as the sensor bus I2C driver is not an I2C peripheral.

See:
* #64881
* #64693
* #65031

Signed-off-by: Jason Kridner <[email protected]>
coreboot-bot pushed a commit to coreboot/zephyr-cros that referenced this pull request Dec 14, 2023
…m board"

This reverts commit 3769938.

Now that gpio_i2c_switch is upstream, this hack should be removed. This
had the unintended effect of disabling the on-board sensors. The issue
was that the board was merged before this driver was upstream, resulting
in the issue this commit "fixed".

This revert also does not move the bus driver under the controller used
by the driver as the sensor bus I2C driver is not an I2C peripheral.

See:
* zephyrproject-rtos/zephyr#64881
* zephyrproject-rtos/zephyr#64693
* zephyrproject-rtos/zephyr#65031

(cherry picked from commit 547a75d)

Original-Signed-off-by: Jason Kridner <[email protected]>
GitOrigin-RevId: 547a75d
Change-Id: Ib6a6a0f71d249bc19a312d469f6e41224b70524b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5119865
Reviewed-by: Yuval Peress <[email protected]>
Tested-by: Yuval Peress <[email protected]>
Commit-Queue: Yuval Peress <[email protected]>
Tested-by: ChromeOS Prod (Robot) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants