From patchwork Tue Sep 10 11:36:49 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: 13798372 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2053.outbound.protection.outlook.com [40.107.22.53]) (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 0E3C418F2DB; Tue, 10 Sep 2024 11:37:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.53 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725968258; cv=fail; b=KXP6z4S5XzKPGs5+N183hTaEhS/3WHaqHpDEsDjgNwExC1jdlTJEhrfGXD4lbeAwhzGGmIxtTUNkHh6mnUO0EiPUCQJgv1CYUR3FzvrRiBcm/gklIioH/0JD7lxVoTD9hKlVAkm861ldMn/Thbr8hoz6OFyFV+v3OLVQID2+opo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725968258; c=relaxed/simple; bh=vsGa8NEnYSWrJ0V5n8GhNj0/m8K2BfYwUxnoAqmU5PU=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=fXyJHtiBQluhP7H4ymJ7mEwPy6R1FT9N4YPf5rS/VJNWBMSK26y+dFXsZEqcYQ/frG4K+LGUMPnFfV+SqlKnpSlPgFZmyTU5gnwnb8Ece0V3GJyGMmKxEy5bJFlkoZs0dr5xUDirUhrvluNU5TSMqsAEQ6peQrDoEVGOHdS55e4= 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=oVYdXsQ/; arc=fail smtp.client-ip=40.107.22.53 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="oVYdXsQ/" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BOS3cJKFS4W0QUdjXemGsAIkkP2ayjCa2I9lf2zKwUQTGpl9ljYoMPosQAMFvxhT9gwTzkcXv2erviMmq40RCm5dJ/jmTLfQWyNSB4Q7F4FJI+RWqBy3tn8lzBmupbImDxFuaUiQ/0Ehp95sOBVdsx6HxOd0eUu4OLiM7NnJJh/uXytSo6p0z0o6Ajx0U1eG+X5POFOK7hIjHbj9M1wPa9Pl4Ggx8/5ceMTznRI80NKzN2/KghrOC6rC57JXrStTItaKnPhFbD1F8VIhjnrOj1di1lHwPwZWL30XSO/IdioAuVHcvyONkwnQXzdeAOMSHo64liQpvt0xQ+I74XqvKw== 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=cJrD5DDB/QBu/xir7vph3xKfoD2i8Gjgtmi8hUjpwuU=; b=wz4+nvRK6+95azeddrdtb2fU/PignaWsH/Lu0NohoKzs2uwY17ijSUWxvZjDOOXlGm4NIA7X97XQiOgjkrvVT1aQIj39RFOTn7S03MynPETYFUEC+jNkgm7DhFRRegv7HOZ3HCmWDdNXXCNw+OJI+KT90QVzycQgvdWqHoj6upK2WVM6NvlVC9O2M0Z4m1jQ6lTxIzW9ULYhVe3dJXoVYPm6shUWH6gcJm6XJhhJIX7Nuv0BMNwskLyNUnHXSM4CNQnjI1VpYk7uvnW+PVfiLhaeEradmt/J3Yux1f2jzTlIrm8zpzht57vj6cCa4gdO0HTXjqSad4QV2GRLyNCxWw== 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=cJrD5DDB/QBu/xir7vph3xKfoD2i8Gjgtmi8hUjpwuU=; b=oVYdXsQ/JT1wHFtPkCdIhH/eZvxbKWeKfjVvniehv1wS7yCCYqT7VxQIpL203ohxs4ChUFenT1egiQOx0H5sxSDKqPBHWTrolLWwblJM4gA4H8l6PbeKKwObXJQYnVrggGE/WdMRhkSv6mtEeIG+iNVgwnLbGZzknYKw41RcfF7o//dEBNEWKMNbu+Y1s8HsFPASfV9u7ByVT0YNrAgTcy0s4ZQ3MqG8PftLPFlxL1GQaePtd/7Z3WVtzw9BY5Ox2Gwtc7K/WayR2WyxdV/Mek2pjlBBi/SkrybM/6Nt0+SWtTtYacmjxDfeYTiymKUDnjBlM3w5+g6qe8318KjdEg== Received: from DUZPR01CA0081.eurprd01.prod.exchangelabs.com (2603:10a6:10:46a::6) by DB5PR10MB7890.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:48f::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.24; Tue, 10 Sep 2024 11:37:30 +0000 Received: from DB5PEPF00014B96.eurprd02.prod.outlook.com (2603:10a6:10:46a:cafe::6f) by DUZPR01CA0081.outlook.office365.com (2603:10a6:10:46a::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7939.24 via Frontend Transport; Tue, 10 Sep 2024 11:37:30 +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 DB5PEPF00014B96.mail.protection.outlook.com (10.167.8.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Tue, 10 Sep 2024 11:37:30 +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; Tue, 10 Sep 2024 13:37:04 +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; Tue, 10 Sep 2024 13:37:04 +0200 From: To: , , , , , , , , , , , , , Subject: [PATCH v6 1/2] dt-bindings: iio: imu: smi240: add Bosch smi240 Date: Tue, 10 Sep 2024 13:36:49 +0200 Message-ID: <20240910113650.4733-2-Jianping.Shen@de.bosch.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240910113650.4733-1-Jianping.Shen@de.bosch.com> References: <20240910113650.4733-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: DB5PEPF00014B96:EE_|DB5PR10MB7890:EE_ X-MS-Office365-Filtering-Correlation-Id: 0eb2eb05-ad1d-4702-a18d-08dcd18cf420 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|7416014|36860700013|82310400026|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?UcpCdPM7ZYLfRKpLI4L3BBS9Cq8rUM5?= =?utf-8?q?OBpPUFSjN8wIqpoI6aI7NTorJQwKYckPSOMeqBXNqp6NaIB4mJn+0POJaSUDI08f/?= =?utf-8?q?5Py4OxN1Y0fsAXAXFC1DPCdX44rNpez6ImErwC9hGrvOTAXHSajsnSHQXlhdalbnZ?= =?utf-8?q?KgyEBg8I+Ev1mSx+8rF422+fR/WnrhUKXeclzCxkCWFxWTME9cLaGcicS7KeABBdA?= =?utf-8?q?tHJf8uNYtNeELNdkLuPll8+LnXqjXE97TrvQxc3+qTxEQEHPO2/IvOSJsazxjEPKK?= =?utf-8?q?m4mIzf6+FKEyS9TJtpUtb0zai0gpCp67h9ddCzauXAGYORfweMpXs3dVR1Z+qSowH?= =?utf-8?q?ytBIh3K0KWPY+eapoynjpmqSvvSXV4+EoeyZ0Gn3YLvziLFn1GdK7gFetHBZdTRvZ?= =?utf-8?q?/Uu4XYMtODZmnR3EyK5JCw4QuKXZmTry9em5jZleiLveXJhwW50ermB0uny6Lf7mA?= =?utf-8?q?5946Nn01oiYG2TYoQIoDd2uxYFhQAUtlBgbWCClcCzZLpFHWMdyVvkTPjsA1SPKNx?= =?utf-8?q?Rza5ytA8velXU2QeipoLBHy1nV3HVsQvM48Cwyx9r1mDZ6LZ5QsxTubH/IbamNP9n?= =?utf-8?q?xdwr2BIwI/piSLG1+u3iZTyvHtpwu2tzP3GViCaUXOJWyUt0E4IGD8+MNDVTH9QOB?= =?utf-8?q?z03ZsiCw9PlYbJPw+HCEAB8BHr2c6j4ab2v1BEki/oVf7HjXyZfX3ZiBEJgDedUs+?= =?utf-8?q?BA2W0gFfybqpVXuoH57xvFw7Vt7lbOLgTU6hobHKgC1dUlDJDzylgofNv2cdW94uq?= =?utf-8?q?VmTTkTsr5MQkGfLN42JfxlX4mjjb1ZUaqqwSCmz50ts4eBgCBD809WR4K23ky4IzP?= =?utf-8?q?J6/7qhl4SUqQ7FdRArDslgJXVx7TTgkKOLYysI2uaGQq1Jw7F32WfojNKQYvPDEjZ?= =?utf-8?q?SHHBs+ZQOuEp5AFchailh5Pdx0k+3F9n9tR4xM2NULBlSY5Pd0VH/NUTcW+PQJx5y?= =?utf-8?q?QZJiNuTUNO91wNtVa0+XmBdU46Lqi0lCZRAKYj3PXft9YUYeYJ0aMR4JjBqwTnI6K?= =?utf-8?q?nDt75b953CU6+svCk7rqeqLn6Gmu1AH231QY2h6MkuGhgWC5dZFza54Dozj22SnCV?= =?utf-8?q?g9iXFMSBnMcjFKdBfdp4N6Eer1Rm8R3PCa04uW3lKCPznpFCOsPGbzP3xTIVl7LEO?= =?utf-8?q?IOhqkirAnKjPacJlwwdYs2j2i0PeI7CSutA2oW4Oq/6C8I2WoWPXiWdqTYk3qvzRK?= =?utf-8?q?oxS3fMnr4wmRNdSZaQiLlVI+k8oBfW5Qh6JQzbC77AXJz9G19v8wiMaXo+GAgH2YK?= =?utf-8?q?qBPl/LJXmay1tKNHXAoNiCotq/AJ+JzjoPOItKFA3KMT15MR2NjcLHtdyINcc6FJR?= =?utf-8?q?m7GxdRQsabBeh222eIpGphgspX89pidjcw=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)(1800799024)(376014)(7416014)(36860700013)(82310400026)(921020);DIR:OUT;SFP:1101; X-OriginatorOrg: de.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Sep 2024 11:37:30.0079 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0eb2eb05-ad1d-4702-a18d-08dcd18cf420 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: DB5PEPF00014B96.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR10MB7890 From: Shen Jianping add devicetree binding for Bosch imu smi240. The smi240 is a combined three axis angular rate and three axis acceleration sensor module. * The smi240 requires VDD and VDDIO * Provides only spi interface. Signed-off-by: Shen Jianping Reviewed-by: Rob Herring (Arm) --- .../bindings/iio/imu/bosch,smi240.yaml | 51 +++++++++++++++++++ 1 file changed, 51 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..58f1411728f --- /dev/null +++ b/Documentation/devicetree/bindings/iio/imu/bosch,smi240.yaml @@ -0,0 +1,51 @@ +# 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: + Inertial Measurement Unit with Accelerometer and Gyroscope + 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>; + }; + };