Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp2122182rdb; Sun, 21 Jan 2024 08:17:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IEDlmXCN+9hdINM5zjcOuTQpVwm9IHu0U4wEZd7NPasKm6u1hGbm9TAp5y7RTKIW5dilRi4 X-Received: by 2002:a17:902:db06:b0:1d4:e308:d70b with SMTP id m6-20020a170902db0600b001d4e308d70bmr4164196plx.92.1705853861490; Sun, 21 Jan 2024 08:17:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705853861; cv=pass; d=google.com; s=arc-20160816; b=lFDfxEfReA2bcdlt8zoLIz3VG4P0KluDyKak0dLkLG/VPkHIGsaGyqmh82dD26vmJR jWn3Mg3npyw/Ojhw+ljFMiIs6LYju9BlNOht8BzOUeqtJf0KL9c9ZThOZXXTEwtz8jEO oKKyXy34mdAxnGntFOcs423EFLw1khoD9Bx8ADQn6b8Oevg2NYQmQIN91LqGCfSSbURp p7gDs6jLuLPYAqrjF86d9vwb0/gQ822T7IyPznOEJrT3d7lJilaZU1eqW1htpWsKUnxQ jsbdtse/KqTqifrKiXLqriqAps+3dyJ8kwhsNJm9Q5INeKyZCdVDv1jvlBugSQWSEgao /EhQ== 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:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=DXe996tPsqoRhVeqbWyJb7s0paDX7aBcljB2R+1P8Wo=; fh=NIqZ5n0To620TU4d+rxGyCUJCINVmo8wC8jatRpn5oI=; b=A+mwcetkygEBt7PbwQd34dCcSFiIFvJlFVUrOQ1bOvvkbR4gxcgJ4W9osgFtHBwTib CRBBOxI/8QFmZ5Bw4vwA/t1whzpsLWWgIGcXD62cIYkd12jpBEa5uxbHKnrcSURwwOWO sZfS5eshHOGj+mRwC+lvE9+lIzElD6GA/O7sJiVdqj9MJRP2YmzMli5NDxooe0xuxUOa sChSKaQIgMmnUS8m1kp+r6r/ANir2f/34BguTwxz+vprv6umFERf7F9HDvw+/mveVXo6 BXg4SkqLjdffRtQ7yB0/TcDs8LJyGtOv50xVKYkIdG9M5KF6P+NHPFLZPXsWC94ob63K FNug== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uAqYLZtP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-32108-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32108-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id pi12-20020a17090b1e4c00b0028e8527b20bsi6774108pjb.154.2024.01.21.08.17.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Jan 2024 08:17:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-32108-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uAqYLZtP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-32108-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-32108-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 129FA282199 for ; Sun, 21 Jan 2024 16:17:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F18C637714; Sun, 21 Jan 2024 16:17:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="uAqYLZtP" 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 1FDDB37704; Sun, 21 Jan 2024 16:17:31 +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=1705853852; cv=none; b=ENSmXFRQbOsvdPQH1+FrT7Qa1/MZE8pbyNG7E7XVGU404JHYEwo6A4ps2o3bjtkq+2PxgwPK2Q1ed0atc3NXodqNozTTAg3zPoaDqvHSIsYKqbmKtzIlgQMuS+opIkUTrTW9FhBB/zWeA8wMK66+yCX4xV0diZQyFl3tR8oGPGo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705853852; c=relaxed/simple; bh=iUfq0MblOYTJ4Xg1o/EOPCx1dTOon9m9lKdqAKdduVU=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lV4/BiWoHo0kEm+kTnxWqTAxCD7EBo7RsqxiLQsmKnHWSVEjtM6t39aYreYZ5qb/vMI9xfVtjy+3mk9JjSmbCsg8z+YRVziGntRlxAYDY9GVUEI4P6V02B4J4Cvzp8MBbpRze65cQXFMFPRZv1znDOCbUUQ5LGSR6Q9mrdwjwh0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=uAqYLZtP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 312F2C433F1; Sun, 21 Jan 2024 16:17:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705853851; bh=iUfq0MblOYTJ4Xg1o/EOPCx1dTOon9m9lKdqAKdduVU=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=uAqYLZtP8sR2EZcaOV2Dt7xxVatLrvMCG0HC4OHUWVU5mlAHcCvFPs8GOAova8sme B4ko53SEDdVychlpJkRSm6MfFgf8ngJfSZOD9R3hcAhBnFVwWSb+iydLOYAw5gGzco GuBcM3FW82lN2rW+a/a5E9LKq7PVeNdALdNq0D5jIv4hDcJgewtPSGyUp92LZ5g5df jS8ED/N7LWBui4a4YQcGP5Z0ALIffPVimE96niYaBBrdq03a2M7UmxxTKTmyII53AU 9j7zQCb8zR3U4pK8Bsv009Y1VMGXKX7ccg4dk3E0DDrCmXcgIJixVrEkFcxtAWpW40 V7VIkq3sOPxqw== Date: Sun, 21 Jan 2024 16:17:18 +0000 From: Jonathan Cameron To: Jonathan Cameron Cc: Krzysztof Kozlowski , Petar Stoykov , , Lars-Peter Clausen , Rob Herring , Andy Shevchenko , Angel Iglesias , Krzysztof Kozlowski , Conor Dooley , , Subject: Re: [PATCH 1/3] dt-bindings: iio: pressure: Add Sensirion SDP500 Message-ID: <20240121161718.32ffcb38@jic23-huawei> In-Reply-To: <20240116163713.00006bf3@Huawei.com> References: <4eab426b-f654-4e10-9ffa-5b34016565fb@linaro.org> <20240116163713.00006bf3@Huawei.com> X-Mailer: Claws Mail 4.2.0 (GTK 3.24.40; x86_64-pc-linux-gnu) 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-Transfer-Encoding: 7bit On Tue, 16 Jan 2024 16:37:13 +0000 Jonathan Cameron wrote: > On Tue, 16 Jan 2024 16:31:55 +0100 > Krzysztof Kozlowski wrote: > > > On 16/01/2024 16:24, Petar Stoykov wrote: > > > Sensirion SDP500 is a digital differential pressure sensor. It provides > > > a digital I2C output. Add devicetree bindings requiring the compatible > > > string and I2C slave address (reg). > > > > > > Signed-off-by: Petar Stoykov > > > --- > > > .../bindings/iio/pressure/sdp500.yaml | 38 +++++++++++++++++++ > > > 1 file changed, 38 insertions(+) > > > create mode 100644 Documentation/devicetree/bindings/iio/pressure/sdp500.yaml > > > > Filename like compatible. > > > > > > > > diff --git a/Documentation/devicetree/bindings/iio/pressure/sdp500.yaml > > > b/Documentation/devicetree/bindings/iio/pressure/sdp500.yaml > > > new file mode 100644 > > > index 000000000000..af01ec7e3802 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/iio/pressure/sdp500.yaml > > > @@ -0,0 +1,38 @@ > > > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/iio/pressure/sdp500.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: sdp500/sdp510 pressure sensor with I2C bus interface > > > + > > > +maintainers: > > > + - Petar Stoykov > > > + > > > +description: | > > > > Do not need '|' unless you need to preserve formatting. > > > > > + Pressure sensor from Sensirion with I2C bus interface. > > > + There is no software difference between sdp500 and sdp510. > > > + > > > +properties: > > > + compatible: > > > + const: sensirion,sdp500 > > > + > > > > No resources? No interrupts? No power supply or any pins? No even > > iio-cells? This looks incomplete. > > For a pressure sensors, io-channel-cells (which I guess you me you Gah. Gibberish. which I guess you mean... thanks, J > mean) would be a new thing. We've never yet had a consumer of this > data type... Not necessarily a bad thing to have as one can > conceive of one, but none of the current pressure sensor bindings > have that. > > vdd-supply though definitely wants to be in here and required > given device is unlikely to work without power! > > Jonathan > > > > > > > + reg: > > > + maxItems: 1 > > > + > > > +required: > > > + - compatible > > > + - reg > > > + > > > +additionalProperties: false > > > + > > > +examples: > > > + - | > > > + i2c3 { > > > > i2c { > > > > > + #address-cells = <1>; > > > + #size-cells = <0>; > > > + sdp500@40 { > > > > Node names should be generic. See also an explanation and list of > > examples (not exhaustive) in DT specification: > > https://devicetree-specification.readthedocs.io/en/latest/chapter2-devicetree-basics.html#generic-names-recommendation > > > > > > > > Best regards, > > Krzysztof > > > > >