Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp329165rdb; Tue, 23 Jan 2024 00:22:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IF35Psi+inMhDoaXf9tYiMcl1nX7p+ZW+igwy9Ab42KGiPKQpmQ2poIIZ1N17GxvlqgAmA4 X-Received: by 2002:a25:8446:0:b0:dc2:565d:e718 with SMTP id r6-20020a258446000000b00dc2565de718mr2956421ybm.31.1705998147164; Tue, 23 Jan 2024 00:22:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705998147; cv=pass; d=google.com; s=arc-20160816; b=Rwt7f/PTGofUCouGuxFlb+3Lia9OSnxRzoClpHix++CKZkgZX9oz3kmkpdp30VtuLU GvfcfDELMUWjW4WGlAErAjCltPRUIK+yqgMtX3FvYq4IyPNH4awti6uelGpxc+I6xSXD JXRNDWZYv+4VD9cspLQ3bJ3nKN3Eu3J1s6BC2hz1DYfjlONUSZk0a/j0chhHL6C63kkr +kHRwnwmba8gT6k2VwA3cDnGgSAKa63C/8yks2Ie1Mpd49UwMIsqCMKnZ34Z8hU4+97n 5tzbcPrup78fmTjUxmQrcco1+gO3yVVMf/pbgOv3wAqz3xH6Rn/DZbzSpmQsl1+hEbM8 kb7w== 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=H0AEjAgTGGFMtUqCGTJO2UhVRa/rSiFP8yyo/+7uwmo=; fh=CQPSOQ60ef5DHMqoN0DAsvcLhfaJ1tE4Y2sIcTYRMVI=; b=eQY23dwcCIHKwfDwmjqHPr2hniOg3i2i7ljPdmMt0W8USpHH+qlExdaBK14NnYnl8K Qubq3jWwJV48IsngQfkFsqNNKHMZs1Pp0hvDQluw0n62MldYS9k4NUD/Qg2t8CSjGJF/ YyjOyeo7GWVSe72vhk5dm69WcNLPaHvlBj62F/tVOPpM1mfI/GiWE3gBultD2a5JQMC+ DTf1chSUNxQf/rc6HSjW8Un+nUehOAyfLPz0WfzMXNSZ/sa3dIYwwU98zXo4cblVA7Wm 2Za2vkwyK/EUr1iPXxdWEN+JimFRXDH89OqXLLs0cXHPzgaqCPIkJeVB9vULVlXs6zx+ DOlA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=khUXRvj0; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-34884-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34884-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id f23-20020a0caa97000000b0067f9be29aeesi7149670qvb.448.2024.01.23.00.22.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 00:22:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34884-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=khUXRvj0; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-34884-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34884-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D928D1C222D2 for ; Tue, 23 Jan 2024 08:22:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E4F0457327; Tue, 23 Jan 2024 08:21:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="khUXRvj0" Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66FBF56B73; Tue, 23 Jan 2024 08:21:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705998109; cv=none; b=JoFUs0n7zC9OEPnhzVG8AqCbAautcuOevJ4mvB0tFsWSOikErzHVLIrGJ4zNqsl4HostchWI+ZMzYkTwLNkHA1IoGh3K65PgdEJgB+0tfDQv9TIFajRTFZwJtEXH+UVEK86jg2+IZTokVcP18t1QMDl6u0/ICuCzHMhDpEjihp0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705998109; c=relaxed/simple; bh=LkV+gvkBqIyRQD5IKrHVX65y2ftsGru9KKJxK5J+9MI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=OoMuSFajIHpJQtO8mDKDMys8ZBPi5KX43lX96hAB5Ju0zpn6pqhXiSnNF4C/53irfbn2BtKD/v6CXzf7Os9UHL/qU8JoNxK8CkPfUdJuc/35NMXg1WmKPrh0FRhDBuOH8/Tn0vhI3wK6UVCbV/hxPvWn8g/u9n08XXvrHQ3baLk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=khUXRvj0; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-55a5e7fa471so3519590a12.1; Tue, 23 Jan 2024 00:21:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705998105; x=1706602905; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=H0AEjAgTGGFMtUqCGTJO2UhVRa/rSiFP8yyo/+7uwmo=; b=khUXRvj0crHVe91bvzQjfEizc8vxuXjqyxAgxD9ntm8IN1vUw6Wgv8/uOg89+RNqOt 9TzWSKcpmCphOZw4w1hHMzPs/w2VlKCDDxgxlq1HCt7hLvbJ4aK05j0th3P4WQF4H2ik JGJZ1p/OA5M0Ydey8I5fV9MSg2k+oWW6/wLOh8wncL/TD0+6PVfu1EY9QCg8AxInlclA 0YX4z/nOIFGGlVE0LxjvfQplIfTlmRlOXpAzdhym8tG74eBvB90E579/xml/AOFz4AJh l2KZI4nQrySD7+5YeBIenN43NzinvgPP2A2O3PedFRFO+lOu/gVweTTD3lUn8a9fBiph 5c8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705998105; x=1706602905; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H0AEjAgTGGFMtUqCGTJO2UhVRa/rSiFP8yyo/+7uwmo=; b=Hkvsg2QjMDKpQclKNeChSzNgJCWBR0kgNO80j87UlqjE5grveLPYjRQ7lpa2mk5vRn LXoOJeBpfN7V5Bpk7gib6luuOGhGrqRz3wd/qJ7WuLtyZ3kFk7LcU7V1DYJnHVb5TK/T TnMvmtip5UksB51noh8gl9NlUIhhul/n1WcIZArMHrzPnyr6NaPS0btH8z5P91TE+Rxm JvCnF/Yf06pwaEGGZ+hcve4VFmvZjiSErwXMUP4m3JB8DYDWSuccsHzIiEtnhe7cy+PC QjHq2tmEmCTMqoT5BPO8Mu4rijpodd1VMGbRuuxrfvbTnHMzm255N/u8MJuHbdZ7f0tw bf2w== X-Gm-Message-State: AOJu0YxI3FqM8dvNkEMiT7TOsm80TBq9/PHyLAxWBDb2OCtaeJ0JrPcx TWARHz0U+RwGVrR/ciiSdY3i5+O7EeSmyN6cBZI5MeODnYQIPcSR X-Received: by 2002:a05:6402:40cd:b0:55c:876c:ca06 with SMTP id z13-20020a05640240cd00b0055c876cca06mr298074edb.29.1705998105575; Tue, 23 Jan 2024 00:21:45 -0800 (PST) Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id u11-20020a056402110b00b00558aa40f914sm14810435edv.40.2024.01.23.00.21.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 00:21:45 -0800 (PST) From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= To: Russell King , Daniel Lezcano , Thomas Gleixner , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Matthias Brugger , AngeloGioacchino Del Regno , devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= Subject: [PATCH 2/3] dt-bindings: arm: mediatek: convert PCIESYS to the json-schema Date: Tue, 23 Jan 2024 09:20:59 +0100 Message-Id: <20240123082100.7334-3-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240123082100.7334-1-zajec5@gmail.com> References: <20240123082100.7334-1-zajec5@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Rafał Miłecki This helps validating DTS files. Introduced changes: 1. Documented "reg" property 2. Adjusted "reg" in example Signed-off-by: Rafał Miłecki --- .../arm/mediatek/mediatek,mt7622-pciesys.yaml | 47 +++++++++++++++++++ .../arm/mediatek/mediatek,pciesys.txt | 25 ---------- 2 files changed, 47 insertions(+), 25 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-pciesys.yaml delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,pciesys.txt diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-pciesys.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-pciesys.yaml new file mode 100644 index 000000000000..7340a2512402 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-pciesys.yaml @@ -0,0 +1,47 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/mediatek/mediatek,mt7622-pciesys.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek PCIESYS controller + +description: + The MediaTek PCIESYS controller provides various clocks to the system. + +maintainers: + - Matthias Brugger + +properties: + compatible: + items: + - enum: + - mediatek,mt7622-pciesys + - mediatek,mt7629-pciesys + - const: syscon + + reg: + maxItems: 1 + + "#clock-cells": + const: 1 + description: The available clocks are defined in dt-bindings/clock/mt*-clk.h + + "#reset-cells": + const: 1 + +required: + - reg + - "#clock-cells" + - "#reset-cells" + +additionalProperties: false + +examples: + - | + pciesys@1a100800 { + compatible = "mediatek,mt7622-pciesys", "syscon"; + reg = <0x1a100800 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,pciesys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,pciesys.txt deleted file mode 100644 index d179a61536f4..000000000000 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,pciesys.txt +++ /dev/null @@ -1,25 +0,0 @@ -MediaTek PCIESYS controller -============================ - -The MediaTek PCIESYS controller provides various clocks to the system. - -Required Properties: - -- compatible: Should be: - - "mediatek,mt7622-pciesys", "syscon" - - "mediatek,mt7629-pciesys", "syscon" -- #clock-cells: Must be 1 -- #reset-cells: Must be 1 - -The PCIESYS controller uses the common clk binding from -Documentation/devicetree/bindings/clock/clock-bindings.txt -The available clocks are defined in dt-bindings/clock/mt*-clk.h. - -Example: - -pciesys: pciesys@1a100800 { - compatible = "mediatek,mt7622-pciesys", "syscon"; - reg = <0 0x1a100800 0 0x1000>; - #clock-cells = <1>; - #reset-cells = <1>; -}; -- 2.35.3