Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp1271506lqt; Sat, 20 Apr 2024 07:51:09 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV2rrbbpnKovolyf66Vs4CITdS5duzzl5uPExiVOOEgm853wCNqflUbp6Fw1MhQ0IcV7xJJc1m535S1X37bSV3KypEYMXs69eQWcGOfwA== X-Google-Smtp-Source: AGHT+IHwyNY1nxHuQvun3tRPf9XKH3W/27smoJnpZ8FK9AOJpZTdL/1ay2ZhrJkNw+lPvqAsPOzN X-Received: by 2002:a05:6358:6e8c:b0:186:e49:2f21 with SMTP id q12-20020a0563586e8c00b001860e492f21mr6501209rwm.20.1713624669548; Sat, 20 Apr 2024 07:51:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713624669; cv=pass; d=google.com; s=arc-20160816; b=csex8kM2NTVZj0EKXklxl4Q2wH77Engdi6TxiRDSB15A9X0+9e0EtI9rVtx7V5iVHJ CcoAouekT4T1qQj91jgeYKs7XXIN81GdAXbUfXheW6b1VrbHP8I8OQSq6JjJ3YaBHb2+ CgptfXy4I3R0I2eGQiUo2tqWkQ+YiToCamFj+sT87H43hkGQBJRL5qZxmLBtuLZu2wCh TZxKvq3xX9huAbz2F0SMpmArrJjlel4Vf9r6oLq9BhHtCNWHstNyEUh+gPEUY1cN5oVC 35k+BBgh8NGMxEuFrxuYpHmSSfcOlbEtHDnlI3nYiX0F6+jvqFKsVsGr6eY7zXUAN5uw ++vA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-filter; bh=ZXGJIRVvBTmEkVVYJcaTIl3MxgwitUGOGyPLvfPsyoI=; fh=UYhcp7jKNyDpZt6DdDdTz7pTHE3wOY0YNMBVHfvSwpU=; b=LpLuJo2XGvx3OqWxIcYbog3cX5bOPjEV0XS8v9sgapKVXII7a1e7j9zNJKmY2uAU+8 33GB928PjWmAdyY/hARJ2P6DB25SSF9ow2liSChfZ47S3v3XHWJvRBNSUCAVv0jJqzvv MJgfWlRuWca2n8UadynMki2I8Z0mDD9V1/FESAhsI+KEyV34bqdmstzjKN4Anw7mzEoo 374h7fDme5pPFilkSeA9/XVJQ8JaN5/YfLMayDoGGJe6oGyO2O54YCQjHPif5zZGPrsm NVeceqttxXNtKXQ338rFQgTPlCNeZ4g9JjN9FgMgnB0ivQBBsG6P10ak4ZiqXDJVwxTr VCSQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=CXsuT0tq; arc=pass (i=1 spf=pass spfdomain=sberdevices.ru dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-kernel+bounces-152301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=salutedevices.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u2-20020ad45aa2000000b006993eecb98fsi6479509qvg.304.2024.04.20.07.51.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Apr 2024 07:51:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-152301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=CXsuT0tq; arc=pass (i=1 spf=pass spfdomain=sberdevices.ru dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-kernel+bounces-152301-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-152301-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=salutedevices.com 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 ECA9E1C20853 for ; Sat, 20 Apr 2024 14:51:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E791B282FE; Sat, 20 Apr 2024 14:51:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b="CXsuT0tq" Received: from mx1.sberdevices.ru (mx1.sberdevices.ru [37.18.73.165]) (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 5B27E219E2; Sat, 20 Apr 2024 14:50:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.18.73.165 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713624661; cv=none; b=pY0o9G8gGupJ0evs5t73Zw5zH1oQshCTnkbBlgpEvfVWZvAGfOD91PjLkxEYCqgIa0n6JRc/zh/8RYBe9KaSmiWnlaWeuhW1wXvOGCNsjGGR1GZmMNgXtrlE5d3M9oUC4yLx8JOiSElbr8eR1kvw/9oDRh2UROkyV0ObOyrTTvI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713624661; c=relaxed/simple; bh=ewARMez9ua9uXBzJbqe3D5p/+mVpWPohE3Zp2fD1c2k=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=C18LXdXhsvp/CruLJO+hSxXS6pxwoRmsQUeTvC5b0sBHqb/2c8BuvfgbdPtDc2mASllMvHvweHU2wxhxj4M2uAEpKiXOJMK6mQMrh/aqvykH1axQxf6FCCfkEbqCDzVMd7I5Mo44TxhCJRZ3ucch3vDWA01iu3YeBJzAAGHGXUc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=salutedevices.com; spf=pass smtp.mailfrom=sberdevices.ru; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b=CXsuT0tq; arc=none smtp.client-ip=37.18.73.165 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=salutedevices.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sberdevices.ru Received: from p-infra-ksmg-sc-msk01 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id AF974100002; Sat, 20 Apr 2024 17:50:46 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru AF974100002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1713624646; bh=ZXGJIRVvBTmEkVVYJcaTIl3MxgwitUGOGyPLvfPsyoI=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type:From; b=CXsuT0tq+0eaRAGbaL9hFblKmqWVuBNGw52g0xeB+tDZ8VTsVLDZfLCn1/32Mxkt8 GXGoJazrm9IdGBrHc+tV5SGprSLPn/hiZYNCtpV5/vhY5jjZytBuXLC7W3gAv2Mih0 1B1JhdmLrKggN05pnCAHLDAzeQl/i0jqjIe1UFd1ySkglc+7oHcM+0m56wRRgxdgOe X94PRCZC6L5hy7ciLx/Ygibh/GFwUCbZAV5RJb0njjgpqFE4F2fyzPKUlulO/Bp/oI pAO+y9FHv25r3bGtsOhF1Wj2a2mH5k8ErXmQ9a8JMwJ8xtH3GvRZDAJmvV6+dIzyDw BfpLxViMmKpLg== Received: from smtp.sberdevices.ru (p-i-exch-sc-m02.sberdevices.ru [172.16.192.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Sat, 20 Apr 2024 17:50:46 +0300 (MSK) Received: from [10.8.0.14] (100.64.160.123) by p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Sat, 20 Apr 2024 17:50:43 +0300 Message-ID: <0194ddb8-6e93-4a77-9fdd-93fc79a4e03e@salutedevices.com> Date: Sat, 20 Apr 2024 17:48:30 +0300 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: [RFC PATCH v3 4/6] dt-bindings: clock: meson: document A1 SoC audio clock controller driver Content-Language: en-US To: Krzysztof Kozlowski , Neil Armstrong , Jerome Brunet , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , Martin Blumenstingl , Philipp Zabel , Jiucheng Xu , , , , , References: <20240419125812.983409-1-jan.dakinevich@salutedevices.com> <20240419125812.983409-5-jan.dakinevich@salutedevices.com> <07b1ca57-49a0-4151-99bf-caac053eaa01@kernel.org> From: Jan Dakinevich In-Reply-To: <07b1ca57-49a0-4151-99bf-caac053eaa01@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) To p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 184817 [Apr 19 2024] X-KSMG-AntiSpam-Version: 6.1.0.4 X-KSMG-AntiSpam-Envelope-From: YVDakinevich@sberdevices.ru X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 18 0.3.18 b9d6ada76958f07c6a68617a7ac8df800bc4166c, {Tracking_smtp_not_equal_from}, {Tracking_from_domain_doesnt_match_to}, sberdevices.ru:7.1.1,5.0.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;smtp.sberdevices.ru:7.1.1,5.0.1;127.0.0.199:7.1.2;salutedevices.com:7.1.1;100.64.160.123:7.1.2, FromAlignment: n, {Tracking_smtp_domain_mismatch}, {Tracking_smtp_domain_2level_mismatch}, {Tracking_white_helo}, ApMailHostAddress: 100.64.160.123 X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean X-KSMG-LinksScanning: Clean X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2024/04/20 10:48:00 #24889969 X-KSMG-AntiVirus-Status: Clean, skipped On 4/19/24 17:06, Krzysztof Kozlowski wrote: > On 19/04/2024 14:58, Jan Dakinevich wrote: >> Add device tree bindings for A1 SoC audio clock and reset controllers. >> >> Signed-off-by: Jan Dakinevich > > This is still RFC, so not ready. > > Limited, incomplete review follows. Full review will be provided when > the work is ready. > > Drop "driver" references, e.g. from subject. Bindings are about hardware. > > > .... > >> + >> + clocks: >> + maxItems: 26 >> + 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) >> + additionalItems: >> + oneOf: >> + - description: slv_sclk[0-9] - slave bit clocks provided by external components >> + - description: slv_lrclk[0-9]- slave sample clocks provided by external components > > What does it mean the clocks are optional? Pins could be not routed? Yes exactly. Pins could be routed in any combination or could be not routed at all. It is determined by schematics and that how external codecs are configured. > It's really rare case that clocks within the SoC are optional, so every > such case is questionable. > > >> + >> + clock-names: >> + maxItems: 26 >> + items: >> + - const: pclk >> + - const: dds_in >> + - const: fclk_div2 >> + - const: fclk_div3 >> + - const: hifi_pll >> + - const: xtal >> + additionalItems: >> + oneOf: >> + - pattern: "^slv_sclk[0-9]$" >> + - pattern: "^slv_lrclk[0-9]$" >> + >> +required: >> + - compatible >> + - '#clock-cells' >> + - reg >> + - clocks >> + - clock-names >> + >> +allOf: >> + - if: >> + properties: >> + compatible: >> + contains: >> + const: amlogic,a1-audio-clkc >> + then: >> + required: >> + - '#reset-cells' >> + else: >> + properties: >> + '#reset-cells': false >> + >> +additionalProperties: false >> + >> +examples: >> + - | >> + #include >> + #include >> + #include >> + audio { >> + #address-cells = <2>; >> + #size-cells = <2>; >> + >> + clkc_audio: clock-controller@fe050000 { >> + compatible = "amlogic,a1-audio-clkc"; >> + reg = <0x0 0xfe050000 0x0 0xb0>; >> + #clock-cells = <1>; >> + #reset-cells = <1>; >> + clocks = <&clkc_audio_vad AUD_CLKID_VAD_AUDIOTOP>, >> + <&clkc_periphs CLKID_DDS_IN>, >> + <&clkc_pll CLKID_FCLK_DIV2>, >> + <&clkc_pll CLKID_FCLK_DIV3>, >> + <&clkc_pll CLKID_HIFI_PLL>, >> + <&xtal>; >> + clock-names = "pclk", >> + "dds_in", >> + "fclk_div2", >> + "fclk_div3", >> + "hifi_pll", >> + "xtal"; > > Make it complete - list all clocks. > You mean, all optional clocks should be mentioned here. Right? >> + }; >> + >> + clkc_audio_vad: clock-controller@fe054800 { > > Just keep one example. It's basically almost the same. > The worth of this duplication is to show how a clock from second controller (<&clkc_audio_vad AUD_CLKID_VAD_AUDIOTOP>) is used by first one. May be it would be better to keep it... What do you think? > > > Best regards, > Krzysztof > -- Best regards Jan Dakinevich