Re: [PATCH v7 1/2] dt-bindings: input: add OnePlus pogo-pin keyboard

From: wyibo6109

Date: Wed Dec 02 2026 - 11:40:38 EST


From: Yibo Wang <wyibo6109@xxxxxxxxx>

Hi Krzysztof, Dmitry,

On 01/12/2026 04:57, Krzysztof Kozlowski wrote:
>> Should it be a supply instead of GPIO? And then use "regulator-gpio".
>
> Indeed, wording is quite confusing. I assumed this is some internal
> XPWRDN pin, but supply suggests, well, supply.

The vendor driver shows it depends on the board: it keys its power
handling on the presence of a pogopin-power-supply property (feeding
the connector from an LDO) and otherwise drives a pinctrl power
enable, see setup_power_config() in
https://github.com/OnePlusOSS/android_kernel_modules_and_devicetree_oneplus_sm8850/tree/oneplus/sm8850_b_16.0.0_oneplus_15/vendor/oplus/kernel/device_info/pogo_keyboard

So v8 describes both, each optional:

- vdd-supply for boards that feed the connector through an LDO;

- enable-gpios for the enable pin, active high, driven high while the
keyboard is attached. It is an enable and not a powerdown input:
the vendor pinctrl states it replaces are named pogo_power_enable /
pogo_power_disable.

Power-up enables the regulator first and then raises the enable pin;
power-down lowers the enable pin first and then disables the regulator.
A board that provides neither keeps both always-on.

v8 follows as a new thread.

Best regards,
Yibo