Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2586234rdb; Wed, 21 Feb 2024 12:20:27 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXLZNjimDWOZ7nZJVMxAM6HzghOeJIoCprB4ofs43sjQxZYnjVpSNfh6K/5Nd2gkGQ7Prscg4/TPTvHDriW8FpOAB9qcdBD0Xo5J9WJxA== X-Google-Smtp-Source: AGHT+IG4haH0pey4Iu6hoOOcgF28++jdk18aGT5gYimBDufF4UlPfQllIQMH48xf9FX8kao3K7vg X-Received: by 2002:a05:6e02:c73:b0:365:f79:baa8 with SMTP id f19-20020a056e020c7300b003650f79baa8mr15644290ilj.23.1708546827289; Wed, 21 Feb 2024 12:20:27 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708546827; cv=pass; d=google.com; s=arc-20160816; b=Ann3IREQmVGq5CjsG7b1cQNBB7REfBqdaNJQlx5omTmJbybo8TDVTJnhQIewJlB1i5 xGBfRjJzPVdM2VB5HBSDxaG8Gay4v4eYCiX4bYt2QeOwJviGjTZmqsMfyVz9b4SuHLhA pLlGBr3R1D7qLvZqn58wLj5yXzjoZXYQYOlYA3zQRui6pCkYuG2dQk3D5hIHK8jDR9/G z2czZmUjkdcQscGA3x4JKmrcTn8wghIdzRh5cIGVcaBuhcA2qU2nx3MFzWcv4wBbhPjo ZOR3YqDPPwbwD0uC5X3Q6Eusl/Kl4E2U1NKTRa7Xc6SMjgbplsueTlSpFbul5lCFaeGC zFuA== 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; bh=inxRsOKDXE8d2H71XsugcRYEtgvNFLfZGQIcyErEuO8=; fh=pYhm38NyhtUzZ+UmIcrDgXvGRFXQO2JzyGYhEvtulOw=; b=UtHiRwpbvWZizqxeQDA2sn9RkB7hJNTHtG84Ff8rJjis2wMLZiVKGXJSEkuY+qyLqe ut+C32jOsBzBZUZbjME5bkeD8HtH9FeoV6oGecQ3FpvFcDuZfBG3oG261Evp7RmE8XHW xkf8GWq+F4fLvCdp+5+9BhBGfn6Cnd0UHXJKsDAVcrtnipnNVuspVME//Bp1RpKZVIWN MCmnBcF/umA6i8mlCI3OyqNib4ZNfEVKpP1+4uap1/Ht3Ir1TNAi+cJbvIkv8JW8iQvw pnN0qgvsLGbsGRzAm57Q2wY2qEr7uLXABdT+IJf2DoYawRtaZKZ01GETX5pu6pZMZyav 4iqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-75419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75419-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id g68-20020a636b47000000b005dc5568b149si8597943pgc.297.2024.02.21.12.20.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 12:20:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-75419-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75419-linux.lists.archive=gmail.com@vger.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 71396B2A9C9 for ; Wed, 21 Feb 2024 19:57:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C7D00128802; Wed, 21 Feb 2024 19:45:37 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 8F8F7127B70 for ; Wed, 21 Feb 2024 19:45:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708544737; cv=none; b=KNdhhMSgtiVnfr8VcShHhMF+sLcvNt6Do5zoKK2wO2Atb1TySwOPoOEzfPKTnuu6GKU86JyZCZDUHP2/dhGdojXfRqNZREXw5ol8q0lizQEj9HMQOQS53OZbds26hz9oFYxqA1hSL/9n0IqLPW/Y+/vzUinG0ELo/wYzR/Nn4I8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708544737; c=relaxed/simple; bh=Q7BsNFIU5t+GBhWvUVUrml51+pDW3Ls6+RUbYZHQyP8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=KQyjA9+uV43mic3blbwRYv7FnPGjlImgZCpYqAUMAPJhNMDOEDkraxu4TrNH4H023BZ9uTzmFD9jkhuaaw3iY7F8ex0EioaSco+WdR2JSyia6n3p9Bh9o8Y5L0winGwbmje7KKSnNgdOYspoyQjQyafoXcpfCFYNHIVx/gGgVQg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rcsWt-0007Nd-Rq; Wed, 21 Feb 2024 20:45:19 +0100 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rcsWs-002664-KR; Wed, 21 Feb 2024 20:45:18 +0100 Received: from mfe by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rcsWs-001Nwn-1k; Wed, 21 Feb 2024 20:45:18 +0100 Date: Wed, 21 Feb 2024 20:45:18 +0100 From: Marco Felsch To: Conor Dooley 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: <20240221194518.3sm4o5i274ldpvzf@pengutronix.de> References: <20240221175810.3581399-1-m.felsch@pengutronix.de> <20240221-undecided-union-4078db711693@spud> <20240221191644.5r3ylr5w3cnfnrzj@pengutronix.de> <20240221-imitate-molar-81d93285ac77@spud> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240221-imitate-molar-81d93285ac77@spud> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: mfe@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Hi Conor, 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: > > > > Add the iis2mdc magnetometer support which is equivalent to the lis2mdl. > > > > > > > > Signed-off-by: Marco Felsch > > > > --- > > > > Documentation/devicetree/bindings/iio/st,st-sensors.yaml | 1 + > > > > 1 file changed, 1 insertion(+) > > > > > > > > diff --git a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml b/Documentation/devicetree/bindings/iio/st,st-sensors.yaml > > > > index fff7e3d83a02..ee593c8bbb65 100644 > > > > --- a/Documentation/devicetree/bindings/iio/st,st-sensors.yaml > > > > +++ b/Documentation/devicetree/bindings/iio/st,st-sensors.yaml > > > > @@ -64,6 +64,7 @@ properties: > > > > - st,lsm9ds0-gyro > > > > - description: STMicroelectronics Magnetometers > > > > enum: > > > > + - st,iis2mdc > > > > > > Without a fallback compatible to the equivilent device, how does a > > > driver bind to this device? > > > > I skimed the datasheets and the driver already handles this binding > > exactly the same as the st,lis2mdl, so my assumption is they do match. > > > > Why do I you think we need a fallback compatible here? > > I didn't look at the driver, there was no mention of the driver already > having (undocumented) support for it. Since there was no driver change > alongside this patch, I thought you'd need a fallback compatible to > allow the driver to match against a compatible it recognises. I explicitly did not mention the driver in the commit message else I would have got a response like "dt-bindings have no dependency to drivers" ;) > Besides, having fallback compatibles is the norm when one device has the > same programming model as another. Not for this binding according the driver. Regards, Marco > > > Cheers, > Conor. >