Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp663374lqb; Fri, 15 Mar 2024 02:58:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUfsGIBL8eKkPKtiGK64yBEe6N7JlIB7cS7AutjFxKmqvaPOaYOreJp7bs2vFGkFjhPKJnQf+zZniSHjQH0BjIaDqQv1Xm/eGaFD04Tig== X-Google-Smtp-Source: AGHT+IGPvRw1hPYurxPl+xo2O88RmrSN7ftK91W7+duZAzCuRRwKit3BXMDD8JDJBJ+2osJZ6/w5 X-Received: by 2002:ad4:5309:0:b0:691:6650:5e21 with SMTP id y9-20020ad45309000000b0069166505e21mr2765253qvr.33.1710496699272; Fri, 15 Mar 2024 02:58:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710496699; cv=pass; d=google.com; s=arc-20160816; b=KDE297cs0F9dNIbKvwZ70azcfALOjE6T4o+L9ypGiWFw7kcl9Na45S/CcB3fVtym57 rhtcpFFIQdEuAvq8kO5tGkePkp/nzUkCWhkFGnRXRYIWS/V5P438TSb6BoVNhYvSD2tS 7gx7Wtj3NI8K2HNU9V+TiI0LZk4435p+f77v+frzPI4qq9KPNMbLLliZ1BidTuuYu2WG R4Ego96VFiEj24Iaw7qjLypRf5In8hXbRAHMn0oq3jfZowfO5mYiCZMP7J4hHy36Ah1H KVDqHXn/d6GpGlpK7fbXBOGimp69/ELoXDD82DPv908saoadzz8cg6W55UdIHKCx0tjM FH9Q== 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=bN2u4rR1Zr2xT6D08j7QKgDjL2CpcTPg9+Xe9EIpbXI=; fh=LYWlSuM4RzeGDTcjRiV9ug/Jy0JXpEQiM7QuKvrqAA4=; b=hUaq7dMMaStPGdcUiSAY6zVCc0gzE0IvFOJ0DR/LqFg3XvZ36jqztIzl8ddaOY9hPB vvfquWoPiPXhbkNd3ZMLp3yjwqwsAvTRQuWG6ANvG7M0sfS8ghGn7HmHKcQgEcYMqiCW HEfXcjturcel/qG7KWGsLRefZoXbODNvZ74H947wRI67RXbg3sMWnB9lKZw1ftRfV6ec DsD1EJ5HbIz1v7HzoBPpkQ5lwYNLVQnr+bG5gozVOAVCpWmzd19aODQfuoSXQ7xdPBuT 0JrT2k4SSgUNSYR/2bWK3IlKB3xBxgzH01I+WCd3O451Q/ucy37BUmNTlaWtOExHxyC+ Ik7g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=itdPQjO5; 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-104231-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104231-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 kj20-20020a056214529400b00690bb1ae3fesi2383922qvb.301.2024.03.15.02.58.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Mar 2024 02:58:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-104231-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=itdPQjO5; 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-104231-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-104231-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 E3CAE1C21730 for ; Fri, 15 Mar 2024 09:58:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 570DD18641; Fri, 15 Mar 2024 09:57:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="itdPQjO5" Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (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 1DAB91B95A for ; Fri, 15 Mar 2024 09:57:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710496626; cv=none; b=C7zNxySgLEYt60qAze+D4Ewdg3gjCg5kocqoTVlcDkVpbVuHUaMdYa6T/MVsZ0XBGJoPGe3luruebydVqSCa+QjGgCIGUcRdXYWeh5CY1ySNnb1VufyBAYISMWPrM2lrBJy5VHfPomc5LhcelOcWcAtruCuWaBUm163GSdpYrLk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710496626; c=relaxed/simple; bh=K7HqX99l2MdWILC0v0OgfQbluXmAQxfiOtQpP9K1sYQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=OAdjf/fOBAxh5keVUGwvr++ktuULHrFBUBtS2S58QHgwbMEiBl97L+LGnS52/EWe4lagx6NcbuKyN2gaJhCiOQCHPdZDdDz7rkMaKFJOXLEWQm8LZFfKqEj2S3zVgHF7ydryacLvV4BOoYCOebqVYbw79ffN8uvdm9kpmQOALEQ= 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=itdPQjO5; arc=none smtp.client-ip=209.85.208.46 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-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-563c403719cso2451620a12.2 for ; Fri, 15 Mar 2024 02:57:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1710496622; x=1711101422; 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=bN2u4rR1Zr2xT6D08j7QKgDjL2CpcTPg9+Xe9EIpbXI=; b=itdPQjO5gfNJUI+UVm68UhSqiA9PC6bZOGpV8e7Bx3K/+WTajoGrEKaEGn0XfzwMsc bgLl/2okbJiB7BEwXfzEImki9gCSFJEdXU1P4is+LzvNu/Eol0jdJ2SFtTyUCcNh/HoE x6cUblRXUtWKMRSdxEyDY7U22+ab0kMx67LWXe3C2L3r8SGiD85ytCtzrP9+SgiWRoze h+JLMmv7LFbILVxuA0+p4JHTPqSSXP02aoQglfneK2Z7iJCMUY3hvP1kt9ZIwQEplNSv j+XtjCefD9ulrk3Lhqd8d4w32bQHpyU4eIVXO3ug0Gy/IG1FRPjO9pouBTQVvAbmo+2f 9R8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710496622; x=1711101422; 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=bN2u4rR1Zr2xT6D08j7QKgDjL2CpcTPg9+Xe9EIpbXI=; b=MrMyW4f8sUObZ6Ry/teN1wADDQ8Z1HTTTxeAr06rgxRfgQwyHZzjBgePVbx+auHkr8 lZJTqhcgzxPsTVHjxzjSN483b45UtMvZjr6cHI1/eO+7U90837Ba/ffK3P9vMlOewoIB 1PaFzSLrds6poZGj8CxIit/57uwTQ/Xqa+fp8t2rXZGHDh6eNinIFeLavkRyNslLwslY bGhOWsEyu3R2dTY7JRPiJMvV0PTSZfC0pzsj7pIp+1leauyxQ8SzTdcMdBU5aJ095MiP E2JPoCyy+VoB9B3Mwv9EsYJGAicyCCndsrXhBxsIGmpO8VWKMekozlYP51jDTjGpxCZU 22eg== X-Forwarded-Encrypted: i=1; AJvYcCXJGenttfCgsZI42QHmYo4+P8Rn6OBhJsgrlMVAzqLLHRpeCODnwuSCoIHkrpg+N3sPlTc+CRLlzS1s8PEKMWD9LED01D+kxdlRHTq5 X-Gm-Message-State: AOJu0YymJqKMrc2yOT6/5AMOS45TGJSisHc/5m1OrdaiROJUpYPlcbV8 hePsZgIyIC4bypErwvdFdCQ50jj1zz89jB9dITof5ajBFAfOcX7bBUK8VUw9jXs= X-Received: by 2002:a17:907:c783:b0:a46:74f0:6278 with SMTP id tz3-20020a170907c78300b00a4674f06278mr3165655ejc.50.1710496621489; Fri, 15 Mar 2024 02:57:01 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.97]) by smtp.gmail.com with ESMTPSA id dv22-20020a170906b81600b00a4658d3e405sm1529599ejb.196.2024.03.15.02.56.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Mar 2024 02:57:00 -0700 (PDT) Message-ID: <1b766dae-463f-4839-b527-e260dec5e628@linaro.org> Date: Fri, 15 Mar 2024 10:56:57 +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 03/25] dt-bindings: clock: meson: add A1 audio clock and reset controller bindings Content-Language: en-US To: 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 Cc: kernel@salutedevices.com References: <20240314232201.2102178-1-jan.dakinevich@salutedevices.com> <20240314232201.2102178-4-jan.dakinevich@salutedevices.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlP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jiyyjuXhcwM qf3lzsm02y7Ooq+ERVKiJzlvLd9tSe4jRx6Z6LMXhB21fa5DGs/tHAcUF35hSJrvMJzPT/+u /oVmYDFZkbLlqs2XpWaVCo2jv8+iHxZZ9FL7F6AHFzqEFdqGnJQqmEApiRqH6b4jRBOgJ+cY qc+rJggwMQcJL9F+oDm3wX47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <20240314232201.2102178-4-jan.dakinevich@salutedevices.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 15/03/2024 00:21, Jan Dakinevich wrote: > Signed-off-by: Jan Dakinevich You must provide commit messages. A nit, subject: drop second/last, redundant "bindings". The "dt-bindings" prefix is already stating that these are bindings. See also: https://elixir.bootlin.com/linux/v6.7-rc8/source/Documentation/devicetree/bindings/submitting-patches.rst#L18 > --- > .../bindings/clock/amlogic,a1-audio-clkc.yaml | 83 ++++++++++++ > .../dt-bindings/clock/amlogic,a1-audio-clkc.h | 122 ++++++++++++++++++ > .../reset/amlogic,meson-a1-audio-reset.h | 29 +++++ > 3 files changed, 234 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/amlogic,a1-audio-clkc.yaml > create mode 100644 include/dt-bindings/clock/amlogic,a1-audio-clkc.h > create mode 100644 include/dt-bindings/reset/amlogic,meson-a1-audio-reset.h > > diff --git a/Documentation/devicetree/bindings/clock/amlogic,a1-audio-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,a1-audio-clkc.yaml > new file mode 100644 > index 000000000000..c76cad4da493 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/amlogic,a1-audio-clkc.yaml > @@ -0,0 +1,83 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/amlogic,a1-audio-clkc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Amlogic A1 Audio Clock Control Unit and Reset Controller > + > +maintainers: > + - Neil Armstrong > + - Jerome Brunet > + - Jan Dakinevich > + > +properties: > + compatible: > + const: amlogic,a1-audio-clkc > + > + '#clock-cells': > + const: 1 > + > + '#reset-cells': > + const: 1 > + > + reg: > + minItems: 2 Drop > + maxItems: 2 > + > + clocks: > + items: > + - description: input main peripheral bus clock > + - description: input dds_in > + - description: input fixed pll div2 > + - description: input fixed pll div3 > + - description: input hifi_pll > + - description: input oscillator (usually at 24MHz) > + > + clock-names: > + items: > + - const: pclk > + - const: dds_in > + - const: fclk_div2 > + - const: fclk_div3 > + - const: hifi_pll > + - const: xtal > + > +required: > + - compatible > + - '#clock-cells' > + - '#reset-cells' > + - reg > + - clocks > + - clock-names > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + audio { > + #address-cells = <2>; > + #size-cells = <2>; > + > + clkc_audio: audio-clock-controller@0 { > + compatible = "amlogic,a1-audio-clkc"; > + reg = <0x0 0xfe050000 0x0 0xb0>, Messed indentayion. Use 4 spaces for example indentation. > + <0x0 0xfe054800 0x0 0x20>; > + #clock-cells = <1>; > + #reset-cells = <1>; > + clocks = <&clkc_periphs CLKID_AUDIO>, > + <&clkc_periphs CLKID_DDS_IN>, > + <&clkc_pll CLKID_FCLK_DIV2>, > + <&clkc_pll CLKID_FCLK_DIV3>, > + <&clkc_pll CLKID_HIFI_PLL>,