Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp1050262rdh; Mon, 25 Sep 2023 01:22:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH/Sg+vZQlntoa5jhWZe7Naf44P+CjntXi+7boIYECMy1UoCkbOedXXA4T6QqPsrxOQvj7L X-Received: by 2002:a05:6870:32d3:b0:1db:f7f8:ab56 with SMTP id r19-20020a05687032d300b001dbf7f8ab56mr6866175oac.53.1695630166145; Mon, 25 Sep 2023 01:22:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695630166; cv=none; d=google.com; s=arc-20160816; b=kWxkAlfAFr2vhpbczEX3Bp7d/CvjKIX0Jt/9HiLuLoG/flylVtegRnB90LbeinoP/w Xd2Lw2okrMaO5HK6A+l/4UMeKYiPicSpJaqbH45hxriqwsll7ZIHrgAfDXdFdTw+SP7B KZJPyS6kS1Yrxm9K7EhGJ/dm35Sg+WHL53961rqncFC7QvHUXMaGtZ69h+rze40qMZuF uUDcKmDVavNsWIuYwLoGbNxzHwPN0RyQxHtsB0B3v/HeAGo8OIeF4NAh8P4LROiJ0FiC cEDlOscuODvCE3X7Db8Q150Le+UAJ0hp4OyWzyWriOeHIM9hhfak9KQqundIBrz8SGQE z9jA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=6hgI6A5TI/hgQO4BAnbd8tQJDlo2yAW6QdgmQX8/IME=; fh=cDjleVDBgidFoubAIvGcxBbzDPabzW/dcdle0eE/fIg=; b=W6nXoMSt7kutuDmgL7YzzqfeKJBtAZvK/S08CsKwWnZD1WyWxWQnuwunewQ7YRP91d qpk4H7JbNq99eD0YuvL7A0w9OKGT4gtjmKnTCNhrDc4rhlG9o4wmVBFMYLBm+xuLtAQk J3CBXhkP19tW0AeHSd/EI8A/4ADCScnuoLmXbShePYYo2G/fbPTseYVEHysleBC7P29F uGNRPlkHEDlp2Z/bSt7q/+RAN2NxYX7IiBkLE5PYXwZNl/JbiiGpInlOz0GtfhApogz/ owHydZFAyIAeWvYQZU3Oa7WOXQjdVwFbTHa/vAx4I0VjkWvWbj0rYVwVB8maiTh8bUgo O7Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iCF2TOqj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id m16-20020a63fd50000000b00578d0b680a8si9428459pgj.824.2023.09.25.01.22.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 01:22:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iCF2TOqj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id EB8AA8084590; Mon, 25 Sep 2023 00:07:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232229AbjIYHHV (ORCPT + 99 others); Mon, 25 Sep 2023 03:07:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbjIYHHU (ORCPT ); Mon, 25 Sep 2023 03:07:20 -0400 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9980CF for ; Mon, 25 Sep 2023 00:07:12 -0700 (PDT) Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-9b275afb6abso417075466b.1 for ; Mon, 25 Sep 2023 00:07:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695625631; x=1696230431; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=6hgI6A5TI/hgQO4BAnbd8tQJDlo2yAW6QdgmQX8/IME=; b=iCF2TOqjK3evIlYOMoesRCvWt+oKpY2Dkkzo01tBRVwZvVduT4kHB4KqN4Dm9Am2S1 j3g43H+qdUil0gmyfyg9nWsUDL4G/eXrubRR33cV7dY2Zg1r55oBIscZMH2/f5vEFjxm wh2TOWLFm5Z76AgqAfSml8ALA7hHYcRlvcbhyi0/x9zIs2RGh6GFtzM2XL8Ejs47JjDZ WCPjy/GLGTZuEOEd6iKLNgSZQLtMWzrieLirm1NbsTmNUNNJHXOJcFxM5PHO2R8Z+H1L UqIQjsvYIhOAcT1MxnZDIaOZrS2uQyU5l9Ex03y/VkrMn36zNZNvuYtulVN0Sobm4xcp 7vHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695625631; x=1696230431; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6hgI6A5TI/hgQO4BAnbd8tQJDlo2yAW6QdgmQX8/IME=; b=j1jzNWhDoKaiQkat7zwFDhHjeUviIdiWIwhjniYsuwxG7QSrXo9ZPCfF0BzEo7haUI GhbR/FU2oy9u45y+g3wDfFIOefzJ9Xt82LyvyV+bsJ0+T5WC9e5m5ymM0iirhVQjuJiI g3wX6O6sY/MIS/nLrh47b2GRvdfsI8w5wpkcpDRNlUS6tmViwacaRYUIF1EwWaTrfoJg HavYa2Kw4HTXd3Uwe4kCX2za5Oo7Vp4h1A2yp3VaFG7LUNA9YE+AsjmXxtQoyIwm9jzB IieHX4n11C7r7QSzgj1pdE/HVqaFvk/IoFcWKLt9/NhFtfJwYKctUnQYq5XaH6SVpiy2 11Fw== X-Gm-Message-State: AOJu0Yw65T7Lk8cE9cpJMX6dwcTZY5UocqX1Ap9vIL2dJJXhWNHNdGYD s/mvxf16OMl7uQihVZciYHVqrg== X-Received: by 2002:a17:907:9483:b0:9a5:7d34:e68a with SMTP id dm3-20020a170907948300b009a57d34e68amr14085048ejc.28.1695625631245; Mon, 25 Sep 2023 00:07:11 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.100]) by smtp.gmail.com with ESMTPSA id s25-20020a170906061900b00997d76981e0sm5830258ejb.208.2023.09.25.00.07.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Sep 2023 00:07:10 -0700 (PDT) Message-ID: Date: Mon, 25 Sep 2023 09:07:08 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] dt-bindings: power: mfd: max8925: Convert to DT schema format Content-Language: en-US To: Sebastian Reichel , Sebastian Reichel , Lee Jones Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230922233142.1479677-1-sebastian.reichel@collabora.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFg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12jgw4mGjy 5y06JZvA02rZT2k9aa7i9dUUFggaanI09jNGbRA/ABEBAAHCwXwEGAEKACYCGwwWIQSb0H4O DFH41ZZ3t1Qbk0N9O0FimwUCYDzvagUJFF+UtgAKCRAbk0N9O0Fim9JzD/0auoGtUu4mgnna oEEpQEOjgT7l9TVuO3Qa/SeH+E0m55y5Fjpp6ZToc481za3xAcxK/BtIX5Wn1mQ6+szfrJQ6 59y2io437BeuWIRjQniSxHz1kgtFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20230922233142.1479677-1-sebastian.reichel@collabora.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 25 Sep 2023 00:07:23 -0700 (PDT) On 23/09/2023 01:31, Sebastian Reichel wrote: > Convert the binding to DT schema format. > > The sub-functions of this MFD device do not have their own compatible > string and are thus described directly in the MFD binding document > after being converted to YAML. > ... > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + interrupt-controller: true > + > + "#interrupt-cells": > + const: 1 > + description: > + The cell is the IRQ number > + > + maxim,tsc-irq: > + description: second interrupt from max8925 > + $ref: /schemas/types.yaml#/definitions/uint32 > + > + regulators: > + type: object > + > + patternProperties: > + "^SDV[1-3]$|^LDO[1-9]$|^LDO1[0-9]$|^LDO20$": > + description: regulator configuration for SDV1-3 and LDO1-20 > + $ref: /schemas/regulator/regulator.yaml Missing on this level: unevaluatedProperties: false > + > + additionalProperties: false > + > + backlight: > + type: object > + properties: > + maxim,max8925-dual-string: > + description: set to 1 to support dual string > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [0, 1] > + default: 0 > + > + additionalProperties: false > + > + charger: > + type: object > + properties: > + batt-detect: > + description: set to 1 if battery detection via ID pin is supported > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [0, 1] > + default: 0 > + > + topoff-threshold: > + description: charging current in topoff mode, configures bits 5-6 in CHG_CNTL1 > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 0 > + maximum: 3 > + default: 0 > + > + fast-charge: > + description: set charging current in fast mode, configures bits 0-3 in CHG_CNTL1 > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 0 > + maximum: 7 > + default: 0 > + > + no-temp-support: > + description: set to 1 if temperature sensing is not supported > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [0, 1] > + default: 0 > + > + no-insert-detect: > + description: set to 1 if AC detection is not supported > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [0, 1] > + default: 0 > + > + additionalProperties: false > + > +required: > + - compatible > + - reg > + - interrupts > + - interrupt-controller > + - "#interrupt-cells" > + - regulators > + > +additionalProperties: false > + > +examples: > + - | > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + max8925@3c { Node names should be generic. See also an explanation and list of examples (not exhaustive) in DT specification: https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > + compatible = "maxim,max8925"; > + reg = <0x3c>; > + interrupts = <1>; > + interrupt-parent = <&intcmux4>; > + interrupt-controller; > + #interrupt-cells = <1>; > + maxim,tsc-irq = <0>; > + > + regulators { > + SDV1 { > + regulator-min-microvolt = <637500>; > + regulator-max-microvolt = <1425000>; > + regulator-boot-on; > + regulator-always-on; > + }; > + > + LDO1 { > + regulator-min-microvolt = <750000>; > + regulator-max-microvolt = <3900000>; > + regulator-boot-on; > + regulator-always-on; > + }; > + }; > + > + backlight { > + maxim,max8925-dual-string = <0>; > + }; > + > + charger { > + batt-detect = <0>; > + topoff-threshold = <1>; > + fast-charge = <7>; > + no-temp-support = <0>; > + no-insert-detect = <0>; > + }; > + }; > + }; Best regards, Krzysztof