From patchwork Thu Dec 1 07:22:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Gerald Loacker X-Patchwork-Id: 13061007 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BC03C47088 for ; Thu, 1 Dec 2022 07:23:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229900AbiLAHXi (ORCPT ); Thu, 1 Dec 2022 02:23:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229903AbiLAHXT (ORCPT ); Thu, 1 Dec 2022 02:23:19 -0500 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2073.outbound.protection.outlook.com [40.107.22.73]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B730D45A37; Wed, 30 Nov 2022 23:23:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jo7Ilyv7Fusd6vk1hUPWTXxOsf6mE0IeN2d1g6jHQKHA0eOWlb5lZkSNcHKnXgPNpRcsRfy87kujjPrVzxRp65b2LMPIKNB49E7YTa5JKZZJw2YKwioUkkN+CLRRiESeR3GLqeR33xaaHLNIELFJ+KqCEOAJPMftHw3vQmpHC6cPPqyaMpZMvb9NJsUkMVurznC+PI77TT2w04kXvgeXHouNTxWs2KT4YWKUsIi9e36APRkwTMgV8FyWIaPvkl2iy3+8LpqUTl/2KEPgOh3ptg3XYZ1FXEkiB7aULUSgoZEORdHGncRPMWefuXAZ/e7LgVJ3Ghd/qmZpbLamY7ef5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=DcTrI2e03/n02a2qEVj5OqMq+C5Epm4gNCCaNxoObWE=; b=k6HDFnJlug4r4qXUY2jp724D71/S4AB7WRjKzdpCoY6ENjz2DUq+ToorocieDUobVSTTZLH9LURtqy3rshuwZ2lwURSxOSAad04jGY0TCdg29zHFy7IHZ9CLVYbOaGDDNCqGJKaSssR42a1PhF2ZXeuHPY0Z6CLlbDXC8tu/gIFL1M/GoTamRuxGaVXKOsP1CSzE7ya+gMFo1LMGUNxcODR8tInffh0OnVj0BY+cVlrZ8jBOhFzHeottGmV18tJaVWaaoMcsfGlTZzl2Nr8BR+q6ANA3PqRxISkTvNx1ccAe41yLcV1G9cRZkcva0okecnYL94MxT0lwmpDbGqwJZA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DcTrI2e03/n02a2qEVj5OqMq+C5Epm4gNCCaNxoObWE=; b=Bft+8wn1o8tTRnaspUVpz7vIQeTsRMHWMkmW8LMgup1y5zDLTqMQiG02XZkdrCvLNnEIF37lo35KQOcV8TJzSAWKYTK5tDTdMo/hLUzzOEwcvb6Sx2KEcXhPa2FnJd8B8+wDwqAk8NRqiiNehVN2poFGj2fnC9Ixbgk6AhKk4RQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from VI1PR08MB4544.eurprd08.prod.outlook.com (2603:10a6:803:100::13) by AS8PR08MB6023.eurprd08.prod.outlook.com (2603:10a6:20b:291::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.8; Thu, 1 Dec 2022 07:23:06 +0000 Received: from VI1PR08MB4544.eurprd08.prod.outlook.com ([fe80::bcc7:bc51:bf44:1454]) by VI1PR08MB4544.eurprd08.prod.outlook.com ([fe80::bcc7:bc51:bf44:1454%6]) with mapi id 15.20.5880.008; Thu, 1 Dec 2022 07:23:06 +0000 From: Gerald Loacker To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Andy Shevchenko , Jakob Hauser , Linus Walleij , Nikita Yushchenko , Michael Riesch , Gerald Loacker , Krzysztof Kozlowski Subject: [PATCH v6 2/3] dt-bindings: iio: magnetometer: add ti tmag5273 documentation file Date: Thu, 1 Dec 2022 08:22:19 +0100 Message-Id: <20221201072220.402585-3-gerald.loacker@wolfvision.net> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221201072220.402585-1-gerald.loacker@wolfvision.net> References: <20221201072220.402585-1-gerald.loacker@wolfvision.net> X-ClientProxiedBy: VI1PR0501CA0024.eurprd05.prod.outlook.com (2603:10a6:800:92::34) To VI1PR08MB4544.eurprd08.prod.outlook.com (2603:10a6:803:100::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR08MB4544:EE_|AS8PR08MB6023:EE_ X-MS-Office365-Filtering-Correlation-Id: 1e2beabe-e4a2-46a0-f400-08dad36ce423 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: O+hLmNdiImaZqAvZ7ze+KyuKZm304h1Q7XfyEE/IPhaLCW4LUeiPIkZrvln9Jf5zN+UzcMI6ApZKVH8d2z1J1zNdTvY3pSWP4BRxMbB5BxpDMA115lW0kyOQOCWlDVVz7w9xOXrU9dPKu98c3CpwU9SXvEu1tWrtEOt5TTLCRRqN1itvJhmJ67Mgem3tEgol7V2EFF7FvTSLGK0mRT+P3eACR+rDcQmHQ2phfdDAIdzu/UWbJUUWLgFDKIIOmENgQI0c8HldQZU/gRxdUS9LXWei1ADa008UkqzmmsPyyr8eiylo/RlAxeimnb9lVgFabqIgXnZKoIlWchULx7tSo9yGvCu3KThskaKYWh0u9HsbbqP1/rTepeevKx7ZZMLtvlEOr8o1FSAgBM/dO2zgLM/F5Ez0M0K3cYXnBQgUAV5VNBUESTJoxARFykTpFDYNo6t367UZ5osVjNJtjaE2fgAOyCmZ8Uu0iIIXHj5THJHoxfkNPms1RSXCdi3vivvEQGvE4kVWPYdiEMrS0LO6poRmY2VAqbNMZv6xSjJNw5DOR4FQGxFl+MiY52mcibnRPRORhRwTwK1JZxe2OSjQceN9ygEJscVoUlhq7JGOGCD2LCID6jIxaVyGAQ8M5J3/1of0pNsVFBkPNJJYuVYC2QsX4oQO4UhHoCNR/fiOl1TvXGRMubMbkaipc/UrJXcNhImLc9wH5bmfVfSWXYnjCnDB/6/GwOqX6fs5SyHEUzaYPFWJZm7x5MZyonGiPVEP X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR08MB4544.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(376002)(396003)(346002)(136003)(39850400004)(451199015)(8936002)(5660300002)(186003)(36756003)(66476007)(41300700001)(4326008)(66556008)(54906003)(316002)(8676002)(38100700002)(86362001)(6486002)(6512007)(2616005)(66946007)(26005)(478600001)(7416002)(52116002)(1076003)(966005)(6666004)(38350700002)(6506007)(2906002)(44832011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?/apuowKALf+Jet3lgkkcCGwegPd7?= =?utf-8?q?9qX9aJA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Kc+M/8le+sd4m9vdPQ7ZX1+LZ5XZVwxaibG/x2GTzphLDfWWRROOa?= =?utf-8?q?iiOTKl7uy0dmtS8RGABKzZJzaKJ0D2Hd5TCvXNE/rhAjDGcCgdsEzzUvbOvRQu2B9?= =?utf-8?q?N52uhfK/00ATTzGE8MYxK2fteD4JixoyPSWF/QlrwfL4w6v/Y2SgYtfmq//TS/JEj?= =?utf-8?q?krmRR7gBshVJIIe7B4izMliwztvbyFHQfmk+3ZqHofkM9yfOrwFGiHCgz4QmH31WA?= =?utf-8?q?mK080njxJ+YJ+DNOQlJlxydglYp7XsgXI+8BpJ2lSUoX58i5HXRvLqqrL+bbhKdAA?= =?utf-8?q?oNWnSG1Br+scIqkr6ojYKqUHM/XvZgCA508YU2Ocz7nU8f+PmLqTwFDYOXbCQgMxV?= =?utf-8?q?ngKPi4+/OpxN9+aeqv2g3KosGp67AFQbGQJZc7haR/ALq4tYfn/KqhdkswJiHw8qv?= =?utf-8?q?LbpuDjAPB5RKGiNQmMYiaPo4YLRN202j0VrSMGHO4pUHAzr2Zqh16VmMCAvi/iSTk?= =?utf-8?q?uu+p/4DQw7pm+5FzdoFsF2Idoe8azUGICyvSDd6DFwr1cM9rOnoePMfMSOkFKgyAw?= =?utf-8?q?zvrLlO/9ugJjuHjQeurKyOJZwaO/Pxx9xlfxsY+8/Fe7VXF42iyT7rhrG4rh9gmuV?= =?utf-8?q?3MtxOhWAdGFyAcOD6WBLAysQ3lwLvQ+IaA=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 1e2beabe-e4a2-46a0-f400-08dad36ce423 X-MS-Exchange-CrossTenant-AuthSource: VI1PR08MB4544.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2022 07:23:06.4774 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: SrzPTDbNM77NpZ+eIhvq3NlYrCgl3DDKeAEnwggFIK319PB3KZ5Vr0aK3QimXQTrArmbdh99dGfbVA0g+kSFRi5VXXNSxSUd8B/c0Rm7OXM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB6023 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org Add bindings for TI TMAG5273. Signed-off-by: Gerald Loacker Reviewed-by: Krzysztof Kozlowski --- Changes in v6: - no changes Changes in v5: - no changes Changes in v4: - no changes Changes in v3: - dropped quotes from strings Changes in v2: - Removed nodename - Changed angle-enable to angle-measurement and used strings - Added interrupts - Removed vcc-supply from required properties - Changed i2c-0 to i2c in examples .../iio/magnetometer/ti,tmag5273.yaml | 75 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 81 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/ti,tmag5273.yaml diff --git a/Documentation/devicetree/bindings/iio/magnetometer/ti,tmag5273.yaml b/Documentation/devicetree/bindings/iio/magnetometer/ti,tmag5273.yaml new file mode 100644 index 000000000000..121d540b7b6e --- /dev/null +++ b/Documentation/devicetree/bindings/iio/magnetometer/ti,tmag5273.yaml @@ -0,0 +1,75 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/magnetometer/ti,tmag5273.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI TMAG5273 Low-Power Linear 3D Hall-Effect Sensor + +maintainers: + - Gerald Loacker + +description: + The TI TMAG5273 is a low-power linear 3D Hall-effect sensor. This device + integrates three independent Hall-effect sensors in the X, Y, and Z axes. + The device has an integrated temperature sensor available. The TMAG5273 + can be configured through the I2C interface to enable any combination of + magnetic axes and temperature measurements. An integrated angle calculation + engine (CORDIC) provides full 360° angular position information for both + on-axis and off-axis angle measurement topologies. The angle calculation is + performed using two user-selected magnetic axes. + +properties: + compatible: + const: ti,tmag5273 + + reg: + maxItems: 1 + + "#io-channel-cells": + const: 1 + + ti,angle-measurement: + $ref: /schemas/types.yaml#/definitions/string + description: + Enables angle measurement in the selected plane. + If not specified, "x-y" will be anables as default. + enum: + - off + - x-y + - y-z + - x-z + + vcc-supply: + description: + A regulator providing 1.7 V to 3.6 V supply voltage on the VCC pin, + typically 3.3 V. + + interrupts: + description: + The low active interrupt can be configured to be fixed width or latched. + Interrupt events can be configured to be generated from magnetic + thresholds or when a conversion is completed. + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + magnetometer@35 { + compatible = "ti,tmag5273"; + reg = <0x35>; + #io-channel-cells = <1>; + ti,angle-measurement = "x-z"; + vcc-supply = <&vcc3v3>; + }; + }; +... diff --git a/MAINTAINERS b/MAINTAINERS index cf0f18502372..ea7acec52f8b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -20613,6 +20613,12 @@ L: alsa-devel@alsa-project.org (moderated for non-subscribers) S: Odd Fixes F: sound/soc/codecs/tas571x* +TI TMAG5273 MAGNETOMETER DRIVER +M: Gerald Loacker +L: linux-iio@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/iio/magnetometer/ti,tmag5273.yaml + TI TRF7970A NFC DRIVER M: Mark Greer L: linux-wireless@vger.kernel.org