Re: [PATCH 1/4] dt-bindings: platform: introduce EC for Dell XPS 13 9345

From: Krzysztof Kozlowski

Date: Thu Apr 02 2026 - 04:28:09 EST


On Wed, Apr 01, 2026 at 09:33:10AM +0200, Aleksandrs Vinarskis wrote:
> Add bindings for Embedded Controller (EC) in Dell XPS 13 9345 (platform
> codename 'tributo'). It may be partially or fully compatible with EC
> found in Snapdragon-based Dell Latitude, Inspiron ('thena').
>
> Signed-off-by: Aleksandrs Vinarskis <alex@xxxxxxxxxxxxx>
> ---
> .../embedded-controller/dell,xps13-9345-ec.yaml | 86 ++++++++++++++++++++++
> MAINTAINERS | 5 ++
> 2 files changed, 91 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/embedded-controller/dell,xps13-9345-ec.yaml b/Documentation/devicetree/bindings/embedded-controller/dell,xps13-9345-ec.yaml
> new file mode 100644
> index 0000000000000000000000000000000000000000..30dc6dcd8c9f0312fdb4eafdef96bf0ce4975798
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/embedded-controller/dell,xps13-9345-ec.yaml
> @@ -0,0 +1,86 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/embedded-controller/dell,xps13-9345-ec.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Dell XPS 13 9345 Embedded Controller
> +
> +maintainers:
> + - Aleksandrs Vinarskis <alex@xxxxxxxxxxxxx>
> +
> +description:
> + The Dell XPS 13 9345 has an Embedded Controller (EC) which handles thermal and power

Please wrap code according to the preferred limit expressed in Kernel
coding style (checkpatch is not a coding style description, but only a
tool). However don't wrap blindly (see Kernel coding style).

> + management. It is communicating with SoC over multiple i2c busses. Particular driver

Drop "driver" references and describe what you think EC is doing.

> + is for EC subsystem that handles fan speed control, thermal shutdown, peripherals
> + supply including trackpad, touch-row, display.
> +
> +properties:
> + compatible:
> + const: dell,xps13-9345-ec
> +
> + reg:
> + const: 0x3b
> +
> + interrupts:
> + maxItems: 1
> +
> + io-channels:
> + description:
> + ADC channels connected to the 7 onboard thermistors on PMK8550.
> + EC requires frequent thermal readings of these channels to perform
> + automated fan speed control.
> + items:
> + - description: ADC channel for sys_therm0
> + - description: ADC channel for sys_therm1
> + - description: ADC channel for sys_therm2
> + - description: ADC channel for sys_therm3
> + - description: ADC channel for sys_therm4
> + - description: ADC channel for sys_therm5
> + - description: ADC channel for sys_therm6
> +
> + io-channel-names:
> + items:
> + - const: sys_therm0
> + - const: sys_therm1
> + - const: sys_therm2
> + - const: sys_therm3
> + - const: sys_therm4
> + - const: sys_therm5
> + - const: sys_therm6
> +
> +required:
> + - compatible
> + - reg
> + - interrupts
> + - io-channels
> + - io-channel-names
> +
> +additionalProperties: false
> +
> +examples:
> + - |+

If there is going to be resend:
Drop +, I think we don't ever use it in the examples.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>

Best regards,
Krzysztof