So you want to switch between (1) sun input and locked ring, and (2) ring input and locked sun, in both cases with the planet carrier as output?
It means, conceptually, you need two clutches on the input shaft (one leading to the sun, the other to the ring) and two brakes (one leading to the sun, the other to the ring).
Something to think about also, is how you're going to get the output out without one of the other shafts having to pass through the same space and time. If you have concentric shafts, for example, you can't clutch the shaft on the inside to something that's on the outside of the outer shaft (that's turning at a different speed). Sometimes you can cleverly wrap around the end of the gearset or enclose parts of it ... Not all combinations of selecting which elements are inputs, outputs, or locked are physically possible.
IIRC the Sturmey-Archer bicycle hub always has the sun locked. The mechanism to select whether the input freewheels select the planet carrier or the ring are on one side of the gearset, and the mechanism to select whether the output freewheels select the planet carrier or the ring are on the other side of it, and this way it's easy for the sun to be locked because it passes all the way through the inside of the whole thing from one end to the other, and for a bicycle hub, that's really convenient because it's the same fixed axle through the middle of the wheel that you secure to the frame of the bicycle. None of the inputs or outputs have to "cross over" a different one.
If you need two ratio choices, your life will be much easier if one of the possible choices is 1:1, because then (for example) you could hold the sun locked, always take output from the planet carrier, and use clutches to select whether the input goes to the ring gear or the planet carrier. Or, if you can't deal with a stationary through-shaft or you need a bigger ratio difference, you could always drive the sun, always hold the ring locked, and select output from either the sun (direct drive) or the planet carrier (reduction).
As far as I know, even the simplest 2-speed-plus-reverse planetary gearsets from the early days of automatic gearboxes (e.g. Chevrolet Powerglide) used compound planetary gearsets because of limitations on which inputs and outputs can physically be achieved.
If you want to make your head hurt, study the power flow in a ZF 8-speed. Somehow they managed it using only 5 shift elements (clutches or brakes).