Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp676604lqb; Fri, 15 Mar 2024 03:25:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW1M7li+kJWYppfxtbtHKoq1FmgbAqj9iopNFx9qHVUOpm5ynMRz9Yx/8fJ7g4KVJxv3mPskg+jav4+9SMA+W/YjAeJ5pfyLLx/CQS7UQ== X-Google-Smtp-Source: AGHT+IE6Cg9Oqvb5r+59ZjAjZcerhJoXbxpXtmO5KrALZz4avokhR4ZIG5PwjCZbIArAbQGbdHsD X-Received: by 2002:a05:6214:5991:b0:691:567a:1c72 with SMTP id qp17-20020a056214599100b00691567a1c72mr5299571qvb.32.1710498317629; Fri, 15 Mar 2024 03:25:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710498317; cv=pass; d=google.com; s=arc-20160816; b=ElpWWrSiQycjoJIRTfCeFCusG/l8NlyVuMjCRo5IK2dRKN1miIbdlPZd/Od1wmatgb B8oyNznQ9fHkWgeeLZEaXjujJSFgk5PtbYZcsaU8tfDYbCHmxKlftQ9CCoM8MO2IfXwd HJXLoBGyYx9iPvsmsG2NDhClLh9bDXAKiRpg/rv9wk9ZUmgTecNhnWbO5rvXoaImUxQQ NhQJLZ/PV16bCT9X0quelxfWRPXxMiJb25EHV9Ez6V0wb+Z8CiE+YAboh3F/iVedcAF/ ENKLzuEtc24ts8BcmP+ZzWN3lmFb7I/RnTIX0viWj0EQUoAvWQwEYiYxAKHYXylrvhgv bsoQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:in-reply-to:date:subject:cc:to:from:user-agent :references:dkim-signature; bh=I3EB/6PldhsbhWY9+bYWiu2w8/wr6W5dSP5c/9sIMoI=; fh=cIehqf0kl/z+7YjLD/g23+0n0NAX5pt2wD4C/Xpvzdg=; b=pEb6I7+Q0K7HW/6VmZZT6x2BSHQzheZDF9+wKclb8aQKuIXvfJDH0sV3HsXTSHUgEV 6dRbRssTo3pl4S06aYh1NOSMyX0ZRmOl6p6umDmBdfgQ2d/X4g3czp7jEb9QhDfIS1nm B72FF9xZ9g050zsvuQwjM9MEuJ9I5y2CP4OYaZVQPtFINcGBhcobcEM1QGqnWCHbeb6s A9mtUarHRdFOohNUrnwpDlHNXl0CWmVykHF0gb+zsvW66+kOjt09zTUU3GTeWFbx/u9i rTVOyDHTRRLcmWDeIK8zXnF/CFV0kM0TEAh/J7Sk8mdkWXPf64TvCNu9paqPvDIRZeK2 rs6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=scTyMV6t; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-104256-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104256-linux.lists.archive=gmail.com@vger.kernel.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 gy11-20020a056214242b00b0068fe53fbf01si2535751qvb.217.2024.03.15.03.25.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 03:25:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104256-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=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=scTyMV6t; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-104256-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104256-linux.lists.archive=gmail.com@vger.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 486DC1C2146D for ; Fri, 15 Mar 2024 10:25:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6CFAE1864C; Fri, 15 Mar 2024 10:25:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="scTyMV6t" Received: from mail-wr1-f54.google.com (mail-wr1-f54.google.com [209.85.221.54]) (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 A137318E1E for ; Fri, 15 Mar 2024 10:25:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.54 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710498310; cv=none; b=pA+ipJanI5GdlfPpbC+HkHwWlyVN6FwLpODigw036eJRiFV9yO+WoDZZD7w671OuO/3q6owS7cIIn8sFY/0fIH63b0y/MomKyDzvXtoBHlDjDfYH4s2pMfSXn1VFtTEUlYxShrcismdDv3pCP1cO13X8/hKUNel0yCezoWAUJjM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710498310; c=relaxed/simple; bh=NfFTjprpYpTx/YOcA395cb2tUELkt8+AWxFx0BohTVw=; h=References:From:To:Cc:Subject:Date:In-reply-to:Message-ID: MIME-Version:Content-Type; b=afb0/DAVCDRa8YHpiVt/szF6DdrGBcGHVgN4I6HElrYtTzImjIyOggYFnL1UJJoUTAbmN5OwdGje/aIfluN2EyIK0uMgS0LHcOfSCw7gldewUw24bK+ArDtWzaTV6tiEMl+iZi+zvuFV4dfzcLOiF/gshbqTGUYuU5duI/+5DFg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=scTyMV6t; arc=none smtp.client-ip=209.85.221.54 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-wr1-f54.google.com with SMTP id ffacd0b85a97d-33ed4d8e9edso196329f8f.2 for ; Fri, 15 Mar 2024 03:25:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1710498307; x=1711103107; darn=vger.kernel.org; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=I3EB/6PldhsbhWY9+bYWiu2w8/wr6W5dSP5c/9sIMoI=; b=scTyMV6tGxpPlH+TE8fWNj5v3IY+5bAIEbQwmbIVNN3XGjo9GTZz+InJd/EjxhUuZq Q9Ot2p8f+AOjQj6+U0vZhicYtDDqkq+P9saxDp5W48/Ueq1Ar2TaKf8LebWOrVL8Pqug Jmj16tfoojVaZWL7EJcEzgolSUXHFVPP65f5DlSnRQGt5KeOjJYN2DSKmBodnc5K668f P+R+lLYCxRO4Wqor3SqTkHfGN17d2n0vjk3RtNfPH1vbggffj+CgkGdnbROD6tAeXJTc jC6eosvqjs0KjmhMfv2w2TGnCWtqJJopYJCCPYpHq0b3qIC/Jl7PUhWLs0FhV599qsaf D8Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710498307; x=1711103107; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=I3EB/6PldhsbhWY9+bYWiu2w8/wr6W5dSP5c/9sIMoI=; b=sDsOzcQTpNU4dRfMymFHo7mQyCaFL1DZ40FtZouCtkQE19iNAshYQZ1vH6Nfvt/yYA OcFef/QgZpWJ31gjSjkE1CU0c5dKaikiNFg1o5vzrkQEO+6iNFT2aVF9pEPFd3o80Iby cO0nM8fxHuGiofSt1fHPYKCNofaVtsKWpiRI3sZTW7dZW4UHh3ndPBNApHpyKf6TGRUd kBX/mnmak0I7YelIHAPlakOAbONuSFEcXu4ijG7MYgflWMr/Q9nBQ2U0ue8osvTuYPdJ MEO/tIgAt5gh5P2uLA5TSzcEzCjnmn/z+PhSnpWOQEj48wbMMlaj1RXTJ6QPLeIn+4CS zhtg== X-Forwarded-Encrypted: i=1; AJvYcCVFr6tKWrUaDi6HVptnvR2wEsLc9u31Z2MkG35Y+/N37O8+F2dIXGYqb7hxycrrEg1XIk5Zc2plQuNM/QbhbBLBUQGp+hbF0afXzNx3 X-Gm-Message-State: AOJu0YzQnsilg1+hvinKSNyA16r9ttWfBmOUM8+tE+R+B4JhuvF93GwP FkcMuExT8qlOHAuH0GSArezQITEiO3jf4UA4Ra8969MmewmJSTs1F49WJA5JA4M= X-Received: by 2002:a5d:4cc1:0:b0:33e:7f5c:732c with SMTP id c1-20020a5d4cc1000000b0033e7f5c732cmr3060666wrt.62.1710498307090; Fri, 15 Mar 2024 03:25:07 -0700 (PDT) Received: from localhost ([2a01:e0a:3c5:5fb1:8151:4d0a:14d8:1124]) by smtp.gmail.com with ESMTPSA id o14-20020adfe80e000000b0033e8c50fc3fsm2818997wrm.90.2024.03.15.03.25.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 03:25:06 -0700 (PDT) References: <20240314232201.2102178-1-jan.dakinevich@salutedevices.com> <20240314232201.2102178-14-jan.dakinevich@salutedevices.com> User-agent: mu4e 1.10.8; emacs 29.2 From: Jerome Brunet To: Krzysztof Kozlowski Cc: Jan Dakinevich , Neil Armstrong , Jerome Brunet , 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 Subject: Re: [PATCH 13/25] ASoC: dt-bindings: meson: axg-pdm: document 'sysrate' property Date: Fri, 15 Mar 2024 11:22:59 +0100 In-reply-to: Message-ID: <1jil1nhjwd.fsf@starbuckisacylon.baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain 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. Then you don't have to deal with it in the device driver. > > Best regards, > Krzysztof -- Jerome