From patchwork Sat Mar 26 10:27:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 554714 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2669C433F5 for ; Sat, 26 Mar 2022 10:27:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232476AbiCZK3C (ORCPT ); Sat, 26 Mar 2022 06:29:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231652AbiCZK3C (ORCPT ); Sat, 26 Mar 2022 06:29:02 -0400 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 872CA1C931; Sat, 26 Mar 2022 03:27:22 -0700 (PDT) Received: by mail-ej1-x632.google.com with SMTP id r13so19720966ejd.5; Sat, 26 Mar 2022 03:27:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4ITgASCxQT302s/bxx026+0Ar86LJl3YrM5DNTNIgaE=; b=jt8a90MHRmQFxGOT55vbTf2XBG6bFQdgQIY7EKDh26oCbD4mz0R6q7O6c54f3wSMBt ZOETBacl+LJVn3iZgrMJag45qz1D4pjkaiaLA9ZBWcFhVw6/mschnZli2N8gWlZDjLpE tQDf7+xbQ3eqrY/VnWuYJTyljlB98Zb7anxDqrZgICBqDqBvIhz43M2N3kELtHDjhnsR NRwm0eqHcI2uKQgHQ+n73eww9MwUhKMXBDMcmbm9B7lzHZKUVA+qwwPsJfqk3IfnFUO1 h5YnaS6H0SBSirwr/quKGcuPEEhHrMyptC5d+xR5jNX5emf5btowYivK5gQ3Sy5bzKpC 4tvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=4ITgASCxQT302s/bxx026+0Ar86LJl3YrM5DNTNIgaE=; b=EyDso+NQgwqnrvQqVcnuyPLdfLVkGgGrnBFrLDjQ5STP3Yz85+ZUgo2g82FgRNiN0d QzR2pIGXv2ZWJG22wj+zNUabaHNXtZuwXx1M9S3xebHGUuGnmUB7KeDgT3w3a+yyopSM NOEJ7kugIkolCQs6B2zDfcmvbbVRUkEhwJH2UG6j5HnLQbSi/nGZTkPW+MWMa/qrekIP 6ber4lBKicbgUTZgG5HC9iztvkYPihhBuRkjMvs4In89EATe1zdt8Djg56y3YUsgAQXW tHF4fcMwjtoW4Klfhza2s4RUTb5uFLISeTZvSvdNRRrr3g99SU76v52a2edcrVQ2m3z+ GGzg== X-Gm-Message-State: AOAM531Y2NfFiO1UyYjspmYygI0kUtAPHY4E19xP3/8dj7Zk2oRsh4y4 ZsG+uxH7iNR+G4hcrkVtDYGu1v/Ss48= X-Google-Smtp-Source: ABdhPJzq1WkwqLO43pcA+a6Qy/zbc6SmIkwV1rMZxHyewHF9VYllCXVeOkt+feagcqO6aUnS+kH2sA== X-Received: by 2002:a17:907:b590:b0:6c1:c061:d945 with SMTP id qx16-20020a170907b59000b006c1c061d945mr16549763ejc.768.1648290441056; Sat, 26 Mar 2022 03:27:21 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id g23-20020a17090670d700b006ccfd4163f7sm3209021ejk.206.2022.03.26.03.27.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Mar 2022 03:27:20 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, krzk+dt@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, 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: [PATCH v1 1/3] dt-bindings: clock: fix some conversion issues for rockchip,rk3399-cru.yaml Date: Sat, 26 Mar 2022 11:27:10 +0100 Message-Id: <20220326102712.20906-1-jbx6244@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org With the conversion of rockchip,rk3399-cru.txt some issues were added, so fix them: Changed: Align the table with external clocks. Remove the original author in 2016 as maintainer. Change clocks maxItems. Add clock-names. Use clock-controller node name in example. Remove assigned-xxx. Remove ">" from description. Signed-off-by: Johan Jonker --- .../bindings/clock/rockchip,rk3399-cru.yaml | 32 +++++++------------ 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/rockchip,rk3399-cru.yaml b/Documentation/devicetree/bindings/clock/rockchip,rk3399-cru.yaml index 72b286a1b..c2763e694 100644 --- a/Documentation/devicetree/bindings/clock/rockchip,rk3399-cru.yaml +++ b/Documentation/devicetree/bindings/clock/rockchip,rk3399-cru.yaml @@ -7,7 +7,6 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# title: Rockchip RK3399 Clock and Reset Unit maintainers: - - Xing Zheng - Heiko Stuebner description: | @@ -22,11 +21,11 @@ description: | 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, - - "xin32k" - rtc clock - optional, - - "clkin_gmac" - external GMAC clock - optional, - - "clkin_i2s" - external I2S clock - optional, - - "pclkin_cif" - external ISP clock - optional, + - "xin24m" - crystal input - required, + - "xin32k" - rtc clock - optional, + - "clkin_gmac" - external GMAC clock - optional, + - "clkin_i2s" - external I2S clock - optional, + - "pclkin_cif" - external ISP clock - optional, - "clk_usbphy0_480m" - output clock of the pll in the usbphy0 - "clk_usbphy1_480m" - output clock of the pll in the usbphy1 @@ -46,24 +45,15 @@ properties: const: 1 clocks: - minItems: 1 - - assigned-clocks: - minItems: 1 - maxItems: 64 - - assigned-clock-parents: - minItems: 1 - maxItems: 64 + maxItems: 1 - assigned-clock-rates: - minItems: 1 - maxItems: 64 + clock-names: + const: xin24m rockchip,grf: $ref: /schemas/types.yaml#/definitions/phandle - description: > - phandle to the syscon managing the "general register files". It is used + description: + Phandle to the syscon managing the "general register files". It is used for GRF muxes, if missing any muxes present in the GRF will not be available. @@ -77,7 +67,7 @@ additionalProperties: false examples: - | - pmucru: pmu-clock-controller@ff750000 { + pmucru: clock-controller@ff750000 { compatible = "rockchip,rk3399-pmucru"; reg = <0xff750000 0x1000>; #clock-cells = <1>; From patchwork Sat Mar 26 10:27:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 554461 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7216C4332F for ; Sat, 26 Mar 2022 10:27:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232505AbiCZK3D (ORCPT ); Sat, 26 Mar 2022 06:29:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231426AbiCZK3C (ORCPT ); Sat, 26 Mar 2022 06:29:02 -0400 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FC3D23154; Sat, 26 Mar 2022 03:27:23 -0700 (PDT) Received: by mail-ej1-x634.google.com with SMTP id bi12so19771619ejb.3; Sat, 26 Mar 2022 03:27:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OfRX7xUCz0VHclcUMj2G1rk65qDiyF54u2Cxho1r1WM=; b=SONsoAOtA4moNtv+X/3zVHRVaXMg1KRgwt6swuWcVD2Qr27LFycDzSiPrH7kfDe1fD OdD+m4gJi8YvSiYqL276hH5LMEjZS7ZHcrvmq6rfPOEMuvwt+oBBPsssG68BfR5bvGPR Fz6NEj7K1JIdoPs43uF0yLEn27b1l1bqErygBUSel3YrskZOKKgKl7aQsIDlgkWIq7f2 i18L1UiwLdYtdEpcpBHpwc6zpXioWjLY7Aeygpvo9BNmxFChpBkJrEAJRq4sksXVeSh8 w0oBDqwJPU1rb0dpHnbaWZd7tHXBqywFiEg0Q20OWIiAgmlJ95s1/Mgt6Hplkel10/oG fbJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OfRX7xUCz0VHclcUMj2G1rk65qDiyF54u2Cxho1r1WM=; b=Wd0OtQz6hp6r+58/xKrLTRvu8nfU7KS3cfpUUaZ94PGrxkoaAeIbGHqA2+n5TLGlCz r3aDaq8DKQzMw5wxRS6Yp+n9CM7Gb+Qv8vWoUcoMJyLY73tgE6aDARG05NwuZQCjpdH0 JVeP6wVPfXKZLD7R+9lWsnbrLmvpcCyxLb89n3Vtbsk4ErDuDH0V1I39qvCMw4essObx aBsMxlMmGeFwDeAsqixlYeeLjmHjKuHHxTa9CMB1byzN2zIoNGb1alZBBjMLCQjO3/Hz 1rdF24iGPkx1xftVP/Liw94icqhDvhjgQ2WlURsvjcqwvzD7UcmyNwes8ZxvvMbAIasI 3FkA== X-Gm-Message-State: AOAM533NMe3hC/yVqH4R6OL1429X+8DtaHvrsQMb73OoEjFbYEhnGo4j D6Ud8A1ptYTES9iigHfpfE6oyPbMfpM= X-Google-Smtp-Source: ABdhPJzqvyfol6yYH7+6ZqbdIgJabDs9fjQ/2LVQ8vNQd2m0HWx7rZbIYE5FigCYfqLSKN4IUexg3w== X-Received: by 2002:a17:907:d28:b0:6e0:996c:7e53 with SMTP id gn40-20020a1709070d2800b006e0996c7e53mr9443800ejc.658.1648290441785; Sat, 26 Mar 2022 03:27:21 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id g23-20020a17090670d700b006ccfd4163f7sm3209021ejk.206.2022.03.26.03.27.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Mar 2022 03:27:21 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, krzk+dt@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, 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: [PATCH v1 2/3] arm64: dts: rockchip: rk3399: use generic pmucru nodename Date: Sat, 26 Mar 2022 11:27:11 +0100 Message-Id: <20220326102712.20906-2-jbx6244@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220326102712.20906-1-jbx6244@gmail.com> References: <20220326102712.20906-1-jbx6244@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The cru nodenames should be generic, so fix this for the pmucru node. Signed-off-by: Johan Jonker --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 88f26d89e..01c08a2aa 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -1413,7 +1413,7 @@ clock-names = "apb_pclk"; }; - pmucru: pmu-clock-controller@ff750000 { + pmucru: clock-controller@ff750000 { compatible = "rockchip,rk3399-pmucru"; reg = <0x0 0xff750000 0x0 0x1000>; rockchip,grf = <&pmugrf>; From patchwork Sat Mar 26 10:27:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 554713 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C689C4321E for ; Sat, 26 Mar 2022 10:27:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232512AbiCZK3D (ORCPT ); Sat, 26 Mar 2022 06:29:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232498AbiCZK3D (ORCPT ); Sat, 26 Mar 2022 06:29:03 -0400 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 143852F008; Sat, 26 Mar 2022 03:27:24 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id pv16so19793609ejb.0; Sat, 26 Mar 2022 03:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gJNCNvpGXaKqAIHCO4xhB5jgrMlxJtcGqvg3RJwepb0=; b=e5zTOtzJnmdhJkaAaFuUx/AE7i2r+pjg25hvt7Q9BAm0aLXz+Pya5CERaYqqHGe/U4 m33dcJci2qtdSm06qzqu2A7KnvKd6A3hVj6+orDhWN3ZS3hZ/vhSMy7ZkB/ICDhdYBel e54GubObSnz6MFNTiIs7JBh9Tycvf0LKiLvVTn/cPvyM762L6vTf5EOi02nTcy4cb/ys qdESkukJXCQjvSWoRkb32/ZQHb6geFATHurqumVCr+iIMUrBbyVOdePlFA17WpUgc2HH 0FtsX4YWiokgo/+1qArfyU1pdMeMbozO/pOIPV1kB+m3KNfMa71XiBJwMbyYuSRiuo+x 8lDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gJNCNvpGXaKqAIHCO4xhB5jgrMlxJtcGqvg3RJwepb0=; b=1y69HvImrInVPx3bSAAm9vf3YImotZ8rf151tMNEPykKyfXy39TWde/HI9UWoIp5Vj TX1c15IJam6Y2CDJawcjRag4XM2GmIyod6rQhjDZT7LBkSOs5swXgJjOEOpq3o3jFNva mCnzYN6JQEGJhXFDAPb9h4kIDHrVM04+WF1zycnOPkMVIdolhQJuuEUAl5+/uyCXWV9p 5t4hY4QuVWU5ewxydlY2pVQSWOnG2Owj4y9GUpUVz8Bo+F4fB37YsLgWuyfLQKCQe6yP VHPb87utV82QwAnsEp83rqtB9a9sWoJjVCsgzJv6aVLdZ+5acxMAIJxJavxAX/u0KPIB r8IA== X-Gm-Message-State: AOAM531Par1vYIxbJYuhcekzrDwg3naTLCsyrrtI4/erwLRt/y8Fb+eB yi0k+bdfe2gyPEvK4ANvRos= X-Google-Smtp-Source: ABdhPJy0S/ltddHS/J3q+F7pW5ZG5TpKypxxoNl0N8StWaIdHuTYgh2FBFDRufdwyts3L1HsOZiD8A== X-Received: by 2002:a17:907:1c10:b0:6da:6316:d009 with SMTP id nc16-20020a1709071c1000b006da6316d009mr16427209ejc.621.1648290442568; Sat, 26 Mar 2022 03:27:22 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id g23-20020a17090670d700b006ccfd4163f7sm3209021ejk.206.2022.03.26.03.27.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Mar 2022 03:27:22 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de Cc: robh+dt@kernel.org, krzk+dt@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, 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: [PATCH v1 3/3] arm64: dts: rockchip: add clocks property to cru node rk3399 Date: Sat, 26 Mar 2022 11:27:12 +0100 Message-Id: <20220326102712.20906-3-jbx6244@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220326102712.20906-1-jbx6244@gmail.com> References: <20220326102712.20906-1-jbx6244@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Add clocks property to rk3399 cru node to fix warnings like: 'clocks' is a dependency of 'assigned-clocks'. Signed-off-by: Johan Jonker --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 01c08a2aa..16fc6e5f1 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -1426,6 +1426,8 @@ cru: clock-controller@ff760000 { compatible = "rockchip,rk3399-cru"; reg = <0x0 0xff760000 0x0 0x1000>; + clocks = <&xin24m>; + clock-names = "xin24m"; rockchip,grf = <&grf>; #clock-cells = <1>; #reset-cells = <1>;