Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp329772lqh; Mon, 6 May 2024 23:33:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXsXN8xvzFT8ggdDrhtFO+r4WnuIoy5xJTxyBu3YGcuEqsQKOjfQrfR3KYHe6OrFFm0T6FOczqndZXzut1pa5dRPsI09lutAx1CDjlIUQ== X-Google-Smtp-Source: AGHT+IFslHYMm/QxC94+tgDk90gcXnPIPAVfGN84RU5cSuji82fq+mEDrNA3HRifH5jcSVnCntiY X-Received: by 2002:a50:aa98:0:b0:572:7d78:741a with SMTP id q24-20020a50aa98000000b005727d78741amr7342133edc.15.1715063582828; Mon, 06 May 2024 23:33:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715063582; cv=pass; d=google.com; s=arc-20160816; b=zu23QMjG5bQyQ2HjV1M4hWIUQbsoVYLEkVOOzcx9iO4nyh7MJxs0lmIKo9An8sDnQa ewjTBZd/aodz5Lw3oStFM34BAFjkvcmKVC54pL/pC34rEbNAN7KTHHpLxB4Cgn/jLPHP oyBNs7uwezn8Gn70/o1LPThTsBBtLcf1RWcOR/duXFjY+RicQXbvMBp6Uxifst5wZHzN EIvEhTHVA2fFNVwWnoxwefH0kBIQCb2rHVijJXkkPN4A8ZKjtmFtC9LlrWgJBsj4TVwc UtNUnFP+QKqlRfxseyrNOW4R74+/FwPclAG96MIQWOG4Um+DNubahFHW2CHDZBLV6FHI 3Deg== 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=FYPw9IdA7tp4vIyR68QM7NSJnfWMEcYbTYBbXZajp7Y=; fh=r1DNx14w4VK54mRvsaPGlAu4jAeRB0STLhA2tZn+Pr8=; b=ZynyLQ+eL3iI998+WDsnWNoTvGcSzu/09oYYXHHF8qjnE0vHKPdp9VOoQ5GZ8S/+8i I+hOQ02j0MS8cTaLLAHtpUV5KxFBL8kJ/zO7N8SXRtt48HGHxo5jj3xbXaYKS3/WliAa fXbBk7Ca9Pk+EA9eNYOMF9mQmoagjxmBw/gaJsWyWjB8CZhu1jPdF3wlNG+wPfHCfvWE VWus30sS9ldENqaAE9PeaN9bsZplulJtBvvpX43mfM/xTicRkemssQ/PmZsvcDYYwgee VIFd1qjCu3r9rSm4fNXiYUM9+Awr3ubZwefDux7qhibcFpU/BYmV4O9BD93dJ6ql+YDL dWAQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KS2EvKXf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x12-20020aa7d6cc000000b00572717b9a9dsi5589694edr.491.2024.05.06.23.33.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 23:33:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KS2EvKXf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170756-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170756-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2462C1F21DF8 for ; Tue, 7 May 2024 06:33:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 49EB878685; Tue, 7 May 2024 06:32:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="KS2EvKXf" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C53453E03; Tue, 7 May 2024 06:32:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715063569; cv=none; b=pTKlkVCVbgXKEKaa6qfNFcsN8HP59z5XPDi+Y4qrLN+xz6B5Dx1kSNMneHFAwooT3CCy0g3F4qV5nAspjDY4LXM0/Mf/gXmhnT7HW+DzOcszGLZe4nX+RacbpuPF5Dx24lVWY74mrC0hov4DyntnPqmTFZUPLjeuiFOT2LLqGQw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715063569; c=relaxed/simple; bh=m1+nZDdUknZhikivLgYhcE5Ss2bmiSlxKhFfhbTuIyE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Ib3Lfg77pG5eDZnlMPlGPKmGJiHgOwdiJeVtA6w9PKHNUBvPfLKuj7uJwCccRdytPju6fHET4+sTOsMlVHF7lRDHviksC69ijoKf8pUtbaLprNVmH7oui4N8ULAqK5LJMF6QAgKn4J6DrNdDFHZ61lJZeBtk8b+HtJnyzfFVlJQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=KS2EvKXf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1902CC2BBFC; Tue, 7 May 2024 06:32:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715063568; bh=m1+nZDdUknZhikivLgYhcE5Ss2bmiSlxKhFfhbTuIyE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=KS2EvKXf/FqoOi1xCnwwgiVVxqmYvhjj5O+k7SaN4SeK+N+/2qByEWNgDaOr7xxba rovPhIl4TJ5hOp6Xb0W9SZuY4j8TFknoLHVLLVTcmu5ZRvYDt69yjhYECV6Wwr3KAl pY2qPjf6nH7KaL8UH625t4hSMOljMqcdwbVjFJhR4GUEkQ3v27mwo9Koi2oWVCHDF/ tpsHnZbQRhUFoTYbJNuamTYM0PkjOIxNyl9Rsh/8se6uqdNNT5s76rCXDE6zS3wXsA 2yzT+qOCT9m1PTJ6+VBRFLkrA+R45fNmfvxRB0yFe/VZEUqSFzMipeFqgxgKPAm5Xp 4B9hK0D7WLnzQ== Message-ID: <29e26d22-04b3-47ee-ba70-9f4eb77326f7@kernel.org> Date: Tue, 7 May 2024 08:32:39 +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 03/11] soc: tegra: config settings binding document To: Krishna Yarlagadda , linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-i2c@vger.kernel.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, corbet@lwn.net, andi.shyti@kernel.org, wsa+renesas@sang-engineering.com, ulf.hansson@linaro.org, adrian.hunter@intel.com, digetx@gmail.com, ldewangan@nvidia.com, mkumard@nvidia.com References: <20240506225139.57647-1-kyarlagadda@nvidia.com> <20240506225139.57647-4-kyarlagadda@nvidia.com> Content-Language: en-US From: Krzysztof Kozlowski Autocrypt: addr=krzk@kernel.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/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCA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EicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240506225139.57647-4-kyarlagadda@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 07/05/2024 00:51, Krishna Yarlagadda wrote: > Config framework parses device tree and provides a list of register > settings with mask per mode to be applied by the controller. > > Add binding document for config settings framework. Config settings > are defined as a property per field and have different modes per device. Please use subject prefixes matching the subsystem. You can get them for example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory your patch is touching. For bindings, the preferred subjects are explained here: https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters > > Signed-off-by: Krishna Yarlagadda > --- > .../misc/nvidia,tegra-config-settings.yaml | 50 +++++++++++++++++++ > MAINTAINERS | 1 + > 2 files changed, 51 insertions(+) > create mode 100644 Documentation/devicetree/bindings/misc/nvidia,tegra-config-settings.yaml > > diff --git a/Documentation/devicetree/bindings/misc/nvidia,tegra-config-settings.yaml b/Documentation/devicetree/bindings/misc/nvidia,tegra-config-settings.yaml > new file mode 100644 > index 000000000000..e379cbd5b597 > --- /dev/null > +++ b/Documentation/devicetree/bindings/misc/nvidia,tegra-config-settings.yaml > @@ -0,0 +1,50 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/misc/nvidia,tegra-config-settings.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Config properties for a device. No full stop, that's a title. > + > +description: > + Config setting is the configuration based on chip/board/system > + characterization on interface/controller settings. This is needed for > + - making the controller internal configuration to better perform > + - making the interface to work proper by setting drive strength, slew > + rates etc > + - making the low power leakage. > + There are two types of recommended configuration settings > + - Controller register specific for internal operation of controller. > + - Pad control/Pinmux/pincontrol registers for interfacing. > + These configurations can further be categorized as static and dynamic. > + - Static config does not change until a controller is reset. > + - Dynamic config changes based on mode or condition, controller is > + operating in. > + > +maintainers: > + - Thierry Reding > + > +patternProperties: > + "^[a-z0-9_]*$": > + description: > + Config name to be applied on controller. > + type: object Nope, this means nothing. Sorry, describe hardware, do not create some fake nodes. > + > +additionalProperties: true > + > +examples: > + - | > + config { Messed indentation. > + common { > + nvidia,i2c-hs-sclk-high-period = <0x03>; > + nvidia,i2c-hs-sclk-low-period = <0x08>; > + }; Best regards, Krzysztof