This patch adds a new optional property, 'hold-in-reset-in-suspend', to the Goodix touchscreen device tree binding. When set to true, the touchscreen controller will be held in reset mode during system suspend, reducing power consumption. If not present, the property defaults to false. I am submitting this patch to the Device Tree mailing list to add a new property to the Goodix touchscreen device tree binding. This patch supplements a related patch sent to the linux-input mailing list, which updates the Goodix touchscreen driver to use this new property.The linux-input patch can be found at: https://lore.kernel.org/all/20230311131534.484700-1-jajadekroon@xxxxxxxxx/ Signed-off-by: Jan Jasper de Kroon <jajadekroon@xxxxxxxxx> --- V1 -> V2: - Updated subject prefix to match subsystem - Added more detailed description of the change - Fixed formatting issues in commit message .../devicetree/bindings/input/touchscreen/goodix.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml b/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml index 3d016b87c8df..cd4dd3d25364 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/goodix.yaml @@ -56,6 +56,15 @@ properties: touchscreen-size-y: true touchscreen-swapped-x-y: true + hold-in-reset-in-suspend: + type: boolean + default: false + description: | + When set to true, the touchscreen controller will be held in reset mode + during system suspend. This can help reduce power consumption, but may + cause the touchscreen to take longer to resume when the system is woken + up from suspend. Defaults to false if not present. + additionalProperties: false required: @@ -75,6 +84,7 @@ examples: interrupts = <0 0>; irq-gpios = <&gpio1 0 0>; reset-gpios = <&gpio1 1 0>; + hold-in-reset-in-suspend; }; }; -- 2.34.3