All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: pwm: stmpe: convert to DT schema
@ 2026-05-01  7:33 Manish Baing
  2026-05-04 10:28 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 3+ messages in thread
From: Manish Baing @ 2026-05-01  7:33 UTC (permalink / raw)
  To: ukleinek, thierry.reding, linusw, robh, krzk+dt, conor+dt
  Cc: mcoquelin.stm32, alexandre.torgue, linux-pwm, devicetree,
	linux-stm32, linux-arm-kernel, linux-kernel, manishbaing2789

Convert the STMicroelectronics STMPE PWM controller bindings
from text format to YAML schema.

Signed-off-by: Manish Baing <manishbaing2789@gmail.com>
---
 .../devicetree/bindings/pwm/st,stmpe-pwm.txt  | 18 --------
 .../devicetree/bindings/pwm/st,stmpe-pwm.yaml | 41 +++++++++++++++++++
 2 files changed, 41 insertions(+), 18 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/pwm/st,stmpe-pwm.txt
 create mode 100644 Documentation/devicetree/bindings/pwm/st,stmpe-pwm.yaml

diff --git a/Documentation/devicetree/bindings/pwm/st,stmpe-pwm.txt b/Documentation/devicetree/bindings/pwm/st,stmpe-pwm.txt
deleted file mode 100644
index f401316e0248..000000000000
--- a/Documentation/devicetree/bindings/pwm/st,stmpe-pwm.txt
+++ /dev/null
@@ -1,18 +0,0 @@
-== ST STMPE PWM controller ==
-
-This is a PWM block embedded in the ST Microelectronics STMPE
-(ST Multi-Purpose Expander) chips. The PWM is registered as a
-subdevices of the STMPE MFD device.
-
-Required properties:
-- compatible: should be:
-  - "st,stmpe-pwm"
-- #pwm-cells: should be 2. See pwm.yaml in this directory for a description of
-  the cells format.
-
-Example:
-
-pwm0: pwm {
-	compatible = "st,stmpe-pwm";
-	#pwm-cells = <2>;
-};
diff --git a/Documentation/devicetree/bindings/pwm/st,stmpe-pwm.yaml b/Documentation/devicetree/bindings/pwm/st,stmpe-pwm.yaml
new file mode 100644
index 000000000000..4d5b43c9e7fa
--- /dev/null
+++ b/Documentation/devicetree/bindings/pwm/st,stmpe-pwm.yaml
@@ -0,0 +1,41 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/pwm/st,stmpe-pwm.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: STMicroelectronics STMPE PWM controller
+
+maintainers:
+  - Linus Walleij <linus.walleij@linaro.org>
+  - Thierry Reding <thierry.reding@gmail.com>
+
+description:
+  This is a PWM block embedded in the STMicroelectronics STMPE
+  (ST Multi-Purpose Expander) chips. The PWM is registered as a
+  subdevice of the STMPE MFD device.
+
+allOf:
+  - $ref: pwm.yaml#
+
+properties:
+  compatible:
+    const: st,stmpe-pwm
+
+  "#pwm-cells":
+    const: 2
+
+required:
+  - compatible
+  - "#pwm-cells"
+
+additionalProperties: false
+
+examples:
+  - |
+    stmpe {
+        pwm {
+            compatible = "st,stmpe-pwm";
+            #pwm-cells = <2>;
+        };
+    };
-- 
2.43.0



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: pwm: stmpe: convert to DT schema
@ 2026-05-03  8:38 kernel test robot
  0 siblings, 0 replies; 3+ messages in thread
From: kernel test robot @ 2026-05-03  8:38 UTC (permalink / raw)
  To: oe-kbuild; +Cc: lkp

:::::: 
:::::: Manual check reason: "dtcheck: binding changes may go via different trees"
:::::: 

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
In-Reply-To: <20260501073305.5866-1-manishbaing2789@gmail.com>
References: <20260501073305.5866-1-manishbaing2789@gmail.com>
TO: Manish Baing <manishbaing2789@gmail.com>
TO: ukleinek@kernel.org
TO: thierry.reding@gmail.com
TO: linusw@kernel.org
TO: robh@kernel.org
TO: krzk+dt@kernel.org
TO: conor+dt@kernel.org
CC: mcoquelin.stm32@gmail.com
CC: alexandre.torgue@foss.st.com
CC: linux-pwm@vger.kernel.org
CC: devicetree@vger.kernel.org
CC: linux-stm32@st-md-mailman.stormreply.com
CC: linux-arm-kernel@lists.infradead.org
CC: linux-kernel@vger.kernel.org
CC: manishbaing2789@gmail.com

Hi Manish,

kernel test robot noticed the following build warnings:

