Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2367508lqo; Mon, 20 May 2024 03:48:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUzNwwmR1OFN4e3i3quz2pgk4Kj45oxAydCgoITpelf12KbJFLEXkFvNwoMBzF+1fI05xioKXo5W+Wznzd6WsYMpuvMe3e+5S9P/zlj8g== X-Google-Smtp-Source: AGHT+IFTdV9L8T2crhdlEBA08GzorHONJIazt/WnQ+D1rs5zNpdEZdCUqHApKtjmgtaM3u2KYgzF X-Received: by 2002:a05:6358:61c1:b0:186:1f9a:1771 with SMTP id e5c5f4694b2df-193bcff4cfamr3970848455d.29.1716202097153; Mon, 20 May 2024 03:48:17 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6341180dc8bsi1892853a12.489.2024.05.20.03.48.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 03:48:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-183628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ZCKcgOwp; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-183628-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-183628-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6B3A228332A for ; Mon, 20 May 2024 10:48:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CD65B53380; Mon, 20 May 2024 10:47:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ZCKcgOwp" Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 1D2E152F92 for ; Mon, 20 May 2024 10:47:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716202060; cv=none; b=p9ekwxU06HR7t45rCqzeCLFtxkVJ4450o6F8LoWu0/He4kHd1xU6vjEelXNFuAyyZwfXXP16PuPWkv9VlsYB1g3rw2y6iuBwjHa0EKhXwdwPWwcnfrx11Dr1lNodJ+dQygL+dzUvytEITUoo89kXwzNrGKzf//bJ+o8sjpXSidQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716202060; c=relaxed/simple; bh=tL1bHXt9/YAqmnqPjn/s8RxMKcWc/S/C/wlJtqQ+WVI=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=Q9GBzCD/WYigek3bT7kG28+CeMTCbMxqjQqZCUqMDYwMqrzgMSHN0Vh9rNohOsYGwfgzLUWd5h4//1DYvrb1JmtdjNp2OCfI5r4OhNEHuyetGV63yxiMqZlY21caorGbnPQfOV00CCaufHWENUMrLzxacJ6+xMyfnYcjeZ8rYg4= 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=ZCKcgOwp; arc=none smtp.client-ip=209.85.128.47 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-wm1-f47.google.com with SMTP id 5b1f17b1804b1-41dc9c83e57so11749775e9.0 for ; Mon, 20 May 2024 03:47:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716202057; x=1716806857; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=X/prEkk7NlB/e4K/D05nDd1aUEil2ACTKtIqCg4p2NQ=; b=ZCKcgOwp41+KhJE+b1DEB6HlvosHuSBH/C5utwBNVV6YVYDGrrUHRZDOJWm5c4jGul wUukQyZG9BOoWezeaFrB3FJ9LdEHoh3SnoIc8fo1GZJ1qt7EW04bGLSyu69VpLwVH1af OzDoZllGY81lR3IvAosDmPhqaYx5fYvAR9Bgq4BZweIPTkE0gz//6Y05A+HwEt3yAcPg WCi3rvDUZ4Bwbc6mg0cvJBQa3Lm052XR1JoKpNfP2Rl2Pd8lfvyXaAcVUWbUZdfs7wLG 6u9BOWyl5CYcWz3HfAdb/vosyhrStRx5nZcuip/13Uo9mFrp9Q2oq257sIB35GsbyRfc 1DlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716202057; x=1716806857; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=X/prEkk7NlB/e4K/D05nDd1aUEil2ACTKtIqCg4p2NQ=; b=gXJtrj5YESCHjXtyDse9uJsDsxdQiHVbarc07CXEJXy2aJJE8De4UyCRjEeH138tG0 yiwaEYfxCLMa7NAtpM1zF2AbDFJj6/dKAlvf4Np3+t+FzFJUBav219Q3t+RzFV50Za9L X1MQmMMg6NhxYz/X41KRIn1myGdlGLWBh69cwlVeKLNZ2oZCTjlM6ZXTgqS6WG234X1a stUi4t8rTtr50BS2n1jnczDTHvC2MwwPj9qiMP6dmnZSmB2xKm5gF0jKctn8Tbmpnsg5 KWpnvn+7laYj3CgixpoHhChHNB/i3HifthgN9V2KghrGU1SKiH0a6aOwSsm5tmybtY+z DPpQ== X-Forwarded-Encrypted: i=1; AJvYcCXsv9SzP62TS/NpO0HWRqO/+wIhXEb6bKVIEnMMtVebnrfWRMu4UDvLKkljcLB7H/AJV3hWj554uSoEiZJ+8zWKSabqt/lOLcMkERPq X-Gm-Message-State: AOJu0YzGQ/HjT+zkNfotjV5bUrjU5AQhhrYz3GIe/EWXxIQiikMZUWxV dp1CaawY0fynd4yAEDyZTfUJC4p24OP+x2iInz0FPyg7AY8EsJ5XlaCh8axZqac= X-Received: by 2002:a05:600c:4f49:b0:420:12df:1f7e with SMTP id 5b1f17b1804b1-420e19e46d4mr48893585e9.9.1716202057408; Mon, 20 May 2024 03:47:37 -0700 (PDT) Received: from [192.168.1.20] ([178.197.206.169]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-41fccfe1277sm405621845e9.42.2024.05.20.03.47.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 20 May 2024 03:47:36 -0700 (PDT) Message-ID: <4727a091-bc64-46ea-8652-db6797dd93d2@linaro.org> Date: Mon, 20 May 2024 12:47:35 +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 1/2] ASoC: dt-bindings: fsl,mqs: Add i.MX95 platform support To: Shengjiu Wang , lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shengjiu.wang@gmail.com, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Xiubo.Lee@gmail.com, festevam@gmail.com, nicoleotsuka@gmail.com, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linuxppc-dev@lists.ozlabs.org References: <1715939146-13031-1-git-send-email-shengjiu.wang@nxp.com> <1715939146-13031-2-git-send-email-shengjiu.wang@nxp.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzysztof.kozlowski@linaro.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 TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzTRLcnp5c3p0b2Yg S296bG93c2tpIDxrcnp5c3p0b2Yua296bG93c2tpQGxpbmFyby5vc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R4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <1715939146-13031-2-git-send-email-shengjiu.wang@nxp.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 17/05/2024 11:45, Shengjiu Wang wrote: > In order to support the MQS module on i.MX95, a new property > "fsl,mqs-ctrl" needs to be added, as there are two MQS instances > on the i.MX95 platform, the definition of bit positions in the > control register is different. This new property is to distinguish > these two instances. > > Without this property, the difference of platforms except the > i.MX95 was handled by the driver itself. But this new property can > also be used for previous platforms. > > The MQS only has one control register, the register may be > in General Purpose Register memory space, or MQS its own > memory space, or controlled by System Manager. > The bit position in the register may be different for each > platform, there are four parts (bits for module enablement, > bits for reset, bits for oversampling ratio, bits for divider ratio). > This new property includes all these things. .. > > clocks: > minItems: 1 > @@ -45,6 +46,22 @@ properties: > resets: > maxItems: 1 > > + fsl,mqs-ctrl: > + $ref: /schemas/types.yaml#/definitions/uint32-array > + minItems: 6 > + maxItems: 6 > + description: | > + Contains the control register information, defined as, > + Cell #1: register type > + 0 - the register in owned register map > + 1 - the register in general purpose register map > + 2 - the register in control of system manager > + Cell #2: offset of the control register from the syscon > + Cell #3: shift bits for module enable bit > + Cell #4: shift bits for reset bit > + Cell #5: shift bits for oversampling ratio bit > + Cell #6: shift bits for divider ratio control bit Thanks for detailed explanation in commit msg, but no, please do not describe layout of registers in DTS. For the syscon phandles, you can pass an argument (although not 6 arguments...). Usually this is enough. For some cases, like you have differences in capabilities of this device or its programming model, maybe you need different compatible. If these are different capabilities, sometimes new properties are applicable (describing hardware, not register bits...). Best regards, Krzysztof