From nobody Thu Nov 14 04:53:27 2024 Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.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 72DB010A28; Wed, 14 Feb 2024 06:13:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707891199; cv=none; b=pabxlin6rQj/Hiqh1xug8Q/aVdDFQZ+UWQCD83xcH2UM/IhHeJ3W5iJaGaum/dFX3L1ppkCXP/7P0YcjBDKs7bNQ/TtmQkF7fDsYAtThC/Nj6RSAYLKr3gWTTyUnpPU82ywfr+714u0CTwxtOWy4AbeNikgSi0f08U84kNVArD4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707891199; c=relaxed/simple; bh=0fAQCTEnvIpzw1bBuG1bZ9WpLnsKPzuE76f0W4PCsXs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=h/XvixtJ2UYILtIuss82qZ7Qy4VY7cDuSFQP79PQsQABUf3vf36/TsW9ZNn+L6mlJtl+8NUpbzAyejQ8qqx5rK1uw5dbJ2DCmGYtTFPi1h8I+o4FdYig40+ZUi9heumI4f2m/ctBiGLxqwgr4rfPdaSyeMdJiCLbIwDBhUTXyOY= 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=C87qe6yp; arc=none smtp.client-ip=209.85.218.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="C87qe6yp" Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a26fa294e56so689337566b.0; Tue, 13 Feb 2024 22:13:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707891196; x=1708495996; 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=FYKNeKCJBPMaI8CwH2vaV/FLvsnFOMIKN5WCojMYSS8=; b=C87qe6ypHe5wkRau1d3oNHNpJrmU28eNHI1wDnjRGdaLT0QnXrlBUubttTQPyJi3aS +XVdcHdfxRzdG4iKPeeX9rWyLsD/xlaK3wxxmcZRapnMvq3cA+eFSbhLt2dATGayKgKb 4kkEhVwLTbNhPlrl9eK9T3Oq4WLohfZX4ImOaMeAkHlH4hkQPUpQC4qhQ0mq0jMJgaGt y6t8bfMlCbAHbypzVnXGUIt/sTEPjWf4JsZpGlKmc2ypgaNAg9fmR7gUcyT/HZRVf6CP oBwMKZ61KgnmyUj4XQe8A2hJgUq2XZoMq3VnxI8SvU6mLy6RGxTM4zb3Gq90Tt2TP0go BDBw== 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=pKwK3upw8Om+AsC7PcRSGQaE+nZNyDG5o/7GOdVtZ01C8jif3YcIDwGlTd04iEIB0Q pFLJghH+oHui5TTYEGq5NyhWw7IcyaeVzL8IeYiCdhCO+U68h3jMD3mcdMt3UO61Iosk ET1EOUHq4wIp5R+Y0TOl0QQ5k71fOmIqaTAy2B1po8vy4s5aifye5qGasfbQupQqMOIM 537AKOlfvw6qNh+OmXHaR9TCVLgMJ6UC5xMxmafaU4zqqEdu0sugJJgJESiipFLIMXRl abl5wBh0zZEyCUYWVqT7+Ma7aF+/sH1HEPha3mtZmHWTai0v8BKwZJlXrRi462JR0NeM fbXw== X-Forwarded-Encrypted: i=1; AJvYcCXzU17FErJfxzijrog1NFokZD3Q+brugNRcocg3vM2PKpjqXu5hqLSi36JlTcMKyo9uELU/zfI+MTRDTQekUnfIY6dfGDU/VntQGb6xyo1nwmAOv/RIJX84aiamSUEzcjR3tSwiOrvpuT0IIjwobCA/5g0pes0dGs0waVFtblY5QsluUQ== X-Gm-Message-State: AOJu0Yws0jHMBT3sDHrjZERj2VcI3kYvTIKJgCMZGJVnMjE1ZR1wgMNV Jsz4yT2Idm3aay3MHXSB8aWiZYh80aT0vedVv5XFFl/1WHYuu+Ti 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?q?Rafa=C5=82=20Mi=C5=82ecki?= 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?q?Rafa=C5=82=20Mi=C5=82ecki?= , 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> 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: quoted-printable From: Rafa=C5=82 Mi=C5=82ecki 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=C5=82 Mi=C5=82ecki 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 -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D - -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 =3D "mediatek,mt2701-hifsys", "syscon"; - reg =3D <0 0x1a000000 0 0x1000>; - #clock-cells =3D <1>; - #reset-cells =3D <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 =3D "mediatek,mt2701-hifsys"; + reg =3D <0x1a000000 0x1000>; + #clock-cells =3D <1>; + #reset-cells =3D <1>; + }; --=20 2.35.3 From nobody Thu Nov 14 04:53:27 2024 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NaEAMEE/" 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-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?q?Rafa=C5=82=20Mi=C5=82ecki?= 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?q?Rafa=C5=82=20Mi=C5=82ecki?= , 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Rafa=C5=82 Mi=C5=82ecki 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=C5=82 Mi=C5=82ecki 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,pciesy= s.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 -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D - -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 =3D "mediatek,mt7622-pciesys", "syscon"; - reg =3D <0 0x1a100800 0 0x1000>; - #clock-cells =3D <1>; - #reset-cells =3D <1>; -}; diff --git a/Documentation/devicetree/bindings/clock/mediatek,mt7622-pciesy= s.yaml b/Documentation/devicetree/bindings/clock/mediatek,mt7622-pciesys.ya= ml 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 =3D "mediatek,mt7622-pciesys"; + reg =3D <0x1a100800 0x1000>; + #clock-cells =3D <1>; + #reset-cells =3D <1>; + }; --=20 2.35.3 From nobody Thu Nov 14 04:53:27 2024 Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.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 730F01170F; Wed, 14 Feb 2024 06:13:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707891203; cv=none; b=L3lgx8dR02QkFKKxkujZgLT+Yw0k5dvq+fE9r/6oNxg6oRQfvsrhcB8SKGbDg4UR17Z6CnPcQ7W38rcjwF0TURK0IqHCY/tjEDfEiMdLZnL2+ZrvlvDfwrbcaA9H1EJM6gS8lpobodBRl11c8ZeLpkMSluwm8PAIEb6CHlMaN+k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707891203; c=relaxed/simple; bh=LgpLA72Yy2DgXq7fM3U+hFO1U9oOC9qFq5Ar4+afhHM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=CtADk41/jbdbby1oCAkuTFDXqkme58D+BB+Dx0BoqEvGp9gwSySQSHFt0Ncn0j8bR6g68tjJQkJ6Q3IhZPKu3sRvRrWP3+4LAXpEfXXSfeftR08J+4h6Ymn1Uf6XsOJ/ET48AJnMVdNhoAysdivBv/F6eYm/QNHpAoIqZMSEU1Y= 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=DqBXR9n0; arc=none smtp.client-ip=209.85.218.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DqBXR9n0" Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a3cf64f33b3so183967166b.3; Tue, 13 Feb 2024 22:13:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707891199; x=1708495999; 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=0EDbWqws9cGFaTSgQ7d/JTeQtcU5zOGhJZiE31yQ40s=; b=DqBXR9n0CAqjQowmqGaMPYUUWDChm7x04czGafI75QcwuOVxVid8cx4KnRoHfor+zy PQix2J1Dlb1a7o4qwJlgJjE6qPXqBCJDybD8CwMp8ru/T+HBvTiMbZDpSvuhyq+t4tkD /RQ+Ht/O/v6z3fNwxviLv4osIq+I8X3ui4/UikdFFOuts6pPyRaFzW0db6sbEMoVAVQX piy3vhpT2wBi4wsgY7gZSK1ZQiprCz1oM/4OLTSSl9GIDNoF9gxN80IA+tpNBE+zPzyO fGR51GGVHvNQp9kRc9LssGUO4bCK2IbDKZwjeoENDQHoo1uxY4dqQrwi61cMBf5wwRv/ rlFg== 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=fZqTWlagEEATziC/OcwHd1rxQ+VO9EDpFOpuETYwy+nLRWIOsBWjE6DwDY8KkkI6Y0 NkmBOBfQd3BLRefKaIzN8AfNxV3P50nJtfiltXr+TmW+hHYCbP0NHXXokTvW3IEYg+0y dWb3tf3sYtgfYv4+F+Ekzq0wmYXCbhMfs/Xottx0hf/7G966Tn86aL7Ydo8wNuYAKiUQ 52BaTDj8GC+JVmrEaf4tG4x2eIZz3mH8T7cTndCTXWhwjxNvX4Ja34EQAcH9sD66BOAb mkOeQq43C3+S56tdjI0ylQ9Np7ThOWn5vTHW0Yb2/QN+aYcHA/iSmPxfs+17rlpj4r1F CzdQ== X-Forwarded-Encrypted: i=1; AJvYcCUoO1NtVEhLxSYK/OGKonqN6Fc0nRNh/enGbCewMilFQBsVumuye2Wsqvv1Qz+yBFdUfNScwaaTDbzD9+HeIuTt2IQ6FFoPfM2z4ZocJRd6mTvR5L53mfMB5ETeEX+S2mAB2O0Xc8UXvE4WG1nTfxUqSJfiJurubT22hjwFLQwHHmIhVw== X-Gm-Message-State: AOJu0YwfN/jkyA2kituIqHulfBUqVyd6BeL0eLiXsylvoEb7mkLf4xyU NELvOZFCR5o9pppiFGVMppi2e7zr6Ru8pXj0WF3StXmBi7uTw0e1 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?q?Rafa=C5=82=20Mi=C5=82ecki?= 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?q?Rafa=C5=82=20Mi=C5=82ecki?= , 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> 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: quoted-printable From: Rafa=C5=82 Mi=C5=82ecki 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=C5=82 Mi=C5=82ecki 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,ssusbs= ys.txt b/Documentation/devicetree/bindings/arm/mediatek/mediatek,ssusbsys.t= xt 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 -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D - -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 =3D "mediatek,mt7622-ssusbsys", "syscon"; - reg =3D <0 0x1a000000 0 0x1000>; - #clock-cells =3D <1>; - #reset-cells =3D <1>; -}; diff --git a/Documentation/devicetree/bindings/clock/mediatek,mt7622-ssusbs= ys.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 =3D "mediatek,mt7622-ssusbsys"; + reg =3D <0x1a000000 0x1000>; + #clock-cells =3D <1>; + #reset-cells =3D <1>; + }; --=20 2.35.3