Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp330513lqh; Mon, 6 May 2024 23:35:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUXdEtAVhfL8Dt22vaBaE6eUEYepNNwTPFwOyekSggx4frfkkReuD2Q+Fb5cN7paKXfnIeuHd40sIuAKNo8CA6TzuGohh5MwKmIXItpdA== X-Google-Smtp-Source: AGHT+IHbSJMzqHzzUcCr6vMcKV5ef5liuJ2wFmgL4rd7nzA5GDDDPqbUzifdEmQO5h3b69cAP71X X-Received: by 2002:a05:620a:2591:b0:790:c18f:5d94 with SMTP id af79cd13be357-792a644e522mr290547385a.4.1715063719108; Mon, 06 May 2024 23:35:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715063719; cv=pass; d=google.com; s=arc-20160816; b=kTfhKJtw54wMs+4ocUHXUDx39cvcu/AJQ1z/kwlgghggfOcriTVVfS+VhYAB2dcsGA 73SpxRt65J+ul2pJF/K/atQwqE4nxgc+1xyYkTfH9mZ7vSyKe+AjBaGhZdJ1nXUl6OuI BvRSODkG1t/wSNJ2eqK0gpwuRcYLkTUa15vYGVRqj2EeAtaYLtt0FzHAn+tForLm8A8w kaf7oRZ3GYs20cS2xGg/AxQnIDWqTs3TeTI9MzB4ER5fGqFpE1cD2dCPa1SP7UVo2HSX OKEMdYMgyL6L3ChhRjRnB9rfDjSt45gx6oQFyoKc1Kkc7TW7NFvPSqK/X8Rnn/U7/m3d p/0g== 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:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=ghHVGkGXS2iUnrmJ+0wCfTPH3Rn1F7cOuDTkcL3eHDY=; fh=r1DNx14w4VK54mRvsaPGlAu4jAeRB0STLhA2tZn+Pr8=; b=NdR6iOcfGD8kwqnMvzTatpDp7eArKKC3wI8Pe+tt8LO4fi0h9DWH9ETQqypnsZRHk4 OYc7Hyb8JG1549ett85K17OrIxA1hkQf0uyl3T06Af3rsvN/g+W60zkPMXP4bfFUTaN5 0qwuYdjwjz8TKvbrAhIOhzMlY9YvCumA/gqX9SHiLwsd+lo5CXL6OuJTpmaLzD5LCJik /leCtAI2WCnDkxdSRewPsmtSwn02FMPc3wz7AIotvrEWeWuYb3arTpstXj7iYtExlIFw QR8Z8v5k0cCg2E1tlrhTTPWuKXCVaTPSn1CmNMghy19H4NFX+uk+vyjIc3d/O2m9Enm2 LYFA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lKXQ49cV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170758-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170758-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id cz31-20020a05620a36df00b00790e1115749si10060449qkb.151.2024.05.06.23.35.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 23:35:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-170758-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lKXQ49cV; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-170758-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-170758-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id C33491C20C2F for ; Tue, 7 May 2024 06:35:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6458F78B50; Tue, 7 May 2024 06:35:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="lKXQ49cV" 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 51D698830; Tue, 7 May 2024 06:35:06 +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=1715063707; cv=none; b=L1mRbKdZg182ZJmquyKUpoHgT6hjLEnGFXphhfVUJiY1xN6tsyiR5RjfaF8bUv+WgaTkFwJ/1dWTbG7CSQfUEoQbi4jazmpB8dPMtuf5hZQuCQEDRqWd17MtED9oMzzQMKKzBJy85QDmM51sFgNRqafxyJvCnuG8frFK4WyE43o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715063707; c=relaxed/simple; bh=Npl6n3qMCOWszNNP57mJKVD1PsB2Ftcv70QRdDy1gIY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=uj/5jTI5++hbBJCngXqkEfLVURpOYDG1iFlELjgjb2z8oEhCZ0aQXj9gQiDfbjfotC2hYpsRWrSmgcPTUfBoE/2DikYXgqoOB5kTVWMjgSl2KOIBmXrigXkOVO3UcT+W1vdULpRE+4vIBOx5OrJ6coY9U11uR3FJyTD+PwXtOCw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=lKXQ49cV; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A26E4C2BBFC; Tue, 7 May 2024 06:35:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715063706; bh=Npl6n3qMCOWszNNP57mJKVD1PsB2Ftcv70QRdDy1gIY=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=lKXQ49cVZS+jZynUD9r6q775VrrxdMbPair1BTpd1cq/w8Wy4i2XWFpCG+MJRRkKu sPp3dlE9k5tP7mzJ3aGH9UM3tJKCLm5ZCPTocFCmngo/Yu8nha0P6OkEkdAJuJjGFY TCH9LoImqnAWLzmcFtqLprRpJ6v4uSxo1eP/GIDxsnztKlTUjwTsvBjWgH+7jhlHKs uLhvrsTFQn/3WogIejgvT40sHRc2i8WeOgUuEM/dXYYFWm907pbD8kxJj3dDA0b3j2 yUCZy4S6LxSeVaT1qZXnVtLCWhQxrUGunhvkQBuyn2R1H9yzz2GhWyA9SVE5WFhKb0 iP+EOcO6FfK2w== Message-ID: Date: Tue, 7 May 2024 08:34:58 +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 04/11] i2c: dt-bindings: configuration settings 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-5-kyarlagadda@nvidia.com> From: Krzysztof Kozlowski Content-Language: en-US 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/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ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dNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240506225139.57647-5-kyarlagadda@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 07/05/2024 00:51, Krishna Yarlagadda wrote: > I2C interface timing registers are configured using config setting > framework. Document available properties for Tegra I2C controllers. > > Signed-off-by: Krishna Yarlagadda > --- > .../bindings/i2c/nvidia,tegra20-i2c.yaml | 104 ++++++++++++++++++ > 1 file changed, 104 insertions(+) > You called it RFC, so not ready for review, thus just few remarks. 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 > diff --git a/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.yaml b/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.yaml > index 424a4fc218b6..3b22e75e5aa0 100644 > --- a/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.yaml > +++ b/Documentation/devicetree/bindings/i2c/nvidia,tegra20-i2c.yaml > @@ -119,6 +119,96 @@ properties: > - const: rx > - const: tx > > + config: > + description: Config settings for I2C devices enlisted with I2C controller. > + 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. > + I2C has configuration based on clock speed and has below modes. > + - common is set on all speeds and can be overridden by speed mode. > + - high is set when clock mode is high speed. > + - fastplus is set when clock mode is fast plus. > + - fast is set when clock mode is fast mode. > + - standard is set when clock mode is standard mode. > + $ref: /schemas/misc/nvidia,tegra-config-settings.yaml > + unevaluatedProperties: false > + properties: > + nvidia,i2c-clk-divisor-hs-mode: > + description: I2C clock divisor for HS mode. So you decided to implement clocks in DT? No. > + $ref: /schemas/types.yaml#/definitions/uint32 > + minimum: 0 > + maximum: 0xffff Anyway divisors, clock rates and everything is human-readable so in decimal, not hex. There are also several issues further, like using wrong units (time has a unit), but since this is RFC, I will just NAK. Best regards, Krzysztof