Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp5087511rwn; Mon, 12 Sep 2022 04:21:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR4l2N1HcrBdhJWhorMKGOOJiR6AUnuNu/MggUsIV5Movn4CeQLrPaLPSi+sDaZeE9JFYJ3I X-Received: by 2002:a17:902:b281:b0:177:f1db:9a32 with SMTP id u1-20020a170902b28100b00177f1db9a32mr20622276plr.149.1662981669982; Mon, 12 Sep 2022 04:21:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662981669; cv=none; d=google.com; s=arc-20160816; b=lU9xaTOOJIWI8Dou1d1dvztPiKN4KoQyVYVEvgSZP0yYwRCcR8GAmDUZDEIoK4JOl0 lJ7GtV0njvkg16UHffU3n52dnixA9ZEw95oVGTb8S+GS7USAYVjaeOYpPcqvvaUw73mO Rj+mhqKZeJoCP8zLsm8/8iivmiiicIEo1QnT6Cqeunv9j5LeKfdeimpLmwUcui9w3X9Q iZMJxoKhX1VHmoV05Arcsa/+VFRZr1+tCUYPDaUdB39btmaEkndEQghv3YTz0uvSGOn0 OH9xZGK0PGxAwUa8Yv1EMbr28Mxl7cb2rzuymDGjY5IhEJIVO3bmPOS0UbCatlZMH7aU 59PQ== 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=JyxZJBDxwa1juNFoQDcnNx8kzZcf1BUcQHxFamfBS9U=; b=h8R1i0LjvQ0t3s4hJ95+AWA1C5ET0du3pCU+Wm8WOUcT03NfD15KpFJ/7bKxvAiqge bMVcBNA/QD1VtPzg6orXISuDOuiWvDGU6B7ELHFjvhF/kazZ3sZgyp5ylYt+9vvzh2Tq f4YRsd9WQiJJFIGOdI3n5e8eUGEvmO8b0hVlzRuAjcvDZBHdTMPU9TvGNHguaSRrwpHz M2DzeJ78xi73p9Ms6UwZZjDER1PeItOEkkar3ipjeMhvQkQaq7MwLO1rZRt6EjPZEUV4 v0DP4LEMCKm0F5fitMH/cLfky8fRQsp00KgAQ0+tLio9jYuB2+EdqtVEegcZ1AlEcFXL FzUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="ol/VATnL"; 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 n1-20020a632701000000b0043041b4ed5csi9053393pgn.610.2022.09.12.04.20.55; Mon, 12 Sep 2022 04:21:09 -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="ol/VATnL"; 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 S229765AbiILKva (ORCPT + 99 others); Mon, 12 Sep 2022 06:51:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229646AbiILKvZ (ORCPT ); Mon, 12 Sep 2022 06:51:25 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1B3183054C for ; Mon, 12 Sep 2022 03:51:23 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id r12so8490058ljg.10 for ; Mon, 12 Sep 2022 03:51:23 -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:subject:date; bh=JyxZJBDxwa1juNFoQDcnNx8kzZcf1BUcQHxFamfBS9U=; b=ol/VATnLs6JCVymJeLMyS2ANExMLVBlpsGNJCzRIcNIEumS6IS4Y8ZFSmBuInRU1YP 5pwlePB8AIjfMmLI7BDksVLpV7C92efrimaWI2/owvq5NFJHK6DTiIfwoIhiwElyVNpN 13FnRgm3CbJSI9TEiOkwwz7EnK8b/hF88zTBBWECRy1Jf1I8RUFe3K80YJVvsDBb2xQ1 WqRs+9yV4++IkJP0CjVXEXa8fFFJc00VV2btLPtEdnC9aAhjSiLSzw/8s9HXycU+i0Wh 2IuL0zGZkf69gLqn9u6ZtW38fTBofCLyf/9CakO7RjOCzEFut6tC09dJPYwyaW3XKtwm hAcQ== 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; bh=JyxZJBDxwa1juNFoQDcnNx8kzZcf1BUcQHxFamfBS9U=; b=bp9j7rpZ+UYlhiqN1yYs7qEo4pqa6YrWi4oJXBfQvfyQp0qRMXuvB/TAnMyH3ycxbK YsGrVgWotWzfcyesucSVIWFbHm6tdaIU9S4OQBeNdDoAicizLgyrH0tlaTEGP8DsP6Hg 85IT3Kkv+TOKnS0a3UP5jv0Lc8TL9sL8ChDu1C7i77gG/V8rlXQt2E6/2XjjuvICPf0W 1XhEEdu2E+c/ZY1NStY0ilftVEdC/qVrbgsDws6/JGcjzlJSTl0+FzHwGzft5xzLrcs7 KRrKLuhhk7iWDkq7+Cek3NZm+L/sOrh+UB2NcaN0znpK35KU9liXWap9Yb8lun2QX2Ja +sqg== X-Gm-Message-State: ACgBeo06RmINuR4TyyFWy+EXIjyVENPJ2a4x+Wi7QgPHyboGE0jS1zh6 FmcRk//d8VaJaogiAm0n3fIxqzErsZ2HNA== X-Received: by 2002:a2e:a552:0:b0:25e:6fa1:a6c4 with SMTP id e18-20020a2ea552000000b0025e6fa1a6c4mr7292256ljn.90.1662979881408; Mon, 12 Sep 2022 03:51:21 -0700 (PDT) Received: from [10.129.96.84] ([109.232.243.34]) by smtp.gmail.com with ESMTPSA id d28-20020a0565123d1c00b0048a8586293asm1005267lfv.48.2022.09.12.03.51.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 Sep 2022 03:51:20 -0700 (PDT) Message-ID: <14d7bbb5-51c4-8fc0-2303-f5164c6da903@linaro.org> Date: Mon, 12 Sep 2022 12:51:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH v1] dt-bindings: clock: convert rockchip,rk3128-cru.txt to YAML Content-Language: en-US To: Johan Jonker , heiko@sntech.de Cc: zhangqing@rock-chips.com, robh+dt@kernel.org, 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 References: <76d87f49-6a44-0a05-c9dc-af870fade924@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <76d87f49-6a44-0a05-c9dc-af870fade924@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.3 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/09/2022 23:20, Johan Jonker wrote: > Convert rockchip,rk3128-cru.txt to YAML. > > Signed-off-by: Johan Jonker Thank you for your patch. There is something to discuss/improve. > 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 Can't it be Dual licensed? > +%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: > + - "xin24m" - crystal input - required > + - "ext_i2s" - external I2S clock - optional > + - "gmac_clkin" - external GMAC clock - optional > + > +properties: > + compatible: > + enum: > + - rockchip,rk3126-cru > + - rockchip,rk3128-cru > + > + reg: > + maxItems: 1 > + > + "#clock-cells": > + const: 1 > + > + "#reset-cells": > + const: 1 > + > + clocks: > + maxItems: 1 > + > + clock-names: > + const: xin24m More clocks were mentioned in old binding. > + > + rockchip,grf: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: > + Phandle to the syscon managing the "general register files" (GRF), > + if missing pll rates are not changeable, due to the missing pll > + lock status. > + > +required: > + - compatible > + - reg > + - "#clock-cells" > + - "#reset-cells" > + > +additionalProperties: false > + > +examples: > + - | > + cru: clock-controller@20000000 { > + compatible = "rockchip,rk3128-cru"; > + reg = <0x20000000 0x1000>; > + rockchip,grf = <&grf>; > + #clock-cells = <1>; > + #reset-cells = <1>; > + }; Best regards, Krzysztof