Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp250822rdb; Thu, 22 Feb 2024 02:31:38 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW0qxKKGD9dYK4FWz7YjyLgplQWLVxvUHwIQcB2oC/OaFu12ovyVZXHDc61hMN2r/CAgi5vThpnHl8TA/k+E4O0vd8dkPBkkdHPAK48DA== X-Google-Smtp-Source: AGHT+IE4gNmbhWoSdPjq8wrKaTFw+jOqCgLg7BZENwLC7ALRni1jYunekc/0dLGjGY6rmWHtRF4g X-Received: by 2002:a17:903:1cf:b0:1dc:1379:213b with SMTP id e15-20020a17090301cf00b001dc1379213bmr9413735plh.35.1708597898529; Thu, 22 Feb 2024 02:31:38 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708597898; cv=pass; d=google.com; s=arc-20160816; b=iO+NbEMbV3AaLV/GcQgNNt+9v7MYdFgcdce2T1mPFk1Yk3kI8BXpRzGrw23HJmtcrY rOXQ2jwYExX9WDH5929HL2yP9qgpALzmEvN6ZFoz7oIGcbHzeh5UW2xZKMk5UnDueczS YKq41IHhl3yldrliVMeC51Eb83AdJ35Ln2ZbKqyamwFC79sXs4TBUmxILx895FOS9T59 isAi0JVlznjqF8jDoqRIlMlthAQLC+H9ZVqk0JJDG2wEa+hhZo3lMW6UikdvlCLOSEE8 P9Gvzo8r2j1T0E7aOwEHIMgwmjk7Yb09p0loTLknEWK6Wg9PLQQ7hBcIiSg2lc9b08vb 9UCg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CmomblZBsrRxmwgQrHrfMrmUShX6LMF7cgXuFXJCwHI=; fh=q7dyKd1jrbtzO538/EzWnZ9e47fDSeNLcl2Byx6a5so=; b=uX5JIzSobEHY1NtEttORuInHORYz3YBJ0kkRtBpLdltfm9d2VhDM88GEhKQghDmlNQ gaoSNRezmGAEkjST9Q3kRQwH+w0wfZ9QFEkbPkkvohCv8oXWevEzjdoJiZSUJF+zKZUG /lYNk79fBJJvpW8yxt81rYuO7BPMCmWitk22/Gh1Cq2grLbAN3Mmp7UzQigOTcHLQLcg JFdPp9Ya5R3g3TuQmUL6K7FWcseE8Tw/z9BQc/WO+WLvjHXKdESqNd7m8pktJtbQ1+6D 2PCDc05X7DKwBs/Zu+f+vL3TsrC/mHgbWSSNPdcLEYH8+UszvE39Dk6/rhCJbXy/BcyS LSQw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TW9B5rlP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76335-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76335-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h22-20020a170902ac9600b001dba53ce5c0si9697607plr.524.2024.02.22.02.31.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 02:31:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76335-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TW9B5rlP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76335-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76335-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C6652286087 for ; Thu, 22 Feb 2024 10:30:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8C64B3DBB2; Thu, 22 Feb 2024 10:29:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TW9B5rlP" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ACD003CF6B; Thu, 22 Feb 2024 10:29:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708597796; cv=none; b=SLOV0jhnW5i2XABz8PVP7/2uBQE6w04E5+kbrM3/xL2xGKH6XPnbz9G3cNqAhbgqlXrn+Xlqxy5GWR6n4O2uBECFYTrET6B69dnhqy6bt6LCATBYVZknU2g/ECAsayQyQS6/xM0p7IybK9QvkxqhNk9oSFxaasheH7CB68tmeJ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708597796; c=relaxed/simple; bh=afYuJSyH4RiPAE1WvxVP1Cil3M0pG313XkEHICNyg8A=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cHDK71ME7BxSHO5QGx4vgxpvWtnQbxKsFX+gZ2VHsYddY4cqiUBvA8cCV3SlolkaR2DXy3kR/NVS2VBzyR55x5UU6mkNWEy2GHy58RbdURr0j/yQN4lx82iPfHkfmRLRnzHPHbPJIKZPSsb6MWSKmraoxe9qCu5xvAmstKvZ0Vs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TW9B5rlP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id C18CEC43390; Thu, 22 Feb 2024 10:29:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708597796; bh=afYuJSyH4RiPAE1WvxVP1Cil3M0pG313XkEHICNyg8A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TW9B5rlPPl5eawcAop2ve7LU3/6MAaYknJCqr38lGgRhKsfs5J79IBTheSjcbNMtA NhO9WKjam+jcU9OHLqTknnaajMPieIFd8dtTRJhdBI5KPbNJMGCupBA0lmiagn4piM kferNd5Idv7e5m+eYzZG7rAbNLsIQrLB5vJuJqhKdf2KSVBQMExjLX7kF/6NZ0oZqs Bzgy1+ugtB9hdLQgL+vA+mJeCKM4dWp5+XkPPCXRbYyZFBzByT6ti/QSvuq0Q/qlyQ YZdEuQdlMP3WPaQKTTGZpDNGzIafV/e9gJtu1BUzbPhp2liL/Q5MDOlPcNfMkAnn5/ MTWWYKprZh3Dw== Date: Thu, 22 Feb 2024 10:29:51 +0000 From: Conor Dooley To: Marco Felsch Cc: jic23@kernel.org, lars@metafoo.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, denis.ciocca@st.com, linus.walleij@linaro.org, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH] dt-bindings: iio: st-sensors: Add IIS2MDC magnetometer Message-ID: <20240222-fretted-riches-bf15f5d63018@spud> References: <20240221175810.3581399-1-m.felsch@pengutronix.de> <20240221-undecided-union-4078db711693@spud> <20240221191644.5r3ylr5w3cnfnrzj@pengutronix.de> <20240221-imitate-molar-81d93285ac77@spud> <20240221194518.3sm4o5i274ldpvzf@pengutronix.de> <20240221-lubricant-machine-79054f117eb0@spud> <20240222084717.rcckoyjeh4shmcxr@pengutronix.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ahPoXcnEvQcnarTl" Content-Disposition: inline In-Reply-To: <20240222084717.rcckoyjeh4shmcxr@pengutronix.de> --ahPoXcnEvQcnarTl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 22, 2024 at 09:47:17AM +0100, Marco Felsch wrote: > On 24-02-21, Conor Dooley wrote: > > On Wed, Feb 21, 2024 at 08:45:18PM +0100, Marco Felsch wrote: > > > On 24-02-21, Conor Dooley wrote: > > > > On Wed, Feb 21, 2024 at 08:16:44PM +0100, Marco Felsch wrote: > > > > > On 24-02-21, Conor Dooley wrote: > > > > > > On Wed, Feb 21, 2024 at 06:58:10PM +0100, Marco Felsch wrote: > > > > Besides, having fallback compatibles is the norm when one device ha= s the > > > > same programming model as another. > > >=20 > > > Not for this binding according the driver. > >=20 > > If they don't have the same programming model, then describing them as > > "equivalent" wouldn't be correct. That said, they seem to use the same > > sensor settings when alls said and done (see st_magn_sensors_settings), > > so I think they are actually compatible even if the driver has separate > > match data for each. >=20 > I told you that I have checked the driver and skimed the datasheets and > came to the exact same conclusion. Did you tell me that? I did't see it. Anyway, I think what happened is that I interpreted "Not for this binding according the driver" as a comment about the programming model being different, but you meant it in reference to the fallback. Since they do have the same programming model the fallback is appropriate, even if the driver knows about the iis2mdc compatible. I'd squash in the following, similar to what was done for the st,iis328dq that was added recently: diff --git a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml b/Doc= umentation/devicetree/bindings/iio/st,st-sensors.yaml index ee593c8bbb65..ee6c3800436d 100644 --- a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml +++ b/Documentation/devicetree/bindings/iio/st,st-sensors.yaml @@ -64,7 +64,6 @@ properties: - st,lsm9ds0-gyro - description: STMicroelectronics Magnetometers enum: - - st,iis2mdc - st,lis2mdl - st,lis3mdl-magn - st,lsm303agr-magn @@ -73,6 +72,9 @@ properties: - st,lsm303dlhc-magn - st,lsm303dlm-magn - st,lsm9ds1-magn + - items: + - const: st,iis2mdc + - const: st,lis2mdl - description: STMicroelectronics Pressure Sensors enum: - st,lps001wp-press --ahPoXcnEvQcnarTl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZdciHwAKCRB4tDGHoIJi 0rYLAP9zXNYPi9SZuObV9gQE3XitJbRNMbErzItFTaLr7pgDwgD+NA+JrD+s8dqv AQAMzEvicv1YL6dcsEnWJJyJKjz4fgw= =TXSE -----END PGP SIGNATURE----- --ahPoXcnEvQcnarTl--