Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1080891lqo; Fri, 17 May 2024 10:02:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVcOTV0QCLBYgScpjTAQxnhux6NQDgOrDqO4Eb4d4WQg4I6J7x9nLGqDr6jG9BnTxtoZHDYqRuk15qsZeQKzBpRd7SJ/2k2DUmGUjnsTA== X-Google-Smtp-Source: AGHT+IHhdTdFveadKn7w1DB1pSe+kcQss97VOC9WsCBYC+j26ooKpLbl4mXa+tb4nfUZSPZW5Rin X-Received: by 2002:a17:906:eb07:b0:a5c:dd2c:d95b with SMTP id a640c23a62f3a-a5cdd2cdbafmr532210266b.25.1715965377652; Fri, 17 May 2024 10:02:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715965377; cv=pass; d=google.com; s=arc-20160816; b=JVPnxAJNTL2exsNed981szkVmxoTN12eTxk6h+CsBssUhevsXToSpS9qBpef1Uv0P9 Nw5Bm1iBhag1neOUt1eudgHzljlvgo2SxkJ3IMdtQ0kIVLe0pKeMij+Uflr9/+GtP8kj 4O9C89Ofb6NyuV9WAdv+MoY5Iq0ZkqLzJD5bfIXUnumS4e9ImTUWhZCzK+2YwC2+r8vg Uk/vWupfQD8c5o7CI0RpvH1H1HPiIEp7TE7lh9EruI+Mu5Q6PdQ2Om2fDzwyVVJf+YRj 78IPEZXsy5wC960B/204xp5RKAqObTDCzALYCwK7HugDrH+2zkxHSIW7pCogA9CtRdhH Verg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nOOiAWAoDF28q7LXeYw+lIcY1o2Gbp1hK32sitG+FMk=; fh=2735rRFQA87xELXP+K5XZrzvxN8jWJA/7QtUn6LgSlI=; b=JMvB8qIEdeJgF+eTWgHSlr81hhMs6lbj7WxPtDVTkjNNCytsNDPLl096L1wHfyxYEJ kYZL6HDoIfMngHPTMXfURZDi5EgwCpYjSVPn5n9T/vahPMI4xxgs6qbmg/ZzntaQVQnM kUMA8eZn7UQ7JXCS9NSit7I9zuY+4RcyLvnM1Tmmj19yJ7V2izxmGSQGizpmPCtUdyJI nNlTczx8WaGFTOrmwykzOsN7qRYoFTWkZFaAvaI73JHuKEOwIHcLfL8s2tPJEpeJ5gon W0J/hec1NCFSmawjYDwcQiacdbCfWIn9wGZmrjdWM+t1KzZ0IHxwXv5ji6ZzodN6jlsp hYHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="q/0c/y9F"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-182371-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182371-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 a640c23a62f3a-a5a1797cdd8si1012825366b.263.2024.05.17.10.02.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 10:02:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182371-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="q/0c/y9F"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-182371-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182371-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 D16781F213E9 for ; Fri, 17 May 2024 17:02:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2BB4513DDA4; Fri, 17 May 2024 17:02:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="q/0c/y9F" 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 4DFE913DBB2; Fri, 17 May 2024 17:02:37 +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=1715965358; cv=none; b=rc+9OMSXf+7yoRixvkdz5SKz5FlIzznxZrnvLh2lR8BivFFNXmQxnKcykOdVtQcqOPSrNQ5C3TN1kWlzriCmn81+a8yQwuyYPGLDDyewh5Oxpj3lG+1otzRoGk3fGuaKsVkd4W/mHMrMJNxngfU0Ga2RqyvKTBtScu/aFJ8n+R8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715965358; c=relaxed/simple; bh=a9qTdLj24waCyJqkBNOPq9CVw+6PnI5f9rvBm2lXyEU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qQyy8HchDf0R6kcZcUYuSpgcr4CLcKMfNViJsUx5pOthigeHNSBlpiqixN0+4KP43PwgxNv6sXz/1AK+7k6rG7m0nEKPoL6NnQSWTD/wg1A990HMsEyOWEUkcP4qpU/kaGNyrg9/NtDnjQjb849KUDlARFiw8GkqGOtsc/SgWRw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=q/0c/y9F; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C0CFFC4AF07; Fri, 17 May 2024 17:02:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715965357; bh=a9qTdLj24waCyJqkBNOPq9CVw+6PnI5f9rvBm2lXyEU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=q/0c/y9FsVPkTUc0JYrmy/XwpOODWBuwLiYxOWciUnsLiLJzvLzGZ7itQVRzJaAB4 kZEwIzGJCOrZ2NTY28sZD5GwUqSClcU7L2jlTudo8rGkqFal+mHNrt4ooQlR1NeJSx dq+jtlpKNtC4uoJNWxdQ5F278xclxVzsZDs7s5Eg6tMw/TYZReFbQSBGIYme2j78ct AX33Lc6YlncbTUZKDBhM7xUcAeFMEznOuL9VuNnWXIGmmUhBUQw7z7srBgAk1TkzKu xoToHyZsb0Twcb6O537rnGl74/ccFGs8fBPc2EFQy4JbtQ4DGxO+GRjsL1HE4UTNH+ EqmwOGzhjsjUA== Date: Fri, 17 May 2024 18:02:33 +0100 From: Conor Dooley To: Chris Packham Cc: Guenter Roeck , Krzysztof Kozlowski , "jdelvare@suse.com" , "robh@kernel.org" , "krzk+dt@kernel.org" , "conor+dt@kernel.org" , "linux-hwmon@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 1/2] dt-bindings: hwmon: Document adt7475 PWM initial duty cycle Message-ID: <20240517-pellet-visa-a2d469dc5f34@spud> References: <20240508215504.300580-1-chris.packham@alliedtelesis.co.nz> <20240508215504.300580-2-chris.packham@alliedtelesis.co.nz> <94c843e2-4415-4786-bfd4-a77fdbbfab07@roeck-us.net> <35361786-ef5f-4d81-83e8-e347f47c83ed@alliedtelesis.co.nz> <58fb36f5-4d4b-495b-a7cd-6129ab1ed454@alliedtelesis.co.nz> <20240517-pointer-cloning-3889f3d6f744@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="+X2rjDYBXGZyu12t" Content-Disposition: inline In-Reply-To: <20240517-pointer-cloning-3889f3d6f744@spud> --+X2rjDYBXGZyu12t Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 17, 2024 at 06:00:06PM +0100, Conor Dooley wrote: > > On that point. How would I explain in the bindings that cell 2 is the= =20 > > duty cycle, cell 3 is the frequency and cell 4 is the flags? >=20 > In the pwm-cells property in the pwm provider binding . You might want to > order it as as usually that's the ordering done > in most (all?) pwm provider bindings that I have seen. > The pwm bindings I think are really unhelpful though - they all say "see > pwm.yaml for info on the cells in #pwm-cells, but then pwm.yaml has no > information. The information is actually in pwm.text, but the binding > conversion did s/pwm.text/pwm.yaml/ in pwm controller bindings. > I'll send a patch that fixes up pwm.yaml. Possibly cell 4 should be standardised as the period for all pwm providers and then all you'd have to do for your provider is set #pwm-cells: minItems: 4 --+X2rjDYBXGZyu12t Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZkeNqQAKCRB4tDGHoIJi 0uXCAQDXCODtnYYARTz+kbcGq3ND2LzQGGADi0a7Lvxv4dhlsgEA2L0ABO/dxCWQ c1WMqf36kbId4rznhBGJT5PhHcJJnws= =AKMl -----END PGP SIGNATURE----- --+X2rjDYBXGZyu12t--