From patchwork Tue Nov 29 06:45:39 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Gerald Loacker X-Patchwork-Id: 13058212 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 16259C433FE for ; Tue, 29 Nov 2022 06:46:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229628AbiK2GqC (ORCPT ); Tue, 29 Nov 2022 01:46:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229619AbiK2GqB (ORCPT ); Tue, 29 Nov 2022 01:46:01 -0500 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2087.outbound.protection.outlook.com [40.107.14.87]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D503E218BE; Mon, 28 Nov 2022 22:45:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oemw4uvjArMSPOjG9AJ/sAKfoSF3Pj3XIzSWQNnh2OIrlbIyZMYpQnPpSMHr+hpRSWQDKmAVvAQaYzAwnaP4Z682Y/mafpadYRYlV+EVQvg8/+P6Ok+sjwauNv2cstwpXL5KCPJyD2jYuihkXBtKqFmFwh25Nmwbe5njUXjRDAp3trpky/NZdxobSu5CaD2H4cv1bn7Dad2OVG0/VbMz9nwAtQWV9hYb4vAz8939dbeEatlS+meuNY5jiB21OAnwCr7NdWRY+s8zc98qw3/KHgcLEG6uEw2pBPOaoZfiuaP/ki+FMkGGhTi7/vuUwTzAU8oyXl8sqOKqfiPpU8Hsvw== 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=IghivhoFXPCp07cRabnAVKMCM9GCgoMI0kJ1DwDuyrE=; b=VHkjGeg66RxG7wTw8e8xY6caxgxOiyhsqFPiwaIVaVikf8J23E5MdiJeEVoLwa5WRjg8DuQf0hCpPsfBlW2kOxYLu6PG9Dh+sCebAZzVLesC1MB6tuujLu6C/GWblyTLq01xrY5U1pXlw1vMhhBEKSJ12+XdB+eHy2EW3L295pO+2uikQZEfsf2ppGams9/H+dqPb16A5syVBJN8pP6n7WTFGEuLk9jC9fOV8621+DeCCl0AwboBkH7ReQTQE1vFPpUuuXaMUChLM7/MxVaB/oASQ7Vi0ioVPCerDbasEslXJRMplejrf7K5Wksltz4qtN3mJpfsV/rh4HK4RRdH0A== 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=IghivhoFXPCp07cRabnAVKMCM9GCgoMI0kJ1DwDuyrE=; b=WeTAVaEU8z1j8MswDS8W+wgWva3DDoOpEtH786pZw3Yz7ZxKhf7FubTv0Mr4Mv8x5lKhREL2JT+/9Emna7D/EOcIao9Jv8Gi4D3VKVZw0aykUUSFwQvdv69GprmzOHPGH8fPubcIupdr5Xq3Pxv9+gxJd9zRwF1ChElxX+aVp70= 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 AS4PR08MB7685.eurprd08.prod.outlook.com (2603:10a6:20b:504::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.8; Tue, 29 Nov 2022 06:45:57 +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; Tue, 29 Nov 2022 06:45:57 +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 v4 2/3] dt-bindings: iio: magnetometer: add ti tmag5273 documentation file Date: Tue, 29 Nov 2022 07:45:39 +0100 Message-Id: <20221129064540.3218982-3-gerald.loacker@wolfvision.net> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20221129064540.3218982-1-gerald.loacker@wolfvision.net> References: <20221129064540.3218982-1-gerald.loacker@wolfvision.net> X-ClientProxiedBy: VI1PR10CA0107.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:28::36) To VI1PR08MB4544.eurprd08.prod.outlook.com (2603:10a6:803:100::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1PR08MB4544:EE_|AS4PR08MB7685:EE_ X-MS-Office365-Filtering-Correlation-Id: ce25c3e9-57a7-4e68-9748-08dad1d55ec1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: W+nG2vu8esayOSHNW5tPsLidU0D4o1yrCzz6GTdLjavM8nu5vqlGnrywugNgnOzaOe1YKr5iTTaRDzCWAx4BYfhx731G7SU+rEn3DvyB0yL8KRICVIzwZXh8PbjYLKerXTo0KXu4/4eZRg1bGtexsjnhnvz7C3RYgrwo7Cjn6ybVCUA3o831fWFfdHag+mss+kJZRn1n9SKzUiDHUFIfUcYTUlCeKr5bQ9hZk53g6tnrKXtaNK6Ka5tfQoikAcdczfvzPrH6zPYp2lhF5NbMEQxozBo74IBTEZNNTnVfo+UM4lskrzXpB9jfEuWVgvdQsZzsy1f3HCXPEL3JrL11DA9S7PVCakD9ZjJugBehClDZ/os6jO0QSgsXAKVEna4A0stcdjD+LrPY1UsUTotbJUw18FrP/ZPZ5BF4tlV3Kq50ZVNObzym3dl7Dhf6C1OOGh7wHipl/0Cx68vDSKr51nJfqn4qbKdDskzqxJuvrG6RfXwjxZ+KjgM+wVK6WfVXddOqGxLpKA0S4QHCUH+/RX0Wg4p/s9AGDHwby8zlX9ai5YkH8hk37X40pcCS7ttufjNU160ZqzzCJihRIyzuo/uGCmNZhrGh+Wf7LqcoSGqzJ0YwA/Pd6LD2dKhar8/k+f0ItFq0eKXtqP5GaIAeXGe1gXx2E2vDDhV8BvO2gqdt9hPjTwakZEv4wZjm/TZhf66cRLt1wpiiE6OPJnIudTx37ZsmP8wIG9o6C9YoGNDzocu5geHj2YbZPgiAkB43 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)(136003)(346002)(39850400004)(396003)(451199015)(966005)(6506007)(6486002)(86362001)(52116002)(478600001)(6666004)(36756003)(26005)(316002)(2616005)(41300700001)(8936002)(6512007)(1076003)(54906003)(5660300002)(7416002)(44832011)(38350700002)(38100700002)(2906002)(66946007)(66556008)(4326008)(66476007)(8676002)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?/UjKtTJEvj2eT4UCbM9XMCFoRwNa?= =?utf-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/OrHia2WVQZ547y3JkQaWyeuzMATOHXorGE8h2V5H9rRLkRXLXh5tHZEJqM9hS?= =?utf-8?q?VDe4EBZd9KARrkb/gU0Hlm9zTBdB3uvkb9sXhht7k5CWKzXx7qEyo3R/z8Lrnzle4?= =?utf-8?q?VDAlcWqK2uG/dZOQEQS0UyPrnE0I1F2xXqpdQkgAOle/nz5aS3N/eT5wGA4VPe3lp?= =?utf-8?q?ZiM0etBuvkvXQY4HcniMmLfa1RlaaqWT0sskxov41BqTak6A8/aLBOXFBbMWA1HiG?= =?utf-8?q?QRQZekbtz4TEurf/qa0g32xXnYkjRmYQTHimXvlJ/Ks7NBEC2O65gVLJQLgqsOaQB?= =?utf-8?q?eA85kwHnZ5Lsl3z54CP9vIEZBjcPgc4QPPbwoop3H+PzhNacmIIDunusSCjJxTPgR?= =?utf-8?q?Xj+elk8Ahx6ym76rOEeLFwbIJZPDN4+2f/ddxoDypMGh3QpqJuNSET5NuJA/iB5oG?= =?utf-8?q?MsHGhjTaa1OB2neopq70BxyUbP28eCdBZaxPdaVeoZr4TsOaFVlQatSV/68SZ3a+z?= =?utf-8?q?CrjxfReniR1Redepjx42q86WqDVOARa7gIj02Lzh5URp4/5EwSIDh21+vKo+eXjnU?= =?utf-8?q?4YpPyNYYVPb8u/G4vjPY+nWGvwYsDpLMkX4V5XTPrWkFQTeS5WFl+J02LLA6I72Fw?= =?utf-8?q?YVxwbuSZaelS7yz8erjSYHOrqedM3HIbPw=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: ce25c3e9-57a7-4e68-9748-08dad1d55ec1 X-MS-Exchange-CrossTenant-AuthSource: VI1PR08MB4544.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Nov 2022 06:45:57.5424 (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: G4WbfHQl2REHgcKVqWxKxmeZh2fIbiG4DkTpk6CrSv1r2DSx1YN+AXwyI8CB+y4jsYACLjTlE4n8INNEUnNXIAvnqzEAd1oB0IW5mExX3eo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB7685 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 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