Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6897868rwn; Tue, 13 Sep 2022 10:29:36 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4/tQ3cP3OXzG3/bMnMdaN+aBsLApLew+m8UW5/1E2mE08A8uDC1mVywVyDaKHRnO98VnF7 X-Received: by 2002:a17:90b:1c82:b0:1ee:eb41:b141 with SMTP id oo2-20020a17090b1c8200b001eeeb41b141mr320566pjb.143.1663090175823; Tue, 13 Sep 2022 10:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663090175; cv=none; d=google.com; s=arc-20160816; b=wle3XWsL1Kzl245YqxNtvxDU9wP4i5KBu0cifxFWaclf6LQZew+RLxf8hLO6M/ETGV PSEbFWP04uonVW8bNZnXPaQTqbQqTUsT5VkdlRfWIBoQktZUqlRVoHQmmm2QV1y20yl2 k4EteokxET5uTenV5desk4gqFANc3YmGmcLUVb7PhHTK5dApTHf0slyJIDR9PRXAz9+J A2RNQ5gCPbxubTYcdw/57bJ0EaF+1VH3ZoZ+Tr4cb4BNA+M1jstUP0YRCKW6rtMdVofL OuDXE+Wmjl41KNr/OTo+hb/C0rANmnI4lCRYPQzVrVIM4rS6TWI/vT+yEC0HsCDMYDZq kCOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=NHkxcPH5FKv85ET3//U58TPQlebHVHmJ2tvNIdZ+Pnk=; b=EDs4z8MqY0tE+4wUpPhiPLQn+nEgX0W9KjOf4LLsRXqHId5J2Q9ji81rr/oEIeipyU BeT9PQQBuPPeuPmXxob1ksGp2bqJlizwoLKB/MNoJe8ph/x87Pl4oZLq2LuKy5NXu33Y Pl3m/+ZxZSYTJlgDbur4dy5E42TXBtz1e1LSueyTgzjcDOGT1TThw2/53gbaI8B8iAGl BgMqUAA1ooDD9CDirNNsfvDQ3BqPcUtXxbZcmoE5zGsFpTn0rqtbqLUanIuOBBpq/OqO 68fWAimabuB8LkYaMQSCcQv7bgeHzn8YfIpgsEVtEK5FAj+Lv867zJg1hyUHL2Qeh+6e 56jA== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 2-20020a631942000000b00438ebec3475si7749567pgz.355.2022.09.13.10.29.23; Tue, 13 Sep 2022 10:29:35 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231393AbiIMQkZ (ORCPT + 99 others); Tue, 13 Sep 2022 12:40:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230470AbiIMQkF (ORCPT ); Tue, 13 Sep 2022 12:40:05 -0400 Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D946266134; Tue, 13 Sep 2022 08:34:46 -0700 (PDT) Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-1278624b7c4so33136234fac.5; Tue, 13 Sep 2022 08:34:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=NHkxcPH5FKv85ET3//U58TPQlebHVHmJ2tvNIdZ+Pnk=; b=Darz0lUGLMTmn+d7WnnrWf3Tx4tOBEUj0MCzL/yJ2LGOof2uindOvs9w8Zcplvs4dj czy4+vHtjGawtxNrvqtHdPtAQ7eH7DlJWmZDz5S56WX3d63E/a0A2nlJy/SkCHykoIa2 vFnYj8UsxjnVRGz0ls/J+iiZuCwnz1h8GMkV0Ql3mLZm/I5mvwmJhYuwOu9zJmRjGXE1 P7cIV4LdQMGdE+sGg82oqgmr/k0JQAIJEv4RmwSa2jzBXkH5qL/BUC5tqF067zxq22T5 GtJN11FUB9CHV299NV9Djb5Zkh5jJZWLuF/FXFYrpIwOlo7nqfHrnNCaBvQvhOn7QWyG uhqA== X-Gm-Message-State: ACgBeo0rtAp3Pt05C/RqxiaI9MY4NcDO2G/Rm24gF/Y3UPSSnKFRjNdu FWvGqwn4xEtD5CNEdKCGnA== X-Received: by 2002:a05:6870:4586:b0:10d:2ec7:be6 with SMTP id y6-20020a056870458600b0010d2ec70be6mr2203912oao.7.1663083166741; Tue, 13 Sep 2022 08:32:46 -0700 (PDT) Received: from robh.at.kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id r35-20020a05687017a300b0011e37fb5493sm7354117oae.30.2022.09.13.08.32.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Sep 2022 08:32:46 -0700 (PDT) Received: (nullmailer pid 3776213 invoked by uid 1000); Tue, 13 Sep 2022 15:32:45 -0000 Date: Tue, 13 Sep 2022 10:32:45 -0500 From: Rob Herring To: Johan Jonker Cc: heiko@sntech.de, zhangqing@rock-chips.com, krzysztof.kozlowski+dt@linaro.org, sboyd@kernel.org, mturquette@baylibre.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] dt-bindings: clock: convert rockchip,rk3128-cru.txt to YAML Message-ID: <20220913153245.GA3769654-robh@kernel.org> References: <76d87f49-6a44-0a05-c9dc-af870fade924@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <76d87f49-6a44-0a05-c9dc-af870fade924@gmail.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 Sun, Sep 11, 2022 at 11:20:10PM +0200, Johan Jonker wrote: > Convert rockchip,rk3128-cru.txt to YAML. > > Signed-off-by: Johan Jonker > --- > .../bindings/clock/rockchip,rk3128-cru.txt | 58 --------------- > .../bindings/clock/rockchip,rk3128-cru.yaml | 73 +++++++++++++++++++ > 2 files changed, 73 insertions(+), 58 deletions(-) > delete mode 100644 Documentation/devicetree/bindings/clock/rockchip,rk3128-cru.txt > create mode 100644 Documentation/devicetree/bindings/clock/rockchip,rk3128-cru.yaml > > diff --git a/Documentation/devicetree/bindings/clock/rockchip,rk3128-cru.txt b/Documentation/devicetree/bindings/clock/rockchip,rk3128-cru.txt > deleted file mode 100644 > index 6f8744fd3..000000000 > --- a/Documentation/devicetree/bindings/clock/rockchip,rk3128-cru.txt > +++ /dev/null > @@ -1,58 +0,0 @@ > -* Rockchip RK3126/RK3128 Clock and Reset Unit > - > -The RK3126/RK3128 clock controller generates and supplies clock to various > -controllers within the SoC and also implements a reset controller for SoC > -peripherals. > - > -Required Properties: > - > -- compatible: should be "rockchip,rk3126-cru" or "rockchip,rk3128-cru" > - "rockchip,rk3126-cru" - controller compatible with RK3126 SoC. > - "rockchip,rk3128-cru" - controller compatible with RK3128 SoC. > -- reg: physical base address of the controller and length of memory mapped > - region. > -- #clock-cells: should be 1. > -- #reset-cells: should be 1. > - > -Optional Properties: > - > -- rockchip,grf: phandle to the syscon managing the "general register files" > - If missing pll rates are not changeable, due to the missing pll lock status. > - > -Each clock is assigned an identifier and client nodes can use this identifier > -to specify the clock which they consume. All available clocks are defined as > -preprocessor macros in the dt-bindings/clock/rk3128-cru.h headers and can be > -used in device tree sources. Similar macros exist for the reset sources in > -these files. > - > -External clocks: > - > -There are several clocks that are generated outside the SoC. It is expected > -that they are defined using standard clock bindings with following > -clock-output-names: > - - "xin24m" - crystal input - required, > - - "ext_i2s" - external I2S clock - optional, > - - "gmac_clkin" - external GMAC clock - optional > - > -Example: Clock controller node: > - > - cru: cru@20000000 { > - compatible = "rockchip,rk3128-cru"; > - reg = <0x20000000 0x1000>; > - rockchip,grf = <&grf>; > - > - #clock-cells = <1>; > - #reset-cells = <1>; > - }; > - > -Example: UART controller node that consumes the clock generated by the clock > - controller: > - > - uart2: serial@20068000 { > - compatible = "rockchip,serial"; > - reg = <0x20068000 0x100>; > - interrupts = ; > - clock-frequency = <24000000>; > - clocks = <&cru SCLK_UART2>, <&cru PCLK_UART2>; > - clock-names = "sclk_uart", "pclk_uart"; > - }; > diff --git a/Documentation/devicetree/bindings/clock/rockchip,rk3128-cru.yaml b/Documentation/devicetree/bindings/clock/rockchip,rk3128-cru.yaml > new file mode 100644 > index 000000000..03e5d7f0e > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/rockchip,rk3128-cru.yaml > @@ -0,0 +1,73 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/rockchip,rk3128-cru.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Rockchip RK3126/RK3128 Clock and Reset Unit (CRU) > + > +maintainers: > + - Elaine Zhang > + - Heiko Stuebner > + > +description: | > + The RK3126/RK3128 clock controller generates and supplies clock to various > + controllers within the SoC and also implements a reset controller for SoC > + peripherals. > + Each clock is assigned an identifier and client nodes can use this identifier > + to specify the clock which they consume. All available clocks are defined as > + preprocessor macros in the dt-bindings/clock/rk3128-cru.h headers and can be > + used in device tree sources. Similar macros exist for the reset sources in > + these files. > + There are several clocks that are generated outside the SoC. It is expected > + that they are defined using standard clock bindings with following > + clock-output-names: Which node does clock-output-names live in? From the description, it sounds more like this should be clocks/clock-names. > + - "xin24m" - crystal input - required > + - "ext_i2s" - external I2S clock - optional > + - "gmac_clkin" - external GMAC clock - optional