[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v6.16-rc1 next-20260430]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Manish-Baing/dt-bindings-pwm-stmpe-convert-to-DT-schema/20260502-063803
base:   https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
patch link:    https://lore.kernel.org/r/20260501073305.5866-1-manishbaing2789%40gmail.com
patch subject: [PATCH] dt-bindings: pwm: stmpe: convert to DT schema
:::::: branch date: 34 hours ago
:::::: commit date: 34 hours ago
config: arm-randconfig-2051-20260502 (https://download.01.org/0day-ci/archive/20260503/202605031023.f54RksC4-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 10.5.0
dtschema: 2026.5.dev4+g4ccc1997d
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260503/202605031023.f54RksC4-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/r/202605031023.f54RksC4-lkp@intel.com/

dtcheck warnings: (new ones prefixed by >>)
   arch/arm/boot/dts/ti/omap/am5729-beagleboneai.dtb: stmpe_adc (st,stmpe-adc): 'iio-device@0' does not match any of the regexes: '^pinctrl-[0-9]+$'
   	from schema $id: http://devicetree.org/schemas/iio/adc/st,stmpe-adc.yaml
   arch/arm/boot/dts/ti/omap/am5729-beagleboneai.dtb: stmpe_gpio (st,stmpe-gpio): '#gpio-cells' is a required property
   	from schema $id: http://devicetree.org/schemas/gpio/st,stmpe-gpio.yaml
   arch/arm/boot/dts/ti/omap/am5729-beagleboneai.dtb: stmpe_gpio (st,stmpe-gpio): '#interrupt-cells' is a required property
   	from schema $id: http://devicetree.org/schemas/gpio/st,stmpe-gpio.yaml
   arch/arm/boot/dts/ti/omap/am5729-beagleboneai.dtb: stmpe_gpio (st,stmpe-gpio): 'gpio-controller' is a required property
   	from schema $id: http://devicetree.org/schemas/gpio/st,stmpe-gpio.yaml
   arch/arm/boot/dts/ti/omap/am5729-beagleboneai.dtb: stmpe_gpio (st,stmpe-gpio): 'interrupt-controller' is a required property
   	from schema $id: http://devicetree.org/schemas/gpio/st,stmpe-gpio.yaml
>> arch/arm/boot/dts/ti/omap/am5729-beagleboneai.dtb: stmpe_pwm (st,stmpe-pwm): $nodename:0: 'stmpe_pwm' does not match '^pwm(@.*|-([0-9]|[1-9][0-9]+))?$'
   	from schema $id: http://devicetree.org/schemas/pwm/st,stmpe-pwm.yaml
   arch/arm/boot/dts/ti/omap/am5729-beagleboneai.dtb: rng@0 (ti,omap4-rng): clock-names:0: 'core' was expected
   	from schema $id: http://devicetree.org/schemas/rng/inside-secure,safexcel-eip76.yaml
   arch/arm/boot/dts/ti/omap/am5729-beagleboneai.dtb: /ocp/interconnect@48000000/segment@0/target-module@b2000/1w@0: failed to match any schema with compatible: ['ti,omap3-1w']
   arch/arm/boot/dts/ti/omap/am5729-beagleboneai.dtb: wifi@1 (brcm,bcm4329-fmac): Unevaluated properties are not allowed ('brcm,sd-head-align', 'brcm,sd_head_align', 'brcm,sd_sgentry_align' were unexpected)
   	from schema $id: http://devicetree.org/schemas/net/wireless/brcm,bcm4329-fmac.yaml
   arch/arm/boot/dts/ti/omap/am5729-beagleboneai.dtb: segment@200000 (simple-pm-bus): 'anyOf' conditional failed, one must be fixed:
   	'clocks' is a required property
   	'power-domains' is a required property
   	from schema $id: http://devicetree.org/schemas/bus/simple-pm-bus.yaml

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: pwm: stmpe: convert to DT schema
  2026-05-01  7:33 Manish Baing
@ 2026-05-04 10:28 ` Krzysztof Kozlowski
  0 siblings, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2026-05-04 10:28 UTC (permalink / raw)
  To: Manish Baing
  Cc: ukleinek, thierry.reding, linusw, robh, krzk+dt, conor+dt,
	mcoquelin.stm32, alexandre.torgue, linux-pwm, devicetree,
	linux-stm32, linux-arm-kernel, linux-kernel

On Fri, May 01, 2026 at 07:33:05AM +0000, Manish Baing wrote:
> Convert the STMicroelectronics STMPE PWM controller bindings
> from text format to YAML schema.
> 
> Signed-off-by: Manish Baing <manishbaing2789@gmail.com>
> ---
>  .../devicetree/bindings/pwm/st,stmpe-pwm.txt  | 18 --------

It is already covered by st,stmpe.yaml, which you were supposed to find
with git grep.

Instead, drop the TXT file.

Best regards,
Krzysztof



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-04 10:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-03  8:38 [PATCH] dt-bindings: pwm: stmpe: convert to DT schema kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-05-01  7:33 Manish Baing
2026-05-04 10:28 ` Krzysztof Kozlowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.