boards: st: sensortile_box_pro: remove hts221 sensor

Remove HTS221 sensor support from sensortile_box_pro as it has been ruled
out from final version. In fact, HTS221 is in the process of being
terminated and is not recommended for new design. The candidate replacement
is SHT40 from Sensirion, which is available also as a DIL24 adapter, which
can be plugged on sensortile_box_pro board.

See SENSEVAL-SHT4XV1:
https://www.st.com/en/partner-products-and-services/senseval-sht4xv1.html

Signed-off-by: Armando Visconti <armando.visconti@st.com>
diff --git a/boards/st/sensortile_box_pro/doc/index.rst b/boards/st/sensortile_box_pro/doc/index.rst
index 0d824aa..50540f9 100644
--- a/boards/st/sensortile_box_pro/doc/index.rst
+++ b/boards/st/sensortile_box_pro/doc/index.rst
@@ -163,8 +163,6 @@
     (`lps22df datasheet`_)
   - **LIS2DU12** 3-axis accelerometer
     (`lis2du12 datasheet`_)
-  - **HTS221** Humidity sensor
-    (`hts221 datasheet`_)
   - **STTS22H** Digital temperature sensor
     (`stts22hh datasheet`_)
   - **MP23db01HP** Microphone / audio sensor
@@ -353,9 +351,6 @@
 .. _lis2du12 datasheet:
    https://www.st.com/en/mems-and-sensors/lis2du12.html
 
-.. _hts221 datasheet:
-   https://www.st.com/en/mems-and-sensors/hts221.html
-
 .. _stts22hh datasheet:
    https://www.st.com/en/mems-and-sensors/stts22h.html
 
diff --git a/boards/st/sensortile_box_pro/sensortile_box_pro.dts b/boards/st/sensortile_box_pro/sensortile_box_pro.dts
index 1d942fe..7014fd8 100644
--- a/boards/st/sensortile_box_pro/sensortile_box_pro.dts
+++ b/boards/st/sensortile_box_pro/sensortile_box_pro.dts
@@ -228,13 +228,6 @@
 	status = "okay";
 	clock-frequency = <I2C_BITRATE_FAST>;
 
