From patchwork Thu Aug 15 15:25:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Shen Jianping (ME-SE/EAD2)" X-Patchwork-Id: 13764950 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2087.outbound.protection.outlook.com [40.107.21.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 14AE81A76B7; Thu, 15 Aug 2024 15:26:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.87 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723735587; cv=fail; b=mABCjAlWrOohC1tmC8af158tUS0FOD1d86ZyrOBMt/LdibnDqX29qyeEkbhob6gMEYs1ktGVCOKB313c+6m4Rp5eXwZu9Q9cd8tQMLPqK5ltr2RuX4xJcJm97Rur3aFhLHIc4k9HumFMptGXAfu9tOnxQ9t/2GpyQmbJeVQKa+g= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723735587; c=relaxed/simple; bh=0TOaM5HJ7DgBFJ6iHuhvU7IpEaEwtwybrvrqvRafUAA=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rzhXaaO9kB+a+8/TvtOjkoU4eVkK/lyS9aWXO3xXuN6wJ1RvvFkJ939NpafJYY525R/lu2d4QecbW8a2/MmeFjAsY0ziJqh7td6rSEkJinUEZXUMmtzawhC579ob0oxTrZUXuPyXrJyPKT5Z+LGFSqXKhVzeECALV9NFw4LXaqM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=de.bosch.com; spf=pass smtp.mailfrom=de.bosch.com; dkim=pass (2048-bit key) header.d=de.bosch.com header.i=@de.bosch.com header.b=e3gwgMGw; arc=fail smtp.client-ip=40.107.21.87 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=de.bosch.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=de.bosch.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=de.bosch.com header.i=@de.bosch.com header.b="e3gwgMGw" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Zu+Bx2fz99Ahacn8FT8422EAVXH/ZrRwrWFBrbGli80K/XpkL2MhlGSpXgfpu6N0za8WlMAOYRcav11Jpe6D+KBh1OvioPVPLuAVWkomlecnECP7pMPXNgZG1aIQxkn8bUvGoVYOT1A6hnfc82ucbf2jZegrqbfyR/KENJuLGCgWlwPD2qeZDupi/ZnSIMkF19LcN8a5UR8Hyd3dh+VCgqDZiSSUD5vVs7BPYRRKpAPjMh/hktg2LDZzkX0XePB7GpdQJej2fCex+azGSSTPZBuL/x9Ix+puT0DDyvztx6QshGbdIUNP4qq1yNll47l622r1ZCQWlcGQkcQSb/R9iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=mjUnBqheD2L7Xxk3dtPkVxYoKpFGiKz2TY08P/WNjj0=; b=Uz3wLRAkjpjS6qYLXnHruF1OteX9vZA3Y7JhDWA6CQk+MXscXgqng8oCZ+0q5e0X3fjQUc7QfeWF1yk/EXlZM47JLrSR5s6sOsY4KPvkM/C8lOHBJRt2SMJqS0lb28vcfjJVfjlT5I/NS9H50Lu7M/8rXsw7HqDT1YP0O5yR+BaHqGL7HMOxgHr1SNmty3vo2tIlTIePEH/F5v4CQUAEUxxY2+qTPN5wB7uFOZFuzwGhJlw8MSv8oUHqEZOFSZa37JxX+yAaitubprDcEpdLoeXG1WzDqlScdqkWw9FQ5ti3F1/jJc+bPD8TJXX02A+/BIIal/UMENKx5Lbt5Bb3tQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.206) smtp.rcpttodomain=kernel.org smtp.mailfrom=de.bosch.com; dmarc=pass (p=reject sp=none pct=100) action=none header.from=de.bosch.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=de.bosch.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=mjUnBqheD2L7Xxk3dtPkVxYoKpFGiKz2TY08P/WNjj0=; b=e3gwgMGwL3QBh1099ON6Ev/4xto3zrhCGMpLgBG73w+jHfGBC+sV8tXdOA8TMPn+8Kz7QrpyreRAllRYZhXURiJS+NVgwRDsQNeMeTCA5ODLWCOW2aH0910tS7avyTSoVAETfRUNOKxcCfCReFdsmHEwW++pN1Rt+3cpcZFsmQ3XBhp7RdIXWSq+YjKa3f8XXMRfPT8WVfiUl55MWy3Q1J28IlWqmrf2tuEZYPYL4+u4Ra1yBxj/MI2+k0HNKMIKiDsJ6H5ZlGNYT+PEDDoKKVPLnNgsFGs/02s69AhMKycXbceM2eJVLPcidT+nz6to6BNpRpjkfGBpSJbMus37Xw== Received: from AS4P191CA0026.EURP191.PROD.OUTLOOK.COM (2603:10a6:20b:5d9::17) by AS8PR10MB6390.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:20b:56f::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.22; Thu, 15 Aug 2024 15:26:21 +0000 Received: from AMS1EPF00000048.eurprd04.prod.outlook.com (2603:10a6:20b:5d9:cafe::15) by AS4P191CA0026.outlook.office365.com (2603:10a6:20b:5d9::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.19 via Frontend Transport; Thu, 15 Aug 2024 15:26:21 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 139.15.153.206) smtp.mailfrom=de.bosch.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=de.bosch.com; Received-SPF: Pass (protection.outlook.com: domain of de.bosch.com designates 139.15.153.206 as permitted sender) receiver=protection.outlook.com; client-ip=139.15.153.206; helo=eop.bosch-org.com; pr=C Received: from eop.bosch-org.com (139.15.153.206) by AMS1EPF00000048.mail.protection.outlook.com (10.167.16.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.8 via Frontend Transport; Thu, 15 Aug 2024 15:26:21 +0000 Received: from SI-EXCAS2000.de.bosch.com (10.139.217.201) by eop.bosch-org.com (139.15.153.206) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Thu, 15 Aug 2024 17:26:05 +0200 Received: from LR-C-0008DVM.rt.de.bosch.com (10.139.217.196) by SI-EXCAS2000.de.bosch.com (10.139.217.201) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Thu, 15 Aug 2024 17:26:05 +0200 From: To: , , , , , , , , , , , , , Subject: [PATCH v3 1/2] dt-bindings: iio: imu: smi240: devicetree binding Date: Thu, 15 Aug 2024 17:25:44 +0200 Message-ID: <20240815152545.7705-2-Jianping.Shen@de.bosch.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240815152545.7705-1-Jianping.Shen@de.bosch.com> References: <20240815152545.7705-1-Jianping.Shen@de.bosch.com> Precedence: bulk X-Mailing-List: linux-iio@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS1EPF00000048:EE_|AS8PR10MB6390:EE_ X-MS-Office365-Filtering-Correlation-Id: 77b040a2-dd48-40e4-5f77-08dcbd3e9dba X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|36860700013|82310400026|1800799024|376014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?I7WgzlJ8K9acRr5TL41ua89dG+DD6Hs?= =?utf-8?q?2f8ljf8iFx6402cFW+UTYoL+gqsiZoXowxKUJL5//RzEjhtMXvY50kIQ04BQWRqSq?= =?utf-8?q?qS/3911rvuANfgaxStIHZxs++7uZWDfaTk8K0OyjzaOAQDzJu64iLW0TxbhJh3IST?= =?utf-8?q?MBR7El4o3spcgbsIfWd8t3/CalKfNNXjSOJWpA1jd6Vrwr2RkyP2OGTl366DnzuD6?= =?utf-8?q?S38RBSlgU5GfHgnOJhqgnOA9xipHEhVKsCDsfkY9EhSiXIXJ13h9CUGaX0wn2JLxl?= =?utf-8?q?VFg1Hbj9NiQvRsqc5YQagMGIk1qvpiBeTEN9GPLP6uC+Yqq0h6cp483jG6PGvPFLl?= =?utf-8?q?Y8+jpyXqPcbEOLm6SfMTTFIItZK6ddGSY4Qw5d4icnU3ieJ7m/mYrW6BYFTqcxnQm?= =?utf-8?q?zLcG8Ita9TbVVpCWqpMrAIZ0Fo68mYc27LAzU715kzohM2NoSDqtqBN49tKbs09hy?= =?utf-8?q?zxekTZC+1ZpRnKJ2SPlgENgtUJTwhq5YvxM8ySqI3C+VXS7SPfQi+hvGG4zFogIUX?= =?utf-8?q?w8cHnYExTN9F0mduxcq2Uvt3T8z1FZxTbBhTH/E8Ut6NV0aU8BENAhkJ2rkUOw3Jt?= =?utf-8?q?dBxx9MTB1o4vxycpI+WmT8KB6RHa500sI11mLhmpF92HSZSiKgDX+tbE4jwLKdQab?= =?utf-8?q?edlk+I/Zb5uV3SfmXpG74Bhe7hVtfIMsUmzvS6400+rYdlL1FgqHeU/U27fjJ+FpD?= =?utf-8?q?iCKIJvpcIjDgyzvZyTO4yCph6IPgmvi8wT0F3sgfrapw6IpaPYZ1TDno5bE4jj3VR?= =?utf-8?q?YuxT5mc8+Pd+bS5/txbEMPBi3hUntK50GyEGsqFSDbHRR1Kkn9PbMkh6BAN2dvZsd?= =?utf-8?q?+4Z85Ng6z08860gbSq4+iiUDpWry9ouyX+wSFQK7rfr5lCI4YAmZTmKAMT+0wHNIN?= =?utf-8?q?eoj93RWOusrktlgCOGXomuIK4fywAScYSao7KhiajkTKlcpjE6WNVxY8/2CGnyTQp?= =?utf-8?q?DYV7WYITli7lc21MA8crUxtMLGvDfxPJptKOSNJdStsZljUs+qt2tugk5Qeno8kH2?= =?utf-8?q?FJKpFPDvyk0RWC2qKDl3wlTwGe8ZPRdB72PAITlvCQl0gdKkjBs8fHcgVhmk4hqPr?= =?utf-8?q?oiwdVYPXmSvuhhhyvhzVUDZb+8QITlV5OR4XsP5Ms8XWxHcKCOX6qcYwdqrTIv4uO?= =?utf-8?q?OgmMWnWGVMBbGrTydZrI5ttSk5ACYUALnjPwXHv3zFDoczevEOlG1eqhH5AJl7wPB?= =?utf-8?q?KpBggoMniPyQybXSbUQUr5sJl3HMojxFAfDVLSZrLQSLoRmi0Fpw1M7JhVaGxkYDB?= =?utf-8?q?NuZe+TCjjGYu72xy6VHeNLRjo29XB0a6EEECUL31PvF9rqQiACkq+wkLqQ81v6Yqv?= =?utf-8?q?Z9lxShay135NDmHr3hDASAZojTe01M4FSw=3D=3D?= X-Forefront-Antispam-Report: CIP:139.15.153.206;CTRY:DE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:eop.bosch-org.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(7416014)(36860700013)(82310400026)(1800799024)(376014)(921020);DIR:OUT;SFP:1101; X-OriginatorOrg: de.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2024 15:26:21.1001 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 77b040a2-dd48-40e4-5f77-08dcbd3e9dba X-MS-Exchange-CrossTenant-Id: 0ae51e19-07c8-4e4b-bb6d-648ee58410f4 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0ae51e19-07c8-4e4b-bb6d-648ee58410f4;Ip=[139.15.153.206];Helo=[eop.bosch-org.com] X-MS-Exchange-CrossTenant-AuthSource: AMS1EPF00000048.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR10MB6390 From: Shen Jianping dt-bindings: iio: imu: smi240: add sensor dt-binding Signed-off-by: Shen Jianping Reviewed-by: Conor Dooley --- Notes: v1 -> v2 - Add more detail in description - Add maintainer - Add vdd and vddio power supply - Use generic node name - Order the properties according to DTS coding style v2 -> v3 - improve description - improve supply definition - make supply definition as required - add supply definition in example .../bindings/iio/imu/bosch,smi240.yaml | 52 +++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/imu/bosch,smi240.yaml diff --git a/Documentation/devicetree/bindings/iio/imu/bosch,smi240.yaml b/Documentation/devicetree/bindings/iio/imu/bosch,smi240.yaml new file mode 100644 index 00000000000..6f1fb4b892c --- /dev/null +++ b/Documentation/devicetree/bindings/iio/imu/bosch,smi240.yaml @@ -0,0 +1,52 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/imu/bosch,smi240.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Bosch smi240 imu + +maintainers: + - Jianping Shen + +description: + The smi240 is a combined three axis angular rate and three + axis acceleration sensor module with a measurement range of + +/-300°/s and up to 16g. + https://www.bosch-semiconductors.com/mems-sensors/highly-automated-driving/smi240/ + +properties: + compatible: + const: bosch,smi240 + + reg: + maxItems: 1 + + vdd-supply: true + vddio-supply: true + +required: + - compatible + - reg + - vdd-supply + - vddio-supply + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + imu@0 { + compatible = "bosch,smi240"; + reg = <0>; + vdd-supply = <&vdd>; + vddio-supply = <&vddio>; + spi-max-frequency = <10000000>; + }; + };