From patchwork Fri Feb 9 18:17:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Reichel X-Patchwork-Id: 199062 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1058760dyd; Fri, 9 Feb 2024 10:50:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IH18L65M8qd3ibUi9FdJSYBQ/J8/WaZ55sWaI+URHpD9s6EZ2yJ6vAR9PNWyeO/zheD2CMQ X-Received: by 2002:a05:6358:b11e:b0:175:76ec:89e3 with SMTP id a30-20020a056358b11e00b0017576ec89e3mr272696rwo.27.1707504623695; Fri, 09 Feb 2024 10:50:23 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707504623; cv=pass; d=google.com; s=arc-20160816; b=Jh4yXRn/Cs/d5QXAvdaq7k1G7OFGFY+aVGVwm4vukvqeNd4bcjiX51Vs+u3VC21xEy YMDxHK5EgxpLLlBGwYcqE8xa5vqM21BODdSOJ5CVIUtNwZH8BL97pUlmHwpeEzHQvjKk b1a3bi8BRfaA+OI8J8Ckql4fVMvjt+wD5Annqx3sBHbBzfEtTZR86FuwY0p65bekrtaL Zdktomes5g3JOAVVkjmICCSJrF7cMDpRWLKtrR032m4Sg6OE6/Svhqj5eSd9uwutdPkN 6JgNmoNJzPfYsK1tBSP74oGf+byew7au2zASVZZtqk4jrnnuQVxI2KXroeLpH6ddOoKj QidQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=qNlMQmwSE98T4yCPWQWMK6fAJhqmgCyt9lYFZQI22KA=; fh=YLXF8NM17zrVzBPzpyk0pNyb23q2ekNt4Ld8txk2lIc=; b=BvB6H4LCmpp1JLLmA4bwLy0G0BynGhqoLmtDFykSRyXHlo5BvgizBxhHCKwX14N9MK AnhOm+cWJJ0kduTzrhrPwvvHc8+otXKF/0DX/aIZ8H8FQ42z5wXkK+tBsY8W2DYQRt2d mefyzVVLsJ0MT58w6WX8gOkEkb4PIP/1minDG0nZoSkW1EDGlAmxJyMIe8vrUdyFgT6X oK1BOGPmnTNNxE54DjFOFRraGxWCyCs9Bju6irPU4NfnCARaZwpsAPA4XJWCK1gsbW2/ dBguhB+Cb9ynz7VJFudPSWmyCXw9cpbZRaNzReOGOSuo5VJ/gvIUTzBJvy/1hCWyOdsK o5EQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=SUBofVAJ; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-59782-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59782-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com X-Forwarded-Encrypted: i=2; AJvYcCXPiyldsYuEy3PmCgLU/bxJx2Kv1iCHZ0QMy+cbYllJnPbWekE/6sEyHJFro7vSZyBvzoIXhgV6nohFc9hm6rSQgeOL/Q== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p22-20020a637416000000b005cfd72d0bc7si2089267pgc.246.2024.02.09.10.50.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 10:50:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-59782-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=SUBofVAJ; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-59782-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-59782-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2FFEBB298BB for ; Fri, 9 Feb 2024 18:19:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4BFB784A5D; Fri, 9 Feb 2024 18:18:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="SUBofVAJ" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BCD9676030; Fri, 9 Feb 2024 18:18:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707502716; cv=none; b=oX/1U8jFqT+P5QbR7L9RBlJJ+gAm0YFNKkacm+wkuW/380UG1QcRb/ygVm40bgNhJPdWtSB4VV5p/x2hrmsmlbEp4eGi/FSWGcUPRRsHklI914xMWSkYe2bvGh7F0x3UFXHvc1im8uSP5q6LgnoDrfWKO7PRE4iaPq4GublY9LA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707502716; c=relaxed/simple; bh=QanVdLZGJsZiEBFc9AV6ugIOyYSeeb2yQCO75yW587Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=klp7R1u6Le1LeJhwXcGqArDOs8XTKSY5QY7US8P47MQXY10KsCUM64EkkirThvMNFpHv3WzB83CleRzu3tIOR6Kj3BWK4sFu2LuONfFI73AsTVr4HxwxSY2Vdqst5f1rfR7Iqin4iM9cPsxtFCCE/Vwf/Ft176cP8KJrofUj8tw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=SUBofVAJ; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1707502713; bh=QanVdLZGJsZiEBFc9AV6ugIOyYSeeb2yQCO75yW587Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SUBofVAJYhLIPTU4SWQQMESBw2uF9Wo+TwBi7QQULgFyvr2J0/R7SsYfupbPU7YWc xb+QlBUWXwy1E4xEll3JGh0z0FFe2gICJfPkPDXopEHVkAPSK/BRC2Qj4SfTgI3aNC iL7MRClT6b6LLv4HOzZFXzU5utyFGKy2XS0JuJHxJn42U0Ur8c85PTGyMHLmCgialG cYXPhiL6bUnKtyFhhOfnRqde1ef6wlwqv7Q2cw59ERcIgXootWZXTN0YKX2hwIXMM4 gGZeoxwrN6gjYrIDVOgpclvQClFy1t49DdLtyL0d+kEOnP6s4su/9qmMNsXKZSM6ip 1XsaEAkp4FjSA== Received: from jupiter.universe (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madrid.collaboradmins.com (Postfix) with ESMTPSA id E6AA03780F7F; Fri, 9 Feb 2024 18:18:32 +0000 (UTC) Received: by jupiter.universe (Postfix, from userid 1000) id 8DD1A4800CD; Fri, 9 Feb 2024 19:18:32 +0100 (CET) From: Sebastian Reichel To: Heiko Stuebner , Vinod Koul , Kishon Vijay Abraham I , linux-rockchip@lists.infradead.org, linux-phy@lists.infradead.org Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Frank Wang , Kever Yang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH v1 01/10] dt-bindings: soc: rockchip: add clock to RK3588 VO grf Date: Fri, 9 Feb 2024 19:17:17 +0100 Message-ID: <20240209181831.104687-2-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240209181831.104687-1-sebastian.reichel@collabora.com> References: <20240209181831.104687-1-sebastian.reichel@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790448368548069958 X-GMAIL-MSGID: 1790448368548069958 The RK3588 VO GRF needs a clock. This adds the clock to the allowed properties, makes it mandatory for the RK3588 VO grf and disallows it for any other Rockchip grf. Signed-off-by: Sebastian Reichel Acked-by: Conor Dooley --- .../devicetree/bindings/soc/rockchip/grf.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml index 9793ea6f0fe6..20bc1f46384c 100644 --- a/Documentation/devicetree/bindings/soc/rockchip/grf.yaml +++ b/Documentation/devicetree/bindings/soc/rockchip/grf.yaml @@ -66,6 +66,9 @@ properties: reg: maxItems: 1 + clocks: + maxItems: 1 + "#address-cells": const: 1 @@ -248,6 +251,22 @@ allOf: unevaluatedProperties: false + - if: + properties: + compatible: + contains: + enum: + - rockchip,rk3588-vo-grf + + then: + required: + - clocks + + else: + properties: + clocks: false + + examples: - | #include