From patchwork Mon Aug 26 14:05: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: 13777953 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2067.outbound.protection.outlook.com [40.107.20.67]) (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 D7A9818BB84; Mon, 26 Aug 2024 14:06:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.67 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724681189; cv=fail; b=H+5hPQxRRUoXUpThFlvkwC3vJP8aFzgns5lHSfQCPEKY5X/zZF86Ua74na3CEQ7xWUP4/08tHmk01frY4XCCes9IA1DMxPHNMabwwwgsKQynBBqi0YollzWmAEG/6aq9VzhsrKKZtzR1Q1WdXNlKTIWT0Pr9QmJl+bXee2R9Ig0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724681189; c=relaxed/simple; bh=SvBqDJFNC5ozGP0YfWHw3FxVs5bu78gUWdrontk+79U=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=DWLPhSEwZqfbIZKiHX7XM6i23SnjNt0KWwRWacGwpx8i+MhC8WfuuDz7eiabHCw0u4Z5TO30AumGcy+7icIZgpTcWR5UbrNXV+ft+6p/Rm9t9XqXV3kV/olzV+zX4v7DjPr2FB4sQbgXNi11i7k7WUPRPSRzBF3dfkb+ZFY5Xz0= 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=GBgukaNO; arc=fail smtp.client-ip=40.107.20.67 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="GBgukaNO" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=SsSxGct2aZmAYGqzGHzJ+nN3qvEplEeKqg12RG1yrEVXok7cF2fFRhMMfpJjbVLf6qiNCr51CELDKWS+dUkkmZ92zrZ5cF4ELQtlKli8klvDe+g+u8d7IGa5I4pHkowaF5f0YBpSTczLNLtJ3TWT1qBOJlKrh/fkW93Tsjx6W9T15TRbxoUm8r3Pkae3qc52IzV+XqUHYPJrtNcMs+GgqdIxFIrAWQW5j6AL+aDBqUaCOn8jilBczW68Lon/iAl7DnA3EFNn/HNrmMWelyc101URPTo4GXNBbWs47GUUma9iyFvsR4HnmGM4n43fOFdWYzLEy7QRXm/uEB4RAxXv1w== 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=9jQeZ0O4QK8otOa05tUXG4fSMUjoxCsgc8g8d+LF1wc=; b=qble4ar3mtQE3j9WcMxpZU1HAZ+wvKCniwaOH2M2hnkPX3FnMF2ZIOzlCaOuOG0SyjV0rsMZCo2aUVA+/f/LYbRxBRjatcu7gJV4XbH/jXRXBR66r+r+TH6lELviH43FdZp+rRL6qjxwHhVY6hDtdKOpSCzzCKlr8YMYOmOvbKoWtsvdo4vH1jh6agjh63wBBmFYqcf5pxQNGFoDS2k/3+hdqPm6AHMXF7LgzqPmnxZcktCBZ357H13Jtgr/Fmk0QLw46CLJzI8Lsne0MYNVwrwe1rl8zNp/89rxhAZrJ/fTV2NaIJ2u35X8L0qkuoVbuS9bnS+o9rG+BqLNgcHpig== 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=9jQeZ0O4QK8otOa05tUXG4fSMUjoxCsgc8g8d+LF1wc=; b=GBgukaNO9UOLm8LlR53YNdxlzLxg975LYTNFgOGt80WGRp9TUXlnuNyyKRpfOxnCzimOAQaN1Srv2pf062i8F5w8+Xhmwl8LF3SoR4GBR5hTYXbQ22G2eZgkGaBgYM41ZEaJdgw5Gd/PFpK+Xn9RgpC9Lc9fFGMwEZaGB2aOzvbSdAhOLzUWPrAb+3wn5xx2mqNNam50jmGBfLSEZ8SisKZXv0KzWZJuiJb++PunYKlKgxZMKeo2cna/Px6B6oDJjNOjjEQiLTNEb9tyAgCcbZihTHkBNqa03d3DIrPMdgUfRclLawv0VaDjW/nJ7gNIDbcB5oCVxPwOfeZnqqeWzw== Received: from AM6PR0502CA0054.eurprd05.prod.outlook.com (2603:10a6:20b:56::31) by GV2PR10MB6044.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:150:7f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.23; Mon, 26 Aug 2024 14:06:22 +0000 Received: from AM1PEPF000252E1.eurprd07.prod.outlook.com (2603:10a6:20b:56:cafe::b0) by AM6PR0502CA0054.outlook.office365.com (2603:10a6:20b:56::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.25 via Frontend Transport; Mon, 26 Aug 2024 14:06:22 +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 AM1PEPF000252E1.mail.protection.outlook.com (10.167.16.59) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Mon, 26 Aug 2024 14:06:22 +0000 Received: from SI-EXCAS2001.de.bosch.com (10.139.217.202) 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; Mon, 26 Aug 2024 16:06:07 +0200 Received: from LR-C-0008DVM.rt.de.bosch.com (10.139.217.196) by SI-EXCAS2001.de.bosch.com (10.139.217.202) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Mon, 26 Aug 2024 16:06:06 +0200 From: To: , , , , , , , , , , , , , Subject: [PATCH v4 1/2] dt-bindings: iio: imu: smi240: devicetree binding Date: Mon, 26 Aug 2024 16:05:44 +0200 Message-ID: <20240826140545.4085-2-Jianping.Shen@de.bosch.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240826140545.4085-1-Jianping.Shen@de.bosch.com> References: <20240826140545.4085-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: AM1PEPF000252E1:EE_|GV2PR10MB6044:EE_ X-MS-Office365-Filtering-Correlation-Id: 2df89941-df7e-4104-2941-08dcc5d843ef X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|82310400026|1800799024|376014|7416014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?GzLpxAOqq9gaRemuexTF2wkmSSb81mT?= =?utf-8?q?opVwKOaF3rPdEqeweosgu7Cmpq8SgRS+O95pTb9Dvi0aMoEAOm4Wk0zzua4pO6Bi8?= =?utf-8?q?LidFHU29FBq8O6M+GYTz8MZcDIN9YcLHmrV5ypohy4FnkK3CRfm7QL3nbq42MxOb7?= =?utf-8?q?od6oyJyaqu8qt9fsJz6Hcln1zK1j76/8Q6bem47Ul9D66E0hQAZkOPHs+fZzJGinb?= =?utf-8?q?1OI7HIxqPUJ69jrJT0gEahkrAVeowW6QtbC/TlqanSml3MbWhWROulslGM8fHMJul?= =?utf-8?q?mCRxU08trpCuByyF4ESrSOYzEQ6ug7mYKmbcKTr2WMPHdLd6lt9g2bR+njyMh75ml?= =?utf-8?q?3+nLQ0aPFlFgUGjR0UNI/DUINYeMAeoLopQ9ZxY3Gh223UrMWv4s6evKXcuOt0LQX?= =?utf-8?q?7bn8ck6tj50njqNAMUI9eisJ1WWka6gAWb2PTX+bOYVOop/N+hWVo0AoqvHZiVRbt?= =?utf-8?q?urXSPS/ExrOHBy6Bz7JFPvYQALm3PG3s5cP2z2TXWPjSFpM1LR44mKeMsr0Jk1HcN?= =?utf-8?q?MidUZfE6xli074kBuo6i5cprLsWLKFwfFjQg9E9wlTSKM/O0JS4+UxYQUpLF9P8ja?= =?utf-8?q?ajcvI9fT8xRs8WKvOKGZ5om33uq6NahLJ1Q08ITDSrH3xRUWGdkIJf+wknM5ZPBCa?= =?utf-8?q?BWjV8wU2pj5mA4kIazpVlA1EDaFd8BfcYxKZyjpNFMv1emQLZiyGsMYgRvN1x/o17?= =?utf-8?q?xwBTdCPsTC2E4Ju3gGiqxm9O71BfElTuiQhWKpVck8MxGt/XOnmW2KEGzKeYMqNE7?= =?utf-8?q?OvF6aKiJP3NIK1VpHmY4O1f8mx3nPQ1lchA7YTfyZZ1I2wbOyEpNRbid0t0GeXBa6?= =?utf-8?q?OWJkAqBPSDd+vTmGwyJcMJVR0LaZ4KIK8c48ri9TZ4eDwvZ+Ia2vNEIeTqNvw0aBe?= =?utf-8?q?ux7/HibqesnS1aUTmXAIO6Kf/Gz6Gv3jxQ3YWiRESQau43gzpMejZPr7rujsINyT6?= =?utf-8?q?RBZzn8MXMJeYJITMYvsEIIIyKztah1g6hfROh+6aTBb4JT4DevBJSz5eeAeKNBB59?= =?utf-8?q?0VF+P1eFt3UNfhSbdmySXxV20Hmg6/GDR52w+1smoPmplbMS03BPVj/zD1+WDUg47?= =?utf-8?q?fXOxR1OLDwmDPyx0Xcp4R96Yy1RmPbM1plHbe0dFVwlvZMYUy6YXJpSSs/4qUDJQn?= =?utf-8?q?Gna0oItcT/Yvc5uInZSXQtrzuh8D+8uZ8GpE4FjyHU/7FqEjnYOXLYEbCKWSUfGan?= =?utf-8?q?cAjQExt6H+w7+Z9+wu1G95RsvZ6auAPEWaD3Nox7G+tgeGuxMqoRNuxq5H2Vpt/WJ?= =?utf-8?q?34rZ4k+sECcVdg8mojDW+L84f5/LJHLyc9QMJSTBc+ekoxqQfGdU15A8f/iDB1kaZ?= =?utf-8?q?mTqBPKC8/tsYkyoYeXnY9hY6LqUm2tK4JA=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)(36860700013)(82310400026)(1800799024)(376014)(7416014)(921020);DIR:OUT;SFP:1101; X-OriginatorOrg: de.bosch.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Aug 2024 14:06:22.2341 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2df89941-df7e-4104-2941-08dcc5d843ef 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: AM1PEPF000252E1.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR10MB6044 From: Shen Jianping This patch adds 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. * Does not support interrupt. Signed-off-by: Shen Jianping Reviewed-by: Krzysztof Kozlowski --- .../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>; + }; + };