connect a MPU6050 to device tree

The directory /sys/bus/i2c has the handy dandy new_device file to add devices. Searching the /sys/bus/iio directory there is no new_device file and there is no /sys/bus/iio on the beagle play. So how do you connect it to the iio bus?

Can you tell more detail
You mean when you check
/sys/bus/i2c/devices : no devices ?

on my bbblue debian 12 (non vscode)
first make sure inv_mpu6050 is installed with “lsmod”
mpu6050 at
/sys/bus/i2c/drivers/inv-mpu6050-i2c/2-0068/iio:device2
there is also
/sys/bus/iio/devices/iio:device2
the above two locations have all the sysfs names that you can use

in /dev there is a corresponding /dev/iio:device2
to use this requires a bit more setup if ya want to use iio-trig-sysfs
you must also understand the data structure being read from /dev/ location