-	hts221@5f {
-		compatible = "st,hts221";
-		reg = <0x5f>;
-		drdy-gpios = <&gpioe 11 GPIO_ACTIVE_HIGH>;
-		status = "okay";
-	};
-
 	lps22df@5d {
 		compatible = "st,lps22df";
 		reg = <0x5d>;
diff --git a/samples/boards/sensortile_box_pro/sensors-on-board/README.rst b/samples/boards/sensortile_box_pro/sensors-on-board/README.rst
index ce0034e..556f209 100644
--- a/samples/boards/sensortile_box_pro/sensors-on-board/README.rst
+++ b/samples/boards/sensortile_box_pro/sensors-on-board/README.rst
@@ -12,7 +12,6 @@
 periodically reads and displays data on the console from the following
 sensors:
 
-- HTS221: ambient temperature and relative humidity
 - LPS22DF: ambient temperature and atmospheric pressure
 - LSM6DSV16X: 6-Axis acceleration and angular velocity
 - LIS2DU12: 3-Axis acceleration
@@ -62,8 +61,6 @@
 
     SensorTile.box Pro dashboard
 
-    HTS221: Temperature: 26.4 C
-    HTS221: Relative Humidity: 60.5%
     LPS22DF: Temperature: 28.4 C
     LPS22DF: Pressure:99.694 kpa
     LSM6DSV16X: Accel (m.s-2): x: -0.158, y: 0.158, z: 9.811
diff --git a/samples/boards/sensortile_box_pro/sensors-on-board/prj.conf b/samples/boards/sensortile_box_pro/sensors-on-board/prj.conf
index 97e6a2d..41a6817 100644
--- a/samples/boards/sensortile_box_pro/sensors-on-board/prj.conf
+++ b/samples/boards/sensortile_box_pro/sensors-on-board/prj.conf
@@ -7,7 +7,6 @@
 # config sensors
 CONFIG_SENSOR=y
 CONFIG_SENSOR_LOG_LEVEL_DBG=y
-CONFIG_HTS221_TRIGGER_NONE=y
 CONFIG_LPS2XDF_TRIGGER_OWN_THREAD=y
 CONFIG_LSM6DSV16X_TRIGGER_OWN_THREAD=y
 CONFIG_LIS2MDL_TRIGGER_OWN_THREAD=y
diff --git a/samples/boards/sensortile_box_pro/sensors-on-board/src/main.c b/samples/boards/sensortile_box_pro/sensors-on-board/src/main.c
index 6ba2e3e..4214169 100644
--- a/samples/boards/sensortile_box_pro/sensors-on-board/src/main.c
+++ b/samples/boards/sensortile_box_pro/sensors-on-board/src/main.c
@@ -299,17 +299,12 @@
 
 	printk("SensorTile.box Pro sensor test\n");
 
-	const struct device *const hts221 = DEVICE_DT_GET_ONE(st_hts221);
 	const struct device *const lps22df = DEVICE_DT_GET_ONE(st_lps22df);
 	const struct device *const lsm6dsv16x = DEVICE_DT_GET_ONE(st_lsm6dsv16x);
 	const struct device *const lis2mdl = DEVICE_DT_GET_ONE(st_lis2mdl);
 	const struct device *const lis2du12 = DEVICE_DT_GET_ONE(st_lis2du12);
 	const struct device *const stts22h = DEVICE_DT_GET_ONE(st_stts22h);
 
-	if (!device_is_ready(hts221)) {
-		printk("%s: device not ready.\n", hts221->name);
-		return 0;
-	}
 	if (!device_is_ready(lps22df)) {
 		printk("%s: device not ready.\n", lps22df->name);
 		return 0;
@@ -338,7 +333,6 @@
 	lsm6dsv16x_config(lsm6dsv16x);
 
 	while (1) {
-		struct sensor_value hts221_hum, hts221_temp;
 		struct sensor_value lps22df_press, lps22df_temp;
 		struct sensor_value lsm6dsv16x_accel[3], lsm6dsv16x_gyro[3];
 		struct sensor_value lis2mdl_magn[3];
@@ -346,12 +340,6 @@
 		struct sensor_value lis2du12_accel[3];
 		struct sensor_value stts22h_temp;
 
-		/* handle HTS221 sensor */
-		if (sensor_sample_fetch(hts221) < 0) {
-			printf("HTS221 Sensor sample update error\n");
-			return 0;
-		}
-
 #ifndef CONFIG_LSM6DSV16X_TRIGGER
 		if (sensor_sample_fetch(lsm6dsv16x) < 0) {
 			printf("LSM6DSV16X Sensor sample update error\n");
@@ -387,8 +375,6 @@
 		}
 #endif
 
-		sensor_channel_get(hts221, SENSOR_CHAN_HUMIDITY, &hts221_hum);
-		sensor_channel_get(hts221, SENSOR_CHAN_AMBIENT_TEMP, &hts221_temp);
 		sensor_channel_get(lps22df, SENSOR_CHAN_AMBIENT_TEMP, &lps22df_temp);
 		sensor_channel_get(lps22df, SENSOR_CHAN_PRESS, &lps22df_press);
 		sensor_channel_get(lsm6dsv16x, SENSOR_CHAN_ACCEL_XYZ, lsm6dsv16x_accel);
@@ -405,14 +391,6 @@
 
 		printf("SensorTile.box dashboard\n\n");
 
-		/* HTS221 temperature */
-		printf("HTS221: Temperature: %.1f C\n",
-		       sensor_value_to_double(&hts221_temp));
-
-		/* HTS221 humidity */
-		printf("HTS221: Relative Humidity: %.1f%%\n",
-		       sensor_value_to_double(&hts221_hum));
-
 		/* temperature */
 		printf("LPS22DF: Temperature: %.1f C\n",
 		       sensor_value_to_double(&lps22df_temp));