Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2935223rwb; Mon, 16 Jan 2023 01:12:42 -0800 (PST) X-Google-Smtp-Source: AMrXdXtKVDrSI356c0flovXENEXh0PaB0y5L/R5zddCtXzTyaM+Xc5Z0LuqZ5BAPkCXRh5LL6lkt X-Received: by 2002:a17:902:d70b:b0:194:97cd:9c3d with SMTP id w11-20020a170902d70b00b0019497cd9c3dmr2471610ply.20.1673860362188; Mon, 16 Jan 2023 01:12:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673860362; cv=none; d=google.com; s=arc-20160816; b=Mi8OW3fweKlz4lb79nA8uh8QTK9yxcIQRD0HBsqS48HEFsc9/Wl4TGNELKtj43UteC E9k6o+96TPGYe+9iggS2PAEyEG5oRzuLaCqfatW2yngApZsL+k2fk4p6WuQDsWUNsuCT WR8LkEze/eyHfGQFhZmoT02tchMXne9AT3oyK82RLBgyZ3wMlQ/ztI1JYfkfUtfv3vlT qAsr9NxZoy3tRaqRQqDSZdBmTNeicJkbVm8O2xrKFIN3psx0wv/xgnWAL+CPZowwlcUW iayDbSwEWTQ5vOSKi/xSDByrm+nZUDc3PnlSmCP10Gb6JvZBP0lieXeyXH0YJw3MAPG5 E3sQ== 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=suk68sDbaZb4bVcYI2D243OtUKgl7bbyrnOid/OtO7g=; b=Pl6YZ4sCXPUp7ZlzNfmOuo+BJFYCTytVACKItp6WY1CrteaGFyaN6vlHL4iSoMv9Au s3jy9RTW6jnB1QkfC8GXeoPhexK7WeniVUSN+AwRxb97ZjQCAmsBXOe23MMRVDlNLi51 GBrMp4QBTFjY1aW4ca6cXqzEeIICYGxjr6L342HOo+uKqmeBqc3RNNcNPjn8hkUcYLLA xuGztVAfDN6EEoJO4a+wGN7DEdqePA9GlYALyKeoazi5PV1CG8VNA4hBFv1RRhV9QXHv CHfUH4omFHM4tB4fsO0aKm2x4ipOeE018TxM09fV4vNCWB9rM1JJe81Bgr6mJSQ9VOQa zE0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=d6ePkrGC; 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 c5-20020a170903234500b00189239e6a29si11034817plh.95.2023.01.16.01.12.36; Mon, 16 Jan 2023 01:12:42 -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=d6ePkrGC; 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 S232282AbjAPI3X (ORCPT + 51 others); Mon, 16 Jan 2023 03:29:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49020 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232281AbjAPI3V (ORCPT ); Mon, 16 Jan 2023 03:29:21 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BEC41206A for ; Mon, 16 Jan 2023 00:29:19 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id cf18so59877674ejb.5 for ; Mon, 16 Jan 2023 00:29:19 -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=suk68sDbaZb4bVcYI2D243OtUKgl7bbyrnOid/OtO7g=; b=d6ePkrGCuxnqgjYDB398PrD2rGklUquvWHdbILHgA69czoke7FbnaFz4phx1aPJxGG QBahJKpVUp8zbdLsNognWBlI4+4hGS4JnRXU6S5ybZroIJzyLTCtDTbCO4ixFw9jtIIa LyXfbOBJtURhcqKpCoplVm6XvtGgFLgg1jvh6D3e+2W4nf5/wMZIq9Z4kNqo9ydZG/xa wc/2vivaP9XQJxhQQmSMAyDFO0wBRtj4xSLbDLtvMqTxcUzI0Vvh3EMuNezc/3q6gjoV kIsLove8weacu4GU3R3o6kbi74dGKLskgu3M84rJG23k+KjMVwDe2BGRgXSjcJp16vQl N2WA== 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=suk68sDbaZb4bVcYI2D243OtUKgl7bbyrnOid/OtO7g=; b=psdJstG3E4eJLM6E+lvNqdQY472hzzGrPoafxv6ykwvnd15XV2zA3KtCZ00DuEVfPM RjzlcQlaZh5wgKyLfoE0LahNf5jZ55KEI1eQWYZteHjJlnk6LY8BCVbAGEzaFZpQituj yFCZQVXfttoC/XA5LuwyUo7spqDZq9E6s082sxW/QZEDK5WldJfX5StmPaTDfnjG/6Oe fuq492XYSTWslikF4HKoeYI0zRBAKc7KprHRNchb7V8adTInZNsYx9cRUryeLzHAUSGk yWtPVzM8N1WWYZeef5lXNIJ1M+wtAr9RwWT3JHZB1KK1wW8cqI4H5UqoFC1iNxJ2Fo8Y a29g== X-Gm-Message-State: AFqh2koJG1eaOeEkag/5NyXFUz+HofSVtVp9SFbPiUkyb/ERgMBpJHLE tGppMUQ3AKqYMRfWL6822EKNJQ== X-Received: by 2002:a17:906:dfe9:b0:84d:378b:8820 with SMTP id lc9-20020a170906dfe900b0084d378b8820mr12649387ejc.18.1673857757948; Mon, 16 Jan 2023 00:29:17 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id sh39-20020a1709076ea700b0084c62b9eb57sm11684541ejc.144.2023.01.16.00.29.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Jan 2023 00:29:17 -0800 (PST) Message-ID: <02b6b3a6-e2ad-8cbc-fa15-fbd2db6ada64@linaro.org> Date: Mon, 16 Jan 2023 09:29:15 +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 V6 1/3] dt-bindings: clock: document Amlogic S4 SoC PLL & peripheral clock controller Content-Language: en-US To: Yu Tu , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Rob Herring , Neil Armstrong , Jerome Brunet , Kevin Hilman , Michael Turquette , Stephen Boyd , Krzysztof Kozlowski , Martin Blumenstingl Cc: "kelvin . zhang" , "qi . duan" References: <20230116074214.2326-1-yu.tu@amlogic.com> <20230116074214.2326-2-yu.tu@amlogic.com> From: Krzysztof Kozlowski In-Reply-To: <20230116074214.2326-2-yu.tu@amlogic.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 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 16/01/2023 08:42, Yu Tu wrote: > Add the S4 PLL & peripheral clock controller dt-bindings in the s4 SoC > family. > > Signed-off-by: Yu Tu > --- > .../clock/amlogic,s4-peripherals-clkc.yaml | 104 ++++++++++++++ > .../bindings/clock/amlogic,s4-pll-clkc.yaml | 50 +++++++ > MAINTAINERS | 1 + > .../clock/amlogic,s4-peripherals-clkc.h | 131 ++++++++++++++++++ > .../dt-bindings/clock/amlogic,s4-pll-clkc.h | 30 ++++ > 5 files changed, 316 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/amlogic,s4-peripherals-clkc.yaml > create mode 100644 Documentation/devicetree/bindings/clock/amlogic,s4-pll-clkc.yaml > create mode 100644 include/dt-bindings/clock/amlogic,s4-peripherals-clkc.h > create mode 100644 include/dt-bindings/clock/amlogic,s4-pll-clkc.h > > diff --git a/Documentation/devicetree/bindings/clock/amlogic,s4-peripherals-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,s4-peripherals-clkc.yaml > new file mode 100644 > index 000000000000..2deeff497754 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/amlogic,s4-peripherals-clkc.yaml > @@ -0,0 +1,104 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/amlogic,s4-peripherals-clkc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Amlogic Meson S serials Peripherals Clock Controller > + > +maintainers: > + - Neil Armstrong > + - Jerome Brunet > + - Yu Tu > + > +properties: > + compatible: > + const: amlogic,s4-peripherals-clkc > + > + reg: > + maxItems: 1 > + > + clocks: > + items: > + - description: input fixed pll div2 > + - description: input fixed pll div2p5 > + - description: input fixed pll div3 > + - description: input fixed pll div4 > + - description: input fixed pll div5 > + - description: input fixed pll div7 > + - description: input hifi pll > + - description: input gp0 pll > + - description: input mpll0 > + - description: input mpll1 > + - description: input mpll2 > + - description: input mpll3 > + - description: input hdmi pll > + - description: input oscillator (usually at 24MHz) > + - description: input external 32kHz reference (optional) > + > + clock-names: > + items: > + - const: fclk_div2 > + - const: fclk_div2p5 > + - const: fclk_div3 > + - const: fclk_div4 > + - const: fclk_div5 > + - const: fclk_div7 > + - const: hifi_pll > + - const: gp0_pll > + - const: mpll0 > + - const: mpll1 > + - const: mpll2 > + - const: mpll3 > + - const: hdmi_pll > + - const: xtal > + - const: ext_32k > + > + "#clock-cells": > + const: 1 > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - "#clock-cells" > + > +additionalProperties: false > + > +examples: > + - | > + #include > + > + /* 32KHz reference crystal */ > + ext_32k: ref32k { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <32000>; > + }; This wasn't here before. Drop it. It is trivial and it is not needed to illustrate your device bindings. All clock bindings use it... > + > + clkc_periphs: clock-controller@fe000000 { > + compatible = "amlogic,s4-peripherals-clkc"; > + reg = <0xfe000000 0x49c>; > + clocks = <&clkc_pll 3>, > + <&clkc_pll 13>, > + <&clkc_pll 5>, > + <&clkc_pll 7>, > + <&clkc_pll 9>, > + <&clkc_pll 11>, > + <&clkc_pll 17>, > + <&clkc_pll 15>, > + <&clkc_pll 25>, > + <&clkc_pll 27>, > + <&clkc_pll 29>, > + <&clkc_pll 31>, > + <&clkc_pll 20>, > + <&xtal>, > + <&ext_32k>; > + clock-names = "fclk_div2", "fclk_div2p5", "fclk_div3", "fclk_div4", > + "fclk_div5", "fclk_div7", "hifi_pll", "gp0_pll", > + "mpll0", "mpll1", "mpll2", "mpll3", "hdmi_pll", "xtal", > + "ext_32k"; > + #clock-cells = <1>; > + }; > +... > diff --git a/Documentation/devicetree/bindings/clock/amlogic,s4-pll-clkc.yaml b/Documentation/devicetree/bindings/clock/amlogic,s4-pll-clkc.yaml > new file mode 100644 > index 000000000000..aeda4861cebe > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/amlogic,s4-pll-clkc.yaml > @@ -0,0 +1,50 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/amlogic,s4-pll-clkc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Amlogic Meson S serials PLL Clock Controller > + > +maintainers: > + - Neil Armstrong > + - Jerome Brunet > + - Yu Tu > + > +properties: > + compatible: > + const: amlogic,s4-pll-clkc > + > + reg: > + maxItems: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + items: > + - const: xtal > + > + "#clock-cells": > + const: 1 > + > +required: > + - compatible > + - reg > + - clocks > + - clock-names > + - "#clock-cells" > + > +additionalProperties: false > + > +examples: > + - | > + clkc_pll: clock-controller@fe008000 { > + compatible = "amlogic,s4-pll-clkc"; > + reg = <0xfe008000 0x1e8>; > + clocks = <&xtal>; > + clock-names = "xtal"; > + #clock-cells = <1>; > + }; > + > +... > diff --git a/MAINTAINERS b/MAINTAINERS > index f61eb221415b..26c82beeffda 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -1897,6 +1897,7 @@ L: linux-amlogic@lists.infradead.org > S: Maintained > F: Documentation/devicetree/bindings/clock/amlogic* > F: drivers/clk/meson/ > +F: include/dt-bindings/clock/amlogic* > F: include/dt-bindings/clock/gxbb* > F: include/dt-bindings/clock/meson* > > diff --git a/include/dt-bindings/clock/amlogic,s4-peripherals-clkc.h b/include/dt-bindings/clock/amlogic,s4-peripherals-clkc.h > new file mode 100644 > index 000000000000..bbec5094d5c3 > --- /dev/null > +++ b/include/dt-bindings/clock/amlogic,s4-peripherals-clkc.h > @@ -0,0 +1,131 @@ > +/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ Unusual license... are you sure to license the bindings under GPLv4 or GPLv5? Fine by me. Best regards, Krzysztof