From nobody Sat Jul 25 03:46:08 2026 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 0AF1C3911CA for ; Sun, 19 Jul 2026 14:12:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784470369; cv=none; b=Hn5TvJl+56a9Gkt8lp9uVpI0WDckRlK2dzGtM5lOJZO3ja6zeWgzN7zCjkNAqsqnDBHUwaRtnvQxcSwrGQj5fs0MK2LAus3uvy+s13McbnbhPdJFf41aPbSnd/TrTwczkbvAavTfJN81OZ2rjcgxbb+EB7zInrgRQFmu1S6klNY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784470369; c=relaxed/simple; bh=xSIfMNUlR0w3r1Tri3/aU3oOkWS9pk//wgKxfavPJww=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Ezx1S0F6he3kG0A11ZHHbs1g1rrittFZBO4MIs65LlEBBmQCgSUdlwiHkUR/flv0Tq2FdhseFAA4Ddfa1sdWR5K3fZLTqoebwunLVMqvmS02xfLh4kJrJ8TL1lOAof694JBE/tUIH2bQx1gGW2Sz7worn7NySnhmmYlc4G+tR28= 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=ELcqzGFM; arc=none smtp.client-ip=209.85.128.47 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="ELcqzGFM" Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4954afac04bso18698585e9.0 for ; Sun, 19 Jul 2026 07:12:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784470365; x=1785075165; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=NKVLLdp36yWyb0LBWITlczPVpDLZSh0yZVSkaD94rGU=; b=ELcqzGFMVLv9oVPmIPTBrnu5/07yKoPOTJU5wKNI1iaE9FVX8Ff+PRLj+k4pFYB+yN mnw09GFzJNW16w8ZPlZ8/kk/6nM2/QB5JLKLSbzkcwBBXstnPaPcVe0Yw1gj6ERjxBHZ 1Uku35FiTHChl1D772WjMIt7sjFPyHVS0wXwL0OOoQUUNykCnHZ6cyONH8v6bMZH949x xkqcSGzOSp6ZNmRwUiaY4FTt4bWI3EhzWBWMUWZwcIzohdFoIUTRFRGsv36pXLX6x00i FcpvWetGi+oO7CgLxpSQFWwWDlry9fc07VTkJK8pA+LXUR3E5d2CiZ8W7dCrPvveQAZv ck5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784470365; x=1785075165; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=NKVLLdp36yWyb0LBWITlczPVpDLZSh0yZVSkaD94rGU=; b=XEtboRlCbarTutpiNbC/wm7Au1dk/sD3MylwRFmmAoRn3C2KX/sdgQdtudqcNrb1f5 V/sOldTvdGpjq7w8nEKXJB9Y57bsTGWCwtrAZ49yvshKhoTSqn3tpmhmmUu0Fhdy8dO4 9JZvvyz3CrtAq7fW4wuee8DaOQZ/fBgUYZXXlnIEPueZlGkelucBA7vOcgZYciI9Rsc7 x6rskA62u1bDJnAmRTpZyC3y5y2Ps+dA2nP9wIhzE+VU3EF/VOprvGbdLHHKv3H00wu3 mKyXdjdxjr4eVbvu0T0b5sIqkrK9D8aJbNqdF6r/CWI7QsdAaCuGqUm5Jxu1k82io7Md VCEA== X-Forwarded-Encrypted: i=1; AHgh+Rr6zk0NMASjhzvjmLN6lozHx7i5bau3cqMJrliA8019oj7tFzV/I8XZo1LMma9XZKSKr16joDU8bk4QRk8=@vger.kernel.org X-Gm-Message-State: AOJu0YzgCkitBwkbkqNbpJYf1O+lnl4oXkQW8IaNXKu7qI2XswX7FJDU 4o8funIOgSOqlT5WYrjnP11FGq1GN0bCFHjPzeCxfIv9asZHSMfbReS1 X-Gm-Gg: AfdE7cn4LhRJnai1//h8sbYCv1IAee6KDQIX+4vLS/7Eu5U5Q9tv4GFV+ZwlSgJTq5e smF1Sx6x5hjZfiECt0q+K7JXMEVL8Lc+MKBgvEoOA9bDUexiY9/vq54cCaiFiultXgUpk1VHpcv 9S624/phD3FB0PX4zyz6vIj34FH1Lsv2dk48G5jz0iwDXAKa9rsTdx/l/ZKrkm1dATwueR6yB7b wwFjGZqJsD9YV8H5mL3SlGcwIL+wQ9ti6jsOD6RK+U1PUEvZEPqoEu7r7bp7v/u0saMSyo9Nv3G kt5y1XnEnjwQ2DzDEu4JLyyKZv8cvOKumjkqDOH9Ef5aeIvLTs29WywBt/VLqkdHwtzIs5YnS8W e/8H1oyC1aJgAtaBBlYf2NMiOJCr3wiaUazoWfihFUif6NAaRdq4bU54Hfg7FPvNWl+We+HPsS/ T6sqruv6huBEx/mOX7PGxaa/bwewnNNhwG3b3WqvJeGxEL X-Received: by 2002:a05:600c:5657:b0:493:f442:3dd4 with SMTP id 5b1f17b1804b1-4954a516af8mr68375595e9.39.1784470365034; Sun, 19 Jul 2026 07:12:45 -0700 (PDT) Received: from localhost.localdomain ([188.26.50.240]) by smtp.googlemail.com with ESMTPSA id 5b1f17b1804b1-4955dfa4a97sm14334175e9.4.2026.07.19.07.12.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Jul 2026 07:12:44 -0700 (PDT) From: Eduard Bostina To: Brian Masney , Conor Dooley , devicetree@vger.kernel.org, Eduard Bostina , Krzysztof Kozlowski , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Turquette , Rob Herring , Stephen Boyd Cc: daniel.baluta@nxp.com, simona.toaca@nxp.com, goledhruva@gmail.com, m-chawdhry@ti.com Subject: [PATCH] dt-bindings: clock: Convert TI Palmas Clock to DT schema Date: Sun, 19 Jul 2026 14:12:36 +0000 Message-ID: <20260719141236.3563471-1-egbostina@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Convert the Texas Instruments Palmas 32KHz clock bindings to DT schema. During the conversion, the node name in the example was updated from 'palmas_clk32k@0' to 'clock-controller'. The old example contained a unit address without a 'reg' property, which causes dtc compilation warnings. Signed-off-by: Eduard Bostina Reviewed-by: Rob Herring (Arm) --- .../clock/clk-palmas-clk32kg-clocks.txt | 35 ------------ .../bindings/clock/ti,palmas-clk32kg.yaml | 56 +++++++++++++++++++ 2 files changed, 56 insertions(+), 35 deletions(-) delete mode 100644 Documentation/devicetree/bindings/clock/clk-palmas-clk3= 2kg-clocks.txt create mode 100644 Documentation/devicetree/bindings/clock/ti,palmas-clk32= kg.yaml diff --git a/Documentation/devicetree/bindings/clock/clk-palmas-clk32kg-clo= cks.txt b/Documentation/devicetree/bindings/clock/clk-palmas-clk32kg-clocks= .txt deleted file mode 100644 index 4208886d834a..000000000000 --- a/Documentation/devicetree/bindings/clock/clk-palmas-clk32kg-clocks.txt +++ /dev/null @@ -1,35 +0,0 @@ -* Palmas 32KHz clocks * - -Palmas device has two clock output pins for 32KHz, KG and KG_AUDIO. - -This binding uses the common clock binding ./clock-bindings.txt. - -Required properties: -- compatible : "ti,palmas-clk32kg" for clk32kg clock - "ti,palmas-clk32kgaudio" for clk32kgaudio clock -- #clock-cells : shall be set to 0. - -Optional property: -- ti,external-sleep-control: The external enable input pins controlled the - enable/disable of clocks. The external enable input pins ENABLE1, - ENABLE2 and NSLEEP. The valid values for the external pins are: - PALMAS_EXT_CONTROL_PIN_ENABLE1 for ENABLE1 pin - PALMAS_EXT_CONTROL_PIN_ENABLE2 for ENABLE2 pin - PALMAS_EXT_CONTROL_PIN_NSLEEP for NSLEEP pin - Option 0 or missing this property means the clock is enabled/disabled - via register access and these pins do not have any control. - The macros of external control pins for DTS is defined at - dt-bindings/mfd/palmas.h - -Example: - #include - ... - palmas: tps65913@58 { - ... - clk32kg: palmas_clk32k@0 { - compatible =3D "ti,palmas-clk32kg"; - #clock-cells =3D <0>; - ti,external-sleep-control =3D ; - }; - ... - }; diff --git a/Documentation/devicetree/bindings/clock/ti,palmas-clk32kg.yaml= b/Documentation/devicetree/bindings/clock/ti,palmas-clk32kg.yaml new file mode 100644 index 000000000000..c2a49be9b95a --- /dev/null +++ b/Documentation/devicetree/bindings/clock/ti,palmas-clk32kg.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/clock/ti,palmas-clk32kg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments Palmas 32KHz Clocks + +maintainers: + - Eduard Bostina + +description: + The Palmas device family has two clock output pins for 32KHz, + KG and KG_AUDIO. + +allOf: + - $ref: /schemas/clock/clock.yaml# + +properties: + compatible: + enum: + - ti,palmas-clk32kg + - ti,palmas-clk32kgaudio + + "#clock-cells": + const: 0 + + ti,external-sleep-control: + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [ 0, 1, 2, 3 ] + description: | + The external enable input pins control the enable/disable of clocks. + The valid values (defined in dt-bindings/mfd/palmas.h) are: + 1: PALMAS_EXT_CONTROL_PIN_ENABLE1 + 2: PALMAS_EXT_CONTROL_PIN_ENABLE2 + 3: PALMAS_EXT_CONTROL_PIN_NSLEEP + Option 0 or missing this property means the clock is enabled/disabled + via register access and these pins do not have any control. + +required: + - compatible + - "#clock-cells" + +unevaluatedProperties: false + +examples: + - | + #include + + pmic { + clock-controller { + compatible =3D "ti,palmas-clk32kg"; + #clock-cells =3D <0>; + ti,external-sleep-control =3D ; + }; + }; --=20 2.43.0