Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp354753rwb; Thu, 11 Aug 2022 02:48:13 -0700 (PDT) X-Google-Smtp-Source: AA6agR6VQn62LDXM1saSW0iDkCaxXgmkhmJ1IsV4ZgGD361PFrq1zvK3IXyfBFtt/JkmW5qUccKv X-Received: by 2002:a17:90b:4a82:b0:1f5:832f:bfc with SMTP id lp2-20020a17090b4a8200b001f5832f0bfcmr7820357pjb.213.1660211293664; Thu, 11 Aug 2022 02:48:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660211293; cv=none; d=google.com; s=arc-20160816; b=Mg7FPip3c3h10gnbIZDFSMQb9OprlDbKYtA7iMXE6Cy4MZ2SiweYM1/oLMJswSPVud qRgourr2DR556nBGN2OMz5galLC5fJwTuZVw/WDTMogByMiYo7MMg5giaeJp9TNXJMz1 yBNzq1qdilqHn6a/gwcxY4gV3TLUgBCBRIBb3ywkVSI8Jdsoh7JuqWaPxt5oUpT2WRGw bD6qRgJOSF0iO56fjOkUFP26Iy4KoeSnpfMMrCP3u0gYR0jReV8nUP0p5AbhglaYT1nc 87sUQ65ZMQwW0ZmPyb0fdJlDRsoUQ1cX0CqIfeOYyBIGk9CdDBkbDAgrZAs1nCWyjvES /W1g== 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=HMC8RCpu0qhTOfuRRHUZUibf6qHpLgAB4jKyjb9VIkg=; b=U9XY8L9v9GHiEzTitO2sSVVak/cWxDjieAx1Rt8uKGjVGYtx+hQ6DTeoMX0qVa1qoj 2PxO+X5nnAEg9Yps4+IvG/zzXQzAvtPtvCtGLFbwhMOtZtFQ4dvfUmHVYePwYLshSy5i xQOzLKsPPxzHLrSMPD1dFAtvgJ23rCOOVhDqOYQUO+EoA/ER/n9+W1J6mYWx7S+K986N Tmc641xqQhMuSPkCZzQAwX32vkb0cn0oFSGvBoUPIfWNTflqjDTa0AxIzOgAGNsP10vz lZ9Hi7fJjG+Xk7eLrJbA89NPeoYbJ+6KIJeF73dPYo3b0setVr7vOHrP6214hwVjVAf3 9VZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mfykxIe7; 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 y23-20020a056a00181700b0052f6911360esi5032419pfa.155.2022.08.11.02.47.59; Thu, 11 Aug 2022 02:48:13 -0700 (PDT) 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=mfykxIe7; 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 S234722AbiHKIuL (ORCPT + 99 others); Thu, 11 Aug 2022 04:50:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234724AbiHKIuK (ORCPT ); Thu, 11 Aug 2022 04:50:10 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70132915D1 for ; Thu, 11 Aug 2022 01:50:08 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id w15so18660054ljw.1 for ; Thu, 11 Aug 2022 01:50:08 -0700 (PDT) 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; bh=HMC8RCpu0qhTOfuRRHUZUibf6qHpLgAB4jKyjb9VIkg=; b=mfykxIe7JfrCg9snqzG3K2cY2K4dsQVw8WHi8LImK05DNOaT6zuMUivNI4hBBZQcVs fdv1O+DIhC4BiF2KqOdqtP/dWDDZwutRjIr4j71hCOepHHcin/zK4F7UOWqta8MKpdMS sl8LsRNXT1gs+hTrNCD2LItCYkds9Sz/8TBnhu/0+qM2rTKMSGzfnSQs+jwDyR6ZKYIf TeRi060SDgkatwv/XBNtpx15Hvalv1ANtx8CHO/E6YjRUPeH6KiIs6t7JEUZTcGhYOD2 mEiEq2TfUWDxqU4p0sOq8lPxTIKx6oxSniLjjDBMiICLGQHqQNNKfPNlHMJzsIUs1jwd jKyg== 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; bh=HMC8RCpu0qhTOfuRRHUZUibf6qHpLgAB4jKyjb9VIkg=; b=Hjo9f27e3RPfaor9i8CJtudEPVuNxzAtj+wxBzNN1s0zyce6MojjDhMwr7WUAeFP04 vwxlKz7F6e/HmlyEEHE6IsEHOpoTtsALx0HdsjXhxIZ+MgFWsqzUB5Icg7PLyzh+M/CC WDMXMp0D/ITNDJLf8bRXkaJZjYFFGTcP1d5x38qe2m/uS6wzSoIXR44zbb24dTsPAdqy tbhbI+pbKilwPmEtmSjtfQ8uCfOC/I4Z0d6pHWFYS/1LZQWW6gX7ta33Z7jXLyoN875/ eYaVy4GLNt+rch3iygWemKsq4dVxqmCalvTQm47X5Gpwyc0mAc6uDkkClEHiBlQx8ZgU InQw== X-Gm-Message-State: ACgBeo1PPyPa/hDZFPy2MzyYXl4YO5ejwrr23pnp295ymrUUjLcpYUjz sxbkV11xTgSucTc+dPtM2NSGxw== X-Received: by 2002:a2e:a262:0:b0:25e:4dd6:ad0 with SMTP id k2-20020a2ea262000000b0025e4dd60ad0mr9727498ljm.59.1660207806781; Thu, 11 Aug 2022 01:50:06 -0700 (PDT) Received: from [192.168.1.39] ([83.146.140.105]) by smtp.gmail.com with ESMTPSA id d22-20020a193856000000b0048b0c8fb31asm628821lfj.159.2022.08.11.01.50.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Aug 2022 01:50:06 -0700 (PDT) Message-ID: Date: Thu, 11 Aug 2022 11:50:05 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v3 1/4] dt-bindings: clock: mediatek: add bindings for MT8365 SoC Content-Language: en-US To: Markus Schneider-Pargmann , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Fabien Parent , AngeloGioacchino Del Regno Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Fabien Parent References: <20220811084433.2598575-1-msp@baylibre.com> <20220811084433.2598575-2-msp@baylibre.com> From: Krzysztof Kozlowski In-Reply-To: <20220811084433.2598575-2-msp@baylibre.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 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,T_SCC_BODY_TEXT_LINE 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 11/08/2022 11:44, Markus Schneider-Pargmann wrote: > From: Fabien Parent > > Add the clock bindings for the MediaTek MT8365 SoC. > > Signed-off-by: Fabien Parent > Reviewed-by: Krzysztof Kozlowski > Signed-off-by: Markus Schneider-Pargmann > --- > .../bindings/clock/mediatek,mt8365-clock.yaml | 42 ++ > .../clock/mediatek,mt8365-sys-clock.yaml | 47 +++ > .../dt-bindings/clock/mediatek,mt8365-clk.h | 374 ++++++++++++++++++ > 3 files changed, 463 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt8365-clock.yaml > create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt8365-sys-clock.yaml > create mode 100644 include/dt-bindings/clock/mediatek,mt8365-clk.h > > diff --git a/Documentation/devicetree/bindings/clock/mediatek,mt8365-clock.yaml b/Documentation/devicetree/bindings/clock/mediatek,mt8365-clock.yaml > new file mode 100644 > index 000000000000..31cd248e772b > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/mediatek,mt8365-clock.yaml > @@ -0,0 +1,42 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/clock/mediatek,mt8365-clock.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" No quotes needed in both lines. > + > +title: MediaTek Functional Clock Controller for MT8365 > + > +maintainers: > + - Fabien Parent Are you sure this is correct and working email? Let's try not to add non-existing emails to Git maintainers. It's a bit of pain to fix it later. :/ > + > +properties: > + compatible: > + items: > + - enum: > + - mediatek,mt8365-apu > + - mediatek,mt8365-imgsys > + - mediatek,mt8365-mfgcfg > + - mediatek,mt8365-vdecsys > + - mediatek,mt8365-vencsys > + - const: syscon > + > + reg: > + maxItems: 1 > + > + '#clock-cells': > + const: 1 > + > +required: > + - compatible > + - reg > + - '#clock-cells' > + > +additionalProperties: false > + > +examples: > + - | > + apu: clock-controller@19020000 { > + compatible = "mediatek,mt8365-apu", "syscon"; > + reg = <0x19020000 0x1000>; > + #clock-cells = <1>; > + }; > diff --git a/Documentation/devicetree/bindings/clock/mediatek,mt8365-sys-clock.yaml b/Documentation/devicetree/bindings/clock/mediatek,mt8365-sys-clock.yaml > new file mode 100644 > index 000000000000..4292a2fd1489 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/mediatek,mt8365-sys-clock.yaml > @@ -0,0 +1,47 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/clock/mediatek,mt8365-sys-clock.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" No quotes. > + > +title: MediaTek System Clock Controller for MT8365 > + > +maintainers: > + - Fabien Parent Ekh... > + > +description: > + The apmixedsys module provides most of PLLs which generated from SoC 26m. > + The topckgen provides dividers and muxes which provides the clock source to other IP blocks. > + The infracfg_ao and pericfg_ao provides clock gate in peripheral and infrastructure IP blocks. > + > +properties: > + compatible: > + items: > + - enum: > + - mediatek,mt8365-topckgen > + - mediatek,mt8365-infracfg > + - mediatek,mt8365-apmixedsys > + - mediatek,mt8365-pericfg > + - mediatek,mt8365-mcucfg > + - const: syscon > + > + reg: > + maxItems: 1 > + > + '#clock-cells': > + const: 1 > + > +required: > + - compatible > + - reg > + - '#clock-cells' > + > +additionalProperties: false > + > +examples: > + - | > + topckgen: clock-controller@10000000 { > + compatible = "mediatek,mt8365-topckgen", "syscon"; > + reg = <0x10000000 0x1000>; > + #clock-cells = <1>; > + }; > diff --git a/include/dt-bindings/clock/mediatek,mt8365-clk.h b/include/dt-bindings/clock/mediatek,mt8365-clk.h > new file mode 100644 > index 000000000000..aa8a0366caae > --- /dev/null > +++ b/include/dt-bindings/clock/mediatek,mt8365-clk.h > @@ -0,0 +1,374 @@ > +/* SPDX-License-Identifier: GPL-2.0 Can you dual-license it? > + * > + * Copyright (c) 2022 MediaTek Inc. Best regards, Krzysztof