From patchwork Tue Mar 29 15:07:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johan Jonker X-Patchwork-Id: 12794921 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C7180C433EF for ; Tue, 29 Mar 2022 15:09:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1Rk/EUJSRvU4VVl5qz1pZ3dQzciXjqpdltbkNiMFTC0=; b=srXyIgRsLRB4Wh FXOvj7phFMLd1UhDdcjvyLQtftZC+Iy5JuKmBHTqr5kgn61zLFsE220Ph1ZnDhHwXmoDX7a97q/zl 5o/rSqySaINyjjbHip1WCoz+PO0xftaEUsFilmDcsRVr58ACqaH9mrb0XgH3XgJUdl6C832UxEtcp Q9OTr6eka9MUfepzcRTPL2z5+oKJDfX6d4Cgxk+PExEct8u+Gi9lDDqvXqARrHUnlQ9H6JR7kfG4f e1fBG8BAeZWHJgai6NwLo62Uevh8aDrLdP0lIYzhkjLRZ1tpf+6ngDOVppOxVE5QnF+n70VzKXwCL Ykfc1SVohxgRGP5QwZFA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZDSE-00CZy0-1c; Tue, 29 Mar 2022 15:08:18 +0000 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nZDRs-00CZn0-6n; Tue, 29 Mar 2022 15:07:57 +0000 Received: by mail-ej1-x633.google.com with SMTP id c10so17372720ejs.13; Tue, 29 Mar 2022 08:07:55 -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=hIr5PvQf5fAOI0436U7wwcVh5jl/xQHKrpc6xbFom/g=; b=fxKfzTApBxSRYrsYaJILMTwr/PE06U274HGvZsBw+QCZfWWgIfpfXExXXHsNFXHV7g F1gWxlTF7mTpZjkF9S16CyiRvmrWnSdkSNlBO45OD+XX/Fq/JAcZYJlQwuWlh5hFS4Od nkZic3NB4C25FqSWV7Nxgj9blOtLP9+3CHecdoelJvkoT4/qIEJu/K9dix6Zlvjwswti ef9z35DzxkKXKxcx9TWipXeCNJiUM8jHk02SGr+1Ri4vDjQz2x5g+IvJFey/txsPumPU 8ZlUJaKOI0S2DNNU128p+MwRNCiSg/0v++D1YJHyc6Hj4MdWWC+qUk1dEzCtYM5UhP5N GYNA== 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=hIr5PvQf5fAOI0436U7wwcVh5jl/xQHKrpc6xbFom/g=; b=sCH+oGxcjJmhZkI6boxILvYiHdZk24LY1LWE687BCqwiB4EWcJnkbryb7xHjWHgz3N +t3W07FEPmMOQCUPfHQn46LZ4UE6o/ogFz7woPHIExR5MQ75R03ve1tfeAneeH0/TuS+ e8jk0N021FYdEa+JeN59NnXwFVXIzgqcapmOc4yM8QECnblPZvknAMTbDVxqbsHm/KiU AAAMXca6oKeG34snSyhar4bKn5SydaJqUdNacvaq74zqj0Ny6le+cFvJD0Ya09ge8rRe 1wBLFQl1g1DOgg62yPRSdlIkZWriJtHAbybtSyhC2JS722tb5oTkgLYdnZAMZ8QGFYe/ 25NA== X-Gm-Message-State: AOAM530iJHnSXITjz/ZvX7Gj/zDyAYkr3b8qW0yl1RyHaSL677HNsjgx tlz7jnfiKZprya3b/DIO3Xc= X-Google-Smtp-Source: ABdhPJzdWuR/Ip7WHPKwZ8Ei1Ym2WuXobIb/szldrSwb7qxobdqcCVGvEeOwV4+Df3ERQcmyHFFWEA== X-Received: by 2002:a17:907:72c5:b0:6da:e99e:226c with SMTP id du5-20020a17090772c500b006dae99e226cmr35385241ejc.515.1648566474746; Tue, 29 Mar 2022 08:07:54 -0700 (PDT) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id eq7-20020a056402298700b00419d8d46a8asm3261643edb.39.2022.03.29.08.07.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Mar 2022 08:07:53 -0700 (PDT) From: Johan Jonker To: heiko@sntech.de, zhangqing@rock-chips.com 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 v2 4/6] dt-bindings: clock: fix rk3399 cru clock issues Date: Tue, 29 Mar 2022 17:07:40 +0200 Message-Id: <20220329150742.22093-4-jbx6244@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20220329150742.22093-1-jbx6244@gmail.com> References: <20220329150742.22093-1-jbx6244@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220329_080756_273807_D2856109 X-CRM114-Status: GOOD ( 10.85 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The current rk3399 cru DT node gives warnings like: 'clocks' is a dependency of 'assigned-clocks'. With the YAML conversion somehow "assigned-xxx" properties where added. If a proper clock is added to the cru node these properties are no longer needed, so removed them. Currently only one clock will be added, so limit the clock maxItems to 1. Add a clock name to be able to differentiate and filter bogus entries. Signed-off-by: Johan Jonker Acked-by: Krzysztof Kozlowski --- .../bindings/clock/rockchip,rk3399-cru.yaml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/rockchip,rk3399-cru.yaml b/Documentation/devicetree/bindings/clock/rockchip,rk3399-cru.yaml index 18a009311..54da1e31e 100644 --- a/Documentation/devicetree/bindings/clock/rockchip,rk3399-cru.yaml +++ b/Documentation/devicetree/bindings/clock/rockchip,rk3399-cru.yaml @@ -46,19 +46,10 @@ 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