From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.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 92A073CBE71 for ; Sat, 9 May 2026 19:39:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778355582; cv=none; b=okiSAi+2iZ8Tkm5qUd5jxfCevfvSSCQlU92rcQmJmpLeCNjb9se1oWzBOm9avR8+JV3Px7AnRT7f7v7PzHYdPXqwl/ISh/6G7trBdls7Br7wr1QWY/269oiV2TAQToNdmSEYg6YkHhBbB060qwrXJSe/QYv20WcMF3/Edo6AiEA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778355582; c=relaxed/simple; bh=BtlNkM7JtRsr4H1APlBzmmd0+2E3WucFpktmbWjT2nk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=a88v649Mn06b6uufAlHdUi3/USHmR0Gpb2Jp9Iw2rHxbtXaRsWynnBgkRR+TFflASWjByYYXil2rVJMAqRCXWHWIuebsCwgbbZAbCRlhvaaNvjwf+wCYT42z/2rPud2Ay5F67xtG06Y0ZYulLJKaeRRdQVL8YKLWy8x4Y9c03Vk= 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=Gc0Di/VS; arc=none smtp.client-ip=209.85.216.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="Gc0Di/VS" Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-366375c4076so1253025a91.3 for ; Sat, 09 May 2026 12:39:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778355579; x=1778960379; 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; bh=a5cMbOemj5qCKf6YMBNAikh7EtC1awKMtCwgmYlIPnw=; b=Gc0Di/VSstcweSCs5yxkMpmFrjkx/C1uLmKLVodySybSg8ToVCnPo82IZ9Sqn0tpWc fcG11j22/I/AP1/j0bc4omBsuGWQRdLIzMmF5AGWnd3rKP5UV9HlYQdbVOiOYLPWjE9+ 1HGU7VrU/d/qUTWdoZuzDm5f+rujr0uhQUUon4GrHwoGJYD6SA2VgLYsA83jG1CYePSh YbSjuPQZWgd2fErPcnaT3eoUw3iSv3tsFzWoxKWXjAgu/b0392nJU4vE0ERsGJwrcKvK doFyFuX/8yZvMZUO4WMkJs60BVYLpWIizolAFJmpsgQzPj05f17a1sEkf3TuOVJmRSV6 m3Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778355579; x=1778960379; 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; bh=a5cMbOemj5qCKf6YMBNAikh7EtC1awKMtCwgmYlIPnw=; b=fC2fU7/6tvpcaK/2KuTdGPTYl99oksqp/FyTxckVjNEq8pJFSFZop2ia8v+HarXGOt CMKWg/NCXQlEJD3Yleyx64bvLLoK2h9Z65aUEMa2kfNGpGjKC2Y2swsPZBYX3Vzb8P5j P1O9kLHwXOEtAv3aylbSl/cNq+4ie8vPQIeFFqgGin8V4e0W0KCBe8KLlbgF7lbfwmoS XxLAjhS72pnJvJ7aQvNFadOaVkGP6/XEomKCOPP7HaxT3quQTciuXqlnGj+w9exnLpiB k7IyPv7kTLZFEfqoOpCk9lgv5Ec13bRbvkBDK1+Jj+tqzVDh6Uco72vPIuzpXuX4T8I2 1Sgg== X-Forwarded-Encrypted: i=1; AFNElJ+pspcRbjop1zWPVD5HwSmkuup/G9N1XZ5ZetP3my1YZ0ml8S0w0/4f7i9vwg474Q6ZSzJc85nqbrum3qc=@vger.kernel.org X-Gm-Message-State: AOJu0Ywac+OUsAesfJeqBaLplbiU/vu10HAUKGwI46h9gbOdc3V9K1Ty GYqmvlZQsNRJ70k5tIPQnyQjP/Zitk887mnw6WF17x5BUISnj4u/3LLl X-Gm-Gg: Acq92OETjSsWGDK3Qnm7hazj3t+D9mMc+5Yiimi9msNfAylbFOio6sGJyzzV2BmIOdQ ISYIj+aJFU0kcAZsyN7ewTOdGmdPgj7Ngqupt/G/c1OFxW3N7pFwMAIHshu8+fPLnG/rZ/ml6JS HUq+xgP0sG4oekpUK7Sv2wbxK2l6C+NQYEKYcHS1HWPSF+PL5Kmj5d69tNUlBegMaH4nB+0m/Uu sZgiP77cEFGcCpFiZUuN2TCG5zN5cxw6iCmqLaJQx1XcQFdQdDhN0CGDm1dOoqZU52lvTQfILbD DhDg33Ywn5l+xIolNCoqYDUjtOf/46pcw7KF6OLj3wrZv7HBO/LjuTdDBHOgZCQZSZ4HtYuykxN bSvZRYgAKogrLxip/yB3FmHuwY4sN8iwmc4YsWxSr8Y7JGi0EdUV9xNTSOaVG5OfRqkfkLablZ4 1LAM6W+7+UA649PsNw0mkog2AHr/i0iveKqtEcfgGjdCXBszkFHxEtUcqVl7Qbclhza3908Ay6m 7Zu X-Received: by 2002:a17:902:e750:b0:2b2:5258:a23d with SMTP id d9443c01a7336-2bc7a9ba9c0mr33335675ad.14.1778355578556; Sat, 09 May 2026 12:39:38 -0700 (PDT) Received: from Ubuntu.. ([49.37.169.14]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2baf1d3fed8sm59690265ad.27.2026.05.09.12.39.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 May 2026 12:39:37 -0700 (PDT) From: Manish Baing To: lee@kernel.org, ukleinek@kernel.org, linusw@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: mcoquelin.stm32@gmail.com, alexandre.torgue@foss.st.com, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pwm@vger.kernel.org, manishbaing2789@gmail.com Subject: [PATCH v3] dt-bindings: mfd: st,stmpe: fix PWM schema and drop legacy binding Date: Sat, 9 May 2026 19:39:28 +0000 Message-ID: <20260509193928.19030-1-manishbaing2789@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: 8bit The st,stmpe-pwm binding is already covered by the MFD schema in Documentation/devicetree/bindings/mfd/st,stmpe.yaml. However, the PWM subnode was missing a 'required' properties block. This allowed Device Tree nodes to pass validation even if the 'compatible' string was omitted. This omission could lead to probe failures at runtime. Fix the schema by adding the missing 'required' block and remove the obsolete and redundant text binding file. Signed-off-by: Manish Baing --- Changes in v3: - Added 'required' properties to the pwm subnode in st,stmpe.yaml to close a validation gap identified by the Sashiko. - Updated commit message and description to reflect MFD subsystem changes. Changes in v2: - Droppped the TXT file instead of converting to YAML, as the functionality is already covered by st,stmpe.yaml. .../devicetree/bindings/mfd/st,stmpe.yaml | 4 ++++ .../devicetree/bindings/pwm/st,stmpe-pwm.txt | 18 ------------------ 2 files changed, 4 insertions(+), 18 deletions(-) delete mode 100644 Documentation/devicetree/bindings/pwm/st,stmpe-pwm.txt diff --git a/Documentation/devicetree/bindings/mfd/st,stmpe.yaml b/Documentation/devicetree/bindings/mfd/st,stmpe.yaml index df43878fbe18..4bb05d544901 100644 --- a/Documentation/devicetree/bindings/mfd/st,stmpe.yaml +++ b/Documentation/devicetree/bindings/mfd/st,stmpe.yaml @@ -127,6 +127,10 @@ properties: "#pwm-cells": const: 2 + required: + - compatible + - "#pwm-cells" + touchscreen: type: object $ref: /schemas/input/touchscreen/touchscreen.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>; -}; -- 2.43.0