From patchwork Wed Feb 14 06:12:31 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: 13555993 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 05300C4829D for ; Wed, 14 Feb 2024 06:13:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=T9CL88VEKkpxD8Oa9ZtHGwz+FieStqKw7n9MfBztB+4=; b=yavk11btn/RLuI r1Nwcp/AOor+6T8DUSh8iXjg8rJGdrV26XvjZR38IbnqrPBDdyJQTiDCtSl5v+L/RwefUo3jRU/Aj mHBqI7QKPFsx6LPT7+SwutHDtmIJsO3Rp9Us5JuYeOF0zEuuCJgRWtmIwjMK77Hr3X/nXjaPGhWs1 Auc51FjJ+bvmYNTyM4rf/KPyODksGQ8wWKei/rIGW9ziZqSNnxCKDexZp1YFVpVqUyj45YGpeqpfh yoUVOAKq3RNXCS2r9uQi5JDgKK4JuwuGhzUwZwgwim/RGVn5B8MgXLMCpWk5XhNjBrVvlFC3/6BBh zYUKq24KJGrIDmHNINyw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ra8WW-0000000Bvqn-14OX; Wed, 14 Feb 2024 06:13:36 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ra8WK-0000000Bvkf-18uJ; Wed, 14 Feb 2024 06:13:26 +0000 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-5638447af3bso97153a12.2; Tue, 13 Feb 2024 22:13:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707891196; x=1708495996; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=FYKNeKCJBPMaI8CwH2vaV/FLvsnFOMIKN5WCojMYSS8=; b=PHF2qZBUix8CAIxo/31smDcPN+KkBtkOIMmUVKgR9GRtbpRYQWIDNDbCiQWXs/++bB qey7fOE+L5Jxf9gz2W8aRPShfRwGPEN6064IbHU4IC+AO37Hj4FIgj8VQm7bzcJOo1hV CYBZ4SVkvVI7UTpyIUGnkmWm9tZ7dUnuGol/0y0rHRC0eIMnGTl3VhRVDowpsHf/Dp/P C6KIfmC9zWZLQQ5N9JCXcRF5EEw5kZ4Ldz/jlhW/A3DLdYzeZRozPk1ydEB65A5kJ8GF AMmjamL+1blXOUUMA+Z8/2Zepa6UWzOFLNCwxH0bY3nvnC7I4X2vLi1gCXp6iSAcMoZn ftaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707891196; x=1708495996; 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=NEodTKRJC6zkXaSdUKOXr4U0OuT8rKipeua6KAMyq1pKT92KCQ4csst8eR+xbydK2K cOEDrRJK8PAwObkkQosZlPaA8jFnOwH5ijptOfvT5piC8E6UpaZaIYtQcCmslfAHmIv+ hBY1EIuFQ07q+TdZZUFQGmEsfQyvrTzKV5o23KN0Cq2ZEVuR2J+UKMqTHOLxghRDKMRI 1nFo4iE73bk5cp1C8MRvKRRQ5GsKIE3tp2389v2rBJHhYoBTFJLM7BtdCW034ThiHjOF 5wLLjfxRK85Hczcj8vKKrtg8UvzdAnQxevLu8xNBCyjVinfGJ6fUYbzAUZ/p/JOGjLUK uYPQ== X-Forwarded-Encrypted: i=1; AJvYcCUbwIxcQ3c18gmMfg7mWTXD3oUIR1rjc8NoocwPSoSctxKdGVYcWyU3UEqJz3VCRAyuMabgQG7zRPC3uozGbLBmeJIE1++nHVB4nc3d84y0Xf+Vvgv4xB877evvCMCJolAlV6sSk+PcBJc43B/+40heQ+uQ4GRL32Q= X-Gm-Message-State: AOJu0YwbXS0JakqgqAXXYvnYmsJkMB+pIAG8UjmA4cxta0DS38CcFHBr AYppiy2kUGzA/ZKZUft4GNby5u7edvVf1aHchVLFawCkIewpn0pa X-Google-Smtp-Source: AGHT+IE6U5eDyqPd4NxbI1MXNFUahg8cw2wNelK2ClmTzwpWQl+yo090cvZ4ToXaF74wBpzTBDLryw== X-Received: by 2002:a17:906:3591:b0:a3d:3781:6edc with SMTP id o17-20020a170906359100b00a3d37816edcmr724594ejb.55.1707891195657; Tue, 13 Feb 2024 22:13:15 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUA6/cWH8rk10rbePU2FffSK6B1tnl0A12AHsAkeryQ1Y4NTIDw2VRh7L7h5OwCIh85kJItn1tkW8nDQKXdSaAbcfXAcISGoqlZSdZLcZsK9e3IecwolTfoQX+pnRLo/5WBtCCnZy1Hy1bQ6mN34z3QMZxtw+702PRaX2m42qgtZ6QIiOaHzeGAgtf+iUgn7Qi74P+C1Ol67bJJuc+n8oPXJMHkMH1rSmiJ98C961hlXzUp1daeUsX8V6idUE1zu/Hai1Zi3CzOT6EidnB7SbnXsAD8L2oFF9KFopnCA4oxVhbcMxRvHVW+6Ztx7SOzDhqVbNMiS5IWTk7rpVy4b4H5rfPb1H+TfJtkvzTa6lVxO3KSQM6ewbhED+imCe2tUggqbjBkMqdkFkxMVrMuljwGVsHKIRt/AnZq+09sSXdU9NuXO1TA8oeZXrkCwPPc9qQwsCL8M2yKOEG48J/yXUk0otyNZ1ubSeJW6Ewa4tmA+c3h61+wBBFstSebTyxik7fxbbixXpDsh4aL5JYZa+r80dvNpMp27iOcU76U9jYChvZB0gSa1E/v5MzmbZi1A8l2bOz5UrKktVpegMwwI/2wx+XaaMKv9GUd Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id ca23-20020a170906a3d700b00a3caccb8f66sm1980163ejb.44.2024.02.13.22.13.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 22:13:15 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Matthias Brugger , AngeloGioacchino Del Regno , Russell King , Daniel Lezcano , Thomas Gleixner , 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 V4 1/3] dt-bindings: clock: mediatek: convert hifsys to the json-schema clock Date: Wed, 14 Feb 2024 07:12:31 +0100 Message-Id: <20240214061233.24645-2-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240214061233.24645-1-zajec5@gmail.com> References: <20240214061233.24645-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240213_221324_379425_E794C00E X-CRM114-Status: GOOD ( 16.20 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki This helps validating DTS files. Introduced changes: 1. Documented "reg" property 2. Documented "#reset-cells" property 3. Dropped "syscon" as it was incorrectly used 4. Adjusted "compatible" and "reg" in example Signed-off-by: Rafał Miłecki Reviewed-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno --- .../bindings/arm/mediatek/mediatek,hifsys.txt | 26 ---------- .../clock/mediatek,mt2701-hifsys.yaml | 50 +++++++++++++++++++ 2 files changed, 50 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,hifsys.txt create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt2701-hifsys.yaml diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,hifsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,hifsys.txt deleted file mode 100644 index 323905af82c3..000000000000 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,hifsys.txt +++ /dev/null @@ -1,26 +0,0 @@ -Mediatek hifsys controller -============================ - -The Mediatek hifsys controller provides various clocks and reset -outputs to the system. - -Required Properties: - -- compatible: Should be: - - "mediatek,mt2701-hifsys", "syscon" - - "mediatek,mt7622-hifsys", "syscon" - - "mediatek,mt7623-hifsys", "mediatek,mt2701-hifsys", "syscon" -- #clock-cells: Must be 1 - -The hifsys controller uses the common clk binding from -Documentation/devicetree/bindings/clock/clock-bindings.txt -The available clocks are defined in dt-bindings/clock/mt*-clk.h. - -Example: - -hifsys: clock-controller@1a000000 { - compatible = "mediatek,mt2701-hifsys", "syscon"; - reg = <0 0x1a000000 0 0x1000>; - #clock-cells = <1>; - #reset-cells = <1>; -}; diff --git a/Documentation/devicetree/bindings/clock/mediatek,mt2701-hifsys.yaml b/Documentation/devicetree/bindings/clock/mediatek,mt2701-hifsys.yaml new file mode 100644 index 000000000000..9e7c725093aa --- /dev/null +++ b/Documentation/devicetree/bindings/clock/mediatek,mt2701-hifsys.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/mediatek,mt2701-hifsys.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek HIFSYS clock and reset controller + +description: + The MediaTek HIFSYS controller provides various clocks and reset outputs to + the system. + +maintainers: + - Matthias Brugger + +properties: + compatible: + oneOf: + - enum: + - mediatek,mt2701-hifsys + - mediatek,mt7622-hifsys + - items: + - enum: + - mediatek,mt7623-hifsys + - const: mediatek,mt2701-hifsys + + reg: + maxItems: 1 + + "#clock-cells": + const: 1 + description: The available clocks are defined in dt-bindings/clock/mt*-clk.h + + "#reset-cells": + const: 1 + +required: + - reg + - "#clock-cells" + +additionalProperties: false + +examples: + - | + clock-controller@1a000000 { + compatible = "mediatek,mt2701-hifsys"; + reg = <0x1a000000 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; From patchwork Wed Feb 14 06:12:32 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: 13555994 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C69F8C4829A for ; Wed, 14 Feb 2024 06:13:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aAVhgN4EbpsAQ0ZyEdRud9gFMuXpPLu7NikOTW4j/+4=; b=ZjhLmni564geg5 vK54wvRlebOCeOqfPUF5Rwhyy/sFxfr3M+lwClfY1f1juVRgXcR0nXJ20z4+fTQAUpQCBQTJ8htb0 Jrx1wCtPNvYD96+b/JfuYpRHBLMJ6U92DCz9cabqLVgnOdUhXTC93W3SSzTa05yWecJulhs9rNuZq CbNOVGr+60DJIC2ICM/3ayRf+DRLfqyQCPuex7Ol4X/m7EME/Xi+cU6kR/pIZQRJ8ixefyB5H0A59 omLIPZSoSch3F8u0ySetNfPLHo5Pa9elF2cZanrWd830TwtoZiG4QIH70Vh+AwiypFHWwmn2x/pq2 f8uwlCrKaMjWMyrx7Lmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ra8WV-0000000Bvpx-0RAc; Wed, 14 Feb 2024 06:13:35 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ra8WK-0000000Bvki-1832; Wed, 14 Feb 2024 06:13:25 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-56386d7e7a9so75690a12.3; Tue, 13 Feb 2024 22:13:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707891198; x=1708495998; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Fm7RlLurDkB9nfwalxlLQ2JW0yHxYihI8gdZfuipTWc=; b=gGnS54DobXf+ZdCEUhlqTH6jMACkTQv7ENttuaKTNPcQTp1YuKt3tt3z8yUOOuIhJx xWXfuXWxtNISN1/2zmwydlQJI800+FE+K+5eSS75dOuEy2+o9qvVlctQEw1uvtdqvSKP uCcAsm0wglGDeGN0eJ9SPbMOK3PJKR5pbfQMfYfe4OgjQdYQcYq3SHOHXndvLTuZWogj YVwhgY9kJVUi5sZrGsgc2e1EUvNjJwxc+DKuXdvyjLWfFuz8X4SwWjfOKFYPVc6WTGhv sNypfsLUXV0PAROLZ5pFK2fETCDh7aDiD0cLSG8zqjgN3d/qZOMFRf5DKlyLWh6AFzZY Mfgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707891198; x=1708495998; 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=WTAy/qMC4xUhIdO7Iy0hNs9s2CdbkkPBkKiqCgC0yCsUzAywtcmzlg+h5ch1XCBj+V ALtmPV6XNQ8BEyJL4ncwKMcWsun6rniNaa6VuWSh2Mp0UV7imvf3dUiwDPMtH5TEVbQy GGjBbdM/jmLkMTLju2jZQxJSKD0l/kG5N1tvXajdf8AsAyDR5QoASjEUoTyrzX1JzsRX XLNq6UYEpbLbYVXhy0ItDqwzGQdNSP8DJ3zl5bwHazy9/kijLDGKy6ekXqKteRiL8dIL zrWizzUC5I5vLPzs4OJrR8tFNMdt6tgYr1WlgQPrU7UjnJmmBjh2AX4qaYEgOA1MFxkO /GEA== X-Forwarded-Encrypted: i=1; AJvYcCUx3UErS0+It+MZJPoj0JCvD4npJtXNbCYnERb1ntfTe44Fw2uvgVGNgAkYeGY7Q7jJi0FwLIjwDDqTTivZETgsAcJzRPuxiGVt3zwhIy8ZY3tj9EViC5t0qWnHMQPSP39BCSPOrIi6EH0ni2f6M36mOSur6q9R9mw= X-Gm-Message-State: AOJu0YxfIWMYhG5Yn6LCY6K9bhabcMMy4eQzbhy8x2u6heK9xB4QE+dG uV3C26uFQhXcD48aO3JgQVkUeV7uU+s39oMrrplI3fzZlC4RofprEaWSeo4R X-Google-Smtp-Source: AGHT+IE6vAggKpthxxjybdmDgBEebRvguPc9ZiRq1zVHc9Ghzh2ZwyyLhUgUWwF+aT64O1YJHrAJgg== X-Received: by 2002:a17:906:e086:b0:a3b:ff1d:43a1 with SMTP id gh6-20020a170906e08600b00a3bff1d43a1mr1118210ejb.53.1707891197676; Tue, 13 Feb 2024 22:13:17 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWHguzWqGVn3ASuDOAp0rM46lm7SYe7FHG+PybMh2tpknnmhFcGzex29Mbwnueqj87nMN6va+oMQLeM4fi1wv7FI5tDe/6uOGjwn8p/wOUa1V0KMlm7MnOXnlwCeLKQwwoer3opr9Po2HPEpPtC+PZiYrWgMmk1LnyPJ6/zJ+5eg5+DyqBToRMPJYZnA41PbqOmDWpMJp3W174xSgzKbrVToOhWUS7AfroOacBZzARd4mVqtGHHnZBALrcdP6ruEoBmrYzje9uoT8Av2mO17LJ/agGuL82ybmLfNJ9yf5RqfAZcldNVmz1SaWWskV4euwbBaNl6Zyid42YUyswBdLWiLFt+zmaNxovv9HcFsC/aJ/DTkwRFLwniScEp27qVJf8TZJf4TzOhRc8rQ2Xv/NWhPk5khH/phtjQcPVFgZ4vP/nknheQnyfc/U0JbJo5Fc9T+3OQ50rNlqkpe2Y8MHdS2WtExiCs76zCCOYOR/Zwwq9Ba6j7pjbvBKS0WWpWvDj0J38uYBCjEi8seTvuFMUJw52ZYutZ9vQVfQ7lYNx71AEFbBgDwiPn8KnZJfAAMcsqxeW8T1MrVGm2QPDlIQz0kC/BiByo9C2T Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id ca23-20020a170906a3d700b00a3caccb8f66sm1980163ejb.44.2024.02.13.22.13.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 22:13:17 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Matthias Brugger , AngeloGioacchino Del Regno , Russell King , Daniel Lezcano , Thomas Gleixner , 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 V4 2/3] dt-bindings: clock: mediatek: convert PCIESYS to the json-schema clock Date: Wed, 14 Feb 2024 07:12:32 +0100 Message-Id: <20240214061233.24645-3-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240214061233.24645-1-zajec5@gmail.com> References: <20240214061233.24645-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240213_221324_394348_BD888C84 X-CRM114-Status: GOOD ( 16.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki This helps validating DTS files. Introduced changes: 1. Documented "reg" property 2. Dropped "syscon" as it was incorrectly used 3. Adjusted nodename, "compatible" and "reg" in example Signed-off-by: Rafał Miłecki Reviewed-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno --- .../arm/mediatek/mediatek,pciesys.txt | 25 ----------- .../clock/mediatek,mt7622-pciesys.yaml | 45 +++++++++++++++++++ 2 files changed, 45 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,pciesys.txt create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt7622-pciesys.yaml diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,pciesys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,pciesys.txt deleted file mode 100644 index d179a61536f4..000000000000 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,pciesys.txt +++ /dev/null @@ -1,25 +0,0 @@ -MediaTek PCIESYS controller -============================ - -The MediaTek PCIESYS controller provides various clocks to the system. - -Required Properties: - -- compatible: Should be: - - "mediatek,mt7622-pciesys", "syscon" - - "mediatek,mt7629-pciesys", "syscon" -- #clock-cells: Must be 1 -- #reset-cells: Must be 1 - -The PCIESYS controller uses the common clk binding from -Documentation/devicetree/bindings/clock/clock-bindings.txt -The available clocks are defined in dt-bindings/clock/mt*-clk.h. - -Example: - -pciesys: pciesys@1a100800 { - compatible = "mediatek,mt7622-pciesys", "syscon"; - reg = <0 0x1a100800 0 0x1000>; - #clock-cells = <1>; - #reset-cells = <1>; -}; diff --git a/Documentation/devicetree/bindings/clock/mediatek,mt7622-pciesys.yaml b/Documentation/devicetree/bindings/clock/mediatek,mt7622-pciesys.yaml new file mode 100644 index 000000000000..c77111d10f90 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/mediatek,mt7622-pciesys.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/mediatek,mt7622-pciesys.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek PCIESYS clock and reset controller + +description: + The MediaTek PCIESYS controller provides various clocks to the system. + +maintainers: + - Matthias Brugger + +properties: + compatible: + enum: + - mediatek,mt7622-pciesys + - mediatek,mt7629-pciesys + + reg: + maxItems: 1 + + "#clock-cells": + const: 1 + description: The available clocks are defined in dt-bindings/clock/mt*-clk.h + + "#reset-cells": + const: 1 + +required: + - reg + - "#clock-cells" + - "#reset-cells" + +additionalProperties: false + +examples: + - | + clock-controller@1a100800 { + compatible = "mediatek,mt7622-pciesys"; + reg = <0x1a100800 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + }; From patchwork Wed Feb 14 06:12:33 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: 13555992 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E8695C4829A for ; Wed, 14 Feb 2024 06:13:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ov3BDW9+0931rzMA0bj7U4SKhM3K81rQ33tvBjNZwts=; b=i6RuDyDhZbWaKW 5utIZSC56sQzwX2qm9wjyL0hSOxd0ANWgqBzvTZrUlPPltLvio12llbdcAysLyv1Ah+9meiCZKPfE JJlSmnNCnNo0XJnNcN60y3y2pjjhdTOOqEKjPsJSzyn/hJm5R+2dzwsFFzCiox0bK4r5wxvlQp9DU 9WmenCKxpU3DgIpTMVxlCc7nlCMJMNkvVC+OlpYuqYSIzFeWKDLkk+biPrIy7A+EF8GUpFQCMqTtr wiiGM4GKX5bU4yrq9p1e9K946hReb/PztdgDP8Us5E/bz6ZCMpbGCPGoTpMDrgQqP4MwP8oeRe2Wa L1VaXnKxP7iJwA2r1y1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1ra8WP-0000000Bvnb-3hdm; Wed, 14 Feb 2024 06:13:29 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1ra8WK-0000000Bvkj-0IkZ; Wed, 14 Feb 2024 06:13:25 +0000 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a26ed1e05c7so246436866b.2; Tue, 13 Feb 2024 22:13:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707891199; x=1708495999; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0EDbWqws9cGFaTSgQ7d/JTeQtcU5zOGhJZiE31yQ40s=; b=e9QjHDB55Cn4pQx/Q1fFys1LOB1WRaGCS7e/8iqHf9VKgzv0bQ4RyV9iFgY3GBTyYP 49hnq7HAzhEzIYRLXHK/OC9jLv+BBW34/mGmuFV93X1AKlwnmRc0VAzSns0bP8j5WQ0f 59t+wb/mAoi1q+unZkDVt+/5nnu51riJ8DkQ+YsQEqHAItjSUny9Goy0xTDbbKGwJ2Dv Udnlzhmk+w8V9MjuktdPcns/u6R3fdnqNSYesngTNHWlD/9XZyGWYBzQR/nRZUxruWGP uXDWJXM9FuDb7z0mwYRa5+RNwdQ1VIOqa9VqUQNvgrswVmbeAsa3/QnUICp0UWAWZz/c UHhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707891199; x=1708495999; 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=iSMFW8efDi0woLtJlJ0XdDsZ5BuTdoF9gGUAY6KEfakwFgfEu6FcEzYBRrQSpOsCK8 Zx9o8kBvJpZj1AU8ayKzBfyRVioQNHEY5Pcp/25/Pvjh7HXsk0bjF4rlg9fCesrQAB6C LaWG4pYDAxlIXTN8K57UiNbweksi/ufvHfwbtfbfwoJdk09PtxKEgq30omgo45p7Qsk3 opYKitYQ2F1Wq6mB3EovRmu4DxcvC3mKUVnj+HEF7GSG8IdaaVaj18KIJ80qlhRy7iXZ QFS8sey+ypeBFQaedIr68oBs7JGFvCOATvQFBBSpUQuNrq5yS3rIXuQ6Uld3Ig1JRjxg 5YQg== X-Forwarded-Encrypted: i=1; AJvYcCUFp0RrEDcE163p4bkCzBLZDy1HQUDh5S+sDTZJ/+U4QZrbfPynTPchI0WFNC48W/rvHzjXZznVJGxpCmM+WNsX+BVXYMGg6ApaZxNVdQKpTh7lch2PyiG0XLtTDNavVlBMVO2mqzH5VvnfvDx5KbM7xDw4efO8ZJw= X-Gm-Message-State: AOJu0YyjlPTSDJQWGeUq+1zXayjzDHdNyFMBcjdy03pvm0DjyKyj78mD MS4XVYItl1NK6q2W6z5mjGmd+vZ5x8m4MbyKP39C5vfHVd3MjVd4 X-Google-Smtp-Source: AGHT+IGcdc9MhMF2QCYXKDqgHAb2iQpgiSM62KSdnvoJCUvMTwnehra+UAazTEfsrpPrGHVZ7N5lZg== X-Received: by 2002:a17:906:4a8e:b0:a3d:4dec:26f7 with SMTP id x14-20020a1709064a8e00b00a3d4dec26f7mr338386eju.6.1707891199525; Tue, 13 Feb 2024 22:13:19 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWyN8G4qtIV202cD4o9ZwYJxigXomwvuwD44sYYENvf/P+NZwmHwC+mlVJd32ng0LnLOo9xX0nuFr/NU8vNqFrz1ovgcR8wX1qhe7TG0oBhaDIMxI72PveuU+FovLjBEjxV3p7D6LjZUGfZAOIJIQIPEu8V/Wnz6UiXHisSL5JdnwfTAWPeVR5p2K9YINIb6WWGS5OzzSRTBVmp6ss8jeiU17vEeY/gOX3eDR7DitLuGjk6NTbvX0dp8Mfz81Yy3mPEnBvnboRjx64eSXmpoB+euFmIldHnVa/qec9QCz6iZFrKRjAEWaOTMdRzTqDazEH5WhWuNxCUq9sFDPr6JWBdYcjY9dwaGRMViSQ9zfWsIo6BFWJY9iTUk9asxQuaKIvajlRHSiGuMbit17oxV64VTTIIQA64qPVNvfJzERtbiVXb/lg/rELNSmEr6XH6z7I0Fc3ceJOGl2CnlbCg4jGyjQhXih9QZn+YCd89S3vkyDOicm/XoFyHiPWvYhm/x3ARWvFaGc/0c5cJGlzD3xiGTlV3MhM6SgOkrGTB63eTTeZ2byCN5NMiG5/XH/28JI891Gy4FBixopGm17QS0EgZ1mMH/wFkjY/h Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id ca23-20020a170906a3d700b00a3caccb8f66sm1980163ejb.44.2024.02.13.22.13.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 22:13:19 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Matthias Brugger , AngeloGioacchino Del Regno , Russell King , Daniel Lezcano , Thomas Gleixner , 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 V4 3/3] dt-bindings: clock: mediatek: convert SSUSBSYS to the json-schema clock Date: Wed, 14 Feb 2024 07:12:33 +0100 Message-Id: <20240214061233.24645-4-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240214061233.24645-1-zajec5@gmail.com> References: <20240214061233.24645-1-zajec5@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240213_221324_143811_EFAE3B1E X-CRM114-Status: GOOD ( 16.90 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Rafał Miłecki This helps validating DTS files. Introduced changes: 1. Documented "reg" property 2. Dropped "syscon" as it was incorrectly used 3. Adjusted nodename, "compatible" and "reg" in example Signed-off-by: Rafał Miłecki Reviewed-by: Krzysztof Kozlowski Reviewed-by: AngeloGioacchino Del Regno --- .../arm/mediatek/mediatek,ssusbsys.txt | 25 ----------- .../clock/mediatek,mt7622-ssusbsys.yaml | 45 +++++++++++++++++++ 2 files changed, 45 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/arm/mediatek/mediatek,ssusbsys.txt create mode 100644 Documentation/devicetree/bindings/clock/mediatek,mt7622-ssusbsys.yaml diff --git a/Documentation/devicetree/bindings/arm/mediatek/mediatek,ssusbsys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,ssusbsys.txt deleted file mode 100644 index 7cb02c930613..000000000000 --- a/Documentation/devicetree/bindings/arm/mediatek/mediatek,ssusbsys.txt +++ /dev/null @@ -1,25 +0,0 @@ -MediaTek SSUSBSYS controller -============================ - -The MediaTek SSUSBSYS controller provides various clocks to the system. - -Required Properties: - -- compatible: Should be: - - "mediatek,mt7622-ssusbsys", "syscon" - - "mediatek,mt7629-ssusbsys", "syscon" -- #clock-cells: Must be 1 -- #reset-cells: Must be 1 - -The SSUSBSYS controller uses the common clk binding from -Documentation/devicetree/bindings/clock/clock-bindings.txt -The available clocks are defined in dt-bindings/clock/mt*-clk.h. - -Example: - -ssusbsys: ssusbsys@1a000000 { - compatible = "mediatek,mt7622-ssusbsys", "syscon"; - reg = <0 0x1a000000 0 0x1000>; - #clock-cells = <1>; - #reset-cells = <1>; -}; diff --git a/Documentation/devicetree/bindings/clock/mediatek,mt7622-ssusbsys.yaml b/Documentation/devicetree/bindings/clock/mediatek,mt7622-ssusbsys.yaml new file mode 100644 index 000000000000..da93eccdcfc1 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/mediatek,mt7622-ssusbsys.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/mediatek,mt7622-ssusbsys.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek SSUSBSYS clock and reset controller + +description: + The MediaTek SSUSBSYS controller provides various clocks to the system. + +maintainers: + - Matthias Brugger + +properties: + compatible: + enum: + - mediatek,mt7622-ssusbsys + - mediatek,mt7629-ssusbsys + + reg: + maxItems: 1 + + "#clock-cells": + const: 1 + description: The available clocks are defined in dt-bindings/clock/mt*-clk.h + + "#reset-cells": + const: 1 + +required: + - reg + - "#clock-cells" + - "#reset-cells" + +additionalProperties: false + +examples: + - | + clock-controller@1a000000 { + compatible = "mediatek,mt7622-ssusbsys"; + reg = <0x1a000000 0x1000>; + #clock-cells = <1>; + #reset-cells = <1>; + };