From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) (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 24F5E37D13C for ; Sat, 9 May 2026 21:51:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778363523; cv=none; b=WCqQZ1l52a8yX7BYpQWjFYdcVLO3KxyP4yBOnvGeVI6XrYegBYsd4+afki3sHS2nEmadIilTmj/VHIlHeBp/tcOqRdmixkdZb9G6H2OEZeibdjtMqbGPSP1ZbMQaCLSAjUqgqAOZ7+Kj8mezEB7ZM0TdvmPe8HhJSAHJRCdDpQU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778363523; c=relaxed/simple; bh=++Y08TYZ4mbhtieNPTpgMorN8mO9UiFRW5j/djVaGtE=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=l/GeX5giA48MhbfZpq++5oMmgMRqqpU/+0wbWXPx1qKigovg98+dsa3UcQ9f763g6+X+1c2DDTdT6KlBUsWU/MN84FMXJ46+jvNhi6dkaDMUPfQUd7f5X/t/wdHTf4+Y+aq5N8N50uUXj09cuGLalt/nY4eqaH84jf8/VnPg4Eo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b=Yk/C9j4P; arc=none smtp.client-ip=209.85.160.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20251104.gappssmtp.com header.i=@baylibre-com.20251104.gappssmtp.com header.b="Yk/C9j4P" Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-40ea611d1a4so1257026fac.2 for ; Sat, 09 May 2026 14:51:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20251104.gappssmtp.com; s=20251104; t=1778363518; x=1778968318; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=l45ZS9ar0zxFC87RTiw4MPu5Vj+1FLT8m648OrrG9Ns=; b=Yk/C9j4PnDpnfReQvD80tk86iZZievZpwYP/2IjquWtHI6gjqaCOORBIcEm1vXgfoU 9NPinW2WPBR8V5PaoMHeIM2Y8I+H4GUOGeRStVhFGA/4cRIP9v9CI6tP38uE1tTMfJO0 Ldj09lNv+up2OXf/5oLmyFf68GQh3UqV5yta3Ryaq4fUf5zZvQKMzQW/YVxfxeaQci12 nEKH8DvcA0BpYiTnKjK0mR3qnLPOJH5iCTbT4RzcSgS8ad0ukDBfd0CAxC0UuNTVkmtm zNLizlMQX3lCPBgEbWuFb/q3B9FKJ7hpHk3MVjfNlHtqRdRvyLeRUflRwrMbzqVUwS1p vDUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778363518; x=1778968318; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=l45ZS9ar0zxFC87RTiw4MPu5Vj+1FLT8m648OrrG9Ns=; b=HNTz5ahRuJGlAKXXiUo4o43w183IEnFcD9qtZGa7UoRAeOx9QKsv9+MpdQJXrEKfh0 UhjRiY8T1kG3pY9HA35kkM5IDPdippEXd+VRXj/6Hii93vYCWk2N2HKPkJH+qx6k0sSI r+9rWJVDlkwiGS6IVc1fg52/dt/lN2MI/sh36VYskU6C26By4aU+kb2FhbXolQQjDcbD w4suQSiOoZXGjeBRnA0nj5FK8Er1jQWgFwf4U1OB9i8hTyWT/86vV4axkwzoBF2kJD2y vbdjNU0UdnVu/bppAU9duERWJNymzvzZ8SP6qGW9Dbo0EittLiCdMeJxOm6vfOXhQZtj fNsA== X-Forwarded-Encrypted: i=1; AFNElJ9RiAjcHSgEs8mlMCtf4u1HV0J7HWtlEwfoRsJhbiiX8tbHEbuJpOkAurjXUtyHDVdczDr0+KH5kMeV@vger.kernel.org X-Gm-Message-State: AOJu0YwvZ7oCh1Q13+DSYyQal/tU2vR7KhyLMDEvvoY4ROE+XQpXTj9R SErzFH2UCvBkTHxnW8v4O+lla7XJdXSk7M0pXIE6YYj3L9B8rnh8ZrnDC5IbTrtBsXA= X-Gm-Gg: Acq92OFn1YRYHvftyHgFFKaeiQqovUIkLrGh1A1CVGZ1o/fK8NyIrqLumiMZlkrHJNQ pGeUl6RSOcZtR+bX1R2/BscrkRf5ZnE0AAfAKa0nin7+CvWTfT7OCpdzcYauMMnojwekVRcMZgy qPbTpDTXRBa0yBvGO1Av4aLQMSkVaJSh0yOZqP2KN0Y+azSayYTs8tVtR+MnAQmn2l7X+xILUZm wOaOTZKU6oxovHhJN7sd2eKC8x57xAxwVIJiopIZheAY2YtHQSF7O/+KUAlR1A/g1yJRKKMcMV+ LnDryl9dBPmeLhQHD3wd7oP0liqqUOPWLea+IEAguynmFeXpoI8RWYDjruRwZW4mgYFlkFt9sPi N6J9QeVCdP0Vn/29nbnxcLkoW7LZThL8Wmzu410J6FI+CYHS1clwl3pve7bGozhTLJkLTwRaJXU 0ZWZpXREoCckJ09BZoXbPKvfcnuhmuuSM9FyNbgUd0Zv1n8NCoQV2IROr5rQthkhvUMFeSdyFDg Q== X-Received: by 2002:a05:6820:4c02:b0:692:a19b:af6b with SMTP id 006d021491bc7-69998cc00e4mr9762752eaf.13.1778363518550; Sat, 09 May 2026 14:51:58 -0700 (PDT) Received: from ?IPV6:2600:8803:e7e4:500:3548:c22e:ea52:dbc7? ([2600:8803:e7e4:500:3548:c22e:ea52:dbc7]) by smtp.gmail.com with ESMTPSA id 006d021491bc7-69b25e3917csm3283036eaf.15.2026.05.09.14.51.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 09 May 2026 14:51:57 -0700 (PDT) Message-ID: <24652fd6-c2c7-43cf-ab82-a2ad240b56a6@baylibre.com> Date: Sat, 9 May 2026 16:51:55 -0500 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 1/2] dt-bindings: iio: magnetometer: add MEMSIC MMC5983MA To: Vladislav Kulikov , jic23@kernel.org, nuno.sa@analog.com, andy@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20260507205033.951990-1-vlad.kulikov.c@gmail.com> <20260507205033.951990-2-vlad.kulikov.c@gmail.com> Content-Language: en-US From: David Lechner In-Reply-To: <20260507205033.951990-2-vlad.kulikov.c@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/7/26 3:50 PM, Vladislav Kulikov wrote: > 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. > > Signed-off-by: Vladislav Kulikov > --- > .../iio/magnetometer/memsic,mmc5983.yaml | 65 +++++++++++++++++++ > MAINTAINERS | 6 ++ > 2 files changed, 71 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..e144b4d9b0ca > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/magnetometer/memsic,mmc5983.yaml > @@ -0,0 +1,65 @@ > +# 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: > + - | > + // Example for I2C If we do another revision, we could drop these comments. They are redundant since the yaml already says both "examples" and "i2c". > + i2c { > + #address-cells = <1>; > + #size-cells = <0>; > + > + magnetometer@30 { > + compatible = "memsic,mmc5983"; > + reg = <0x30>; > + vdd-supply = <&vdd_3v3_reg>; > + vddio-supply = <&vdd_3v3_reg>; > + }; > + }; > + - | > + // Example for SPI same > + 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