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: 200820 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp1017334dyb; Tue, 13 Feb 2024 22:14:21 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVbOtT2XfTaBk8IDDlWzTiDrWSZXWsMq3jYwiVKR7rQAA6pU68psZKdK3Bo01bxFNkVM7EkgpMThUbNpBKDMsTdJ13kug== X-Google-Smtp-Source: AGHT+IGVVE9+nmQIwoFLj4WLYB4C68jvvKtPD1zZ1rtAnqwqBR60DvPgMp9xfxc0RtDZ2LT6RFE0 X-Received: by 2002:aa7:c517:0:b0:561:aa6:3976 with SMTP id o23-20020aa7c517000000b005610aa63976mr1294759edq.9.1707891261375; Tue, 13 Feb 2024 22:14:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707891261; cv=pass; d=google.com; s=arc-20160816; b=yxZRbTy7EtcA/PxVZZkk9GaTA8c+yMbTZmEJS8GOrkl4tv9z00JZzFuoULVP0TNZam 4EjBV5Ely7uqcO6n4ZrWMp0laDxGeMoTrFVaXxrnkeBz/e/xH2CS7JBmS88tQRlXVt2I hwTs97e52CHBrcSC17B5K5NAIXADMOxJMhIpwvFr1P04hef+SgVUNQVs+lPobS3fg72u yf1h+mgVruSr2Ad3EiMNuVEQswukuIayo4Z2wJElQiAzC85qMuy0HsaTgC8a7F7BOjDu SVvLBbR8rRluXRYL3e0RLcK06/ZIYKPwbmFuMdehiY37HppH78Fht8SDtyQYsMMBt6tT UFzA== 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=Fm7RlLurDkB9nfwalxlLQ2JW0yHxYihI8gdZfuipTWc=; fh=gZAsO3395p4fYBohh3yuLVMTuMCl8XPrWbXvjft+Miw=; b=JVZFs9fWnEuIWSbGx5s3iyUY5kaSbg+BhME3vmidgv3n16l1HhtoWDSxiPcmsoejmz RcUi12HpjU+gOiqJ5C0MvVBWqvS4lpGOf6vlWGfixAD0+gCrqtiWoYjaH+mNkaqqECva /8Tg9lAY7Kdp5Hgk9vV+oOLoGxWdR5C2mqMDvRMGrbyMkETFWGRczH9wq3HsjVtYr+fx mIszORUEI1sdZWOmWJRT0lIY+XSg3Pg2ABshuU0mNXgupqmv9lw8WemcRTQqFYKu9oRI jzDELBO/oBwAASk3jE8mvBJm46EfdD8MK9D1hT3ZoonP36GuGP3GpFL+ktmW/jdNsM4S ThPg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="NaEAMEE/"; 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-64776-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64776-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=2; AJvYcCUmavbPZ1x5mM3UQeLmhT+Ww7nKmfFmrzSSPncg1FNpd+JIor/VI46vSsJTioF5VRB0wejlvapAopoV56MvDgmOGVGxEw== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y18-20020a056402359200b00561a512e6b8si3174170edc.376.2024.02.13.22.14.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 22:14:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-64776-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="NaEAMEE/"; 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-64776-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-64776-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 am.mirrors.kernel.org (Postfix) with ESMTPS id CD9011F26542 for ; Wed, 14 Feb 2024 06:14:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9707A125D8; Wed, 14 Feb 2024 06:13:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NaEAMEE/" 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 B200A111AB; Wed, 14 Feb 2024 06:13:19 +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=1707891201; cv=none; b=Kj+ar1phLXfjLQEh5ksB98NbpXZ6cuJrjvhsEJtZ9WhvGBeJPkuq+qmOtgkyFcvkP1FliXlFr3X2Rg/Nh+kftaIbqSk9FznWN+y608up22EbM08YxSyP8R7Dc35c856UqaYcav2zTHu/GUqTvNMUa4c0VaVuZfDJ0w0jm51gtwQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707891201; c=relaxed/simple; bh=7aIBd9Ub4VgUkMILxliwT1q+jMq3XfF8c+XqzX9wUrc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=FERfe1DPJVDka5W1VfTJr9Tnxt0rB6ijFnRu/ru6t7/5OvcHaZ0qcdjW1/MvSEXobZhWw2obARtGK7iBl+6ph/nrbRiCBSeccA+yMtDWLnF2OsPqW+7Nbjr8lntWoVpIFtvpDtTlCt2rjXjcn2KHKGQNCgX24Vhy2tTex+ddlVw= 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=NaEAMEE/; 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-55a8fd60af0so6798263a12.1; 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=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Fm7RlLurDkB9nfwalxlLQ2JW0yHxYihI8gdZfuipTWc=; b=NaEAMEE/bQQ811G+Ma5rE5urGRD/srak9kqITksnQ7lvnvOOgE7zlZmc3eYODJDUnT mdwfKFXr7973HBD9enye6JPx9wiSZHCYUtfxEQ5WrH5qfVKlG09lOaBrx09dBJTb6Vpw 2moxaq7N4337NWPXJcw1Yx9eT4IRD7OJYxXtS06eQ5YwiRU3+6FElG+UfNxizochiyF8 2MPzw3zEOuPY+6uZW9LGmx5ifkDvh095k9g8gPYs4nOCLvFXCAqn0EoHP2jU8GxKnn7x m8ivUeZI/eRll0Qgu6cb6K/gPEeOxpICU8aQsZuTv9NdcAzPKOSLb+ayeMhm6rGRjY6v 1HiQ== 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=jB20HcAf+m2KiEIr0xYK7NlU3O2YzKIWxczNPtjeBQVK92CfSREntthTrzZfOjWW0P fr5pesZ8vSMuyZng/wrsmirhmQlrGnntJIbiOj5sYz6jDKlhMRFhHDpRFUtWL7B+16Ka rP+3QP2TBQN4vrg79eKacSFHPfeoV8P4sQXO+snxe8SBbdlU4EchL7X4ujB8LhjSHQ5R ikPPiO7uUjUP5GsXEuBjQDAVl4dXaHqsNwNN37TeIOYwW2YPdMAltVKswvGp+p6jayGv uVUku0AR+deqsN+myRLcSTzff919QadZbbhpRjHmDpPQoaZgzz7hP5GMppXFxT4Nr4El 4rWA== X-Forwarded-Encrypted: i=1; AJvYcCWi/zQFXBWkG2DsUjvXDZqG7tKQ9Jo+eR4qZoNWxD1smuStVoIv0rU9NH2p72QzBZiWGKmI0EcbaVBAmfxwkz2pfnjRoqsj21vwWBvIn3pTYsSXzGt55XkCDDUWtuAxuBb/dTYksr/TMbUnM5EyxcOaEY0MdNXHGdfjtsRPTL0UWKCYRg== X-Gm-Message-State: AOJu0Yyfdoah0PLX54yXD1u/6v4Cd27NKbXL9oB2B/uhbxeIW8DDB+3J fXl5WXX/Gwo/WntkLf3auk1ntTtX9DmRouAyt7OTjQv1w7bsJafu 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> 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: 1790853787261705636 X-GMAIL-MSGID: 1790853787261705636 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>; + };