From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 1A0B6C001E0 for ; Tue, 15 Aug 2023 20:56:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DCoZEBdCcMjNYtHp+Kq65aFtHbB8yH4NcGS4J6sn4IQ=; b=n3u9HWX5H/60C9 NrrNEPl9Ah6/JkWP4Ui+ZxqX/vGhUFhqqYYCN3/LxKag+zYd3TV9agdIaHaSElNoIWjntp49EG9vh lp+DbIfYIE6aEySXvMpaErmh8yFjW0v2Bq066zP/HDXT+aQWn6WeSZan0zlmflMfDv2l8khsFiKA8 uuGwNdZ/G+H0Ni7rkSgMTDVhGbS7MsG3jSpYkZkHLhBdcFRwnEpZ94QBwwTHSVx2Q/STwGPGjq5YX 7Ry+WR2NutWGPPnLnYlykQLDT737q1He2lRhAkD+IoDsiY8yLS/e4cWVGt1AkOxYOiAZeEdiVbonI sEzeDLLqrLjNTJ2AsmxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qW154-002TPu-2j; Tue, 15 Aug 2023 20:55:58 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qW152-002TOz-0V for linux-arm-kernel@lists.infradead.org; Tue, 15 Aug 2023 20:55:57 +0000 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-319559fd67dso4365634f8f.3 for ; Tue, 15 Aug 2023 13:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692132953; x=1692737753; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=oTso9py58RINldM+SIS7ngpWFh8NlYBOMbAcQtvamPA=; b=lmGA7PuuEG9aaGiBonYMW+JOZUJXygKvGdocj7K+u5GUa4b1EpzkdpHCtbkvicIhcy FzawxjKPyyZNpFP2aO2+OZOOQwjGAWq7QqecbGdQymTQHd9EMKk4RYq0xJ6QisczXdLh doZeNxftrX/Me0LVCg84tjM6BiWntcIwLdxVcwSWxJRV3HdJJQwsu8nFFsZpSnKZFRFe HRUxOoF3PR1obbR+GrwMN2TILG5d0OnL9CseBI09TiQx+Wd6q5AxC2aMRTzNboc6X+mc 18uLBoq7A1fK3v66qTP6PWQRUl6evF+nO+VJmAuBCzCSsq/1ILoola6gXttEqdYZhv7I dybw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692132953; x=1692737753; h=content-transfer-encoding:in-reply-to: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=oTso9py58RINldM+SIS7ngpWFh8NlYBOMbAcQtvamPA=; b=IGMJVHCR262N1Uqgo2SV1xmwUOGSgV2MEFridGo+ERntBWv8OmUMtJCc7Q7qTod6K9 kYzGa81ybMLxkDFpB4qv+cTJIQFUzUUgr7DJfaiDfai69ZlzqoSTSqEpXbUgSaqC5551 MYt5TejTnHQIzmkyhD7MA7+bMF9WoEefWRdgAzYRtNSwfM4ZlSJrhWB/GmK64NdiQi4R dfxe0QcQds0KnKDW9cSDtOvpZ5+tPNat9frEpHsiH31N1G0mHx7ggxY0fSpWwVb7tndb 8vRojf2uyuC0hXPLBWuyswvECWdRsQcnUQoZgIHb5Qjcm+jRJmEtUXASxPz0ZBrbuIXm eizg== X-Gm-Message-State: AOJu0YxaxRWJKD8GpS/MVdq2BehRp6HykMp5aBRc17qUzzQiaXN10UZZ X748vOeLRkAlfMkXraoLbI7BpA== X-Google-Smtp-Source: AGHT+IEzt0cpRiZEK/9hkSxLL+DL/4wnaj3yc4vyAcBnz8fCg8WIHsULG9PFSJTSyIx2qrW5YMydHQ== X-Received: by 2002:adf:dd85:0:b0:314:44c8:aa98 with SMTP id x5-20020adfdd85000000b0031444c8aa98mr10405035wrl.67.1692132953084; Tue, 15 Aug 2023 13:55:53 -0700 (PDT) Received: from [192.168.1.20] ([178.197.214.188]) by smtp.gmail.com with ESMTPSA id y7-20020a5d6147000000b00317e77106dbsm18920031wrt.48.2023.08.15.13.55.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Aug 2023 13:55:52 -0700 (PDT) Message-ID: Date: Tue, 15 Aug 2023 22:55:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH V4 1/2] dt-bindings: opp: Convert ti-omap5-opp-supply to json schema Content-Language: en-US To: Nishanth Menon , Stephen Boyd , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Viresh Kumar , "Rafael J. Wysocki" Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Vibhore Vardhan , Dhruva Gole References: <20230811031458.957624-1-nm@ti.com> <20230811031458.957624-2-nm@ti.com> From: Krzysztof Kozlowski In-Reply-To: <20230811031458.957624-2-nm@ti.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230815_135556_200568_872E0E70 X-CRM114-Status: GOOD ( 24.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 11/08/2023 05:14, Nishanth Menon wrote: > Rename ti-omap5-opp-supply to be bit more generic omap-opp-supply and > convert the free text binding to json-schema. > > Signed-off-by: Nishanth Menon > --- > Changes since V3: > * Rewrote the description of the binding to something more relevant to > current style of documentation. > > V3: https://lore.kernel.org/all/20230809023045.1870410-2-nm@ti.com/ > V2: https://lore.kernel.org/all/20230801233341.1416552-2-nm@ti.com/ > V1: https://lore.kernel.org/all/20230724153911.1376830-5-nm@ti.com/ > > .../bindings/opp/ti,omap-opp-supply.yaml | 106 ++++++++++++++++++ > .../bindings/opp/ti-omap5-opp-supply.txt | 63 ----------- > 2 files changed, 106 insertions(+), 63 deletions(-) > create mode 100644 Documentation/devicetree/bindings/opp/ti,omap-opp-supply.yaml > delete mode 100644 Documentation/devicetree/bindings/opp/ti-omap5-opp-supply.txt > > diff --git a/Documentation/devicetree/bindings/opp/ti,omap-opp-supply.yaml b/Documentation/devicetree/bindings/opp/ti,omap-opp-supply.yaml > new file mode 100644 > index 000000000000..25a0cb5ec6ff > --- /dev/null > +++ b/Documentation/devicetree/bindings/opp/ti,omap-opp-supply.yaml > @@ -0,0 +1,106 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/opp/ti,omap-opp-supply.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Texas Instruments OMAP compatible OPP supply > + > +description: > + OMAP5, DRA7, and AM57 families of SoCs have Class 0 AVS eFuse > + registers, which contain OPP-specific voltage information tailored > + for the specific device. This binding provides the information > + needed to describe such a hardware values and relate them to program > + the primary regulator during an OPP transition. > + > + Also, some supplies may have an associated vbb-supply, an Adaptive > + Body Bias regulator, which must transition in a specific sequence > + w.r.t the vdd-supply and clk when making an OPP transition. By > + supplying two regulators to the device that will undergo OPP > + transitions, we can use the multi-regulator support implemented by > + the OPP core to describe both regulators the platform needs. The > + OPP core binding Documentation/devicetree/bindings/opp/opp-v2.yaml > + provides further information (refer to Example 4 Handling multiple > + regulators). > + > +maintainers: > + - Nishanth Menon > + > +properties: > + $nodename: > + pattern: '^opp-supply(@[0-9a-f]+)?$' > + > + compatible: > + oneOf: > + - description: Basic OPP supply controlling VDD and VBB > + items: > + - const: ti,omap-opp-supply > + - description: OMAP5+ optimized voltages in efuse(Class 0) VDD along with > + VBB. > + items: > + - const: ti,omap5-opp-supply > + - description: OMAP5+ optimized voltages in efuse(class0) VDD but no VBB > + items: This and previous cases should be just "const:", because you have only one item. > + - const: ti,omap5-core-opp-supply > + > + reg: > + maxItems: 1 > + > + ti,absolute-max-voltage-uv: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: Absolute maximum voltage for the OPP supply in micro-volts. > + minimum: 750000 > + maximum: 1500000 > + > + ti,efuse-settings: > + description: An array of u32 tuple items providing information about > + optimized efuse configuration. > + minItems: 1 > + $ref: /schemas/types.yaml#/definitions/uint32-matrix > + items: > + items: > + - Don't wrap (drop line break). It should be just like you have in compatible. > + description: Reference voltage in micro-volts (OPP Voltage) > + minimum: 750000 > + maximum: 1500000 > + multipleOf: 10000 > + - > + description: efuse offset where the optimized voltage is located > + multipleOf: 4 > + maximum: 256 > + Rest looks good to me, so with above: Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel