Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp965825lqo; Thu, 9 May 2024 00:07:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWqJXyGTF4ww+Gt7RtuS/qU1ZSspudKqvoVuQduV0eIVDsqKvz2kfFQKhIu6CPB63fXc5ZhUYVmm8yv9NnAngIpiU4EdhQpSkSUBO8w3g== X-Google-Smtp-Source: AGHT+IFWBvTDtRDj+zLkEKKHVrXCEloxcvhdZja6f9axvrrmPMjb37U+FSa0QcOKG5orkv9EYY4g X-Received: by 2002:a50:bace:0:b0:572:42ac:9b19 with SMTP id 4fb4d7f45d1cf-5731d922dc1mr3629285a12.0.1715238424784; Thu, 09 May 2024 00:07:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715238424; cv=pass; d=google.com; s=arc-20160816; b=BYBEdoza/Yd130krJKKDP9KLiKrRPCKSMAz+8Oo4eJkPDG4ziCOoKrXFwQGTZ2HXNU LhEyv9FQn39li7kiNvN8s19XkDc9JYo7o1zF4ZumJbpsk3XTxG2M9xY7ZJnbp1+ot6Bb s25OatURSts9RBqOfZKO6Qw53fEzO+h483HfCKtglAVG+852V67FO4cNUhV3FiubyACy eobD8P2XqsVJNE04Hi6UWkS0wd8lIV23dCt2UOdEerx22uMqJP9wso1nlmRsZ7vtTQly a0X7PCMkScvdKJIjeCaZxkPWw7gjNmfhERnHXBU0Ld0GFfdacxRCDQjet5nmT/HPQ2kd Wwgg== 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=b/E8lvStMVbVqNK9DirUkJXS5hmaFOn0R1H1ehE1xo8=; fh=WGYI7HuX/Pc3MU6T3DH0DXn2CcYaPaCdR9P4hkntJoQ=; b=KkcOj8YTsalv2Bdeiicha2KMdV8Ycqh9t+anTQB+Y4s7PcT4zjsXnFlzyHGYckKWJ4 2PxO2xP41C0p/yC9KuUehB2zPs5DwakUDK5hnm2RHohM8DsYVj1mVu6TrfJMP2hxC1qR +S7a1ejVvr0eGrjcj7k/fiqCD5CmfmkT+pY3JoFOpAaTj+Vdrmyrh3giyz6XAhjRnMJG 4VoYnc1KjHcRTxG2dsNGjVsOjrRL7feC2q4jXG/xUUImKC/dAwK4ZhVTED4Zhjn3axLW jZguyEgrlpuJkv6rDw5PznEhzdv/fhBeCS6FvtUuStBCsFlSfj+oupJfyQfn1EydAqtf Ahxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K5U9eGsf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-174229-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174229-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. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c32740fsi471153a12.366.2024.05.09.00.07.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 May 2024 00:07:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-174229-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K5U9eGsf; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-174229-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-174229-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 5AAD41F21A47 for ; Thu, 9 May 2024 07:07:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6544313CA81; Thu, 9 May 2024 07:06:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="K5U9eGsf" 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 75830624; Thu, 9 May 2024 07:06:55 +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=1715238415; cv=none; b=KutUIsIINs2wHyN7bbCD37BfEzPwzC7jH0NSI68KInTpHlDrebMq5OaCz46g6YpkJJ3jp15TulTrlQsfa7Nfs3ZOJMuX+JdiGzNjUXKlsYzGl3rrJN34dMTn9VkOQzzassYJk1JBHz4EVdROZEG2Jw0oeLxal9zmpYVfoFcBoOY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715238415; c=relaxed/simple; bh=D0YNdCj72T33QDAW/BxiXgYB+ixQvL7O7umDUwM2hUw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=PFnc5KjL34e3tL03Ru2Lalml7UdZdN6RWzbyUcE+N2OHyj2SVgIsxm/JOc+Fvw9CoXPbMSfYo8r0DsBNmjjcdivVaHnRMGrtyMtbp8TcbwSWy3HlPJ39qEA7xHKiGF3b3i3Gq8ht2Ydth+0hEN5fcOym7qDn3RUNtPdxkKBv6go= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=K5U9eGsf; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF35AC116B1; Thu, 9 May 2024 07:06:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715238415; bh=D0YNdCj72T33QDAW/BxiXgYB+ixQvL7O7umDUwM2hUw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=K5U9eGsf5CBo92Qm6hl7dhtzryo7duhyQtWuE+zitvv3s1+m+FYHsHVp3uPlFCLDQ KmbMGdh2/kPFMeyroYW7iAHbySc2hT3PWDQwwdLe3JUexMPiJk1sQu/m9QcB/wdlMh 5AIfLz0qZyffZcL6sCbre8kpYph580qtqs6f+5QsGxsptYyspHRS9gN+8Oeh/CrH37 ccvCD8+8fu/eTZd0VQJ80GXdlV8xdKnVXREnvUyai7xp291d10n7F3QhBuR0TEbzw4 os7C01+2zf2Ds0berdKsrZbsnuCB4vyjimDYsB3JUm8utttL0VKZeEliNK2H1YBY7X NC9PLItFxXQjw== Message-ID: Date: Thu, 9 May 2024 09:06:49 +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: [PATCH v2 1/2] dt-bindings: hwmon: Document adt7475 PWM initial duty cycle To: Chris Packham , jdelvare@suse.com, linux@roeck-us.net, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: linux-hwmon@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240508215504.300580-1-chris.packham@alliedtelesis.co.nz> <20240508215504.300580-2-chris.packham@alliedteles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Iwv6nw8U+7Yyl6gU BLHFTg2hYnLFJI4Xjg+AX1hHFVKmvl3VBHIsBv0oDcsQWXqY+NaFahT0lRPjYtrTa1v3tem/ JoFzZ4B0p27K+qQCF2R96hVvuEyjzBmdq2esyE6zIqftdo4MOJho8uctOiWbwNNq2U9pPWmu 4vXVFBYIGmpyNPYzRm0QPwARAQABwsF8BBgBCgAmAhsMFiEEm9B+DgxR+NWWd7dUG5NDfTtB YpsFAmA872oFCRRflLYACgkQG5NDfTtBYpvScw/9GrqBrVLuJoJ52qBBKUBDo4E+5fU1bjt0 Gv0nh/hNJuecuRY6aemU6HOPNc2t8QHMSvwbSF+Vp9ZkOvrM36yUOufctoqON+wXrliEY0J4 ksR89ZILRRAold9Mh0YDqEJc1HmuxYLJ7lnbLYH1oui8bLbMBM8S2Uo9RKqV2GROLi44enVt vdrDvo+CxKj2K+d4cleCNiz5qbTxPUW/cgkwG0lJc4I4sso7l4XMDKn95c7JtNsuzqKvhEVS oic5by3fbUnuI0cemeizF4QdtX2uQxrP7RwHFBd+YUia7zCcz0//rv6FZmAxWZGy5arNl6Vm lQqNo7/Poh8WWfRS+xegBxc6hBXahpyUKphAKYkah+m+I0QToCfnGKnPqyYIMDEHCS/RfqA5 t8F+O56+oyLBAeWX7XcmyM6TGeVfb+OZVMJnZzK0s2VYAuI0Rl87FBFYgULdgqKV7R7WHzwD uZwJCLykjad45hsWcOGk3OcaAGQS6NDlfhM6O9aYNwGL6tGt/6BkRikNOs7VDEa4/HlbaSJo 7FgndGw1kWmkeL6oQh7wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20240508215504.300580-2-chris.packham@alliedtelesis.co.nz> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 08/05/2024 23:55, Chris Packham wrote: > Add documentation for the pwm-initial-duty-cycle and > pwm-initial-frequency properties. These allow the starting state of the > PWM outputs to be set to cater for hardware designs where undesirable > amounts of noise is created by the default hardware state. > > Signed-off-by: Chris Packham > --- > > Notes: > Changes in v2: > - Document 0 as a valid value (leaves hardware as-is) > > .../devicetree/bindings/hwmon/adt7475.yaml | 27 ++++++++++++++++++- > 1 file changed, 26 insertions(+), 1 deletion(-) > > diff --git a/Documentation/devicetree/bindings/hwmon/adt7475.yaml b/Documentation/devicetree/bindings/hwmon/adt7475.yaml > index 051c976ab711..97deda082b4a 100644 > --- a/Documentation/devicetree/bindings/hwmon/adt7475.yaml > +++ b/Documentation/devicetree/bindings/hwmon/adt7475.yaml > @@ -51,6 +51,30 @@ properties: > enum: [0, 1] > default: 1 > > + adi,pwm-initial-duty-cycle: > + description: | > + Configures the initial duty cycle for the PWM outputs. The hardware > + default is 100% but this may cause unwanted fan noise at startup. Set > + this to a value from 0 (0% duty cycle) to 255 (100% duty cycle). > + $ref: /schemas/types.yaml#/definitions/uint32-array > + minItems: 3 > + maxItems: 3 > + items: > + minimum: 0 > + maximum: 255 > + default: 255 > + > + adi,pwm-initial-frequency: Frequency usually has some units, so use appropriate unit suffix and drop $ref. Maybe that's just target-rpm property? But isn't this duplicating previous property? This is fan controller, not PWM provider (in any case you miss proper $refs to pwm.yaml or fan-common.yaml), so the only thing you initially want to configure is the fan rotation, not specific PWM waveform. If you you want to configure specific PWM waveform, then it's a PWM provider... but it is not... Confused. Best regards, Krzysztof