From 547a75d4d05b09a925179d3f4fa477facde609bd Mon Sep 17 00:00:00 2001 From: Jason Kridner Date: Mon, 11 Dec 2023 13:38:05 -0500 Subject: [PATCH] Revert "boards: arm: Fix sensor shell sample for beagleconnect_freedom board" This reverts commit 3769938e785b09cff9ebb604a371100d1bfcf257. 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: * https://github.com/zephyrproject-rtos/zephyr/pull/64881 * https://github.com/zephyrproject-rtos/zephyr/pull/64693 * https://github.com/zephyrproject-rtos/zephyr/pull/65031 Signed-off-by: Jason Kridner --- .../arm/beagle_bcf/beagleconnect_freedom.dts | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/boards/arm/beagle_bcf/beagleconnect_freedom.dts b/boards/arm/beagle_bcf/beagleconnect_freedom.dts index 7fd8341e89b..9f8c84df956 100644 --- a/boards/arm/beagle_bcf/beagleconnect_freedom.dts +++ b/boards/arm/beagle_bcf/beagleconnect_freedom.dts @@ -64,6 +64,18 @@ #size-cells = <0>; controller = <&i2c0>; gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>; + + light: opt3001-light@44 { + status = "okay"; + compatible = "ti,opt3001"; + reg = <0x44>; + }; + + humidity: hdc2010-humidity@41 { + status = "okay"; + compatible = "ti,hdc2010"; + reg = <0x41>; + }; }; }; @@ -126,18 +138,6 @@ compatible = "beagle,usbbridge"; reg = <0x4>; }; - - light: opt3001-light@44 { - status = "okay"; - compatible = "ti,opt3001"; - reg = <0x44>; - }; - - humidity: hdc2010-humidity@41 { - status = "okay"; - compatible = "ti,hdc2010"; - reg = <0x41>; - }; }; &spi0 {