Received: by 2002:a05:6500:2018:b0:1fb:9675:f89d with SMTP id t24csp496427lqh; Fri, 31 May 2024 07:43:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXhl0q98ZwKO0s2TNJw8Z1nSLYc0QNlMSUngEQUVxEHQomjo9+YUcG8lR0Q+URz2o5b2/k8bNDfet/70XVb5rNiirfrQthAigh3u4RJMw== X-Google-Smtp-Source: AGHT+IFRkh4rV9iitI/seuNold7y6ekboP+Idr92cInD52M7a634Z+vhInFzmiIXusByPzzlAPHR X-Received: by 2002:a17:906:5983:b0:a64:25dd:92cd with SMTP id a640c23a62f3a-a6822049874mr133021466b.57.1717166631716; Fri, 31 May 2024 07:43:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717166631; cv=pass; d=google.com; s=arc-20160816; b=F72APpov79cEUjozQ/WLPivzobViyW1h/2y5gMWFBySfQEUK/b3NGnqqbzb/ELnVoH aMwO3CfG7K321uVS07h9BofeHXcARYJK4IlJlUQclmOVAcbPrZRXhXZqqqL0tJfNvB82 iIhT68F4q8RJDRpwrybsjqhNb7dPw8KTszxpo3CTrRA/jiuJmGf29yeXpXvtuoSldukh 4ub+yNPLE0vuPBvHwfqTF7JB4k0ysD2cpTD7DE3+eA+5tNnT8ukpqW7WOtymG7Kv3Znt n3KP8GkX42FWu9J26PBo/JIuoEOSeS591oXnt3nsYMFiwQuecBbYcTqktBi6euimm6/A Nsjw== 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=9okrNQ2YMsjuYvfwLLZyHdjOtPIjnTZ0cjowUbmE8WI=; fh=Jyi0i5k8/nUQZVwOgkvq2z14zH+p78c/FvyX0DkyIas=; b=uAGZR9FnjSQ67Q6ItXjXHEGmRjGjlk5UZW4Jp8+YrlTsbr/DrtkX5qV5yQAQ0n8e59 Ggc7VpfQ4DeiSAoHMcVAhyAirbB3z/yM/gEmfmUrymHO70894V9KppJjaL1GJ+21lCYP gNhlMH9K2gO1PXYs/qLFHUzqCq4H1nYqSTwy8eimOHjT9W5At3ji2I5MoxuJQOGRlRtj ugTJv2xqCSStJdsBhCi1kIrxv6sd6HNXv+Pyy6Daa6QvEZaT2O6dAZHss6yraINh7Bwu 3IKM6SxCcdU1teKUc5H837vBarXB73YKCcXinjKLK1EJPJHceY/18aUctKX/T4s0xMQE U3aw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=glUwW9ut; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-196997-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196997-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 a640c23a62f3a-a67ea38dc36si99717066b.351.2024.05.31.07.43.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 31 May 2024 07:43:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-196997-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=glUwW9ut; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-196997-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-196997-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 2E3981F243D4 for ; Fri, 31 May 2024 14:43:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C9A0E56448; Fri, 31 May 2024 14:43:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="glUwW9ut" 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 D0FAA4502D; Fri, 31 May 2024 14:43:40 +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=1717166620; cv=none; b=SMoRFia5/4UPpwo6DzNtx6mHmDEVVpR9D+Naz/noM1qZo67EUV7U44TvSGCq5K9xnW61Z/bjEOLbEfl61WXcKPDItZVNo95jDZ7202MbBmLkNTb6EQmORkDSRzrJjZFt/g4NPdR2mgKxCt+Kr28G09lUrSCSw5qG6lg5SXwkaIw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717166620; c=relaxed/simple; bh=aS+nrTZxy7m9OYj7c0HhMNxrjln+wRR7+umRM4AtBuw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=onKF6NPbhwgx2UvmEM8YDcJo7f/G3iKkTJdnGKskCJmQqk23QqXSuKHgUbF36reEEoZGTJymAqlJ192d75FM+nThl9ZjyfxvIb/fZvteuTHb9zxfqNJLeLFtm9X5tKJhSqL1ZHFbgFPtcgqTEJ/nSsroZq+nzPiSR83TIgE3Unk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=glUwW9ut; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9115CC116B1; Fri, 31 May 2024 14:43:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1717166620; bh=aS+nrTZxy7m9OYj7c0HhMNxrjln+wRR7+umRM4AtBuw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=glUwW9ut5NvBLZwkVAwwbZNid0Vd6jxMW0wp1ZFavPdG0Jxrc4kwPWBckmnRraCzz rls4uNHDHuS6S3bpMdM0asTlqOTyEmBFlEHsHvFCHAtzi9tIGVLaYxlxR9/Mw2CuaF se3mqJoTADSuhojf2wkwjvaHvrP2g/jvMcAlpS9VGcufWZ5jvNKDnxN6TZ1KSkWYJz 7iZqyGs/ibFeDo/Z1wbt6N9X+8I2elo9qiPnJoZ8CAPnIcmqONuvDn91bKaWZ4dSWc vIR/rFXnwUZkRMy7eH4C7lHICN30d6gfRrlf+A61IyyCooiD/Gg5F+f6nKGmRRazaF Kg74NOKsk/dBA== Message-ID: <851280ad-ac0e-47d1-99e2-4f3b5ea29f2f@kernel.org> Date: Fri, 31 May 2024 16:43:34 +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 5/5] dt-bindings: pwm: sun20i: Add options to select a clock source and DIV_M To: Hironori KIKUCHI , linux-kernel@vger.kernel.org Cc: =?UTF-8?Q?Uwe_Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Aleksandr Shubin , Cheo Fusi , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev References: <20240531141152.327592-1-kikuchan98@gmail.com> <20240531141152.327592-6-kikuchan98@gmail.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 FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1InemMAmuykCHl+XgC0LDqrsWhAH5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327592-6-kikuchan98@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 31/05/2024 16:11, Hironori KIKUCHI wrote: > This patch adds new options to select a clock source and DIV_M register > value for each coupled PWM channels. Please do not use "This commit/patch/change", but imperative mood. See longer explanation here: https://elixir.bootlin.com/linux/v5.17.1/source/Documentation/process/submitting-patches.rst#L95 Bindings are before their users. This should not be last patch, because this implies there is no user. This applies to all variants? Or the one you add? Confused... > > Signed-off-by: Hironori KIKUCHI > --- > .../bindings/pwm/allwinner,sun20i-pwm.yaml | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/Documentation/devicetree/bindings/pwm/allwinner,sun20i-pwm.yaml b/Documentation/devicetree/bindings/pwm/allwinner,sun20i-pwm.yaml > index b9b6d7e7c87..436a1d344ab 100644 > --- a/Documentation/devicetree/bindings/pwm/allwinner,sun20i-pwm.yaml > +++ b/Documentation/devicetree/bindings/pwm/allwinner,sun20i-pwm.yaml > @@ -45,6 +45,25 @@ properties: > description: The number of PWM channels configured for this instance > enum: [6, 9] > > + allwinner,pwm-pair-clock-sources: > + description: The clock source names for each PWM pair > + items: > + enum: [hosc, apb] > + minItems: 1 > + maxItems: 8 Missing type... and add 8 of such items to your example to make it complete. > + > + allwinner,pwm-pair-clock-prescales: > + description: The prescale (DIV_M register) values for each PWM pair > + $ref: /schemas/types.yaml#/definitions/uint32-matrix > + items: > + items: > + minimum: 0 > + maximum: 8 > + minItems: 1 > + maxItems: 1 > + minItems: 1 > + maxItems: 8 This does not look like matrix but array. Why clock DIV cannot be deduced from typical PWM attributes + clock frequency? Best regards, Krzysztof