I ran out of pins on my MCU, and for that reason I want to share one pin, so it act as an input (data from a sensor) in certain part of my program, and as an output (chip select for SPI) in another part of my program.
I have used this TI SN74LVC1G125, Single buffer with 3-state outputs, as in the diagram below: 
- The MCU shared pin is marked as MULTI_DO_SD
- The input pin is marked CSI_D0
- The output pin is marked SD_CS
When signals comes in on CSI_DO, it sets OE high, preventing data going from A to Y. When MULTI_DO_SD is used for output, D1 prevents data to run to CSI_DO, and inadvertently set OE high. R8 keeps OE low, allowing the output to go through to SD_CS.
It worked "fine" without R23, but SD_CS was jumping up and down. The datasheets says that Y is "undefined" when OE is high, so I tried to add R23, pulling the line down, but then SD_CS doesn't go high at all.
What am I missing?
EDIT 1
The Input pin is a data channel (0) on a CSI Camera: 
The Output pin is a Chip Select for a SD Card: 


