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: 1889556 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=AqvjUQ/T; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:4601:e00::3; helo=am.mirrors.kernel.org; envelope-from=devicetree+bounces-34039-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [IPv6:2604:1380:4601:e00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TK0SK18ZKz1yPg for ; Tue, 23 Jan 2024 19:22:09 +1100 (AEDT) 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7D8C41F242EE for ; Tue, 23 Jan 2024 08:22:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4360F56B6E; Tue, 23 Jan 2024 08:21:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AqvjUQ/T" X-Original-To: devicetree@vger.kernel.org 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 541EC5675F; Tue, 23 Jan 2024 08:21:45 +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=1705998107; cv=none; b=Q8JQzdU4ZSqxIqY55BTWV4EZctN2Aqm3d4Lx+IFyEjp/BqvSShyrBJ507GW5XiPCKy6gipOwiyYQzZGvbvgEfc6aE2/9y56J2LxoNR5ktlxxbM0DuH1BZq9xlmt2fuu4QV2JoSHGt++tcQ313DnTxsvN7jwALds8qwTDlf0d70c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705998107; c=relaxed/simple; bh=h9NzIypt+ErDMOb+T+NaWp7PEJ42pnIkt25bqJnPYVg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=quhSN4sGqynSz+CDUWK9GZXE0TTygyOmxy3hGVoaUfL7SQ4b3u1mJYtyYqt7fOwMZWqrKVkkc1MVtadMiKPHMP3n8PhjOi9xayMi0mR+OE2XmHqAnj1g1G/f5LzpY1+nYfwCMhZPMBewWz8psjchyBtEK52ub7h8A6hT04xtGh4= 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=AqvjUQ/T; 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 Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-55c6bc3dd54so1719506a12.1; Tue, 23 Jan 2024 00:21:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705998103; x=1706602903; 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=nhtLzN2peOVLFpsd1om60a/LkFzwt1x9izkXcUJXVvE=; b=AqvjUQ/TNiBqRQ9W8jInbWKe4PqKovYbGI+kIwxsrzcMIx/QiDORlQjZMbxXg/RMix fsxv9skCBGy3eprrajtis1rXPlkVp5hU5JSLqa3uKfmxUkGEseHRD+soMwpIWMnTUWWR HCcjC4R2Z2YtPxatrCahGlnOwlJ/SgoGPxEUi5PH0Lbt6jLWTzsj9G2aIVwZc/7+X/Gt 2Q9g+teNa/GkL6Oz6/bo2zkjx/n3sj55F897Yg2U+iUDjmFJmXQbL6XgkmRHy628PZVb 30Yb/ZeDOfJL2CEmIUpYBUHNM8+TavUM/66TFqiCFb4xJXluB3sDf40YVeq+RydYlXhu MVBw== 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=uTMVqMENwrd9UOIl3FBZXKSRn+EoDAu/04rfUbTcaWRVSk6nI0Yh0rNNN0yEKvxtM2 /0ymH1ZanpLSCbfi7Hgz2OOfsnza1sUvfs0clk/4T3DRBiYUBry/PsQBQ1A/rXAMbXU8 DbaxaSnbo1aKfxl0S4Zdw2v4K1Bs5glP+DLwlyUhcb62wuHRi05GkP+Iw2Kgo9PtR1Wy Qxpb8i4Tx9ViM0RjYTR/r+CjyYorZV1oTihFPgib+J2aeMJIEmqQQGFJnXgogFedtZHq 1EBPtrojT/b8DQL5P9q/1dF5rJxNPuL/VGs+aVuOYgfNpi3H0r6wVDwR0cH4m/9uY1a3 CnWg== X-Gm-Message-State: AOJu0Yy+zpsoJwX2A5dCTLbqo49+8IbDPfh5nTtjSpoXCSGSM/kc/1vs sC61Sxw2spsDljNNNzM4lSmc9cXpqfRi5WAsVgm6leaLSTkSCgg9 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> Precedence: bulk X-Mailing-List: devicetree@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. 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: 1889557 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=khUXRvj0; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45e3:2400::1; helo=sv.mirrors.kernel.org; envelope-from=devicetree+bounces-34040-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [IPv6:2604:1380:45e3:2400::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TK0SZ5pRxz1yPg for ; Tue, 23 Jan 2024 19:22:22 +1100 (AEDT) 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 7D7C62871E0 for ; Tue, 23 Jan 2024 08:22:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4904457316; Tue, 23 Jan 2024 08:21:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="khUXRvj0" X-Original-To: devicetree@vger.kernel.org Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66FBF56B73; Tue, 23 Jan 2024 08:21:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705998109; cv=none; b=JoFUs0n7zC9OEPnhzVG8AqCbAautcuOevJ4mvB0tFsWSOikErzHVLIrGJ4zNqsl4HostchWI+ZMzYkTwLNkHA1IoGh3K65PgdEJgB+0tfDQv9TIFajRTFZwJtEXH+UVEK86jg2+IZTokVcP18t1QMDl6u0/ICuCzHMhDpEjihp0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705998109; c=relaxed/simple; bh=LkV+gvkBqIyRQD5IKrHVX65y2ftsGru9KKJxK5J+9MI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=OoMuSFajIHpJQtO8mDKDMys8ZBPi5KX43lX96hAB5Ju0zpn6pqhXiSnNF4C/53irfbn2BtKD/v6CXzf7Os9UHL/qU8JoNxK8CkPfUdJuc/35NMXg1WmKPrh0FRhDBuOH8/Tn0vhI3wK6UVCbV/hxPvWn8g/u9n08XXvrHQ3baLk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=khUXRvj0; arc=none smtp.client-ip=209.85.208.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f46.google.com with SMTP id 4fb4d7f45d1cf-55a5e7fa471so3519590a12.1; Tue, 23 Jan 2024 00:21:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705998105; x=1706602905; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=H0AEjAgTGGFMtUqCGTJO2UhVRa/rSiFP8yyo/+7uwmo=; b=khUXRvj0crHVe91bvzQjfEizc8vxuXjqyxAgxD9ntm8IN1vUw6Wgv8/uOg89+RNqOt 9TzWSKcpmCphOZw4w1hHMzPs/w2VlKCDDxgxlq1HCt7hLvbJ4aK05j0th3P4WQF4H2ik JGJZ1p/OA5M0Ydey8I5fV9MSg2k+oWW6/wLOh8wncL/TD0+6PVfu1EY9QCg8AxInlclA 0YX4z/nOIFGGlVE0LxjvfQplIfTlmRlOXpAzdhym8tG74eBvB90E579/xml/AOFz4AJh l2KZI4nQrySD7+5YeBIenN43NzinvgPP2A2O3PedFRFO+lOu/gVweTTD3lUn8a9fBiph 5c8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705998105; x=1706602905; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H0AEjAgTGGFMtUqCGTJO2UhVRa/rSiFP8yyo/+7uwmo=; b=Hkvsg2QjMDKpQclKNeChSzNgJCWBR0kgNO80j87UlqjE5grveLPYjRQ7lpa2mk5vRn LXoOJeBpfN7V5Bpk7gib6luuOGhGrqRz3wd/qJ7WuLtyZ3kFk7LcU7V1DYJnHVb5TK/T TnMvmtip5UksB51noh8gl9NlUIhhul/n1WcIZArMHrzPnyr6NaPS0btH8z5P91TE+Rxm JvCnF/Yf06pwaEGGZ+hcve4VFmvZjiSErwXMUP4m3JB8DYDWSuccsHzIiEtnhe7cy+PC QjHq2tmEmCTMqoT5BPO8Mu4rijpodd1VMGbRuuxrfvbTnHMzm255N/u8MJuHbdZ7f0tw bf2w== X-Gm-Message-State: AOJu0YxI3FqM8dvNkEMiT7TOsm80TBq9/PHyLAxWBDb2OCtaeJ0JrPcx TWARHz0U+RwGVrR/ciiSdY3i5+O7EeSmyN6cBZI5MeODnYQIPcSR X-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> Precedence: bulk X-Mailing-List: devicetree@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. 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: 1889558 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=SgYG78iL; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=147.75.48.161; helo=sy.mirrors.kernel.org; envelope-from=devicetree+bounces-34041-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org [147.75.48.161]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TK0St2gQlz1yPg for ; Tue, 23 Jan 2024 19:22:38 +1100 (AEDT) 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 EAB04B252F9 for ; Tue, 23 Jan 2024 08:22:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0453F57896; Tue, 23 Jan 2024 08:21:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SgYG78iL" X-Original-To: devicetree@vger.kernel.org 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 1431857306; Tue, 23 Jan 2024 08:21:48 +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=1705998110; cv=none; b=nAUKH3GdnpDVkWLLh9Unif5Od8E0E2jkZdl4ycAVj/HOHty36ItusdAVoono64jQ6jofHgz43bCpoKCHB7gMCc7KiR3jdUfkDvfwOsiQeMq3W6W/oRG0KytALN+Ofb3qOXiYQ4L/dJ8D72XkkVDMWAGLUAiJzvdwPFp6LqBRvzw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705998110; c=relaxed/simple; bh=E7RRp9S8O9GUe0hGW5IZaZwOOYkyBJFuAwnZqYZwZPM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=MIT50JLAGN9V4yIryyyEazp0+DX8UvpyIhfDwU2d79hofBqCWYgNDoNNIkWL9XMGBE3tfaXLBgpkygnf0nCYHBe3WSarMo4N+KTa/AKMv3RQ+2F8tHmis8e0KgCzx1HqdJ1vMu0Pog2HhbTedg90Lubjh93tVHzsTFK7PdaW82I= 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=SgYG78iL; 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-55a6833c21eso2858982a12.2; 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=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=r9YKyvRBtWfutykiie3fQAavhzcW2AS6pKksKHu05ys=; b=SgYG78iL2NcIhFRz7uONL9OrXQaWilSsR7WGPFl2GJB3Rg+bQY+exogp492lkSfcdy 6ZLu+WhHbBMieLZzjXSqVQ7Dv21a+/eS0QokjpZd2K0splwbMtpXjxLlF1BCufv0oDFQ 48Dgw/qZ7G4uINbRHv27knqetWlHwJMkLkLx/ShoLy8YqHgsewwUA5pdfDIeAWZCM3HE 5oXmR2Tl05F9o8fndsjHkX2jz406UTL5RFZRyfqbuYNmIkHUwIVb42RcuAqfTBZejBaA rsVuhqijLL9gXM7zj5xnTV810+8o71OOhiMeXrF0S3x12+ehg2usMWzdAI1svxgQTbFE /N7Q== 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=ujDG2iyPYhSn51zEKYZjq6pSqfUc9+mip7Wh9h2Nb1fjWz0OlZOqINcIyIA5caZh/a azvRidC44CWg5TIg5dDh/gAwvpKVnl2pgLswmrmPdkYVV+BD73GZHRy0JJYFW8LuoD/0 d6gYa5b49PZiYB8/8EZGE385oduhsP+rn1AiPILLjdb6h4TkHASArkWpdp163VoIVRhq moAYa9j1qfs/e8UWYIkP/ejXCAV3zjQ7ruT3Hs2XbEBcWc28Mex/Mgm0U57w76ZJcJYH nGA9JX1vRnvXL45D5i4D1G1EtPPab05lMNpuGw2BICsmXROLKpo3NaPsl3DTh5bOzWXH Ugmg== X-Gm-Message-State: AOJu0Yzbx9vj3Jr6JNMOFQUKSfy33ar0h8yBKCOFW0EDrgsdvZD8qcf1 sdtw1AKOlNYzWGP7kE40lkUNtTcLa/wg0D2ockGFLFc6knw1xRLG28Ew7yhf 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> Precedence: bulk X-Mailing-List: devicetree@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. 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>; -};