Zarjaz
Technically they just configure the splitter and ONT to direct different wavelengths to each port . So a 4 port can handle up to 4 separate wavelengths (if they are not used for other customers).
In theory you could get all 32 wavelength done 1 fibre but that would negate the previous splitter and defeat the object of GPON.
My understanding of PON was the splitter splits the data to all 32 split fibres, so if "ABCDEF" was sent into the splitter all 32 split fibres will have "ABCDEF" on them.
I think the wavelengths are different for sending and receiving and that's it.
I think it uses a form of TDM (Time-division multiplexing) when sending and receiving data.
And the ONT even though its possible to receive all data it can only decode data that is meant for it.
And if they wanted to supply two FTTP connections to a single 4 Port ONT they just configure the ONT settings (over fibre) and send the data and the ONT will decode the data that is intended for it.
But like I said this is my understanding of it, so some of it might be incorrect.
Paul