From patchwork Sun Feb 11 21:39:23 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: 13552629 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 ACF13C4829B for ; Sun, 11 Feb 2024 21:39:48 +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=FYKNeKCJBPMaI8CwH2vaV/FLvsnFOMIKN5WCojMYSS8=; b=cGwknEGiWcK5WrPUNFN7STS5LH 0KO1cYZGsaqGIyWm9nYmCifP8okCp1I9qKbzn1Nd0IXTfwRaEEzTwUXSGWD8I96sFSK3UUrhuN8ME szM3+wNsEOHoePy2/shwNyGI67AdYdgoMU94Mvzrm5yuRvFnjCfhc64dLgZjBwKL1bfeiCWLL6AMR yct1b6DrkELFPP4NfovNZKOnNIlT4U/TlnEjWFATMP8FhBligdAAFWwDKGN5hRS5Cd/OUNuKnl7TS PgM0cwVSdo7SArIKnuUnTqsSOOG4FvvmkLrltTZm18KD2KE2CKXXIPw4TPl8gT7xcad7Z82H6cS8W GcocgUqw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZHYC-00000003M2v-1FW2; Sun, 11 Feb 2024 21:39:48 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZHY4-00000003Lya-2R8T; Sun, 11 Feb 2024 21:39:42 +0000 Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-55c2cf644f3so3293875a12.1; Sun, 11 Feb 2024 13:39:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707687577; x=1708292377; 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=FYKNeKCJBPMaI8CwH2vaV/FLvsnFOMIKN5WCojMYSS8=; b=O438dKDrfhcdDHVbr2FgXU7hXTp9QvHKhmFeiTfVmmqx9CYAaC5kaabG1Lsdd8beeO hciAP358ews8zKrb9uhXBrYH3wET3oKS4o7asITrPfNYyt0OdtBglSutRzKgAV6lT8OM 0rZO4SSQ3+IesRHrIMIS4XJVxnCCIxueMfjtxMJKu00EPR8K3sYFpw3QB2c+HMqimJdb Bag1rabRd5UXiwQ8QyroL9PHzFKWQbQIeKjz36fk3YEravy56m1IPyc7oGB6iMeov8zl A0BISDE7XsH4Pd4wtM3UQ9ZKBOajo2YxsM5uFYwjux6FQDAZOnNKlfLWLTjR5HZ4WqC9 6Bjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707687577; x=1708292377; 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=FYKNeKCJBPMaI8CwH2vaV/FLvsnFOMIKN5WCojMYSS8=; b=DxwsaePdEO/mEuQmt6FQPMKEwLHS9ztbbfEbwhBQWCB2LoA8XSn2NH1/XFDnulZjNj 1sYTtOYlDUIAVFxnSNPEiecilstC/vcJjHlOVsvpSCY6M/2eCZhhbgq3SX3OVjhCAAka nTAJaq7vmaPqqHnSCDHRMxlYrni21WkCCHXYlhK3flue3eqwiEy2TC0k0KAH0uPddyNr lXF4dkZ57FXCjA3d5LJwXXhNFVgD3t7clskQ69GVMvv6Rl9RSW1tGbaYo+IeW9LBbsle fUZHFWIi9El8zinfUsL4o+WhQ/ZfFVWzcfkEr0KWKEeBxC0dlqu4QDA5/khO3umm12d4 ca+A== X-Gm-Message-State: AOJu0Yzn/fzuBDUajXtvUO77L9uzpBHKRC5lMNTA9h/Jiy06fKAUz49H H5bwXua3KrQD+NxGUSbHVK6z0k5hVgeDchAGoUoOrT7Pz3VjMsch X-Google-Smtp-Source: AGHT+IG/5cwW4J++14BxmVUMP/jSPxcWcunujb3X7L5lX5vr/5UVEMNdWGmYn/0HIs0mIWIGY28X5Q== X-Received: by 2002:a17:906:6893:b0:a3c:1046:93dd with SMTP id n19-20020a170906689300b00a3c104693ddmr3728410ejr.31.1707687577017; Sun, 11 Feb 2024 13:39:37 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCV6ocTTNt8sqAUamRUVDpcCivKEIApnJS8hWD/Vek4rtQxvvB44hZTXdvCDVGneRzKAADdJuCqiicf1wDB0O76lPYhakYcAGRMaXzguhihVMA+DxzBeJ6eKsX0WZgzvYTG2yYklqNZx4M2CwU255qCoZEDL8CTb4gsuGxBDdC2jC6sQbUlhua9RiEkt2r6YOZi+f7tiXNs9LcgZN5vODoYSFv+OGmgZ7wkOE1k9jfme5ziCDQcdpPcIlXtIWcL7v1OAIbXWAVPWBoxBmJSxsbmC0DA6bG16IdgBcuxkTNqrT5uyqYaR8M9fOjUHqrCo1xzTwLXcUGDBwXrsAQEqN5VMomFoVa+b3q3owS92waYqZPQJahBaleT6oBnXnw8kTuMZRQGRqAUHx6QAIDRGCs5WKiQTDQplBlgGh/UByLYCiULwwSJixEIPSrSvMQT6NE2urS4CV636u6grjsBq2Heg/G0sEIL6N7IQy0zn0Hn9XnKkaE/aDdQji9EUxz/vhN8AueevxJJvf+otcLFpuhVjw3skv7kZQ+M4YKavqxeR/DyAEQ== Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id ps6-20020a170906bf4600b00a3c66ac512asm1206344ejb.214.2024.02.11.13.39.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 13:39:36 -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?= , Krzysztof Kozlowski Subject: [PATCH V3 1/3] dt-bindings: arm: mediatek: convert HIFSYS to the json-schema clock Date: Sun, 11 Feb 2024 22:39:23 +0100 Message-Id: <20240211213925.18348-2-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240211213925.18348-1-zajec5@gmail.com> References: <20240211213925.18348-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240211_133940_649271_73386C47 X-CRM114-Status: GOOD ( 16.20 ) 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. Dropped "syscon" as it was incorrectly used 4. Adjusted "compatible" and "reg" in example Signed-off-by: Rafał Miłecki Reviewed-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno --- .../bindings/arm/mediatek/mediatek,hifsys.txt | 26 ---------- .../clock/mediatek,mt2701-hifsys.yaml | 50 +++++++++++++++++++ 2 files changed, 50 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,hifsys.txt create mode 100644 Documentation/devicetree/bindings/clock/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/clock/mediatek,mt2701-hifsys.yaml b/Documentation/devicetree/bindings/clock/mediatek,mt2701-hifsys.yaml new file mode 100644 index 000000000000..9e7c725093aa --- /dev/null +++ b/Documentation/devicetree/bindings/clock/mediatek,mt2701-hifsys.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/mediatek,mt2701-hifsys.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek HIFSYS clock and reset controller + +description: + The MediaTek HIFSYS controller provides various clocks and reset outputs to + the system. + +maintainers: + - Matthias Brugger + +properties: + compatible: + oneOf: + - enum: + - mediatek,mt2701-hifsys + - mediatek,mt7622-hifsys + - items: + - enum: + - mediatek,mt7623-hifsys + - const: mediatek,mt2701-hifsys + + 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"; + reg = <0x1a000000 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; From patchwork Sun Feb 11 21:39:24 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: 13552628 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 4F0C7C4829C for ; Sun, 11 Feb 2024 21:39:48 +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=Fm7RlLurDkB9nfwalxlLQ2JW0yHxYihI8gdZfuipTWc=; b=VXDgwi6LG90Gz9HNND+2VpmBuY 4hQhljUnqCtf/oGXrCogNMs84G+8BPtf4KywVPDq25arWD6Nr8WbmFP17CO/AeS9gzPQAHGDDPzG/ uuRyHVmbzMiwKw6i8KyZ4uLgapxjD/K/VXaBC2PF2R1+GO24nnuntt0a/bMaxDANyzzKoB3z9vVh/ R3B2y6DCzhj4r1fZH0fWVWq2aroXwDyu2JShaIpfb82VfdIV8LinlSMYURtQFoPVUDn1WpSPrMaJe BwHs0kF/3/Bfxks5fpgtU1V4LH/F3Qd7JexIVcvQ76dL5H8JNkf1OlV+W9t75ox0LqAvMtDss7vFR qT/A37sA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZHYB-00000003M2d-3gtC; Sun, 11 Feb 2024 21:39:47 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZHY4-00000003Lyd-2pNt; Sun, 11 Feb 2024 21:39:42 +0000 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-a3832ef7726so293588166b.0; Sun, 11 Feb 2024 13:39:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707687579; x=1708292379; 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=Fm7RlLurDkB9nfwalxlLQ2JW0yHxYihI8gdZfuipTWc=; b=UjFzX0HqEfwPgfMWup4m1CuKIHrtbEc032xHNnNsgU9d7ycO1W+WRW31Bal7bC7IIM 88sNZbTEj5tcnOfuWDKSrIBHgYLzBsdaiiWbgxj0LswNWzd9vuqqFqgtnn1T8h9l+yrD gw0O1YXgAnTJFnl0DfSgmV/Z7wNmreZ9xGIq1VkRKr0T1XRW/b6iGV9uqUFPNBGChj3e KtAZMcq/dQDKWavimC5v4OaggCbQgGrTdm+8Cnm/F/IQnWnLl5Buqtuadb0L6J8ldr4W e3oC+1CeNjIxzV1fqpHFz/OXk/wkmiWUbi50O77UZYyz6VVZdMVfhZ53Ipt9jjm/egV2 5X8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707687579; x=1708292379; 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=Fm7RlLurDkB9nfwalxlLQ2JW0yHxYihI8gdZfuipTWc=; b=ZXtHMFwnoJdS4Ayrm2TOKY3uatLzrqDdEcT27tzbQ/SMcjZngNlQxyE6HBJgCjedAI uHOgCLWssfeeuoY7fGwaapgvk530MwS0V19e+0NxHSP6dqqmycoT83XGRui/nFLCZhQX PCk8Zb4koNGTSJi4vuWpzAqcIM1OjpsuU1hYHygjgDYoAxel31N9bGrnivQPqNm+7sCk ib9Ev71qWZFhNyUCltsgm/0L+I38xs8hWn/ozq6tCuAuWIxzjbt/cER2neIQt6SVYzT0 qcrb4DsEyT3JnYJoFsvzMryRHCPfvhs0sf4Z3glkku2WsxbO+uBxJ/0Xv96qBnlvvqHD zBUw== X-Gm-Message-State: AOJu0Yy1LpCG+gFtO7UTaQwSQXHjGhaqccuYh921RVrzO8RQRI2Joaaf 1LYMLCww1bnVjxVhFYIY4joAGzkzhyIYyU6ZxnH8DhHd+SUnwWYk X-Google-Smtp-Source: AGHT+IEWEGxiqa0nVStbul3b5PFLnalXG65PJVNIAUyBMQG81zfzM8hx+xJmLTO2HQSakmnaydRC5A== X-Received: by 2002:a17:906:230e:b0:a3c:a655:3a3c with SMTP id l14-20020a170906230e00b00a3ca6553a3cmr412496eja.16.1707687578712; Sun, 11 Feb 2024 13:39:38 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXG0zji+/RT4h8jx2M6HlPz8tko0mW5GDcJr4n0rfjWvJlJE09IZcQmaTxmr/wKnu5NQV4S1dFz5Fc2pdhn9vFQ5rymN4bSyZeVpF/vr7svVGRrbOOyCPqAAf2M4RzqpJeV8sQjIyiw96XXVi5axlqxOIswoti1Ss6ZIAWdy5v1q4c6R16uy2YkOm+p0c7hEZpjjvBzMQcfWTFTLUa7W2d7XyC0MteXTica8HOk8yDueWGxhlWD6+Wx/b4BdWJottk7DDlR9rCivSlbVuxgRNFyHFIDvLu4410sunh8VoYifm7XgglF/Qjn6YA8qYzJLS+I8ZtwVVZPPC8f+Vpiftqbs1JeAIkW6jZYSgAntktsllWDMfCSn4xBG9ZlIAhQny4WnekE/1MWlAfOeAsoJVcD1/64hPzgDDvLN80F6O8w8/oxQR9I5BwT+Qs9qIPbD7t+phL++ZJeH9DGCohTscDu+mJdS2+dG0PNt1hH0GE0R5w7hSxDmzKImjEIw16riFekyaEyKDQERRbJpJu/f8rEfIv5YlmGaPnGZQvizx2orwLODw== Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id ps6-20020a170906bf4600b00a3c66ac512asm1206344ejb.214.2024.02.11.13.39.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 13:39:38 -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?= , Krzysztof Kozlowski Subject: [PATCH V3 2/3] dt-bindings: arm: mediatek: convert PCIESYS to the json-schema clock Date: Sun, 11 Feb 2024 22:39:24 +0100 Message-Id: <20240211213925.18348-3-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240211213925.18348-1-zajec5@gmail.com> References: <20240211213925.18348-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240211_133940_844305_C016D6D1 X-CRM114-Status: GOOD ( 16.68 ) 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. Dropped "syscon" as it was incorrectly used 3. Adjusted nodename, "compatible" and "reg" in example Signed-off-by: Rafał Miłecki Reviewed-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno --- .../arm/mediatek/mediatek,pciesys.txt | 25 ----------- .../clock/mediatek,mt7622-pciesys.yaml | 45 +++++++++++++++++++ 2 files changed, 45 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,pciesys.txt create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt7622-pciesys.yaml 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>; -}; diff --git a/Documentation/devicetree/bindings/clock/mediatek,mt7622-pciesys.yaml b/Documentation/devicetree/bindings/clock/mediatek,mt7622-pciesys.yaml new file mode 100644 index 000000000000..c77111d10f90 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/mediatek,mt7622-pciesys.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/mediatek,mt7622-pciesys.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek PCIESYS clock and reset controller + +description: + The MediaTek PCIESYS controller provides various clocks to the system. + +maintainers: + - Matthias Brugger + +properties: + compatible: + enum: + - mediatek,mt7622-pciesys + - mediatek,mt7629-pciesys + + 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: + - | + clock-controller@1a100800 { + compatible = "mediatek,mt7622-pciesys"; + reg = <0x1a100800 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; From patchwork Sun Feb 11 21:39:25 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: 13552630 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 08BE5C4829B for ; Sun, 11 Feb 2024 21:39:55 +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=0EDbWqws9cGFaTSgQ7d/JTeQtcU5zOGhJZiE31yQ40s=; b=x3EYpvOvh84ltaxVMyKVxRbe3F zZlwactt11MI2Xsw8EkCxKLlQGttadj2JyyPJlir7IHCtPcSSi0MxUgROJXtzQrddXTQTB1DChwHa E8kFvSHD6GzaIYu+i+Q/pfU13sVM28ZHTsprg9ErbBhfpXsO8Ts101Xrj5DbPsz7Q1hGQL/JfdUJt 7VZCi6yD3FWHbeu17ipMqjZijOmGoYsodJibLxxQHKaVFaQrwPhVYnu4F6FkUd6KWAy/BoRsT+mIO FLBLAX8jIuu9GN5tvIfwqCp6GVDcSkj1D1Q7UplJV/3nww7OPBONZ1oook/1krcybNC0vSrz8FlQY L+TF9s1g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZHYI-00000003M5v-2K6s; Sun, 11 Feb 2024 21:39:54 +0000 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rZHY6-00000003LzV-22Uh; Sun, 11 Feb 2024 21:39:44 +0000 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-a271a28aeb4so322939766b.2; Sun, 11 Feb 2024 13:39:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707687580; x=1708292380; 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=0EDbWqws9cGFaTSgQ7d/JTeQtcU5zOGhJZiE31yQ40s=; b=TnInpcW12KDCyy1ySpmNxLTA5Tx09PAYf5+MgdMJh4bwV0bWqbohYPqfrK27IzU5/A W86VoLRWxoQ2OZVd/s16cb/hKpY+3k+iRbEYxD1yPVAFdC0FNLBSiYfd/5UDTZgGhvr6 4KfuUxi54vfGlWbSwAq6D6eXsDvNgyoUbJblqUF6sCGYUAQvC1oRyASv1Gwue1xT+ORK WnTDd4cuixheMW39YhWpakQxEk4wb10FwJTHB0BCoMtgUzf/IXg4iyibXoXY3jYibCnd qTcBPhM+So3lRZ79+lJdqmbHTd5BvSesgLG1JF56eGjVBYuZ23+BaFCI/FnsbIyxszXE Pa9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707687580; x=1708292380; 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=0EDbWqws9cGFaTSgQ7d/JTeQtcU5zOGhJZiE31yQ40s=; b=ffKwdGwhfDMAky5M3fLxln1M71PK8MC0/0PvJ+9kg4QGrU4BSLBKNBI/47hHLEds5T 7l2/FSQjsP8cFZhdI9uFZ1B2h3lkNjv3n+Ouj+ME6U03mtQjZa57pylxPWcq5OFk2XTF p/+s+6vQfv/KtsCKM//Wn4/VAtdHNOmkINT47sd/hHnvA0FBSJoS7nAvjlgDSz8xIDbb jd9XDHNpfIygEjzAeslUOWdcuNfwjPlxVJeoHDD+oYDma0Ao6HOhTmDsOGQkxjih3q27 b92JtAyVSB1KAOeILThGpGXc6MYGQ3xpB1MdYI1wafPJWkEMq1GoFSPnSvru771l0kQQ jJEA== X-Forwarded-Encrypted: i=1; AJvYcCXMRVd28y/9csJDQmVJSSTcVz669QWaY0ENXIHj+ol8bfaxc9SiA5dq0KZiDedZ4SSI9ZM7AwWjua+WneQu0Ho6bKmX1E2O261aQtoz2i0ZokrjAPRa0Cs8hOkQJnyj/dV71cgbMcPnMZI6KsYtpUwwbzDHES3XlOA= X-Gm-Message-State: AOJu0YzcqWOg8Q5gLFSTb0x3HZKW4a71YWHRrPaiWtF5nsihRaOTJVOH TVSlAmMVxJKDtIpa6ZFgAVngzDgEd7NB2dIFLWtbO1iuLSteS6dC X-Google-Smtp-Source: AGHT+IGoT67/Zk5VRMY5JxMDwjrPQIy//74w/ZJz4vIhvTmeGkhbIjvy7LLSQ1GOOo0IdshD/4Hr8A== X-Received: by 2002:a17:906:3e50:b0:a3b:eaa3:ecc4 with SMTP id t16-20020a1709063e5000b00a3beaa3ecc4mr3428920eji.60.1707687580350; Sun, 11 Feb 2024 13:39:40 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVnOiPrRQU6g/KcAGXBm4PkuAYH/5MKHSz+jA/zC0Z9hHXwj+OZBs8CukESzauvKFAXsSX6P+Cd6H+vWhMIL1j9W4uIirC0JLn6+paa25HOTDHOqsnEJjHUdByz3gV/cdIupMpq+DxudSKt5/dtT2bpiQkJ67PjCTZa7zZLVgshE7W59gF5fH+YzngaWD9xYmKxXXrXIvtZ/kPv68x+uI4ml/Rk4Ms3gCJndjdglUelwC7pr8Fx9DfCgwOwnhouqRpoNypUt+SaCLAhWCZW1Fce7uG3arn1tG2NrafmqJUAzn4HHpa4Rqa34PwerXhlmRyAWWwWGCSBHrTud/zTWEQyP2NkzhogfFPoUZs/xSt6YTVsyU4FyVArrjZF6lR5XsLrYaxHIL5NWSA9vfuMzq0Ic7YsXmgSqigPIk55NVvPuO/YIiRNw3bmX06GR7FCc0kJ/7pa87DxEXhHGP5UwO6abD9LMHkQ1LL5zV9nMUMDe2ASkM0CkH4sRTo0IjeOOer3oGoUvUcj7aK92RfPYx6Fjn2W+SVRbxlG9EnMYXJNsAFGWQ== Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id ps6-20020a170906bf4600b00a3c66ac512asm1206344ejb.214.2024.02.11.13.39.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 13:39:40 -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?= , Krzysztof Kozlowski Subject: [PATCH V3 3/3] dt-bindings: arm: mediatek: convert SSUSBSYS to the json-schema clock Date: Sun, 11 Feb 2024 22:39:25 +0100 Message-Id: <20240211213925.18348-4-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240211213925.18348-1-zajec5@gmail.com> References: <20240211213925.18348-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240211_133942_616571_16A8F00A X-CRM114-Status: GOOD ( 16.90 ) 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. Dropped "syscon" as it was incorrectly used 3. Adjusted nodename, "compatible" and "reg" in example Signed-off-by: Rafał Miłecki Reviewed-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno --- .../arm/mediatek/mediatek,ssusbsys.txt | 25 ----------- .../clock/mediatek,mt7622-ssusbsys.yaml | 45 +++++++++++++++++++ 2 files changed, 45 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,ssusbsys.txt create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt7622-ssusbsys.yaml 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>; -}; diff --git a/Documentation/devicetree/bindings/clock/mediatek,mt7622-ssusbsys.yaml b/Documentation/devicetree/bindings/clock/mediatek,mt7622-ssusbsys.yaml new file mode 100644 index 000000000000..da93eccdcfc1 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/mediatek,mt7622-ssusbsys.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/mediatek,mt7622-ssusbsys.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek SSUSBSYS clock and reset controller + +description: + The MediaTek SSUSBSYS controller provides various clocks to the system. + +maintainers: + - Matthias Brugger + +properties: + compatible: + enum: + - mediatek,mt7622-ssusbsys + - mediatek,mt7629-ssusbsys + + 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: + - | + clock-controller@1a000000 { + compatible = "mediatek,mt7622-ssusbsys"; + reg = <0x1a000000 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + };