Are all rear DI2 shifters / derailleurs / internal gear hubs interchangeable?
Looks like Shimano provides a handy guide: https://bike.shimano.com/en-EU/e-tube/project/compatibillity.html
source
Posted here since Shimano is already deleted it: