Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp329725rdb; Tue, 23 Jan 2024 00:24:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IElt8tqNMDJFnV3Givthy3BfXTTHN8jkVd8ExkZYwh2F3gkLpZpzEgXIS4VxXgiF8NzM3Jk X-Received: by 2002:a4a:d80c:0:b0:599:6bc3:91fa with SMTP id f12-20020a4ad80c000000b005996bc391famr4038377oov.0.1705998248405; Tue, 23 Jan 2024 00:24:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705998248; cv=pass; d=google.com; s=arc-20160816; b=SEXgw9EthhW2M+E2v+bYrV+fEXQXXNQlvt5XSpoUX1C7h3waKyMXD+27sZq4yW5WdN sio9nRjQfSpzxsxmMEP4I8YjdSElSzhuQX6k0QGxbR6PWST2Pm4mcisb0OdNo7fUEa7t CY1YpKKfBwxI/CBSo4E0NDIEvfMCT9D3JcSi2+Y9u9pwinLro5OmroVzNg2BfwDsbVEs /CUkiwyBcGofD2tT6iMAv8PAwWw4Ytc1iF4+gISpWk3vA9ARM/gd54SYF+ExVmwJD0Yn 6jPRZPvjDywbfe+WNkVH3MlHap1lUEvagYlm6prKmUp9MJIF9InN1D38zVtHI+ubXTHU tTpA== 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=nhtLzN2peOVLFpsd1om60a/LkFzwt1x9izkXcUJXVvE=; fh=CQPSOQ60ef5DHMqoN0DAsvcLhfaJ1tE4Y2sIcTYRMVI=; b=vfdLA6OpdH0R51CUSKGI0cUR39T1z5uQuFTbScunO8XayS//fmzBDLJiQ0uesqlQ/f mcxpTMyi2OXe7BA0FxDLzmotocRIqiBTk6dQHvltu6NC/NadORl6RbZraM4y8qUnSAQV T+oSRDjiB3pK+Ai8ERlRBjI21vAue5RIz4oFiTsbwlttolR7f5CDIySOHs2YyQzEB35B nfc0vAU6wP6q2JnLWnA7OUfyFRqMWIZzMbhg1XY8EF80ILffsm3XB69XcgSf85mcLsZX 9pruMmPsD4NsnXRmk8F6kD8rzDPNn0R9u402Lze+QJ+l4++w/+9FyvHLgATjKJ0h9q4d 9BVQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="AqvjUQ/T"; 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-34883-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34883-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id bx31-20020a056a02051f00b005cd85b1eaf6si9792828pgb.398.2024.01.23.00.24.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 00:24:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-34883-linux.lists.archive=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="AqvjUQ/T"; 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-34883-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-34883-linux.lists.archive=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 6344A285EFD for ; Tue, 23 Jan 2024 08:22:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E2CEB56B88; 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" 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-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?q?Rafa=C5=82=20Mi=C5=82ecki?= 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?q?Rafa=C5=82=20Mi=C5=82ecki?= 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: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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>; + }; -- 2.35.3