Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp677751lqp; Sat, 13 Apr 2024 14:34:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWp9t4HGWXWwuiWEWc6bhNf+1NEfr+AQB6EebjusfUoQOxeRJFYwhUFUa4NXbBe6xijne3oQYd0FbJr5sr6Fp3LbfHCH1Gq+Fe7NUlqVg== X-Google-Smtp-Source: AGHT+IGFUeQ6Vee7/Zeec0tvUQ7oHLTLHo8liP+aZ4fB0yvlTBYib/qkJh8ePWEECreENTe47sZI X-Received: by 2002:a05:6a21:2d0a:b0:1a9:c79c:7a67 with SMTP id tw10-20020a056a212d0a00b001a9c79c7a67mr4839501pzb.5.1713044049349; Sat, 13 Apr 2024 14:34:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713044049; cv=pass; d=google.com; s=arc-20160816; b=TpQv5aqpkaZVGSpj6fhw7rK0bg+d7tu4DkpfSVEXwG/xULeVXkSKfRPt4OdxJ8BXey kW0nfbgzoZPeslpADsrnQC11B9U9LXP6yREzITMQ+VvCNSz+yfSafZAgQ8LdR6clDxsL AQPEyxtmbfq7dbZzQ+w8ExbLL1st2UM9sgtWwjnBuZ88j6VH7JefS2ZZi3KSwNQ4ofLc DVjzOuvQhoj4KCkn3B1XYhrcLwmALeWox27qe/9aOsOAt0HaaU7AjzRCHLAMM8d6NsgS 7NNwrGN523GXuPSYE1UxjTCP0wNZG/LVtT7/mTkEhT/S5ppgbJzhPrqblR4bv1p7f6BB TGTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=lkBk/CzqEQa83bXA5cRGumM1/3HMjOQpgpakaBWuPRQ=; fh=IjMSyHhU23jGp7w4AqgU0WgA4/0/SREy/1d3p5f+Te8=; b=m2csfitPC6n88awbJaCKpjTme9DON0AwMf6m40DFh8PgbAiO1OMapXLRRzff72DHJr EeyyM/ONr9zenfDMx5zsOMhF/qefJyM81Q4GMwF+LNHLdom10R4C/bT/2pXOl+CwB3Wo F+L7ISPL82Ku0P6UjB1YLQSNifh/B+VEO7xBRCoi8pZelRftH8FrjuB2xpLCKEYzRz/C 64oLGt++xcFSycB14ak461ypwhWccV+JuoPDhoIWaZH2dvDtZKZ7eTWn0zcwM5RBvIWt u5ybGsrOr9p7g1uz2QDerbV61XuL7ocR3nzH2GLo8tPuvqe09WSxbEoWjQ9A+MksWbsZ CjkA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="GkkwqY/M"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-143885-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143885-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id u24-20020a63b558000000b005d8b8f81dd2si5558965pgo.700.2024.04.13.14.34.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 13 Apr 2024 14:34:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143885-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="GkkwqY/M"; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-143885-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143885-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E1CB5B216AD for ; Sat, 13 Apr 2024 21:34:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01B5E548F0; Sat, 13 Apr 2024 21:33:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="GkkwqY/M" Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28D675473D for ; Sat, 13 Apr 2024 21:33:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713044036; cv=none; b=gF5ZlZrtz7RFj7vfaLlVjkuFchosRl56VCfcTa1q6vsY5fmtQtYpYkTQomdqNepWF7j/BoIn23VVlgCgNdcwVl+PRJIAmtDek6IVTaHnFlVd/3fPKcrB86HtFje23P65KaIr3Wr3kyZhn4QP0cGWu1ZTZdyqDhtYMVjJ0MrN+is= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713044036; c=relaxed/simple; bh=a6PQIdOQ4wImVAohuFXLKfpdVt8mIedoNm81ADHCqqw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WDQpU0AV3b8VXZmatSPNeblt1Q0MEDAwprCSgadPnOZQ4If//3abOSCZXRjksYQiIOGgBidrmopa+Pr8xWgo0Lo8y+83GRvAN3s/xUHTEOZDndZ+ZNDnDdHZcnSr+iriL4UhQ14INnlYGWUCrxQycVZOe38Gvni7LLmDT6uwmfA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=GkkwqY/M; arc=none smtp.client-ip=209.85.208.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2d8863d8a6eso24782191fa.3 for ; Sat, 13 Apr 2024 14:33:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1713044033; x=1713648833; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to; bh=lkBk/CzqEQa83bXA5cRGumM1/3HMjOQpgpakaBWuPRQ=; b=GkkwqY/MNCZd/0yJbPH7HDDl9t2SP7OyuKma2ahOqbekmRkkQCNyWWS7b/cVdcum0z wiQ6EDfJnCvn2GlaAm/zi4al5WcppBAIv7cHCI3M1tgU0vfkZAzxez6STIehpAjD2BLT V5hfIvL10HPaTjU7BSCDSKGC8HRKukcbbRiGOHv16L4XeiQEZNolEYSHsOzKrmJJbt8g /KpeJcj11oSo0AXCWYHfR5L4aTW0OVa+QcV56ejHwSHmwlOMUFG6e/eU6DWmjnNSxwVC KGqSGD/ee7RdQBw9+cHz1dxbsLqruYwEmcDYzrMGMV7qDo0q7w9xuR+8NrXGsArYRNXt /tLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713044033; x=1713648833; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lkBk/CzqEQa83bXA5cRGumM1/3HMjOQpgpakaBWuPRQ=; b=Y0Z/bPZG4bQXD0yaPnjHKwx0irOUKz3R1/433DvGSOqo69luOw0lw5fHFy/mc5Qe8D 85FDx0gF0CIIBFyaC0Kiy4qxTb5hHB6kBFCYNRplXV1sPlBocc1Cm+NCwNRQSVn8g2lB 14DIdqxIT6p8lBzrXLSKn3nmGnah0IdhplnACKvQcs+LDAPenxXct1ZRFgwO5HJiFp/C Wb6C7+KHWkob7gXYTnK2/Og56p+xgzQ4dgs6IY43+fk9Ix3FHEH+nvaMhM3N2iiKpfZ/ RpI5IZLkeekQMVtT9+VKEPMSDE/gckDJLUarG/NNcLSqKVN+dV66WmFg2KqUxlV7Z9hR fz8A== X-Forwarded-Encrypted: i=1; AJvYcCUCn02cMytdUqkcImB3NVEYyp+3qHSqx+zaMCdmAXRn6D5fCV6KkW0lkOaR5hyZfLx98CLzwe08Jsc1voZM/0+f/84F2V0pR4INj56a X-Gm-Message-State: AOJu0YzFJazIfDEuxxyGT6bJOjte29GVMA95B1h4UaJ7YFrTwRarLxnd dnfEi9RHvrxg4kmhne4fbvL3otCOb2hEl9ZZv//zi6ZnZrmKGpRDhv1scMfzzQA= X-Received: by 2002:a2e:9e93:0:b0:2d8:b8c8:1311 with SMTP id f19-20020a2e9e93000000b002d8b8c81311mr4890367ljk.4.1713044033137; Sat, 13 Apr 2024 14:33:53 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.16]) by smtp.gmail.com with ESMTPSA id j25-20020aa7c359000000b0056ff4faa0b9sm2329817edr.6.2024.04.13.14.33.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Apr 2024 14:33:52 -0700 (PDT) Message-ID: Date: Sat, 13 Apr 2024 23:33:50 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH v2 2/6] dt-bindings: mfd: bd96801 PMIC core To: Matti Vaittinen , Matti Vaittinen Cc: Lee Jones , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liam Girdwood , Mark Brown , Wim Van Sebroeck , Guenter Roeck , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, Fabio Aiuto References: Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8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mdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/04/2024 13:21, Matti Vaittinen wrote: > ROHM BD96801 is a highly configurable automotive grade PMIC. Introduce > DT bindings for the BD96801 core. > > Signed-off-by: Matti Vaittinen > > --- > Revision history: > RFCv1 => RFCv2: > - Document rohm,hw-timeout-ms > - Document rohm,wdg-action > --- > .../bindings/mfd/rohm,bd96801-pmic.yaml | 171 ++++++++++++++++++ > 1 file changed, 171 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mfd/rohm,bd96801-pmic.yaml > > diff --git a/Documentation/devicetree/bindings/mfd/rohm,bd96801-pmic.yaml b/Documentation/devicetree/bindings/mfd/rohm,bd96801-pmic.yaml > new file mode 100644 > index 000000000000..31ef787d6a8a > --- /dev/null > +++ b/Documentation/devicetree/bindings/mfd/rohm,bd96801-pmic.yaml > @@ -0,0 +1,171 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mfd/rohm,bd96801-pmic.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: ROHM BD96801 Scalable Power Management Integrated Circuit > + > +maintainers: > + - Matti Vaittinen > + > +description: | Do not need '|' unless you need to preserve formatting. > + BD96801 is an automotive grade single-chip power management IC. > + It integrates 4 buck converters and 3 LDOs with safety features like > + over-/under voltage and over current detection and a watchdog. > + > +properties: > + compatible: > + const: rohm,bd96801 > + > + reg: > + description: > + I2C slave address. Drop description, obvious. > + maxItems: 1 > + > + interrupts: > + description: > + The PMIC provides intb and errb IRQ lines. The errb IRQ line is used > + for fatal IRQs which will cause the PMIC to shut down power outputs. > + In many systems this will shut down the SoC contolling the PMIC and > + connecting/handling the errb can be omitted. However, there are cases > + where the SoC is not powered by the PMIC. In that case it may be > + useful to connect the errb and handle errb events. > + minItems: 1 > + maxItems: 2 > + > + interrupt-names: > + minItems: 1 > + items: > + - enum: [intb, errb] > + - const: errb > + > + rohm,hw-timeout-ms: > + description: > + Watchdog timeout value(s). First walue is timeout limit. Second value is > + optional value for 'too early' watchdog ping if window timeout mode is > + to be used. Standard property timeout-sec does not work for you? It should allow two items as well. > + minItems: 1 > + maxItems: 2 > + > + rohm,wdg-action: > + description: > + Whether the watchdog failure must turn off the regulator power outputs or > + just toggle the INTB line. > + enum: > + - prstb > + - intb-only This is second property controlling bite behavior. The other being: https://lore.kernel.org/all/e86812b3-a3aa-4bdb-9b32-a0339f0f76b5@kernel.org/ Probably we need common property in watchdog.yaml. > + > + regulators: > + $ref: ../regulator/rohm,bd96801-regulator.yaml Full path, so /schemas/regulator/.... > + description: > + List of child nodes that specify the regulators. > + > +required: > + - compatible > + - reg > + - interrupts > + - interrupt-names > + - regulators > + Missing allOf and $ref to watchdog.yaml > +additionalProperties: false > + > +examples: Best regards, Krzysztof