From nobody Thu Nov 14 04:43:40 2024 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 8D7A74F5E9; Thu, 8 Feb 2024 21:59:37 +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=1707429579; cv=none; b=JhplOzxq6IRY94KO02FugFNTTgoW+kXQqbd8VMT8wb2UWgCo/IAn6SmmA0AlSxCvOJQrUDeAtLfrCkQe7HWNFxKu/qk/BZtvqxfadbFh3zLShoA3rlcYoS0ZY4w87m9hP7BkHBIjJE3pU7Jttd6JNjzPK3rv8REm0h4Ar2PTHJ8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707429579; c=relaxed/simple; bh=/kdmKvzDOCOhG9OdygowWW1NOM3iNCMKoPvJLJlPkho=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=Mje4J8mO78cLAUSX9+WHSRT44Fw27WTWxfubJnZ5LZ2p0TD1v6+Rsbeq8Piiy5Q1s++JA8w24wXOt8PsyY8rJv1B6CT94lP7LoCRW3sKFNXJcYc574JXRfvwty0YAlFrWq70xEaak/F8ovKU51eAn+nCnIkrN/1nw6bH2iFmBJg= 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=QsCTU2E9; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="QsCTU2E9" Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-5610b9855a8so1976832a12.0; Thu, 08 Feb 2024 13:59:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707429576; x=1708034376; 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=dxs7yJaWEy8nVn6Vmxrh4WNd6xA3nlO71xbamclQUKI=; b=QsCTU2E9IRMwIjyJkyBarAPOR5Fyo09Jtof7koNpZZVZu/SJkFUZ6F+15HUv9jOmyj 75DPS55VeP0xmVEZjEoKXPWFpvrKzTLh1l8ruEHnW8tQHH+TEXNLaSMDim7C7NHUSFEv RDtVNp7uEWXU/uiIv5syvpLTfN3ikJL1vVu/tIVXsGJwYQnTSjkuisXQkBm+qxDzq+av auV1yiYsf3ODxYH1aJPJVTZrMPC/vdUbGtMIeAofkIQUPZmNsI4ieqlzVGoh/S7Tvspo U5IlQcqKsZTJZc2BVovAj12h82loTYLFlm//aFeOoBABPn2WuijBkcXCMGw45BB1tcYw 9LAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707429576; x=1708034376; 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=dxs7yJaWEy8nVn6Vmxrh4WNd6xA3nlO71xbamclQUKI=; b=KQD4J0lXIRa7fLRptcts6aLv+JpLxWNYJrec9M4BbdG90M0U/W2gt4cp98rzKbIk4G vmOkO6BTUC8+93o+JMlexlsc8spv76JlUH/TJM6cj3A5nXcx6EjYLE2SmHr1DyjIX2WW 7Z+cQ3dRI8Fy4XN2hQdHDYMHF/N8VSRbBuIVi1rhAzhlKP+0b/fHOlHEPkaf1B+RhFSc z65jk8JhUzSQzO5lBU8ypisKjH6nNaSNJ2i8r+7q2otwgmg/BWPuqwCicjkyIaN71CrS Nl/psLpihzjZ26L+V05t0FGxvu/xH3WOCo18Mb9JO+1KgBh0dnyTG4Fpxnmw8ISkINCX xqnw== X-Forwarded-Encrypted: i=1; AJvYcCVvXMoA3o4gK//+EsXfPoq5ItcYQD/zS9oNtR6IX9dXKoQYGcqn5tHzFrjLogLm/+cKXwWrZEC3goQEsNR1hj+kS9hVHIC374uf46u1MsLYHoK1g/9VVTEuvxmwCxTqctQgfwcdIKsPxmkgM20U2HQng4rhOqCstyFpOpiudCJFPYWCzg== X-Gm-Message-State: AOJu0YzThAzPgRR1Ej6Xz3mDZZLxG+8igc5D+vUgz8ONi20br9OIjZe5 sjXGnunQaQcR6VB1J8zV/KxRuRtn8+hRbV8TQSNyosIy3svm3Wy7 X-Google-Smtp-Source: AGHT+IGPsZeHNB8r4fMWoVT95fkP1nA+CcvmyXpOh+PpzxhK4rM2J/gQL61+rynSUXTxgpFpay6f7Q== X-Received: by 2002:a17:906:b7d8:b0:a23:7633:59ae with SMTP id fy24-20020a170906b7d800b00a23763359aemr744793ejb.9.1707429575727; Thu, 08 Feb 2024 13:59:35 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXsHteBGFr4f+wVfaR4K3Y7cO52t+YzohayYtb1UWIeOqdULNH69dRGaLDWHuP7Wf2k8sHqTznLvMe0Ts/NJKWFqiADpfgy7fLJJtSpaHFZqnQLaPSyvi/8n+Gz2EnbK43svHPryAuZwLfKEMy4GZy8ubC/SOsmuFqadzLamANYl4CnBRlvG5s+LbdvvDtW03LMKendex5kV8PlgLjfv4m1cu1J/9ykSm+habVUbMQBADE538ctE4QiaKLUNJDWRvm0s/rvHYrnN9S8lq9jhfUKmQ5rZNxSvpQUAslUZddUTJGMSjIFHQp5fQb11GZYoFldf1EntxEiXBcIPHWGxWM9hEsUVk4JDA/xisNn0kuVrSoIyBWrIROANrizLhUY6Og0Rv/NE5beafDV4DDKE9eXmePPVsc6V00LvJ8si4NW/rjpV761z0wcwR9XkhplVOcmdJOgwQYHoWjWVQeZeXDbiPR5q5hpOZJuXqPUW9+zcwAbjW62dGUlVjXDYYYt3r2wlcE= Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id rf19-20020a1709076a1300b00a3743142429sm108255ejc.39.2024.02.08.13.59.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 13:59:35 -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 V2 1/3] dt-bindings: arm: mediatek: convert hifsys to the json-schema clock Date: Thu, 8 Feb 2024 22:59:24 +0100 Message-Id: <20240208215926.10085-2-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240208215926.10085-1-zajec5@gmail.com> References: <20240208215926.10085-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: AngeloGioacchino Del Regno Reviewed-by: Krzysztof Kozlowski --- .../bindings/arm/mediatek/mediatek,hifsys.txt | 26 ---------- .../clock/mediatek,mt2701-hifsys.yaml | 51 +++++++++++++++++++ 2 files changed, 51 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..eb429337cdf4 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/mediatek,mt2701-hifsys.yaml @@ -0,0 +1,51 @@ +# 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 controller + +description: + The Mediatek hifsys controller provides various clocks and reset outputs= to + the system. + +maintainers: + - Matthias Brugger + +properties: + compatible: + oneOf: + - items: + - 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:43:40 2024 Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (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 57F334F61E; Thu, 8 Feb 2024 21:59:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707429581; cv=none; b=Ycp23UwUqfLysDAwdZsNHW1oAiolGL20UiO8dIDPIZnDPs+X7A6A2T7GF+eFrLQqRaM1Rbni7GYhN2bzKsExtNP9VDn1U0IIe6RArKoYhtaZGhxUe2rx+ON1+Ww6IHhWQiS0+ypyRQdiXszw5nEDJ2H7kW6ppSDkkcFlMsuqxZ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707429581; c=relaxed/simple; bh=GCre1XQTsyAwp1dzEfFqTBUkUfOE6AvAGr3w8n4g3tU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=aSVgwpliN2NVWg5tb2Sfb69KHKN7EcmhlGsO85cdABghdoXQC4n7fvrJd+6lpE2njZx0kGFO+H0HlXsu4Wt4xCj4k6nd8eXwnQ2qB1lQLFwQwIR3Q9ixkgT1CVhEdc0afxNWTtQES4y5PIShIG/lVdvN6qPVfgiUcC6/a914TIE= 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=Jrm0VFg7; arc=none smtp.client-ip=209.85.208.45 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="Jrm0VFg7" Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-560e9c7a094so517849a12.0; Thu, 08 Feb 2024 13:59:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707429578; x=1708034378; 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=eeAmHmtuylGJLNzh3ueLyRJFJ1gmDfZc8JyHSqj91w8=; b=Jrm0VFg7xGEX5HaxTGpblvhVDE7ivcA8vQtxYu5AU3LgU16jSORSXe2tjnaLz1OoJB VRdYa9WJ6gbDpcQo1/ezJaLWVrK6khZ7pIcKDmB6VOXTjJWv3+bqmMEPqN3fLw/OLlEG tMBFdU59RMgmDoII444/tx1iKp0xra4LKuq64Y/57OCjhQVx0uGKNxVIHCINLGwneVkQ knhEyMTRgpWSIgG8md7ol+CER4mq5TCg5/YEneDy4u/OXle7h4D9wNuLAVCz4aABtPFN cfW3bAhAzL3yZwUoj/L8j7j8ZKbJCO8Rl2Y09XBYE16mNM6UHqam5khrfXnNFebPLirK SLGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707429578; x=1708034378; 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=eeAmHmtuylGJLNzh3ueLyRJFJ1gmDfZc8JyHSqj91w8=; b=mUhzPWF4jkl5mFXJm1sbvZcGfezDHKx22/oE8ppalOLF+bmIwubGfI2veQ4CJvtLCU gZYdeWLI6n9jeFpdNrFCdHhONRQRTnEndrM+tAOB1YNp5zhFIT4L61R0393jZ9pnjE2I DY1g/clZxzh9eaWfDNqsNP4WHtqKdAx0DougBJWy4nU38T1A1PYsb9ngh165vQqVEH1x Ry78JWCLxvXmH6XNxPXd4J0sQ796DzPLhHnuXf6wHGTrFs8RqCUgoo3B2oGTv+c7TdG9 kAcMEffMuqiqpn5gcFH2LBn7iJULp0W8+JucZmyfe9Q+8zlaaIHxCcVANW7lsMi31sqD NnHw== X-Gm-Message-State: AOJu0YyCuOsdPkZi34vXerYmLjmEPsQfwU7VEwTDfnBfw5Vp5VN/SGTG cCnPfA3/LbJqGwc7jnTcAV8BaM9z90lCv9p8kPRidqKWfVzhV+KlMMbBAleq X-Google-Smtp-Source: AGHT+IHmPgWSOLtLs+Nyfep3ErUyyxdizCanfCowfDUpJU2c+fXTJ3GLxnI7xq55RoFsVMrADvcnyA== X-Received: by 2002:a17:906:aed7:b0:a38:9fc3:3d8d with SMTP id me23-20020a170906aed700b00a389fc33d8dmr390460ejb.46.1707429577716; Thu, 08 Feb 2024 13:59:37 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXhCgss0C0rgZFIaPdY59ajK1Bar3J5lmPTYtD0zsdtpziXQgWSvHS5QdaNLyzf8CNUKFtfF/hiu0t1mnTFwSi1AONqWfSWOCu0ZXMuWJUZDtH7848iAkj7/e+Sd4KMg3N05EA8gmc1p3eGAk9MpJRE7oOYI4oCIziNM/ria9zUh8JQHe7ZUNHpBtJ6pnWONzoacijysVTANphk2KRK/uxwVPQk1AB4X50jR2QENYL5cBDyaIEyqEdN55BR3Pd6fNw7s0P9E5uPE/hlfFXJ8BTacPUJDlUWvMW49NxtDqTUWWeewrg0/CagaqSQIT5dWwSf8txE/upsIt70Hp5W6sNRVqK3OE4xglY8ofJHyvSRke1vJctCu9si8SDTrATRoM0caRm7GrJiMRcBCZtbouqX5RkOu+jtHtkGgnBnQiiAUMy+VhyPJub3H7ANpm03X/gqO4y9Ps+dXar70BhEn0M/pd0ibOXevGoTZ7yq2dxUI62p9tNvmAjefEtlP3boFv7w96w= Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id rf19-20020a1709076a1300b00a3743142429sm108255ejc.39.2024.02.08.13.59.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 13:59:37 -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 V2 2/3] dt-bindings: arm: mediatek: convert PCIESYS to the json-schema clock Date: Thu, 8 Feb 2024 22:59:25 +0100 Message-Id: <20240208215926.10085-3-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240208215926.10085-1-zajec5@gmail.com> References: <20240208215926.10085-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: AngeloGioacchino Del Regno Reviewed-by: Krzysztof Kozlowski --- .../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..27b19d5e3a85 --- /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 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:43:40 2024 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 3895B50A64; Thu, 8 Feb 2024 21:59:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707429584; cv=none; b=lGiKjeBwlP0XPgFzIxl0hp0kJvdKTIR1ZBBCzflD/HINWscAtaTWNvuCGzZ6ZL1iik4asWQ5rBKCC7vs51HYtrlJPzDBinwHFOrUHo6aQTSzRimmCAcwm8XyBWpn7gX1H4mFEblEUopHJ1wvzltqB9KAwW2AYQF+pzVKX6oFlb0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707429584; c=relaxed/simple; bh=8f35FdJ/pQY+mhck7+IAQi4vxCn4gr2UiZgQP2iv6T4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=lUYl8jZSU9F+N82K079jIPyWCpixHWWot101amMyqTn26Ht0Osj9hxAzXBR6X+VGNLrvnNhudGLJztKuMOp7rvT3NqkqIe+q/Px/I7gShfhwVev0FSoewy4GmcVKns9PbB6sT97gJ+8E8F+QVg2EnsD+6gZHxu1tXWpW4uxrF0Y= 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=SVmfoHOW; arc=none smtp.client-ip=209.85.218.43 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="SVmfoHOW" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-a388c5542e9so254686266b.1; Thu, 08 Feb 2024 13:59:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707429581; x=1708034381; 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=zpgVj5cIJYfsEe4k8tOMDseJ01hUY/30ToLsNTzKrj0=; b=SVmfoHOWuY2SnmMM7Tk4IwF729lltn8G8DbU7ssHqWOAAeC2c9QEMbGD+JGrrz2mFa yVRHDGnRUoqAWzDScTen6UObg9TSzQ4ItFJMJiGtFMhjkAq2dz42vovKhKOhQQbIRwkR GCnzfq3h187EhDdiMISdLzAcne9gfAcylNIOldq/n2w1roqO2HawjUVFYYSbI5DVMSqS sPB2gjnD1NqOiHF3BqGN6BWsWuMuXwAB6+JkRqAGAI1o3uxrso6iK7TBzTHaacAeWIt5 eC5bPzb3zQC0FOJ3rEqsyE3zN+cT7u7SkUz7hxgqwdM97mskILOw+I63chrkLyAZx4TB 3anQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707429581; x=1708034381; 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=zpgVj5cIJYfsEe4k8tOMDseJ01hUY/30ToLsNTzKrj0=; b=IafNcKVA5ayGifwl1icbdpbEBJ7SXLsZ1NHLFrIpa/v1lIX+Ix53ghcYBmAnNi/s/j Zfjw+P0XpLoNFFBxw/LbReQKhoj6OC9EiFXJ1JPEWRLlUrkdezX35geIGIfFvtdBbSFY tWE0x5HD6Cx4vu45e7SCVSsUGHc5tKMuKsIxHiqf7YkkQhIa6paTkaZzb/8Je5THuC85 NCB7uuAQs5zvDgQI8bIKuJcC1b693aK7bUxEuPYL+qFJIvGEibUdVRDZebIvuIiXqQxp tCwXF3+IyvRTzQfoMmUUTvv6ooE6RLc7/SR4be5mvogvEgk9pnfNQcfubfRZVgE6yQvL U3Kg== X-Gm-Message-State: AOJu0YxdqBnpp98FmiRpxHh3oVJFl0x/n01etm0m1WtZauJkG6bEEQGX JwfRr3CKUs0pXVHtzC1INQGHkzEpa4kePZZyumU53jg5Bwkth5bhqFWLY4k7 X-Google-Smtp-Source: AGHT+IFNxvM9cY+GaiQyQtPUyUX5PIfavKE10/ptk4BXmXj9FVhWmxsdHmeT4N0bGqDsEKu83NTBLw== X-Received: by 2002:a17:906:f753:b0:a36:5c45:1e09 with SMTP id jp19-20020a170906f75300b00a365c451e09mr628743ejb.31.1707429581490; Thu, 08 Feb 2024 13:59:41 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXltFUHHXN3QJVpFmKZaCHkdH8PMvNfBhL99ytOY454pqiQKr2FFutKWFoWShjCCMTwLN2sgcRcefp+CfhhFBcdRzvld0rnW/jtVj30JvFzNrZ3Q6qrvYpCsRAd/VBSDViKWcNHWQQz1xJtKoCPjrLo1aPy1TwbAVwebS/VqbfRtXPeu8QgMP3xIB3/V/dIzyQhb03FnQuAzbLpOplvi8/ltLffe89S1oaeq3zP6Wz9ekzVfJwPKM2Pr9S98EH/55v5/L9tk4KlbT6RkBpRMgkY2LLeHf6B/9CnOUzA1IRb3RMX0KwILY1g6Z9qYqSEJSj1Wm7jnNhTXJfCZKE6rNNl8qYGpGSdG8/wWehReYwAzFl2jvDwx3msi9Uvp/fC2WBTMwc0X8r0Zc5c0K1gN/uGzHHloLc+WFb63Ht1JFtsFL4Z8UXj7PSB48Kk13tBQ2rkrcakd5XMDmESB6J85Uc8ypzzM1DVJspwHDloamzfdBbU8q1WRr31fxRikE3HCrJycO0= Received: from localhost.lan (031011218106.poznan.vectranet.pl. [31.11.218.106]) by smtp.gmail.com with ESMTPSA id rf19-20020a1709076a1300b00a3743142429sm108255ejc.39.2024.02.08.13.59.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 13:59:41 -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 V2 3/3] dt-bindings: arm: mediatek: convert SSUSBSYS to the json-schema clock Date: Thu, 8 Feb 2024 22:59:26 +0100 Message-Id: <20240208215926.10085-4-zajec5@gmail.com> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20240208215926.10085-1-zajec5@gmail.com> References: <20240208215926.10085-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: AngeloGioacchino Del Regno Reviewed-by: Krzysztof Kozlowski --- .../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..5e48c2d3ff11 --- /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 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