Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp332000rdb; Thu, 21 Dec 2023 10:18:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IHxi5MYnwbMHCgiZEPMfGJbVHdIzJ03oDMZdxn5ie98XWO0SpP7ko/Qwe9e2e16afZsNjvy X-Received: by 2002:a17:90b:3556:b0:28c:18f:4785 with SMTP id lt22-20020a17090b355600b0028c018f4785mr128695pjb.53.1703182701492; Thu, 21 Dec 2023 10:18:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703182701; cv=none; d=google.com; s=arc-20160816; b=ATO3kg94Sct02yXJyI6J9axCFHJQMO1M9zcmSn+QI/iO5PIUi8oK+mV1rfr8gL1fmX aJ8aJQvEoDa1UlwOvn1ES7Ls4c2u07Ca3H7z6dcrgbShRE+7FbCgJdat2Sl3VDKYI8R4 jDGFXm/DOQANAxiPe8n/dcBmelirvJzDuT/0UBveN3NnM6N0SfCNvEdxShvio7s0VgzJ Bz/DATzakNCiA00PcKd5CYSnF80B8SDYcfm+zlhUbnqPoghHKbd7NXxOxqb+uIxr3p+k TGFw38Mk5Nw9q0rA0uf8lNtUNPpKdePbkwNP3YZlyyG4mrg919fjOfB2SQwaBc7+eOy4 95Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=YkM0jC9/yHAO382d+ILawqQDBhBWk0KZJUHJnBoAQj8=; fh=zN1kf4nd6c07xVzpvxAYD8LB/IHE6ge1ooBu27gTeQk=; b=dN4vMB4WXHBsKwtwGRjzL0W9WR0UtpA61UaOkH+cvzMarYXpPOQPVXDVzpBCKVHRwj M4m2IieICFNhKkDlAf20G2lIhhLGmxRomKwg0d3E62GPhOnO/Uzip3vtN4kHHxXFatjA tGX8lNLVzO9UtmXNa2fiXZMUC9RaLn/eZqzqJ614iwJ4JU2ucUrj6J9FVDh+tct64RMD CeVq/8ufjeHmK1UiIgQYeDv7/IQOqSomwZFpyLCkS/mUym4Cjm/a6aR5f7qb7TmvpvfJ bFkb8FDv+ywnDdRIm9Dhuk43kx23G+G9oeELb3+kGIpjm0xQ+4eCZiIuR/pGxZK8YtkN t24Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gi6ls69n; spf=pass (google.com: domain of linux-kernel+bounces-8904-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8904-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id m10-20020a17090a858a00b0028bc22eb542si4537669pjn.33.2023.12.21.10.18.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 10:18:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8904-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gi6ls69n; spf=pass (google.com: domain of linux-kernel+bounces-8904-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8904-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7EF72289AE1 for ; Thu, 21 Dec 2023 18:17:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 224FD64A80; Thu, 21 Dec 2023 18:17:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gi6ls69n" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 09C77634F7; Thu, 21 Dec 2023 18:17:01 +0000 (UTC) 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 Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-1d045097b4cso7842235ad.0; Thu, 21 Dec 2023 10:17:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703182621; x=1703787421; 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=YkM0jC9/yHAO382d+ILawqQDBhBWk0KZJUHJnBoAQj8=; b=gi6ls69nO9y16qL7Wl1OfZCf741VlbWSd5F0v/rUvh3/SaJ/r6JXrJDUbnKgIxB6t5 A4NRF6v+Ybg4282Q/f74XleVSwraG5JXi0z+3rWldD59myBIaP2YNJtMRNH6mp8kxRUB KWRFGns+A4p8i8rg2VjLKQW2O/Y8uDLtMB0y89XfkHQO9pUdLEWs1gF58H9nRVh+/HQ9 CNIJBNlgpM8/PtARErKoI6QzDIIF/B7WZV2sYrGxf1cnBmDfgmuzXx1SNGE+aFSSEstz Nh/RG2fQFcAH/+UvvfdCcd1y+FRvy5XajqRvKNWAo+4CZl36i1ekmhDvl+e5SatDygNU 171Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703182621; x=1703787421; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YkM0jC9/yHAO382d+ILawqQDBhBWk0KZJUHJnBoAQj8=; b=mlp/UBT0Ztk24R7wyX/tIdC0yVNEn0LkAfQTbqICOpNar+NXtUmHAv5wDDz7HXkVxd yTrRshAI1Dh5geup6SZeG1XK9FtVvMh2Q74FdIgou5cBn2equrlL8heo3dE2CkGFIFjb xoNrn2O75DCkYWP0FhdyOfD/F2xNhLnsWushWWGOCJgfgs6XjnMpWvevfTHTmkTLL33R HpkZEUqp/7Rs8QCnxAEAdZnJDC5Ar7tteA2raFyY2GJTnhYJoFCNuMs4GklfaENy+DTb PLLk4UDLYuoDGZqGxmnrOaN4elbwX/6rbH8chQUpenAKs/x8vfGMQR9PQYgBnFl4RZHk dsGQ== X-Gm-Message-State: AOJu0YyGud140mrctMn4c/7f8xSoLlrhEUsui+tRjQu/kdk5OpyH7ZsN LTU/3Xz6UrYyd8aaTlnO3olSwjAKcRPmnQ== X-Received: by 2002:a17:90a:f188:b0:28a:c3e2:3967 with SMTP id bv8-20020a17090af18800b0028ac3e23967mr134583pjb.30.1703182620849; Thu, 21 Dec 2023 10:17:00 -0800 (PST) Received: from localhost.localdomain ([2401:4900:5f28:c37d:9ad0:e7ae:52c2:c31a]) by smtp.gmail.com with ESMTPSA id lt17-20020a17090b355100b0028b338470a0sm2121454pjb.3.2023.12.21.10.16.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 10:17:00 -0800 (PST) From: Anshul Dalal To: linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org Cc: Anshul Dalal , Dan Murphy , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-kernel-mentees@lists.linuxfoundation.org Subject: [PATCH v1] dt-bindings: input: convert drv266x to json-schema Date: Thu, 21 Dec 2023 23:44:22 +0530 Message-ID: <20231221181423.671432-1-anshulusr@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 Convert devicetree binding documentation for ti drv2665 and drv2667 haptics driver to json-schema. The previously two separate bindings have been merged into a single drv266x.yaml. Signed-off-by: Anshul Dalal --- .../devicetree/bindings/input/ti,drv2665.txt | 17 ------- .../devicetree/bindings/input/ti,drv2667.txt | 17 ------- .../devicetree/bindings/input/ti,drv266x.yaml | 50 +++++++++++++++++++ 3 files changed, 50 insertions(+), 34 deletions(-) delete mode 100644 Documentation/devicetree/bindings/input/ti,drv2665.txt delete mode 100644 Documentation/devicetree/bindings/input/ti,drv2667.txt create mode 100644 Documentation/devicetree/bindings/input/ti,drv266x.yaml diff --git a/Documentation/devicetree/bindings/input/ti,drv2665.txt b/Documentation/devicetree/bindings/input/ti,drv2665.txt deleted file mode 100644 index 1ba97ac04305..000000000000 --- a/Documentation/devicetree/bindings/input/ti,drv2665.txt +++ /dev/null @@ -1,17 +0,0 @@ -* Texas Instruments - drv2665 Haptics driver - -Required properties: - - compatible - "ti,drv2665" - DRV2665 - - reg - I2C slave address - - vbat-supply - Required supply regulator - -Example: - -haptics: haptics@59 { - compatible = "ti,drv2665"; - reg = <0x59>; - vbat-supply = <&vbat>; -}; - -For more product information please see the link below: -http://www.ti.com/product/drv2665 diff --git a/Documentation/devicetree/bindings/input/ti,drv2667.txt b/Documentation/devicetree/bindings/input/ti,drv2667.txt deleted file mode 100644 index 996382cf994a..000000000000 --- a/Documentation/devicetree/bindings/input/ti,drv2667.txt +++ /dev/null @@ -1,17 +0,0 @@ -* Texas Instruments - drv2667 Haptics driver - -Required properties: - - compatible - "ti,drv2667" - DRV2667 - - reg - I2C slave address - - vbat-supply - Required supply regulator - -Example: - -haptics: haptics@59 { - compatible = "ti,drv2667"; - reg = <0x59>; - vbat-supply = <&vbat>; -}; - -For more product information please see the link below: -http://www.ti.com/product/drv2667 diff --git a/Documentation/devicetree/bindings/input/ti,drv266x.yaml b/Documentation/devicetree/bindings/input/ti,drv266x.yaml new file mode 100644 index 000000000000..da1818824373 --- /dev/null +++ b/Documentation/devicetree/bindings/input/ti,drv266x.yaml @@ -0,0 +1,50 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/ti,drv266x.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Texas Instruments - drv266x Haptics driver + +description: | + Product Page: + http://www.ti.com/product/drv2665 + http://www.ti.com/product/drv2667 + +maintainers: + - Anshul Dalal + +properties: + compatible: + enum: + - ti,drv2665 + - ti,drv2667 + + reg: + maxItems: 1 + + vbat-supply: + description: Required supply regulator + +required: + - compatible + - reg + - vbat-supply + +additionalProperties: false + +examples: + - | + #include + + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + haptics@59 { + compatible = "ti,drv2667"; + reg = <0x59>; + vbat-supply = <&vbat>; + }; + }; -- 2.43.0