From patchwork Tue Jan 23 08:20:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 13526950 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 8FD4AC47DDC for ; Tue, 23 Jan 2024 08:21:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type: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=nhtLzN2peOVLFpsd1om60a/LkFzwt1x9izkXcUJXVvE=; b=yfEAAFNiRDKDX2DfovvEnnDdHs hvVGUXHDLhpFw3SWYUH5Tc53vBRPt8W8OW6RiUaInhriLGlrGC5gnbCS0kntTT1J9OiNBRSyuUl3W T8ZilXe2B04cluyjrWAfhdUgGz8j2dHQHEo//q0BrGwvmgbycqBbLnSH+gfZjdf7rQz9UcoxPwESR 1w8zbamwRfAygpml3mximWuCgfto6EoAAwfuVPF54i0fo4rcdzvfijBGkS4xVh+L7KjHyh2jwHNAR 6zZAuHwH2QrZTA+ymCRRvG2lInqXAwSVthnOKJhJ/u+Q7YpX/qfnuWGb9h+/c+ZkuvkHFEDbDl9GO nEyhYWMQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rSC2e-00FWec-12; Tue, 23 Jan 2024 08:21:56 +0000 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSC2W-00FWZL-0F; Tue, 23 Jan 2024 08:21:51 +0000 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-55a9008c185so4436640a12.1; Tue, 23 Jan 2024 00:21:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705998103; x=1706602903; darn=lists.infradead.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=nhtLzN2peOVLFpsd1om60a/LkFzwt1x9izkXcUJXVvE=; b=HnW1rNytkfdJUsVBqIXw1Z6iyS6UAutZlwXVjg9aKkYShgVmQJSPoskHnxMrTxdZ3f r+7Ip6RqFW/n7lASgNzDkiZ/bGiXHWaVRHKlBp21WW1u9R0cgT9F5x3pjGCYQ5M4dx5X 7HFGWgLrZL6i/CIJ3Yn0fV4+mnqZOmMX2jJq0V6TvPKHbvcu2gofl3UIp41nACeg/G6b ri6fO28+YrKpj6X1REKH7ggQL/P28yOpBe7Z3gcWhtA7zA1uG/8gZ+tize8qV6xR1C5W yl8T3P3qhdf6P5+RDkqpnfTud0nCrfG5FM1odxinYQFpfj+v5pcnErRIuwvUu+epNjKJ 1sWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705998103; x=1706602903; 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=nhtLzN2peOVLFpsd1om60a/LkFzwt1x9izkXcUJXVvE=; b=uOoh5FxVF4aBipkBg2r63sc+VmnWgffESZSpxUsZS+n53qCMRbpxf+zVge5yjDz2kD JAqwiPt4VG2a1SS4tMYf9Z7iVRlYiR5xiHynWq1gSfQg2RNkADqIKKefagPG5BSvkq7s /zCClLXGbIp6h9knfYfuMGTuZRvP2l3HlJo1DLCyBEKx5Y5Fn9bd8Wlm8q6plF4Op46+ Md4owHApiy7Fgv/COgtOCspdZvtGS4cHySbTPOG/AFplYig1UYLz6uYFNvWcCA1uQvc1 yEqVyazi3JvYXcSXisKTPv2rV3pAh8EAC2HbxL75FIfygZWVnGGwlp84+f/8ULQNE3CG kx9w== X-Gm-Message-State: AOJu0YxQnBTNJ1e503YG0YJT6rpFfKPFZGiTl/OSY2ZUtWKQAMxBkl/D LGQqvXHgCUXnQG4WADt2c3xd/oM3zWd2CKuIkBkhhssSAEeaBkcC X-Google-Smtp-Source: AGHT+IFeT+fo7zdhLsWc7f2e9OUeawo1w/aO0aT4blSPx9Q4BKgzyaYapF2Et1MrqUvz7urpg1k9LA== X-Received: by 2002:a05:6402:268f:b0:55c:828e:4bfa with SMTP id w15-20020a056402268f00b0055c828e4bfamr715282edd.12.1705998103286; Tue, 23 Jan 2024 00:21:43 -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.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 00:21:42 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= 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?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH 1/3] dt-bindings: arm: mediatek: convert hifsys to the json-schema Date: Tue, 23 Jan 2024 09:20:58 +0100 Message-Id: <20240123082100.7334-2-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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240123_002148_112559_6FD9611E X-CRM114-Status: GOOD ( 16.43 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki This helps validating DTS files. Introduced changes: 1. Documented "reg" property 2. Documented "#reset-cells" property 3. Adjusted "reg" in example Signed-off-by: Rafał Miłecki --- .../bindings/arm/mediatek/mediatek,hifsys.txt | 26 --------- .../arm/mediatek/mediatek,mt2701-hifsys.yaml | 54 +++++++++++++++++++ 2 files changed, 54 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,hifsys.txt create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mt2701-hifsys.yaml diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,hifsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,hifsys.txt deleted file mode 100644 index 323905af82c3..000000000000 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,hifsys.txt +++ /dev/null @@ -1,26 +0,0 @@ -Mediatek hifsys controller -============================ - -The Mediatek hifsys controller provides various clocks and reset -outputs to the system. - -Required Properties: - -- compatible: Should be: - - "mediatek,mt2701-hifsys", "syscon" - - "mediatek,mt7622-hifsys", "syscon" - - "mediatek,mt7623-hifsys", "mediatek,mt2701-hifsys", "syscon" -- #clock-cells: Must be 1 - -The hifsys 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: - -hifsys: clock-controller@1a000000 { - compatible = "mediatek,mt2701-hifsys", "syscon"; - reg = <0 0x1a000000 0 0x1000>; - #clock-cells = <1>; - #reset-cells = <1>; -}; diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt2701-hifsys.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt2701-hifsys.yaml new file mode 100644 index 000000000000..7c7b7b7b1142 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt2701-hifsys.yaml @@ -0,0 +1,54 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/mediatek/mediatek,mt2701-hifsys.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Mediatek hifsys controller + +description: + The Mediatek hifsys controller provides various clocks and reset outputs to + the system. + +maintainers: + - Matthias Brugger + +properties: + compatible: + oneOf: + - items: + - const: mediatek,mt2701-hifsys + - const: syscon + - items: + - enum: + - mediatek,mt7623-hifsys + - const: mediatek,mt2701-hifsys + - const: syscon + - items: + - const: mediatek,mt7622-hifsys + - 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" + +additionalProperties: false + +examples: + - | + clock-controller@1a000000 { + compatible = "mediatek,mt2701-hifsys", "syscon"; + reg = <0x1a000000 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; From patchwork Tue Jan 23 08:20:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 13526949 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 78E74C47258 for ; Tue, 23 Jan 2024 08:21:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type: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=H0AEjAgTGGFMtUqCGTJO2UhVRa/rSiFP8yyo/+7uwmo=; b=MKeUnlhZq7QpFAr/0Vmg8XwsI1 fx5g7OnTHT8qYO7F8NQRNqfH9F0kX+SBPOWXxDXHXSKPEmiuDyvvj+RjiPykLCVd3gn4XrO8THId1 VxEee996sTlKMr/VhjVgdhTlCaXegZ7sAZPDA4lvHJndRD0u/1oBelCZmqdfi7R6IecudvzDDjzZO TaVo5HEViQHPToDMgO3OzWKMVL3uS/UkCCRqjqVvWTI5Xq1Ig4E1+4STqHX6gyno6QRuwyykK/od8 eVdXqhWsqJLLetKHql95zgtCiEJp9pZ/Bqam1hBHBiPbGSvGDmKvEzMMgKpWv8Djns9YWWpTw9SnD 3dGPXsrw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rSC2d-00FWdu-11; Tue, 23 Jan 2024 08:21:55 +0000 Received: from mail-ed1-x535.google.com ([2a00:1450:4864:20::535]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSC2V-00FWa8-2k; Tue, 23 Jan 2024 08:21:49 +0000 Received: by mail-ed1-x535.google.com with SMTP id 4fb4d7f45d1cf-55817a12ad8so4424380a12.2; Tue, 23 Jan 2024 00:21:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705998105; x=1706602905; darn=lists.infradead.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=X+serWny+Lk7kUig6FO2rbQA/4FgXEEcVWEXOgXmaYCUKg2bTBLo3IvrAntMSqz6BH YSuLA40Y4QAVio0/Vqhd3fIPi5919QaVh8s68sz0Dtaz2mYk7gBYzde6WOULTr2YNlKr SCSSdOZlmebmOxFSaaBDXW+xfJGrOYVG03hofXQ1++/mrgpujOjxrdTl2Cmg6lqtdXCl 06TGp+wJ+JZXNc9WsyxJk0pAc8+GpXihs2dBGQtaZOz6kfG4KslfnV5MP+ziSWdNdWsI oB5z7IUb8BuWG/rB72J9FvhWag9fKjgpCmwmabjzcAmnqMUlRlM/ry2XwTYjnXezEnxr /spA== 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=te+LszCggN1t5DD7pP6MRcU6AsN3OFo47Lh9PYs6RGZz2m9TVEdWaBVpTbQlH0355l VekdDRmv8LPf/MiXh/fXvMeKmavvxtj3mCOj3UP3RG7DbWKJbGMqV5gL2yn+vJiNEUSK 7VIHwHrvXDNK5Dh45w9ybpvpS7en/zvL90wLhnGcYNQyCafcDhdpdcaGxs8MLpKhHm8g l4JpZji+flZT0HIJZ245eJ0/tX47YoOhYtOB6EDOAcfz6dToXy6Xg4ylEgqhaFRgcolt awSM8QT41xPoLrv4X7596aFjoIAYutaX/yPq4lAX4nHMCtlpLpq3T/Dnkt6IT86nA32z 2UHQ== X-Gm-Message-State: AOJu0YwVrNJ+L/kfX9Jj49jHhJxCV/L3Oh8rl7cWnDj9Lto8Tq28lgd3 lbTbmwSw25GxGSlt15bSKQHrUjBD7hVZBXWLjwgU1klyHWAgpclk X-Google-Smtp-Source: AGHT+IFqyvfBHcMnmtge3pmJlzokQ72yrfVfJpGffdlahMNIUJ7oKdfR2E7/e4UDrY5ANyfC8Q3ESA== 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?b?UmFmYcWCIE1pxYJlY2tp?= 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?b?UmFmYcWCIE1pxYJlY2tp?= 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240123_002147_886724_17B54EE9 X-CRM114-Status: GOOD ( 16.84 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org 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>; -}; From patchwork Tue Jan 23 08:21:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 13526951 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 8D645C47258 for ; Tue, 23 Jan 2024 08:21:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type: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=r9YKyvRBtWfutykiie3fQAavhzcW2AS6pKksKHu05ys=; b=alQ5E6zXTJURvEh+hDqp1156tM /IObCse6ixfC7cxFsP4DPmNz4l06G+VjN8YwIzPDsS3lFRcsn7l29QDjWlvunch3T6vytBB3x8yOa iHyM9I3H0xrOjCyDVBFnu5vgFi6v0EVtaCcpI1VERA/lJOSF8qXsudyUqtmgkCgq1W3GZWDSV3RRf Iy1s1peEemYy3M5zSxHG9uGFQzEC3EYxFMH8LGHo53OxDSsFQicj6h1d+kzUdu39lODJWNjBHHtHZ nRhieNimq2iaDFqbX17bqVchYKeyVx0ZRzraVVM6khGdhXZQ7/eDH+zjfGzKq931I/0MUH59WU8GQ oRrmkOeQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rSC2f-00FWfO-0u; Tue, 23 Jan 2024 08:21:57 +0000 Received: from mail-ed1-x52a.google.com ([2a00:1450:4864:20::52a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSC2Z-00FWaW-0q; Tue, 23 Jan 2024 08:21:53 +0000 Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-55c7540e02aso515968a12.3; Tue, 23 Jan 2024 00:21:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705998107; x=1706602907; darn=lists.infradead.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=r9YKyvRBtWfutykiie3fQAavhzcW2AS6pKksKHu05ys=; b=kKCj+Swy3pMnN5ssh5ZBSr1XEctCFijguYSrHXhMdlK5kvA0VvU+h9X1BV+pOL4F7J MzAM3bqYgyOB9ihIItLMB+EKf+FTlRkht1RcC+fsinD20Zsq1QH65N8wJngSJDMbLpk4 DiRI1FfgPMVm/ZvBI0RjFPot8e3o5u4eEapPGEivk4xGxouthGmmEa0js+fRvkQ7yXBk Whv7n9GL6SiKTy6vODyd/b60t7WAWv6q44Wb2q4hkpix3cRG7OnZ9K8nYFYzuV4LNW+3 eYivrGz8hGed2zDxtAnOQw5EGed1MRmEFvZAwgNR3HKijt39FEhCGeO3wGA22HpLoq8s N5SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705998107; x=1706602907; 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=r9YKyvRBtWfutykiie3fQAavhzcW2AS6pKksKHu05ys=; b=cQ7kMcgZ6ypMXXkURyW7QG+nwYz0MM9Xk1IIyk65WH1cgchvLvwlEYhiynhV7PZVou 9sNyeAdifKbC2ie+Z+TDKN2m1VIyazKo3kR8cwzRyDcNsksB1DNZDH5Usu3arDvg0Dhr EXC8RIamKYqkjq/Mz47yY8U932MGZ3jp0X16C75ON+dDXpn8/9ZNHDgm9+7X93GIhJle PdyiIOQHxhHyVxkzENJzsj+j6DW5T4RqWjTGIoBDbz3BMAPfpUFclhxATUADBuStZps8 FJ0TBWEULtPnGhwuhZjjoQaE/pDjw6x7mzGpdz4ccMm1zpi7adwNV/3SFS01g+pEifET B0Rg== X-Gm-Message-State: AOJu0Yz5ysSdOeLCeYuRWw+1NAt9turbhUXQEoiDfb4PIWL33UOlVSbm 1WnnIf8hXQHbfNq3O88vh7PhMEdZdeaKCIahZgLtTnDx2W7LBBWg X-Google-Smtp-Source: AGHT+IFqBjCm38TDwMPz7ittv6kiKxIxDBv5sr4avSsf45RUj4/Dfsfek1x27WclHwGOxCYFnKSAiA== X-Received: by 2002:a05:6402:290b:b0:55a:7191:b301 with SMTP id ee11-20020a056402290b00b0055a7191b301mr681287edb.48.1705998107113; Tue, 23 Jan 2024 00:21:47 -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.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 00:21:46 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= 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?b?UmFmYcWCIE1pxYJlY2tp?= Subject: [PATCH 3/3] dt-bindings: arm: mediatek: convert SSUSBSYS to the json-schema Date: Tue, 23 Jan 2024 09:21:00 +0100 Message-Id: <20240123082100.7334-4-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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240123_002151_301890_B2F1CAE7 X-CRM114-Status: GOOD ( 16.74 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org 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 --- .../mediatek/mediatek,mt7622-ssusbsys.yaml | 47 +++++++++++++++++++ .../arm/mediatek/mediatek,ssusbsys.txt | 25 ---------- 2 files changed, 47 insertions(+), 25 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-ssusbsys.yaml delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,ssusbsys.txt diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-ssusbsys.yaml b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-ssusbsys.yaml new file mode 100644 index 000000000000..7a5343e4fcf4 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/mediatek/mediatek,mt7622-ssusbsys.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-ssusbsys.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek SSUSBSYS controller + +description: + The MediaTek SSUSBSYS controller provides various clocks to the system. + +maintainers: + - Matthias Brugger + +properties: + compatible: + items: + - enum: + - mediatek,mt7622-ssusbsys + - mediatek,mt7629-ssusbsys + - 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: + - | + ssusbsys@1a000000 { + compatible = "mediatek,mt7622-ssusbsys", "syscon"; + reg = <0x1a000000 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,ssusbsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,ssusbsys.txt deleted file mode 100644 index 7cb02c930613..000000000000 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,ssusbsys.txt +++ /dev/null @@ -1,25 +0,0 @@ -MediaTek SSUSBSYS controller -============================ - -The MediaTek SSUSBSYS controller provides various clocks to the system. - -Required Properties: - -- compatible: Should be: - - "mediatek,mt7622-ssusbsys", "syscon" - - "mediatek,mt7629-ssusbsys", "syscon" -- #clock-cells: Must be 1 -- #reset-cells: Must be 1 - -The SSUSBSYS 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: - -ssusbsys: ssusbsys@1a000000 { - compatible = "mediatek,mt7622-ssusbsys", "syscon"; - reg = <0 0x1a000000 0 0x1000>; - #clock-cells = <1>; - #reset-cells = <1>; -};