From patchwork Thu Feb 8 21:59: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: 198603 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp477951dyd; Thu, 8 Feb 2024 14:02:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXzIc2aQYJq/c8GFzRRgpaDxZwNGlnToVTWCUd2z+Ia0epbyBCKXyUKTX7MrWnHzXLHNR5WIaCbNgtU5XFG/bDnOpZCfA== X-Google-Smtp-Source: AGHT+IE4Xu50J7x8ZgPvKjMaLGGyhFeH7rkVbtR0hft0pTAbpi1PrgIR0ubRuisuaAILEtX9e08h X-Received: by 2002:a05:6358:ca0:b0:176:4e7d:f30e with SMTP id o32-20020a0563580ca000b001764e7df30emr534717rwj.14.1707429751529; Thu, 08 Feb 2024 14:02:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707429751; cv=pass; d=google.com; s=arc-20160816; b=NiPFx1X6Pljt4b7/XUL6lYOz5rwXpPKdY/0H+J9XtXCwtr/J8Y4e8BI8MbnSfhfeZI YL+jNSc6PQtj5uHbN+PS3Ex2Kz6+JEKd33+/nIKr5CPwIYUiNJJIcKRoPFpGU3pcu2n0 exbUfMiVrzby66jcA9ZNuTfsnwxhyL/KdBeYpPEQtPCcdz7j8hzK2+ngUWccjrMYTbJm oKlU2DnOgZbfk6jDWl/WLduPxyerUUCL0ZOwkoboUvXs+Rq3APeAMR8Cixb43tbdOxpd WurUr7mDkU8Fd92wKDwrImOMqk4RgBQe3g4d+zBmwa1jxp3T5s+pBluIAmBtthu1GrpU sKKA== 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=dxs7yJaWEy8nVn6Vmxrh4WNd6xA3nlO71xbamclQUKI=; fh=Xs95GuvG/nHyRqzhSiZvb6iWeStn/2ybvi3g4py182w=; b=EYEsdOVvUleBwh5oV1sz/c/j9d/mX9Xnsn5LkGdsC07ixwqWisrEQuMnlIrj/KOFxb Fa4ugh2caRhtiBJH3nFZjETCcyYy4YPzAgdC/a2R8ykQYwi99MpHo/bYV2slUwGC2vFp ZcOE7G2E1MJYQ5pcqf7qd25fEZflGE/kTvw5lJTiOlLeDB1v6cXkzrwVHQEeIYNqAtC0 EAHKhzJgq5SoJcZfTcaJ00hOmbcCsiWAEy8QzQIbk3T6Geb9c6dKYtykL90DNzminWS2 8YeAi/InJGaOEHdHsjCOxOwM+Zs8iQjegryqqAIIOiLRuJPruQ5+V47ROpdysx8ppNsE 5jeA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QsCTU2E9; 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-58748-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58748-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=2; AJvYcCUCZUel38wFCSvq9fp0PVsd/+mQizDdAmBo+eJR87FMRl0irsSKf6iwofpfzjXiv6eUeP8AooFhyKAm6xSGXbPRxitKKg== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id n5-20020aa79845000000b006e07d6e2dabsi367506pfq.167.2024.02.08.14.02.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 14:02:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58748-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=QsCTU2E9; 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-58748-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58748-ouuuleilei=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id A4D2D28EFD7 for ; Thu, 8 Feb 2024 22:00:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 931E35026C; Thu, 8 Feb 2024 21:59:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QsCTU2E9" Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (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 8D7A74F5E9; Thu, 8 Feb 2024 21:59:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.52 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707429579; cv=none; b=JhplOzxq6IRY94KO02FugFNTTgoW+kXQqbd8VMT8wb2UWgCo/IAn6SmmA0AlSxCvOJQrUDeAtLfrCkQe7HWNFxKu/qk/BZtvqxfadbFh3zLShoA3rlcYoS0ZY4w87m9hP7BkHBIjJE3pU7Jttd6JNjzPK3rv8REm0h4Ar2PTHJ8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707429579; c=relaxed/simple; bh=/kdmKvzDOCOhG9OdygowWW1NOM3iNCMKoPvJLJlPkho=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=Mje4J8mO78cLAUSX9+WHSRT44Fw27WTWxfubJnZ5LZ2p0TD1v6+Rsbeq8Piiy5Q1s++JA8w24wXOt8PsyY8rJv1B6CT94lP7LoCRW3sKFNXJcYc574JXRfvwty0YAlFrWq70xEaak/F8ovKU51eAn+nCnIkrN/1nw6bH2iFmBJg= 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=QsCTU2E9; arc=none smtp.client-ip=209.85.208.52 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-f52.google.com with SMTP id 4fb4d7f45d1cf-5610b9855a8so1976832a12.0; Thu, 08 Feb 2024 13:59:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707429576; x=1708034376; 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=dxs7yJaWEy8nVn6Vmxrh4WNd6xA3nlO71xbamclQUKI=; b=QsCTU2E9IRMwIjyJkyBarAPOR5Fyo09Jtof7koNpZZVZu/SJkFUZ6F+15HUv9jOmyj 75DPS55VeP0xmVEZjEoKXPWFpvrKzTLh1l8ruEHnW8tQHH+TEXNLaSMDim7C7NHUSFEv RDtVNp7uEWXU/uiIv5syvpLTfN3ikJL1vVu/tIVXsGJwYQnTSjkuisXQkBm+qxDzq+av auV1yiYsf3ODxYH1aJPJVTZrMPC/vdUbGtMIeAofkIQUPZmNsI4ieqlzVGoh/S7Tvspo U5IlQcqKsZTJZc2BVovAj12h82loTYLFlm//aFeOoBABPn2WuijBkcXCMGw45BB1tcYw 9LAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707429576; x=1708034376; 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=dxs7yJaWEy8nVn6Vmxrh4WNd6xA3nlO71xbamclQUKI=; b=KQD4J0lXIRa7fLRptcts6aLv+JpLxWNYJrec9M4BbdG90M0U/W2gt4cp98rzKbIk4G vmOkO6BTUC8+93o+JMlexlsc8spv76JlUH/TJM6cj3A5nXcx6EjYLE2SmHr1DyjIX2WW 7Z+cQ3dRI8Fy4XN2hQdHDYMHF/N8VSRbBuIVi1rhAzhlKP+0b/fHOlHEPkaf1B+RhFSc z65jk8JhUzSQzO5lBU8ypisKjH6nNaSNJ2i8r+7q2otwgmg/BWPuqwCicjkyIaN71CrS Nl/psLpihzjZ26L+V05t0FGxvu/xH3WOCo18Mb9JO+1KgBh0dnyTG4Fpxnmw8ISkINCX xqnw== X-Forwarded-Encrypted: i=1; AJvYcCVvXMoA3o4gK//+EsXfPoq5ItcYQD/zS9oNtR6IX9dXKoQYGcqn5tHzFrjLogLm/+cKXwWrZEC3goQEsNR1hj+kS9hVHIC374uf46u1MsLYHoK1g/9VVTEuvxmwCxTqctQgfwcdIKsPxmkgM20U2HQng4rhOqCstyFpOpiudCJFPYWCzg== X-Gm-Message-State: AOJu0YzThAzPgRR1Ej6Xz3mDZZLxG+8igc5D+vUgz8ONi20br9OIjZe5 sjXGnunQaQcR6VB1J8zV/KxRuRtn8+hRbV8TQSNyosIy3svm3Wy7 X-Received: by 2002:a17:906:b7d8:b0:a23:7633:59ae with SMTP id fy24-20020a170906b7d800b00a23763359aemr744793ejb.9.1707429575727; Thu, 08 Feb 2024 13:59:35 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXsHteBGFr4f+wVfaR4K3Y7cO52t+YzohayYtb1UWIeOqdULNH69dRGaLDWHuP7Wf2k8sHqTznLvMe0Ts/NJKWFqiADpfgy7fLJJtSpaHFZqnQLaPSyvi/8n+Gz2EnbK43svHPryAuZwLfKEMy4GZy8ubC/SOsmuFqadzLamANYl4CnBRlvG5s+LbdvvDtW03LMKendex5kV8PlgLjfv4m1cu1J/9ykSm+habVUbMQBADE538ctE4QiaKLUNJDWRvm0s/rvHYrnN9S8lq9jhfUKmQ5rZNxSvpQUAslUZddUTJGMSjIFHQp5fQb11GZYoFldf1EntxEiXBcIPHWGxWM9hEsUVk4JDA/xisNn0kuVrSoIyBWrIROANrizLhUY6Og0Rv/NE5beafDV4DDKE9eXmePPVsc6V00LvJ8si4NW/rjpV761z0wcwR9XkhplVOcmdJOgwQYHoWjWVQeZeXDbiPR5q5hpOZJuXqPUW9+zcwAbjW62dGUlVjXDYYYt3r2wlcE= Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id rf19-20020a1709076a1300b00a3743142429sm108255ejc.39.2024.02.08.13.59.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 13:59:35 -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 V2 1/3] dt-bindings: arm: mediatek: convert hifsys to the json-schema clock Date: Thu, 8 Feb 2024 22:59:24 +0100 Message-Id: <20240208215926.10085-2-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240208215926.10085-1-zajec5@gmail.com> References: <20240208215926.10085-1-zajec5@gmail.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: 1790369859341694901 X-GMAIL-MSGID: 1790369859341694901 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 | 51 +++++++++++++++++++ 2 files changed, 51 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..eb429337cdf4 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/mediatek,mt2701-hifsys.yaml @@ -0,0 +1,51 @@ +# 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 controller + +description: + The Mediatek hifsys controller provides various clocks and reset outputs to + the system. + +maintainers: + - Matthias Brugger + +properties: + compatible: + oneOf: + - items: + - 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 Thu Feb 8 21:59: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: 198602 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp477096dyd; Thu, 8 Feb 2024 14:01:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGJK6qErWQKGQJYBIDEJl1ff4iC+s9WP2NzuuqmFuYYpG8hKNcnNp2tazjUfh11IjmgnkdF X-Received: by 2002:a05:6830:20d4:b0:6dd:e3b9:a822 with SMTP id z20-20020a05683020d400b006dde3b9a822mr785665otq.14.1707429678874; Thu, 08 Feb 2024 14:01:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707429678; cv=pass; d=google.com; s=arc-20160816; b=cl8Ibp2Ar8sLB9oqEJ54hU771H1GiAoDev61vEni5TBVx+4V6Um0TutXT1zA89BYEp mdLbV7xfkIuUlixDVBScKdR2785cm7zCYlL0o1j95v62y0Z3Q7Yi2J69kRvwefbVBQVf ye0KikXQ3tVRXhGXHVAbE5L7Vwnqzv6PzfmeePuHu6LaO0tS3x4TzZUzhsNfRuwZtXqa 5qLAzCEKx2Tr+/Xyco3vbVrm7/m54K5jg2eLTD4X4uGAwVtIKUP9xSLmloInWSzejcAr /6r8Ayl+jdijpzImCjByAc91+b6Sv5DpQ6M3Y68Zc6LtyBO3ayrWm42XPJblX9mX5Zix FBsw== 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=eeAmHmtuylGJLNzh3ueLyRJFJ1gmDfZc8JyHSqj91w8=; fh=qdMfbcEO8EahzaDBQOQ3w8P2nt/9WSuc9rlRiJNRABM=; b=moMkzoIaXuyTGCfVL7QOGoN7cec2Cc8GZr5ugeIXMG9DLYDRDOKEdVJrfqI/dNUMX2 x++CmU7dqTRmaVFWqddgBV05BM1RmnhSR3pLLHNQLHJxlzVGKKsVcoFVkMSwj/ibskK/ 62gMm5eSLd4eCJXnGFeozVxwOsdKMJQl+wMVVqnzZh3KsycoyKcVkPB4SyZhvwd9jd2b Nqa9PYSKxPgGauY7ySje5MTkyHCD5OS6Rw03VxYGXJN6YKNCnKO2k48OzYRr+BFLFFFf 10V+4r/F+XeGyf7BNBn9QghRBa6WF3gBRvvRqBEUeTnQMo/4/8IITTi7uLt1HqaVkMvb IItg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Jrm0VFg7; 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-58749-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58749-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=2; AJvYcCW0HFCgqzDvrb0659MdKmF3XPvQ6ucw6OtIfljLpzhvoES88tJc5j2B8ybsYEqlGBfwBkecFfLNb4uE7xDnj1vlZxHnMg== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id u13-20020a05622a14cd00b0042bf86d113fsi419896qtx.259.2024.02.08.14.01.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 14:01:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58749-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Jrm0VFg7; 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-58749-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58749-ouuuleilei=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 E11EC1C263FE for ; Thu, 8 Feb 2024 22:00:31 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F46350A8C; Thu, 8 Feb 2024 21:59:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Jrm0VFg7" Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 57F334F61E; Thu, 8 Feb 2024 21:59:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707429581; cv=none; b=Ycp23UwUqfLysDAwdZsNHW1oAiolGL20UiO8dIDPIZnDPs+X7A6A2T7GF+eFrLQqRaM1Rbni7GYhN2bzKsExtNP9VDn1U0IIe6RArKoYhtaZGhxUe2rx+ON1+Ww6IHhWQiS0+ypyRQdiXszw5nEDJ2H7kW6ppSDkkcFlMsuqxZ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707429581; c=relaxed/simple; bh=GCre1XQTsyAwp1dzEfFqTBUkUfOE6AvAGr3w8n4g3tU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=aSVgwpliN2NVWg5tb2Sfb69KHKN7EcmhlGsO85cdABghdoXQC4n7fvrJd+6lpE2njZx0kGFO+H0HlXsu4Wt4xCj4k6nd8eXwnQ2qB1lQLFwQwIR3Q9ixkgT1CVhEdc0afxNWTtQES4y5PIShIG/lVdvN6qPVfgiUcC6/a914TIE= 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=Jrm0VFg7; arc=none smtp.client-ip=209.85.208.45 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-f45.google.com with SMTP id 4fb4d7f45d1cf-560e9c7a094so517849a12.0; Thu, 08 Feb 2024 13:59:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707429578; x=1708034378; 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=eeAmHmtuylGJLNzh3ueLyRJFJ1gmDfZc8JyHSqj91w8=; b=Jrm0VFg7xGEX5HaxTGpblvhVDE7ivcA8vQtxYu5AU3LgU16jSORSXe2tjnaLz1OoJB VRdYa9WJ6gbDpcQo1/ezJaLWVrK6khZ7pIcKDmB6VOXTjJWv3+bqmMEPqN3fLw/OLlEG tMBFdU59RMgmDoII444/tx1iKp0xra4LKuq64Y/57OCjhQVx0uGKNxVIHCINLGwneVkQ knhEyMTRgpWSIgG8md7ol+CER4mq5TCg5/YEneDy4u/OXle7h4D9wNuLAVCz4aABtPFN cfW3bAhAzL3yZwUoj/L8j7j8ZKbJCO8Rl2Y09XBYE16mNM6UHqam5khrfXnNFebPLirK SLGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707429578; x=1708034378; 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=eeAmHmtuylGJLNzh3ueLyRJFJ1gmDfZc8JyHSqj91w8=; b=mUhzPWF4jkl5mFXJm1sbvZcGfezDHKx22/oE8ppalOLF+bmIwubGfI2veQ4CJvtLCU gZYdeWLI6n9jeFpdNrFCdHhONRQRTnEndrM+tAOB1YNp5zhFIT4L61R0393jZ9pnjE2I DY1g/clZxzh9eaWfDNqsNP4WHtqKdAx0DougBJWy4nU38T1A1PYsb9ngh165vQqVEH1x Ry78JWCLxvXmH6XNxPXd4J0sQ796DzPLhHnuXf6wHGTrFs8RqCUgoo3B2oGTv+c7TdG9 kAcMEffMuqiqpn5gcFH2LBn7iJULp0W8+JucZmyfe9Q+8zlaaIHxCcVANW7lsMi31sqD NnHw== X-Gm-Message-State: AOJu0YyCuOsdPkZi34vXerYmLjmEPsQfwU7VEwTDfnBfw5Vp5VN/SGTG cCnPfA3/LbJqGwc7jnTcAV8BaM9z90lCv9p8kPRidqKWfVzhV+KlMMbBAleq X-Received: by 2002:a17:906:aed7:b0:a38:9fc3:3d8d with SMTP id me23-20020a170906aed700b00a389fc33d8dmr390460ejb.46.1707429577716; Thu, 08 Feb 2024 13:59:37 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXhCgss0C0rgZFIaPdY59ajK1Bar3J5lmPTYtD0zsdtpziXQgWSvHS5QdaNLyzf8CNUKFtfF/hiu0t1mnTFwSi1AONqWfSWOCu0ZXMuWJUZDtH7848iAkj7/e+Sd4KMg3N05EA8gmc1p3eGAk9MpJRE7oOYI4oCIziNM/ria9zUh8JQHe7ZUNHpBtJ6pnWONzoacijysVTANphk2KRK/uxwVPQk1AB4X50jR2QENYL5cBDyaIEyqEdN55BR3Pd6fNw7s0P9E5uPE/hlfFXJ8BTacPUJDlUWvMW49NxtDqTUWWeewrg0/CagaqSQIT5dWwSf8txE/upsIt70Hp5W6sNRVqK3OE4xglY8ofJHyvSRke1vJctCu9si8SDTrATRoM0caRm7GrJiMRcBCZtbouqX5RkOu+jtHtkGgnBnQiiAUMy+VhyPJub3H7ANpm03X/gqO4y9Ps+dXar70BhEn0M/pd0ibOXevGoTZ7yq2dxUI62p9tNvmAjefEtlP3boFv7w96w= Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id rf19-20020a1709076a1300b00a3743142429sm108255ejc.39.2024.02.08.13.59.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 13:59:37 -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 V2 2/3] dt-bindings: arm: mediatek: convert PCIESYS to the json-schema clock Date: Thu, 8 Feb 2024 22:59:25 +0100 Message-Id: <20240208215926.10085-3-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240208215926.10085-1-zajec5@gmail.com> References: <20240208215926.10085-1-zajec5@gmail.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: 1790369782894664770 X-GMAIL-MSGID: 1790369782894664770 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..27b19d5e3a85 --- /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 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 Thu Feb 8 21:59:26 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: 198623 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp494489dyd; Thu, 8 Feb 2024 14:39:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IFgSPda6zzTtL/GyHQk8sG05w+nLunIxMmIj7v08PLoFPqU61Q5eQxo79YjdSL2bKQ6xuvy X-Received: by 2002:a17:902:ac86:b0:1d9:b6a1:1ffe with SMTP id h6-20020a170902ac8600b001d9b6a11ffemr584515plr.54.1707431959202; Thu, 08 Feb 2024 14:39:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707431959; cv=pass; d=google.com; s=arc-20160816; b=Rl2/ztVuatRlIXGKaQFo24xTV18wWqDHySYHyu/54qZ/dZXpWkwiDLSlSC76KiU3H3 Gzbmim2s9C7zO1DYxvN8mlTWK9hWE9FnoCp1ho8kI/CeiyxF1MsyNB5KC39j+PH6F2PU dtMKRNldy6meGkrmyRPWWvUg2Nki4TAWBPJehwLhwTKY3GeZSOAPsJanUaD+tusFcs2X jx5YCC4uCrn6AUAoxnz4gZ8A8N2bdjtMn8MHi2r+wbcAUXnoywAAheYxWQAi5/WyfOR/ Qn6qSUWSgMQRxuJ+StJDbzkGrewGwDOJpjftQM5nB5CYmQ/xGQylvx5xosYGsp/CqWBq GkwA== 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=zpgVj5cIJYfsEe4k8tOMDseJ01hUY/30ToLsNTzKrj0=; fh=Wol1JmxctqoUsS/fBPbWdaf3n+/FHdaMvXbcw9Qoozs=; b=rS4a/o6iMdLErSrpCg/wx121orsNe07bOrhbUYK5Z/a4aSL0e6zMPY6qGicRaiBUFq 66z6muvcUtVHms06mY1T8Zxi2vpukWIuXbhEOyUUFqR0KcxEgErg642QOANYHs1cWph+ BjYpO1P3n7rxkDYlLZF6Fxv8jUNSa5RJPmnVRpGExVSw/874wwX15uUKz48zW1Jgw84r jlVgSEvvI4jBhlbsCbqIaC37gXdkA/HqsTkmDTJz8ibAGkWJZs6WdHU2EJLYkIPBUsOr IGBnI3xTgUlhabGc6klNg+3efCHyclLyjYvHO1iGaMge1Kkv1KJJrp9WdtH594IDo+iy c2Fw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SVmfoHOW; 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-58751-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58751-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=2; AJvYcCVkbaraOggOkLw1elBhcPu3Cy5eJD9hu1skNsNs/VMCghGgJdqiQSUV3JiJBxgNU7zD72iMc5ajHuQ0xVf5COI/cDgemg== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id a10-20020a170902b58a00b001d741f0eefesi439483pls.419.2024.02.08.14.39.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 14:39:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58751-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=@gmail.com header.s=20230601 header.b=SVmfoHOW; 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-58751-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58751-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0F009B25AF3 for ; Thu, 8 Feb 2024 22:00:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E7F575102F; Thu, 8 Feb 2024 21:59:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SVmfoHOW" Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 3895B50A64; Thu, 8 Feb 2024 21:59:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707429584; cv=none; b=lGiKjeBwlP0XPgFzIxl0hp0kJvdKTIR1ZBBCzflD/HINWscAtaTWNvuCGzZ6ZL1iik4asWQ5rBKCC7vs51HYtrlJPzDBinwHFOrUHo6aQTSzRimmCAcwm8XyBWpn7gX1H4mFEblEUopHJ1wvzltqB9KAwW2AYQF+pzVKX6oFlb0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707429584; c=relaxed/simple; bh=8f35FdJ/pQY+mhck7+IAQi4vxCn4gr2UiZgQP2iv6T4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=lUYl8jZSU9F+N82K079jIPyWCpixHWWot101amMyqTn26Ht0Osj9hxAzXBR6X+VGNLrvnNhudGLJztKuMOp7rvT3NqkqIe+q/Px/I7gShfhwVev0FSoewy4GmcVKns9PbB6sT97gJ+8E8F+QVg2EnsD+6gZHxu1tXWpW4uxrF0Y= 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=SVmfoHOW; arc=none smtp.client-ip=209.85.218.43 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-ej1-f43.google.com with SMTP id a640c23a62f3a-a388c5542e9so254686266b.1; Thu, 08 Feb 2024 13:59:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707429581; x=1708034381; 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=zpgVj5cIJYfsEe4k8tOMDseJ01hUY/30ToLsNTzKrj0=; b=SVmfoHOWuY2SnmMM7Tk4IwF729lltn8G8DbU7ssHqWOAAeC2c9QEMbGD+JGrrz2mFa yVRHDGnRUoqAWzDScTen6UObg9TSzQ4ItFJMJiGtFMhjkAq2dz42vovKhKOhQQbIRwkR GCnzfq3h187EhDdiMISdLzAcne9gfAcylNIOldq/n2w1roqO2HawjUVFYYSbI5DVMSqS sPB2gjnD1NqOiHF3BqGN6BWsWuMuXwAB6+JkRqAGAI1o3uxrso6iK7TBzTHaacAeWIt5 eC5bPzb3zQC0FOJ3rEqsyE3zN+cT7u7SkUz7hxgqwdM97mskILOw+I63chrkLyAZx4TB 3anQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707429581; x=1708034381; 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=zpgVj5cIJYfsEe4k8tOMDseJ01hUY/30ToLsNTzKrj0=; b=IafNcKVA5ayGifwl1icbdpbEBJ7SXLsZ1NHLFrIpa/v1lIX+Ix53ghcYBmAnNi/s/j Zfjw+P0XpLoNFFBxw/LbReQKhoj6OC9EiFXJ1JPEWRLlUrkdezX35geIGIfFvtdBbSFY tWE0x5HD6Cx4vu45e7SCVSsUGHc5tKMuKsIxHiqf7YkkQhIa6paTkaZzb/8Je5THuC85 NCB7uuAQs5zvDgQI8bIKuJcC1b693aK7bUxEuPYL+qFJIvGEibUdVRDZebIvuIiXqQxp tCwXF3+IyvRTzQfoMmUUTvv6ooE6RLc7/SR4be5mvogvEgk9pnfNQcfubfRZVgE6yQvL U3Kg== X-Gm-Message-State: AOJu0YxdqBnpp98FmiRpxHh3oVJFl0x/n01etm0m1WtZauJkG6bEEQGX JwfRr3CKUs0pXVHtzC1INQGHkzEpa4kePZZyumU53jg5Bwkth5bhqFWLY4k7 X-Received: by 2002:a17:906:f753:b0:a36:5c45:1e09 with SMTP id jp19-20020a170906f75300b00a365c451e09mr628743ejb.31.1707429581490; Thu, 08 Feb 2024 13:59:41 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXltFUHHXN3QJVpFmKZaCHkdH8PMvNfBhL99ytOY454pqiQKr2FFutKWFoWShjCCMTwLN2sgcRcefp+CfhhFBcdRzvld0rnW/jtVj30JvFzNrZ3Q6qrvYpCsRAd/VBSDViKWcNHWQQz1xJtKoCPjrLo1aPy1TwbAVwebS/VqbfRtXPeu8QgMP3xIB3/V/dIzyQhb03FnQuAzbLpOplvi8/ltLffe89S1oaeq3zP6Wz9ekzVfJwPKM2Pr9S98EH/55v5/L9tk4KlbT6RkBpRMgkY2LLeHf6B/9CnOUzA1IRb3RMX0KwILY1g6Z9qYqSEJSj1Wm7jnNhTXJfCZKE6rNNl8qYGpGSdG8/wWehReYwAzFl2jvDwx3msi9Uvp/fC2WBTMwc0X8r0Zc5c0K1gN/uGzHHloLc+WFb63Ht1JFtsFL4Z8UXj7PSB48Kk13tBQ2rkrcakd5XMDmESB6J85Uc8ypzzM1DVJspwHDloamzfdBbU8q1WRr31fxRikE3HCrJycO0= Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id rf19-20020a1709076a1300b00a3743142429sm108255ejc.39.2024.02.08.13.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 13:59:41 -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 V2 3/3] dt-bindings: arm: mediatek: convert SSUSBSYS to the json-schema clock Date: Thu, 8 Feb 2024 22:59:26 +0100 Message-Id: <20240208215926.10085-4-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240208215926.10085-1-zajec5@gmail.com> References: <20240208215926.10085-1-zajec5@gmail.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: 1790372174346611494 X-GMAIL-MSGID: 1790372174346611494 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..5e48c2d3ff11 --- /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 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>; + };