Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: input: mediatek,pmic-keys: Drop incomplete example

The example for the Mediatek PMIC keys is incomplete as the binding is
the full PMIC, not just the sub-functions. It is preferred for MFD
examples to be complete in the top-level MFD device binding rather than
piecemeal in each sub-function binding.

This also fixes an undocumented (by schema) compatible warning for
"mediatek,mt6397".

Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20231128214816.3975893-1-robh@kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Rob Herring and committed by
Dmitry Torokhov
a42b4bd5 11baacb2

+1 -23
+1 -23
Documentation/devicetree/bindings/input/mediatek,pmic-keys.yaml
··· 90 90 91 91 unevaluatedProperties: false 92 92 93 - examples: 94 - - | 95 - #include <dt-bindings/input/input.h> 96 - #include <dt-bindings/interrupt-controller/arm-gic.h> 97 - 98 - pmic { 99 - compatible = "mediatek,mt6397"; 100 - 101 - keys { 102 - compatible = "mediatek,mt6397-keys"; 103 - mediatek,long-press-mode = <1>; 104 - power-off-time-sec = <0>; 105 - 106 - key-power { 107 - linux,keycodes = <KEY_POWER>; 108 - wakeup-source; 109 - }; 110 - 111 - key-home { 112 - linux,keycodes = <KEY_VOLUMEDOWN>; 113 - }; 114 - }; 115 - }; 93 + ...