Message ID | 20240212175410.3101973-1-megi@xff.cz |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-62147-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:bc8a:b0:106:860b:bbdd with SMTP id dn10csp75415dyb; Mon, 12 Feb 2024 09:57:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHBjRqBDYGF6fZyRxHhdoUqPxByGMj2PHtYN+ZLsMfmvKLC0M7g3TK985bq6aiZLGHYXIuy X-Received: by 2002:ac8:7d94:0:b0:42c:d008:1b87 with SMTP id c20-20020ac87d94000000b0042cd0081b87mr1750281qtd.7.1707760674361; Mon, 12 Feb 2024 09:57:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707760674; cv=pass; d=google.com; s=arc-20160816; b=ha0JhChOgvi2F/A+tviQRMY2+ySDcAmKLbN7UfQg6igsyR9kd8+FIJbvW2uASXeaLS w8Wrd3LGaVuFhgoXqnTXSM99KgBVSuM3QTgqk94XrOBYln8sxvpbsdDTp3k8sbc8iQrs XYKJ+PSh5eHjdpgO7sOvoxmBMqcJh9RilN7jUiPLmRmH7TNjqzqUBMDwoYERIP9Wy+ph d+pntVHqaxewYwqZrXDP7Scz1d7eNM+4p/4ZC4txCQgHp3eqH3rBe5HG2DEv/yxdvegV 6CRv9+r9MWopQRDF0vtUfNChdFjCNOtOeEEkMAUYn03+cC14FDmRLGxba82rTqqqajnH nOPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=0VaC0QnGE/qOp4YKldRdLRaCLgXH20dhAMV+44JYQ+k=; fh=3OEh5lwlJ2Rz08fKpbdVI4SE5ebSLFIGGHRCSst/zAw=; b=zgNFB6z3D0fxsFQgfvMFXun92oorC77jXT5YmfVcEzNR8QH0eeZATbE52pvmlLwjTC 0ey/tCQVUPVDUchEE5sJrYauoLs8h66p2YBkOKlGaY2gUDTUr65zdui7HdUWSr9IunI4 NQGgqyyR4K0TsbVUqyxKYLZBTdbwcVL+cAPqWykBNRDNLQnMDEOzl2e/cLnGxacL3G9c lT5TS6mkA8vw2ZqW30TB6Vq5I1sTBA9ezzW05kbUNKThw/92qe9ZCNsCtyki3r6Olhhk C8ekHapRxeT9Jfombq9jN4rptoEi0ZSY+yELZVINU1Km1kQZjgUBE+np/zPvI4HkYU20 ZkJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=NJoErLLP; arc=pass (i=1 spf=pass spfdomain=xff.cz dkim=pass dkdomain=xff.cz dmarc=pass fromdomain=xff.cz); spf=pass (google.com: domain of linux-kernel+bounces-62147-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62147-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz X-Forwarded-Encrypted: i=2; AJvYcCXyNIXr8rMpboEOfvTDZbBqF/+OVXmvrZkzf/Z/XhhDyLniHDFNlzKAnjgTHaSm0d+0aAP8BxuFWNr8lGq0fbgLNeVRfg== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id v21-20020a05622a189500b0042bedccb018si992110qtc.531.2024.02.12.09.57.54 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 09:57:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62147-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@xff.cz header.s=mail header.b=NJoErLLP; arc=pass (i=1 spf=pass spfdomain=xff.cz dkim=pass dkdomain=xff.cz dmarc=pass fromdomain=xff.cz); spf=pass (google.com: domain of linux-kernel+bounces-62147-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62147-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=xff.cz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 2B69E1C219DB for <ouuuleilei@gmail.com>; Mon, 12 Feb 2024 17:57:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 35DAE4CDE1; Mon, 12 Feb 2024 17:54:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b="NJoErLLP" Received: from vps.xff.cz (vps.xff.cz [195.181.215.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 009D145BEA; Mon, 12 Feb 2024 17:54:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.181.215.36 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707760458; cv=none; b=BAtXBsdzQ88bTg4tq68HIeMkHqXER4pKInBnPA+zmoXUDyiwRqQ86Wa01vr8xJc3gNbBqdNIScFdD0fSWUbUTy5f41wSa5imZxt5Pe+tBGyWZO7Lyp6MnU+0Q+ztwr/Zf2hOMiWuNWcn5uuOhM6iXWh05ckTSEDbBrr6sZm3OY8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707760458; c=relaxed/simple; bh=0y+fzBytQrC7l3lSui9qg6RO2qKYmzTR6TqLVAK8yGM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=P3XEQrF2BLxZo3+mucEzxzByYx5wcgFiAPsXFAVlg7zCdMX7Y35H9/+M/ZczqDjWhdJuRDh/LOVi7q1sP7KIfy2s0tbngYsBRqaoG+4zTtsZmhe98On5QRbDs21jUa4Om46rgKk7wu3lNh0pKx5GF13nC8j1x4NzvsmIYb6j8FQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xff.cz; spf=pass smtp.mailfrom=xff.cz; dkim=pass (1024-bit key) header.d=xff.cz header.i=@xff.cz header.b=NJoErLLP; arc=none smtp.client-ip=195.181.215.36 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=xff.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xff.cz DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xff.cz; s=mail; t=1707760453; bh=0y+fzBytQrC7l3lSui9qg6RO2qKYmzTR6TqLVAK8yGM=; h=From:To:Cc:Subject:Date:From; b=NJoErLLPR1sloP1pv+h8rZzmIOfSiuojTgJJk49DKwFfkxNnEkmn8r5F0wIWVaWPV 5GOcrYi6WyYnPCQVaaYasrGu/2Q2JjFnJqlMXvqqTHgsYbbZ61O3OPWzCkZbG6KWCa sZGw7aDK7HCR+dsL/iYJhnLQVGwzPhgcVQFEAi90= From: =?utf-8?q?Ond=C5=99ej_Jirman?= <megi@xff.cz> To: Jonathan Cameron <jic23@kernel.org>, Lars-Peter Clausen <lars@metafoo.de>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Andrey Skvortsov <andrej.skvortzov@gmail.com> Cc: Ondrej Jirman <megi@xff.cz>, Icenowy Zheng <icenowy@aosc.io>, Dalton Durst <dalton@ubports.com>, Shoji Keita <awaittrot@shjk.jp>, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/4] Add support for AF8133J magnetometer Date: Mon, 12 Feb 2024 18:53:52 +0100 Message-ID: <20240212175410.3101973-1-megi@xff.cz> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790716857292897675 X-GMAIL-MSGID: 1790716857292897675 |
Series |
Add support for AF8133J magnetometer
|
|
Message
Ondřej Jirman
Feb. 12, 2024, 5:53 p.m. UTC
From: Ondrej Jirman <megi@xff.cz>
This series adds support for AF8133J magnetometer sensor. It's a simple
3-axis sensor with two sensitivity options and not much else to it.
This sensor is used on both Pinephone and Pinephone Pro. DT patches
adding it will come later, once this driver is merged.
Please take a look. :)
Thank you very much,
Ondřej Jirman
v2:
- move maintainers patch to the end of series
- bindings:
- fix compatible definition in bindings file
- require power supplies
- fix descriptions
- driver:
- sort includes
- rework RPM, the driver should now work with RPM disabled
among other improvements
- I've tested RPM left and right doing device bind/unbind under
various conditions, system suspend under various conditions,
etc.
- use scoped_guard for mutexes
- use devm for power down and handle power down correctly with both
RPM enabled/disabled without tracking power state in data->powered
- fix issue with changing scale while RPM suspended
- various code formatting issues resolved
- as for sign-offs, I've added co-developed-by for people I know for
sure worked on the driver, and left other tags as they were when
I picked up the patch 2 years ago to my Linux branch
Icenowy Zheng (3):
dt-bindings: vendor-prefix: Add prefix for Voltafield
dt-bindings: iio: magnetometer: Add Voltafield AF8133J
iio: magnetometer: add a driver for Voltafield AF8133J magnetometer
Ondrej Jirman (1):
MAINTAINERS: Add an entry for AF8133J driver
.../iio/magnetometer/voltafield,af8133j.yaml | 60 ++
.../devicetree/bindings/vendor-prefixes.yaml | 2 +
MAINTAINERS | 6 +
drivers/iio/magnetometer/Kconfig | 12 +
drivers/iio/magnetometer/Makefile | 1 +
drivers/iio/magnetometer/af8133j.c | 528 ++++++++++++++++++
6 files changed, 609 insertions(+)
create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/voltafield,af8133j.yaml
create mode 100644 drivers/iio/magnetometer/af8133j.c