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: 13552636 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 C1B235F48A; Sun, 11 Feb 2024 21:39:38 +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=1707687580; cv=none; b=O+Z1cnqYx/NffrkFUemLz/nCq6MkcLX/zMe7Hocqv5jhtzDE3BnVEvgan4ZGCgn12EM9Bld3sR+sxs6ba/f5d9lEfTPndMJZniTTde8D4c1hZVnF3BlqxsmDGvFz1CSJCNKmRX9eCHnKnMVwumAcuD0PMcG0idHawq7vM/b4Xvc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707687580; c=relaxed/simple; bh=0fAQCTEnvIpzw1bBuG1bZ9WpLnsKPzuE76f0W4PCsXs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=lc/cUuPEve/e0CUUSDLE8P3FcJL9mh7VoyFtWoRmUtfd/hirwasx5Ldkx0Q/NlHCVH2RCa+nkCqY0m1BhMFQBN3iKs1q5c9UHCIPX4JKux8sVbK5Hwwjy6gks2PD9nYaNQEz4s0TbOq7pf0xF9T7UzI4OO4nhwKWrzGWaVwG+3E= 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=nE17Xa5a; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nE17Xa5a" Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-55fcceb5f34so2820102a12.3; 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=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=FYKNeKCJBPMaI8CwH2vaV/FLvsnFOMIKN5WCojMYSS8=; b=nE17Xa5ach2m9MDDJW4NZtDcpPWeD9qLUCIMMvO9+3UTVObwS1iXhw7tXDlolB2+P5 DaSxOmTydl7BT9LPI/hve/lDGJ9GtpC3gyEim4SecPAzrvSG/0Bz78HdbIx3SF9FhKZT KxIVSsXx3WrLHEwL/+KOLsAmJ6kyVjYRtbDa0vH23ntKUh7lIHvpLPVofGdYx1IESGi/ r97ZLhGcLOkdjMr+GxzzcloHCXBLUxpSBqSVZxf7+AJc26aPJw3SuTSZV8/PszGwLWj3 AiV//yde9LLv0sOD3vUHHPOON/bvypTT6kM3XynK9DdEebYPC/94v1AoQxrOFECOeERA Ipqw== 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=af1hiuqlAcDeIFhImE02jqgBf4IEj1gsuaV6ugzkGAN/+kmzGDPCQ6Rbcm1dGGpgOa ge+0T8pGwSR8fcP0z1waK2sp8Pd8ZBmg+zDboyDtkTx7dxyst6ctWcO8DbC8ICg5f0Sl dofnE8TiWWVc2b1b5ZU4IgCirCpZAMCUfkfTAtDQwRm4C+BFRVXlIOU8I2g9Vup1ukt0 YNNEEzYfrxfpgKqijOeIrbuCO3DlryAHyNDcsLAnzRFWVIQv8PK3RoexIoIZSSFbrI98 TlFXJImz1k8eNwD4Jhdnj8a+U4Zr64ButXc5Kov6yJI9KvndOLn3K3pTFr8Y8Uz+kuG4 wLew== X-Gm-Message-State: AOJu0Yx8QDOWLlBalosvQId90a4tgd3NvYl2tEjsD7oNWRfVcKqAkjpG JDTx0A6ft4aJkGrcu/epKX9aKbk/NTF0lTcd+cnsz7ZfC1eqsNrj 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> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13552637 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 815A15F577; Sun, 11 Feb 2024 21:39:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707687582; cv=none; b=Rv8FqtXcRAalcUG80ArVThzMb0CeE6pTgppvPLXsInWwrQEdz6mIRSuP3A6gvlEkhSpMQnTMr/JdW5X7fD2ocu/SPrmiudgHURki2kYcZHfkLllmU2iDq4R6Yyy/BzD6RBhjWg/WVgTAjS5U2KObq+K5y9wSBQYJh6Yp/IjMTFo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707687582; c=relaxed/simple; bh=7aIBd9Ub4VgUkMILxliwT1q+jMq3XfF8c+XqzX9wUrc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=KOKK1d+gb12P0HyqqQuMGBTcCrDWGzoz63SGwm3ZCVcUEkFTTff+0j2LuA0PPLUSVtxsPwUYAqvp16d2R+kSSteGfM8DVo0Pqg4vmB5tflHh23/Ui/8bv/Ymik3E9Ecf7HV6hMyhholMxGe9bcvnlkkSIdDu/5s4xL+uHINpMI0= 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=f2ZPsswE; arc=none smtp.client-ip=209.85.218.51 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="f2ZPsswE" Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a3c00c98d32so272682466b.3; 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=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=Fm7RlLurDkB9nfwalxlLQ2JW0yHxYihI8gdZfuipTWc=; b=f2ZPsswELlHHoOKKDYmJUJXJg6ev/zD2yYFf/Tq4SIklm2k5LVA8SEQ6l5AK1yJIKf InYZBqXHVsIEyqi8pWfSr4ppyuyHJHGt+RJycNUP6Ahseuvf6tXjTB1/Lp9I8uqRBaAA ng/32i7vkk0+0RvhlhRQg+lN8p5jZO4rcu3YwiKhnjE++cbrp/ip4qrzUitGdDtZF3cz Yaa2q4igAiYuG5+94+bMBKLIXE9UlkXVEIDmqXU/yCeD8xva7rBEWD/d31/U+tqGIwzR l92itqt49MnP6vlltaH32jjje85ZRY+uKbjn0Ff/dbCYlIZfNGK6w/uKoDQXP2vg4382 vRtA== 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=ECR+Awcs7FCABYvzChm5RkusyLtzE88vWldXFVh8sa6onicw7wT6ngU3o5jIiP5UG3 8Q5g2FNilhZrd8nMNNG7JRu5bJAQsyMISDRH0fU4No/nP9Sg0KD/NB3IFfyDpfE84Ike oijGkUURZy5oPG2Ln25oHbQbasjPYUkj8INkMpgRCd7wYAY+kRjdVgr0Ef0bS8gVupDu wHDeT691cABIOIgTV9PO9H4+0g32bDQqwiPZdZVLyvKdMG3YtrHX+vePv/MBElZX2wv1 N5s+fw5nZytdSmz7sy2hE07xWaaRHrSCQXnZtw+5cK/JtaPf0xiRr/xk72CDhMLV0iFN yENg== X-Gm-Message-State: AOJu0YwG2CyttGh1nPmr0edyohAmNPV3zWxFDDtb1AeVnbXIrpftPMkl hpmSRDfUAHbRTH20Jf+cutOBaDEeD5Y36gzSKsUmWtHGQ1ENXhES 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> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: 13552638 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (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 689675FB8D; Sun, 11 Feb 2024 21:39:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707687584; cv=none; b=tByR0tFSLDPWjKde3jN5+hH0UevtVch2Ye06nzxpmUTLFFqahT7HDMaJ8OsEGqd8Iq+PaimjxlAe/WbxolgY165yuW0movSR+BCcdZRHMH8oDzOTO/MemGwfq3pGnL2a3y/6m2ZPKYqx16y1sVrXd7xFhzH+arHGJm5lJx042kY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707687584; c=relaxed/simple; bh=LgpLA72Yy2DgXq7fM3U+hFO1U9oOC9qFq5Ar4+afhHM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=hWVwGanfiI4RgqZp3JH/mAnLIOReJBPnJv051CYFYlN0ZmShJ/Jt6SeksdY5Xw5elqnWPm7W/DmT+NDOC3Jaj7sym6O+iYZFyxc5ggDFqH8/63ymAL07i+cXfSXlirEkQgaYreiZ9Jz8zJxvOpEYQd82N1qnTUIxC5oRFWxFy+4= 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=YU/akLXo; arc=none smtp.client-ip=209.85.208.53 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="YU/akLXo" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-55a5e7fa471so3311493a12.1; Sun, 11 Feb 2024 13:39:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707687580; x=1708292380; 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=0EDbWqws9cGFaTSgQ7d/JTeQtcU5zOGhJZiE31yQ40s=; b=YU/akLXoQp8ObAuG6Yw+HnS2S7QqnrOvtU9BUql27XTu1e72Xa9NTQQy/QkqAg6STB fYXaJ9W8GR5X8jLtJnkoy0LnGzMYQA1dNfLcFFvKYxONNoJ9YWJ/5PHXgEjkt2B5ssm1 j5e48i+AyDlt6W8XqF6ud6Ir/Nki2MhCNA8t5FUmCnevjjQplmZhCo1MuYISlqmW5D7c inYPiHVNtF6VkGQ8GLyxY9gCgHSAibybC+LFPimjXwDOZ++o0aMWBLb9tzz3PCft0jZc PeMVmdes3T8vQ7ZMXgYkI5Mycr/4+iiBp2cTuturvQ/ScQ9zIvLj0PaK6C35hxuhHSHZ rVEQ== 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=waedMgh7KtzK4b9jOeqjEWsQF+CZP+eSPPzSbQQIthkaMw8QLuCA0X5nPwvGffFCvD 4skfgZtiAA2p7vLzDZDvI6cLXnYJbhW4nFlEg5VZSchYP/tv3M95rp39G6k/1dPNp2Sy bJn/qTvnET+PDmun7Y7lE/mWqlqyIcip1F+RLUR1eILEJO7N3NOczuHWGp4iAnzVI/Ns FhPwLq4OoM6ga1e2heMPAaLdZ3tQvPyEXwiFkersFflUI78OmnBO75He95iiraGpjPXY GoF0HwdMEMl9TOHxuptmFKeyaEOFUoa0TyGM3tvKdSuSpr7LggfWiTSHv37LVAdfs2ZJ V7MQ== X-Forwarded-Encrypted: i=1; AJvYcCWgsI+BO7eDKyo3pQ3ItS9XarGHrJQ33F1uWIy0uWyQWqPBNy5uJCPVJNxQ4pDEMSSlYMLkA2vd6hxpuf5Vj9aSdK+osIYRMCwovrNZwDMaJn3eo21wytIrCyD+qAdBdjskEWZn6uj6e5W7YyNaczF5mi7jplJJMDpbHdhyUnighq+WiA== X-Gm-Message-State: AOJu0Yzv9J+ahZ10js1u2CXe085gNqLXrF589fHmOBzkiiWIk1RjiuiW i2X6+GFHO2lvFY7XwrYOmMRtn/DccPc5YEBkok7V51Atwl8A9FRr 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> Precedence: bulk X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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>; + };