Here's some info from the BMW TIS that can be used if help is needed with the wiring harness for things associated with the interior rearview mirror and other powered items from above the headliner. For more detail about any connection, just copy & paste the nbr into the site's search box: