From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 5C1A74C9554 for ; Mon, 11 May 2026 19:11:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778526711; cv=none; b=OHj54U5g66h6s5/0n6wGZksTuHDJMpDblZ4gsR8KJhBZHy+ZgoVrMFzyZUfaSzWlIw4y30d4M3Ez/4l/gjSeI4f7/U3qbuQBtREphoMlM4+BctK5kuo2lgyK5QEFnfkECVRnNWLLRkbXvQ/EFSsrh5iK/pVDgYeMEsy03pNEUgQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778526711; c=relaxed/simple; bh=0gia/RMbzCkzlAa4V6/Iz/DeCuBc+phgrBlK70Ot/+M=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MIV+UsNYpGrTGvpoSiBAqqaHR7EI/PSAmXFWHmOPHsGPqW+neMnb+psx3MzTHoInJut07jbY6U91YplTg/lBw6A3owKnTOyKMVFG4bgXYqUpd6u6mqZg9gHDCqnak4JZ0ayBut/keGmzfNSbeRjGKz/Czp7hhbSRahbirEVlUBE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Ua2YFeMT; arc=none smtp.client-ip=209.85.128.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ua2YFeMT" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-4890d945eb4so33120035e9.0 for ; Mon, 11 May 2026 12:11:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1778526709; x=1779131509; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=2sGdjD/CZ83xlAQBQK80MN5eYGa/z/UivuVQPrkpVWk=; b=Ua2YFeMTNc7Jw4p7bM/jGoPx2ab7dvThx11DXea80hPyjWxOhwk3iLBYEFPS47WsPK N/YY/rl7syE5xYmGQtLSRITy6jXBZeNdbPft6do9SLvOj6JjDqpLkrqywwYTMdTKVVHx OPwAkZkwZUeRAWSkoWNIjge1+HIZOB4vzTDh5STj+xTWXgoL8cPVgZ9CnXr9uJKEVWyE UA/ZLIxcMS9fVyStEWa4uk1EUMUlZBUnK6CCYKtCRiiNz6Dv+yJ6iceni1eQauLd7Vmo FLAg+w8o/OmAyq9voVz54PrQJopZfXkaymS/sw9lDJgL0LITdXHETboflWeQHv5rlUV0 akjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778526709; x=1779131509; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=2sGdjD/CZ83xlAQBQK80MN5eYGa/z/UivuVQPrkpVWk=; b=nYcxw2y/8h45i2kRVH4UKbhGm8sCWKGL3njJT8egsfA99pOQtb0qaXSm7LHJquHDnD KK8dx/DUFKwejYEGbF3uNDF6v37A68Cqo325nll2ZAqIsb7cobYbYnUOc67zfO/f5sgW O5xHkd4UAVOx3V1Y78dccqHX9p/TRVy+6kHJwRrgXPl5ifbiJ9a83dWhx4N6PdMHBtym yN55z4TcaMtg2zMWSLMXW9wANFrGlXFIo1iNM8Brmbc9UwRPRdx7p19eNTYQfux3RMSf SlKUPbMfrDkAOwFg8qLL70LfYta6RXsibbVCYhcaihh2GfoPAEJ0x+ez39PWSf3e6PPz I5FA== X-Forwarded-Encrypted: i=1; AFNElJ9zPjtChIgwyxZvzfVfG/FdGzUsPe3kpGYBclKGtKxciMCbFsb14vSB90QsqKGjLsReSXqdTUu9gIhYuow=@vger.kernel.org X-Gm-Message-State: AOJu0YzvPS9dWqeT6RcjlalaqRvfu9JdCQNiCEbwn92B9iKNKvyuxutQ yCBY+rybjDgzkR46WU4WiN0wdMgR8kgiT6F2m9RQaRoqkcyN2wp5DaAi X-Gm-Gg: Acq92OEpflcdBpV7acfLUkC4aGcnro6KHNG1+YS5BJsqyTqhVOpKwY/gMzsUCP8PFZB z/1ASaS+BkoD/VQgffgoUR9M9zf5YrfIXi3IkIcYCo3PihTMNsk8V8WT2wBbC+w83+tbGOrh5Od z56oQ1RCJCJL8p5v+DSyuKrmunqsFFz5m/txHt75Yq01+nL7RelbkHde+FhXdeNTcmM0PwvaclQ mpKkR5gaVHMi5YjzGcNjkuQza4IRkV0pZow3/PRSRawvC3V9OqwT9axd5JAWQkuh9n7ptWMpIxj Gb2796g4eW4ZZ3Kv8TlTKmiNpCVIX6ExQJSOO9rChvvCUs953yV/NsENQJgah9QOh0taAO7fzPy ERc6pUkmL+lD3deHZTmYl3wY8tYFHqSuC6XvpaZ/r+fptnHMvv9azn0xM6PIKudnZiQ0pmnuPQP Irey7kvb42PctwU1u2QvRNd41R+qCLl2c8IMuGNpjfPKYeVO0C1dGUFJemXB22kfhBQmuYcyJfg fc3pnZ1 X-Received: by 2002:a05:600c:5813:b0:48e:6be6:168d with SMTP id 5b1f17b1804b1-48e8e1f63a7mr9087595e9.8.1778526708702; Mon, 11 May 2026 12:11:48 -0700 (PDT) Received: from ai-node.taila4f726.ts.net (89-139-15-25.bb.netvision.net.il. [89.139.15.25]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4548e6a5b65sm28541785f8f.8.2026.05.11.12.11.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 May 2026 12:11:48 -0700 (PDT) From: Vladislav Kulikov To: jic23@kernel.org, krzk+dt@kernel.org, robh@kernel.org, conor+dt@kernel.org Cc: dlechner@baylibre.com, nuno.sa@analog.com, andy@kernel.org, andriy.shevchenko@intel.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vladislav Kulikov , Conor Dooley Subject: [PATCH v3 1/2] dt-bindings: iio: magnetometer: add MEMSIC MMC5983MA Date: Mon, 11 May 2026 19:11:34 +0000 Message-ID: <20260511191135.36691-2-vlad.kulikov.c@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260511191135.36691-1-vlad.kulikov.c@gmail.com> References: <20260511191135.36691-1-vlad.kulikov.c@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add a Devicetree binding for the MEMSIC MMC5983MA 3-axis magnetometer. MMC5983MA is not register-compatible with the existing MEMSIC magnetometer drivers. It has a different register map, 18-bit output data format, and I2C/SPI transport support. Reviewed-by: David Lechner Acked-by: Conor Dooley Signed-off-by: Vladislav Kulikov --- .../iio/magnetometer/memsic,mmc5983.yaml | 63 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 69 insertions(+) create mode 100644 Documentation/devicetree/bindings/iio/magnetometer/memsic,mmc5983.yaml diff --git a/Documentation/devicetree/bindings/iio/magnetometer/memsic,mmc5983.yaml b/Documentation/devicetree/bindings/iio/magnetometer/memsic,mmc5983.yaml new file mode 100644 index 000000000000..4a4df6bb70fe --- /dev/null +++ b/Documentation/devicetree/bindings/iio/magnetometer/memsic,mmc5983.yaml @@ -0,0 +1,63 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/iio/magnetometer/memsic,mmc5983.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MEMSIC MMC5983MA 3-axis magnetic sensor + +maintainers: + - Vladislav Kulikov + +properties: + compatible: + const: memsic,mmc5983 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + vdd-supply: + description: Regulator that provides power to the sensor + + vddio-supply: + description: Regulator that provides power to the digital interface and INT pin + +required: + - compatible + - reg + - vdd-supply + +allOf: + - $ref: /schemas/spi/spi-peripheral-props.yaml# + +unevaluatedProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + magnetometer@30 { + compatible = "memsic,mmc5983"; + reg = <0x30>; + vdd-supply = <&vdd_3v3_reg>; + vddio-supply = <&vdd_3v3_reg>; + }; + }; + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + magnetometer@0 { + compatible = "memsic,mmc5983"; + reg = <0>; + spi-max-frequency = <10000000>; + vdd-supply = <&vdd_3v3_reg>; + vddio-supply = <&vdd_3v3_reg>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 882214b0e7db..952fbf3020a4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -17170,6 +17170,12 @@ F: drivers/mtd/ F: include/linux/mtd/ F: include/uapi/mtd/ +MEMSIC MMC5983 MAGNETOMETER DRIVER +M: Vladislav Kulikov +L: linux-iio@vger.kernel.org +S: Maintained +F: Documentation/devicetree/bindings/iio/magnetometer/memsic,mmc5983.yaml + MEN A21 WATCHDOG DRIVER M: Johannes Thumshirn L: linux-watchdog@vger.kernel.org -- 2.43.0