Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4681375rwb; Tue, 17 Jan 2023 04:15:20 -0800 (PST) X-Google-Smtp-Source: AMrXdXu4nHUc0uuNhSDDNIvxIqbhArlSS9XTqyvo/luG1DPeCzunvU4XglJjSB+v2/B61gxZh1MS X-Received: by 2002:a17:907:9a86:b0:870:8b4f:8a71 with SMTP id km6-20020a1709079a8600b008708b4f8a71mr2535591ejc.6.1673957720474; Tue, 17 Jan 2023 04:15:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673957720; cv=none; d=google.com; s=arc-20160816; b=WV088eA9OcdJ2hDrsQMNmmz0r/R8bPxhwo/f87pFagPkt5+THXapF5YbNgedYOWkHv rEoMB6FRgLOC9JQQFM5hGAi0Nc8SHNWuQzjmla7SsYvh9WMrvcoZw7N2ayhRIakp/l5f 2dXJ32up4aQ/kTrWZ0y2jOX+tfQ782S+dbnvLAMaFHOXDbVqL+We4p3oT0L23p9cvG7q 8KRb5UbBWDX+ij5qyZEcCudeXUmZFSironFFvtrVvCzni3xE8IybtiADD4cFGu/Bi9z+ FplXQ23fVK084rQXpkvifgN4KXRKllOg6azVnknZLrmv8uI0jBf3TjRXf0rEA7dkouwN CrYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vF3QjaM7bROJjvJo2a/mn+CmXlw/84X7LZJ02v/ABAU=; b=dZWhknsR2Jao+D5mHfKCKvxhxbzGEqh/u4VkmdfqwY0Azvic3WipYO4yUppREatXWg zcKLVSO2REl+bUkcY/VCnV7BdhRy8Hbf08ecjfyCI+zL2qtuhBR9ocNTIlEsX52NSCFn jXkL/C1/ze2JzatqxNt8GSdMuyAVegyz1PmAWhAdFswshqroiAOIJMwGnDjtZuwexRnP /VUoEXQDpD5IxO+c9iU/xlss/7KDmi+P/QSpiLU+aA6oDkHwZP+S80tl1mBbE78MwDsr m/uHxlDOyA0syxY081vc6lfh2m24/jtZ91hrlfb3i4PgRVeBw9v5p+vqdw+qmKzPOEoP wQEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zLKBoIKI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n14-20020a05640205ce00b00483b5bcc9c3si11259372edx.616.2023.01.17.04.15.08; Tue, 17 Jan 2023 04:15:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zLKBoIKI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236244AbjAQLkH (ORCPT + 48 others); Tue, 17 Jan 2023 06:40:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236374AbjAQLjf (ORCPT ); Tue, 17 Jan 2023 06:39:35 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33B8930290 for ; Tue, 17 Jan 2023 03:39:29 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id b5so9096623wrn.0 for ; Tue, 17 Jan 2023 03:39:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=vF3QjaM7bROJjvJo2a/mn+CmXlw/84X7LZJ02v/ABAU=; b=zLKBoIKI1X1tbKr4R/cZoQ7RMIGw8APCZhFTXrfz4YG7Gl5o99Y2nFQ6WoJk7DMG/3 yzzPBZIZ9K9Fuw2Ba+q7I3dUgVF8u14QN683j5+7pd3L1DnI4tNLzyF+Rq/viGT8TwBr w8+2O3c+A9vkyf4Xh3VbrlCLVsDkDky8G6e1EtamptWw/sOAL/7jK3cxF20PpZQOrM+i I0UibyUBGThQVEWaCHoOGrcuKXPzUSCaRTz1lfZdcWdUjCP43hjGHM01og21Q597wW9h CCWv/qzbSM3Y+BflWlJgMyAFDUYzZYscvA9hEDk2hCmVow5TiANBZ28vQn1ozYo+ji8H BMdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to: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=vF3QjaM7bROJjvJo2a/mn+CmXlw/84X7LZJ02v/ABAU=; b=8NqHXHHJdyj0KvBHLcKlRHnp/OvT1M3QqwrOixJ1ep3nzlk8d9yG3XcY2clYxjnUYi Hvi0mlqTEKygiyqrPBRup854mo6K8KYbNNYjnCxxQXvJuAp8yJ8VByEYk1uFqpxg+rDt nFvF9EXUIulRIA/ZL0x/Dm7rp654QtWOgsW0dRAVT0WSQrJbuaayw5wVGGgrdtcpdo49 zdCrMkSoYSVWtkuQjmsP8Mb8nkamDJJ8DAji42SIJy4rQs6yZUPG45bm3FvJKVAGsSSV 7x+3zJr67oD0JiScpZMrRWi92iVFu+HN9RwPMyTwY51198vPMFhQsPkb2BeAItVTVk1a mB+g== X-Gm-Message-State: AFqh2krLYKrmuQqK33GdJ8QlIi5SxIKOlM4MlzEZNkbS5P4DTidbWaa1 16DQD896HkvRwb5oUxC8Vizitw== X-Received: by 2002:adf:f78d:0:b0:2bd:bed5:9207 with SMTP id q13-20020adff78d000000b002bdbed59207mr2498792wrp.12.1673955567741; Tue, 17 Jan 2023 03:39:27 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id u24-20020adfa198000000b002bc84c55758sm24641864wru.63.2023.01.17.03.39.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Jan 2023 03:39:26 -0800 (PST) Message-ID: <9c11bf53-6639-2cbe-0d27-ce1ea154f576@linaro.org> Date: Tue, 17 Jan 2023 12:39:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: [PATCH v4 01/19] dt-bindings: ARM: MediaTek: Add new MT8188 clock Content-Language: en-US To: "Garmin.Chang" , Matthias Brugger , Rob Herring , Krzysztof Kozlowski , Michael Turquette , Stephen Boyd , Richard Cochran Cc: Project_Global_Chrome_Upstream_Group@mediatek.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-clk@vger.kernel.org, netdev@vger.kernel.org References: <20230109124516.31425-1-Garmin.Chang@mediatek.com> <20230109124516.31425-2-Garmin.Chang@mediatek.com> From: Krzysztof Kozlowski In-Reply-To: <20230109124516.31425-2-Garmin.Chang@mediatek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/01/2023 13:44, Garmin.Chang wrote: > Add the new binding documentation for system clock > and functional clock on MediaTek MT8188. Use subject prefixes matching the subsystem (which you can get for example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory your patch is touching). > > Signed-off-by: Garmin.Chang > --- > .../bindings/clock/mediatek,mt8188-clock.yaml | 71 ++ > .../clock/mediatek,mt8188-sys-clock.yaml | 55 ++ > .../dt-bindings/clock/mediatek,mt8188-clk.h | 733 ++++++++++++++++++ > 3 files changed, 859 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt8188-clock.yaml > create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt8188-sys-clock.yaml > create mode 100644 include/dt-bindings/clock/mediatek,mt8188-clk.h > > diff --git a/Documentation/devicetree/bindings/clock/mediatek,mt8188-clock.yaml b/Documentation/devicetree/bindings/clock/mediatek,mt8188-clock.yaml > new file mode 100644 > index 000000000000..6654cead71f6 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/mediatek,mt8188-clock.yaml > @@ -0,0 +1,71 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/arm/mediatek/mediatek,mt8188-clock.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek Functional Clock Controller for MT8188 > + > +maintainers: > + - Garmin Chang > + > +description: | > + The clock architecture in MediaTek like below > + PLLs --> > + dividers --> > + muxes > + --> > + clock gate > + > + The devices provide clock gate control in different IP blocks. > + > +properties: > + compatible: > + enum: > + - mediatek,mt8188-adsp-audio26m > + - mediatek,mt8188-imp-iic-wrap-c > + - mediatek,mt8188-imp-iic-wrap-en > + - mediatek,mt8188-imp-iic-wrap-w > + - mediatek,mt8188-mfgcfg > + - mediatek,mt8188-vppsys0 > + - mediatek,mt8188-wpesys > + - mediatek,mt8188-wpesys-vpp0 > + - mediatek,mt8188-vppsys1 > + - mediatek,mt8188-imgsys > + - mediatek,mt8188-imgsys-wpe1 > + - mediatek,mt8188-imgsys-wpe2 > + - mediatek,mt8188-imgsys-wpe3 > + - mediatek,mt8188-imgsys1-dip-top > + - mediatek,mt8188-imgsys1-dip-nr > + - mediatek,mt8188-ipesys > + - mediatek,mt8188-camsys > + - mediatek,mt8188-camsys-rawa > + - mediatek,mt8188-camsys-yuva > + - mediatek,mt8188-camsys-rawb > + - mediatek,mt8188-camsys-yuvb > + - mediatek,mt8188-ccusys > + - mediatek,mt8188-vdecsys-soc > + - mediatek,mt8188-vdecsys > + - mediatek,mt8188-vencsys The list should be ordered by name. > + > + reg: > + maxItems: 1 > + > + '#clock-cells': > + const: 1 > + > +required: > + - compatible > + - reg > + - '#clock-cells' > + > +additionalProperties: false > + > +examples: > + - | > + clock-controller@11283000 { > + compatible = "mediatek,mt8188-imp-iic-wrap-c"; > + reg = <0x11283000 0x1000>; > + #clock-cells = <1>; > + }; > + > diff --git a/Documentation/devicetree/bindings/clock/mediatek,mt8188-sys-clock.yaml b/Documentation/devicetree/bindings/clock/mediatek,mt8188-sys-clock.yaml > new file mode 100644 > index 000000000000..541e0f7df79f > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/mediatek,mt8188-sys-clock.yaml > @@ -0,0 +1,55 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/arm/mediatek/mediatek,mt8188-sys-clock.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek System Clock Controller for MT8188 > + > +maintainers: > + - Garmin Chang > + > +description: | > + The clock architecture in MediaTek like below > + PLLs --> > + dividers --> > + muxes > + --> > + clock gate > + > + The apmixedsys provides most of PLLs which generated from SoC 26m. > + The topckgen provides dividers and muxes which provide the clock source to other IP blocks. > + The infracfg_ao provides clock gate in peripheral and infrastructure IP blocks. > + The mcusys provides mux control to select the clock source in AP MCU. > + The device nodes also provide the system control capacity for configuration. > + > +properties: > + compatible: > + items: > + - enum: > + - mediatek,mt8188-topckgen > + - mediatek,mt8188-infracfg-ao > + - mediatek,mt8188-apmixedsys > + - mediatek,mt8188-pericfg-ao Ditto Best regards, Krzysztof