Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp657609lqt; Mon, 18 Mar 2024 22:18:11 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXrCzu0/xO+vF+eoNFvhAZqhM6EAtYDhg1BXiL9bJo53ThOl4qrNmsd5MC9sN36EGDP4Vw5DxpDW8OD33IFw/Rl+OjWCpIvZnfofDMdlQ== X-Google-Smtp-Source: AGHT+IEOcTyWVhBK7Vt9DnukQ4Lq+Smrg6U1N4uMMF75jIl5NRpIpFpDM1+fXxmVTXKleQwLI2aY X-Received: by 2002:a0c:ec85:0:b0:691:2015:1ef3 with SMTP id u5-20020a0cec85000000b0069120151ef3mr13971876qvo.45.1710825490966; Mon, 18 Mar 2024 22:18:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710825490; cv=pass; d=google.com; s=arc-20160816; b=fSgsUI4HstKW/pvPiJhImey3biPPX3HDzRIUXEpRtmlzCoR6+exnUiquaKgO7na3QT R60tXgOaVvcSq5gJ0ZMK/gSEJ7oQfyzrpKWLvWE6zsO/PhpNX/ddnNUsf/Q1LfBlZmxV 6foFI2mzwYwzeo9sgsLMt83paV98ZkSNnDKUE9WLpmGUHu6wdalCYcKfjSNFFMuLmIdR LKZHPjcuLuaxShOqz8WwVrXvsIBqYMUEkPBO/rHudKYxUbyGNzR1SljsrkrEehmgnE+S bfrToQ7c79TNYFMLrsF41+VAn8Or2yrvYq5SV/JrsbxiBm5obxdTE0EhTnS6wixo40pL iMyg== 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:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=JI2FbCtp4a1d8gqLlxYEpKkEq7SXIcQUhF5rSMJv6eY=; fh=uB6zSg9laoEiJMp+hP3wQc2qBJ5SSP62QRnoHxFNQEo=; b=fGm5uK25LkY5tZgaLnXW9HFFDfsi4RX2pCfEj4vRdP0ZIF9lzsBsLayX9qVmgLF4cW DYjptPsRP/K8Rzws0Sr+AneFl+XMlLF2KRwlNfkDojqVSMjblXFQfFEJNG8lHxkKH4VR 10AIajx1eGeHDEhcXX7sCYMcdK+NHw1H5N59ZR4+xeMVa4qPxg/laTgGjprnIs/PPORM 2YdPWBkiydAs86iuf5kLgDMKFAdRYPvdVQz7jUXOf002AkyGZpulUhubCjqjj0Ha4Bvj q94L4xU/VZD/yWy4rH8+73jywwHtTGxHByROHIsKY2V+MGgFbTPRH6VW+NkXGShP6Esv nbdg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yDouuEtV; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-107005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107005-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id pt17-20020a056214049100b00690d13a6017si10250785qvb.607.2024.03.18.22.18.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 22:18:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-107005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yDouuEtV; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-107005-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-107005-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 8C8841C216A5 for ; Tue, 19 Mar 2024 05:18:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63C2240874; Tue, 19 Mar 2024 05:18:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="yDouuEtV" Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 86FDF40867 for ; Tue, 19 Mar 2024 05:18:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710825482; cv=none; b=KBXUkGEs9FSxw18j2nlTw1gW0k9z4M1suFy8BDg6Z/jGu4SH6kUbKGpKf3FLq6kqJtMiCLCvGkAGUyEN/Ct9/EHUoA6Ow2SUtC71cTirGrJ5AOOyffVq8ssuV6ozaD5i5FA1k4jHwqQikyUDFs8XWaCJcbM/OQQdJwaPBgZ+jpM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710825482; c=relaxed/simple; bh=HAOvkShkvF6jZcsQiRt6BQMNXi5VuwmSeeexbfhBXj4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=YFnoH97ut1HM39BHYjTNASA27wrSlBtM9XSpnPmzH+k9puX50bB57pG1joHUufZaGc/2ZSC9DrJXxRLHsZTadaV1rTx8Z1mVd1dVpM39MhxSMMnGBceD1jNtStq1kPyHikmZxn69mxAmZtnAeVcQ8Ii2OHN7hyBIwBN1NGF4IzY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=yDouuEtV; arc=none smtp.client-ip=209.85.208.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2d28051376eso83146721fa.0 for ; Mon, 18 Mar 2024 22:18:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710825479; x=1711430279; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=JI2FbCtp4a1d8gqLlxYEpKkEq7SXIcQUhF5rSMJv6eY=; b=yDouuEtVU16Zs8a/WY/TyoQrNT8k+r46RxkkmAw2XyU6GQbc3i4/lNC7H4GMJ2+EZ6 XZw2xKzhIku0pFW77hDpVvGKsn4nvv9I9IPjxFoUZp7ONwpY7fltH64GHyrnXaSMTCtY 0DRgJ/Xn9OetguRvjOqybLhIyRB6+MvPRZufGglDfLeRU/zxnOPUv4Pi582B0CkV0c9w CNm5W0M3JqlcfBNrkvGXWDE+ZrY/8ECYVrfLMQislB7jqN02Uajw6oTDpuMpuk/JP1Q9 Koyy/U9H8N7AtG1VvcTv5t5Za6DRygamhhiGpU5QxK2yx3jDkXaJ/sTYa67RbqlPIkIf VWIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710825479; x=1711430279; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JI2FbCtp4a1d8gqLlxYEpKkEq7SXIcQUhF5rSMJv6eY=; b=wEFmAknT82EMmaN/uRluvLaifiR11Vi7jZz8pcQfQVvrGPUt8KV5mNoo/b5GevE4+8 DOWGWJ+J47TQ3zsmoGgZwpFljupUg6jHTcHjnzibpWBy3LGb8ERlAOJf889di/3rTJxc rC05cmWbnbQqgHsM4nnc3mk0Dds1H0dlP4OKLk0bLu1NL5U9qDmAfRlDz7NBm+gacUWc I6zrJhwk69/Meky7YzRJJ2MO8CwXmUVyIaf3Wz1Jtc/rzQwEOocgUVu84b4qsqYTBzK9 vFaQTKtvHuTnb6L75vCLWBOBRiJ1hZkJ6RgPYhxCXcP27FiJFXid3q523lCuMCkjn3sC A5VA== X-Forwarded-Encrypted: i=1; AJvYcCWLpjgLUs0fcJzJ2Uo+zkHfNvAXW30iMKNdqMWbRycfTejoJEf0G3iDkkZb9nY3v96Uwc2PCG14VUC9bH3YX4X6K3BoHkLf9sbsE9qy X-Gm-Message-State: AOJu0Yzb8xrQmiyMR1ey0IL+vtNbV4dWCkeVJqu1dqlJR7upgqPRnbqm /vHOmVjpZUYi26JqfNcsSAjtEwcQglIVknBRgdITtYBpLqXZXqCPt+vzXRZMI5Y= X-Received: by 2002:a05:651c:337:b0:2d4:513d:7b34 with SMTP id b23-20020a05651c033700b002d4513d7b34mr5860519ljp.17.1710825478704; Mon, 18 Mar 2024 22:17:58 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id dm18-20020a170907949200b00a45200fe2b5sm5566916ejc.224.2024.03.18.22.17.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 18 Mar 2024 22:17:58 -0700 (PDT) Message-ID: <1eb98856-dd51-4fab-84d3-392bc4c60e3f@linaro.org> Date: Tue, 19 Mar 2024 06:17:56 +0100 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 13/25] ASoC: dt-bindings: meson: axg-pdm: document 'sysrate' property Content-Language: en-US To: Jan Dakinevich , Jerome Brunet Cc: Neil Armstrong , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , Kevin Hilman , Martin Blumenstingl , Liam Girdwood , Mark Brown , Linus Walleij , Jaroslav Kysela , Takashi Iwai , linux-amlogic@lists.infradead.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, linux-gpio@vger.kernel.org, kernel@salutedevices.com References: <20240314232201.2102178-1-jan.dakinevich@salutedevices.com> <20240314232201.2102178-14-jan.dakinevich@salutedevices.com> <1jil1nhjwd.fsf@starbuckisacylon.baylibre.com> <6feba9ff-8bbf-4494-93f0-732679bc4032@salutedevices.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6aj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tFECiV30yHRgOoQlzUea7FgsnuWdstgfWi6LxstswEzxLZ Sj1EqpXYZE4uLjh6dW292sO+j4LEqPYr53hyV4I2LPmptPE9Rb9yCTAbSUlzgjiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <6feba9ff-8bbf-4494-93f0-732679bc4032@salutedevices.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 17/03/2024 16:52, Jan Dakinevich wrote: > > > On 3/15/24 13:22, Jerome Brunet wrote: >> >> On Fri 15 Mar 2024 at 11:00, Krzysztof Kozlowski wrote: >> >>> On 15/03/2024 00:21, Jan Dakinevich wrote: >>>> This option allow to redefine the rate of DSP system clock. >>> >>> And why is it suitable for bindings? Describe the hardware, not what you >>> want to do in the driver. >>> >>>> >>>> Signed-off-by: Jan Dakinevich >>>> --- >>>> Documentation/devicetree/bindings/sound/amlogic,axg-pdm.yaml | 4 ++++ >>>> 1 file changed, 4 insertions(+) >>>> >>>> diff --git a/Documentation/devicetree/bindings/sound/amlogic,axg-pdm.yaml b/Documentation/devicetree/bindings/sound/amlogic,axg-pdm.yaml >>>> index df21dd72fc65..d2f23a59a6b6 100644 >>>> --- a/Documentation/devicetree/bindings/sound/amlogic,axg-pdm.yaml >>>> +++ b/Documentation/devicetree/bindings/sound/amlogic,axg-pdm.yaml >>>> @@ -40,6 +40,10 @@ properties: >>>> resets: >>>> maxItems: 1 >>>> >>>> + sysrate: >>>> + $ref: /schemas/types.yaml#/definitions/uint32 >>>> + description: redefine rate of DSP system clock >>> >>> No vendor prefix, so is it a generic property? Also, missing unit >>> suffix, but more importantly I don't understand why this is a property >>> of hardware. >> >> +1. >> >> The appropriate way to set rate of the clock before the driver take over >> is 'assigned-rate', if you need to customize this for different >> platform. >> > > It would be great, but it doesn't work. Below, is what I want to see: > > assigned-clocks = > <&clkc_audio AUD2_CLKID_PDM_SYSCLK_SEL>, > <&clkc_audio AUD2_CLKID_PDM_SYSCLK_DIV>; > assigned-clock-parents = > <&clkc_pll CLKID_FCLK_DIV3>, > <0>; > assigned-clock-rates = > <0>, > <256000000>; > > But regardles of this declaration, PDM's driver unconditionally sets That's driver's problem. You do not change bindings, just because your driver behaves differently. Just fix driver. > sysclk'rate to 250MHz and throws away everything that was configured > before, reparents audio2_pdm_sysclk_mux to hifi_pll and changes > hifi_pll's rate. > > This value 250MHz is declared here: > > static const struct axg_pdm_cfg axg_pdm_config = { > .filters = &axg_default_filters, > .sys_rate = 250000000, > }; > > The property 'sysrate' is intended to redefine hardcoded 'sys_rate' > value in 'axg_pdm_config'. What does it have to do with bindings? Change driver if you are not happy how it operates. Best regards, Krzysztof