From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 155EF18AFC for ; Fri, 4 Apr 2025 01:45:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743731121; cv=none; b=E9q22RonKT9/C1jcmu8bK027gX1yLto8lkuq2dv/2whFJwefYCrrGoyGyW1+HVeGp8mO5VQgBetnv9vEZka6/pzx8B1TpWlyoAhBYRc9f3iXa+NW+oCj2xJ04At2fyuHpYABmOxxOw6JOcEyLLkMghtlzXaTidZD1e3ogZu8r/8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743731121; c=relaxed/simple; bh=VtZFzV4SFM7hxS9whoKifK0cWBFHUo7gxrtPQ7C+MbU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=f9Wcmv6feYGbfVG8+6432RYp7oY2gtXIiWdcgm/aE8LSXgTGLJRsG6feom9qa0YrZlhDWjROERwPRI69y341y8DjNIMtqHvVhhV5EMmBVXSnDh//g0mqUYNXRcCZkcC7NME2CLtnTHK/0h6nYa5CHVIwIp0WK+pUNJiYM+jfO0I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=UERdeM19; arc=none smtp.client-ip=209.85.214.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="UERdeM19" Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-22409077c06so21894525ad.1 for ; Thu, 03 Apr 2025 18:45:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1743731118; x=1744335918; 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=vd/Kv7YAIdyn43HTlxRPFm7Eme+lU7QzjnIMeLAoJAo=; b=UERdeM19yodduWAJiQG1W4Jo1XGOmLCwiDuKNTJovixwfx0tCzuQmKTPb9peNYO8Uj 8UDGUUcHYQvrqVce2DrxUveRZh1NJRjY4IOQ8l/zEckW9cq3UUnHFfZ1W5GNSD7mmfeY gDmOPnanViXwXHmve4ZG7mnQg6uCXdm73SL4ylpFp+6Vzm0W56uQ+IOEO5Of1UogwKo1 aiN/CIfZjTJ4Yp5Fps+MltjVnDh3DY+mngrP8V5cAZ+lDGLmq7rIG4yj40N6Y3cAQemo 62tcwzHt6VkNCG67DIBwjIJHf6Cjo3KssXu6Io5t+mrZ6FfQrlCaJDfJOzoi0k7npDH2 a7Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743731118; x=1744335918; 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=vd/Kv7YAIdyn43HTlxRPFm7Eme+lU7QzjnIMeLAoJAo=; b=aqBNMD3dHBD+ucMCz8Tex+mit4OydMTAf8Jfq8abZyMitJFVEywucw7hTW9HFG5wMs qDMMNO/I5fzKadUfrp5hdPoQrEPzN7bGqWAtwYKWJAnT1xiScPgwk8UuC/j4xiWPVAn8 QcJ7wgWubLxorZaCqdF7XgVG7U9ywU4vF1cxpbJ8xLH3uJUuRireJXouV8jejUhcpNoH yYFY709CaglgL8zFXghNOQsrT+4p9XS2C5a+IozWWhvuQ9YxYEaTwI5cbmTB06PWw4Kd lSGIYLjsoNAW44t59LbqjSNSuO7SIzJa6MD1IEmwrANUWdx/n2NFi84679cKcePg7q8+ WGCQ== X-Forwarded-Encrypted: i=1; AJvYcCWeE57fdLhdPG18RwkGYXU1d5jBGJt653h+XkgVw7e9rf4ZL+jRYbuVWrP5AcoWb7p3sWDHVCxAitxc@vger.kernel.org X-Gm-Message-State: AOJu0Yzc5z9DEzGYkrDsKmCfMhGrR7sg5hbdOK3dzzPDimaROaksonP3 xzliKLDq+KrhPb+hzp4aUKJQwqMQsl/fdJ1JOFfVI3THXq2+CS6YEvCtYU2EUX4= X-Gm-Gg: ASbGncvS2oste2ZoNmAeriuRlK4qBGrbNwGsvJrEYZlQNQjnwwsqO33Rql+rUS+1kNo isl14yMAABFtmWe5csAidSttf3oMIqDiehrHFHCdfoJ+vRDb5KmdElmSysMEjIwR8N5OUBFpfmS tZUHT/hD+5/nSKhVX1u9vTXjR4bQ9PE4UjCzZE1x1GCxLhl4glVG1D7Q51l4L0ko8TcLxV0sqZ/ BqayKUJcTxhxbb42M+SKzMaR19M5u6Xk5Cb/E4BFhlarRG8hMQpgj7ntgf75F7lmcyl/6YKZbr6 oPz8kQ1WSItuE7UXR5BTR2VLV1xohNlSEf3hSa6d8nh1eX1tCFngETgyrQntai7as3uKV8rRDL9 6YIVgdcs= X-Google-Smtp-Source: AGHT+IGHo9ZuBB0qJ1rexiUBkU1zGy+UOTRILsGjezQ/KXhzycsHA6LVyLjVtGW5XbFbwRWLRWJOzw== X-Received: by 2002:a17:902:d2c1:b0:21f:6bda:e492 with SMTP id d9443c01a7336-22a8a8b82f1mr16901115ad.35.1743731118385; Thu, 03 Apr 2025 18:45:18 -0700 (PDT) Received: from dev-linux.. (syn-076-088-115-008.res.spectrum.com. [76.88.115.8]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-739da0e3184sm2195304b3a.160.2025.04.03.18.45.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Apr 2025 18:45:17 -0700 (PDT) From: Sukrut Bellary To: Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Sukrut Bellary , Tero Kristo , Kevin Hilman , Andreas Kemnade , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] dt-bindings: clock: ti: Convert to yaml Date: Thu, 3 Apr 2025 18:44:58 -0700 Message-Id: <20250404014500.2789830-3-sbellary@baylibre.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250404014500.2789830-1-sbellary@baylibre.com> References: <20250404014500.2789830-1-sbellary@baylibre.com> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This binding doesn't define a new clock binding type, it is used to group the existing clock nodes under the hardware hierarchy. As this is not a provider clock, remove #clock-cells and clock-output-names properties. Though few clockdomain nodes in the dts use these properties, we are not fixing dts here. Clean up the example to meet the current standards. Add the creator of the original binding as a maintainer. Signed-off-by: Sukrut Bellary --- .../bindings/clock/ti/clockdomain.txt | 25 ------------ .../bindings/clock/ti/ti,clockdomain.yaml | 38 +++++++++++++++++++ 2 files changed, 38 insertions(+), 25 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/ti/clockdomain.txt create mode 100644 Documentation/devicetree/bindings/clock/ti/ti,clockdomain.yaml diff --git a/Documentation/devicetree/bindings/clock/ti/clockdomain.txt b/Documentation/devicetree/bindings/clock/ti/clockdomain.txt deleted file mode 100644 index edf0b5d42768..000000000000 --- a/Documentation/devicetree/bindings/clock/ti/clockdomain.txt +++ /dev/null @@ -1,25 +0,0 @@ -Binding for Texas Instruments clockdomain. - -This binding uses the common clock binding[1] in consumer role. -Every clock on TI SoC belongs to one clockdomain, but software -only needs this information for specific clocks which require -their parent clockdomain to be controlled when the clock is -enabled/disabled. This binding doesn't define a new clock -binding type, it is used to group existing clock nodes under -hardware hierarchy. - -[1] Documentation/devicetree/bindings/clock/clock-bindings.txt - -Required properties: -- compatible : shall be "ti,clockdomain" -- #clock-cells : from common clock binding; shall be set to 0. -- clocks : link phandles of clocks within this domain - -Optional properties: -- clock-output-names : from common clock binding. - -Examples: - dss_clkdm: dss_clkdm { - compatible = "ti,clockdomain"; - clocks = <&dss1_alwon_fck_3430es2>, <&dss_ick_3430es2>; - }; diff --git a/Documentation/devicetree/bindings/clock/ti/ti,clockdomain.yaml b/Documentation/devicetree/bindings/clock/ti/ti,clockdomain.yaml new file mode 100644 index 000000000000..2bae2a0f6318 --- /dev/null +++ b/Documentation/devicetree/bindings/clock/ti/ti,clockdomain.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/ti/ti,clockdomain.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI clock domain + +maintainers: + - Tero Kristo + - Sukrut Bellary + +description: | + Every clock on TI SoC belongs to one clockdomain. For specific clocks, the + parent clockdomain has to be controlled when the clock is enabled/disabled. + This binding doesn't define a new clock binding type, it is used to group + the existing clock nodes under hardware hierarchy. + +properties: + compatible: + const: ti,clockdomain + + clocks: + description: + Clocks within this domain + +required: + - compatible + - clocks + +additionalProperties: false + +examples: + - | + l3init_clkdm: l3init_clkdm { + compatible = "ti,clockdomain"; + clocks = <&dpll_usb_ck>; + }; -- 2.34.1