From patchwork Fri Feb 2 15:08:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nuno Sa via B4 Relay X-Patchwork-Id: 1894609 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=gZCwgIIr; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=139.178.88.99; helo=sv.mirrors.kernel.org; envelope-from=devicetree+bounces-38016-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org [139.178.88.99]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TRK2P59F6z23gx for ; Sat, 3 Feb 2024 02:10:05 +1100 (AEDT) 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 59F91297D24 for ; Fri, 2 Feb 2024 15:10:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C4FC6145B2A; Fri, 2 Feb 2024 15:09:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="gZCwgIIr" X-Original-To: devicetree@vger.kernel.org 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 7A7B514533E; Fri, 2 Feb 2024 15:09:54 +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=1706886594; cv=none; b=Lc6w5/pxdy+tIX4sdTH1ndqmDY61UWrk4KxUgdqTLqrabfHZmvWAYb132eBXPU2inMX77+PojimdqZQW66Ld4MdQo41e1fIWfFcbJ4zRHCTBsqpSRqypiXNrKzWaoDcNfdrIxFtNdCEtEAHXeKZS0NN+t+mRGpZJII1OD61JRa8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706886594; c=relaxed/simple; bh=mM6TTDzmT8c9b+zSIXYzN5EneJISfMEUqOB2Clmh47Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=tqMP1ikgKr1/J38T+GCP3XSOpyRe9Yk9KgPVj4nLs++il8OFWSFSpulAJYEr5OKb/zbA3v9mjuvuo8SttnnZ6+oz6QMjYcE8wU65vvV2mOKALU36kQlABwQK8tuVdaK1e/KcfNB1OBD7qW9nOZSH1+WHLg4pqB75Ag+0kAdedy8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=gZCwgIIr; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 1B256C43390; Fri, 2 Feb 2024 15:09:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706886594; bh=mM6TTDzmT8c9b+zSIXYzN5EneJISfMEUqOB2Clmh47Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=gZCwgIIrKm8bw1FYJvRmSvRutrBTJRubq3tQAR2SGf+PvkWpTxE27vpRnLzm6cpU4 Mfj4e5+KwI3qejL4SyuA1y1zdmrcSYe4jEubmNIkIFoAeBGElF3tkZWF0V+dO1winw egdazhpV2IETjfMigMDazN2NO3blQ5HIxePETRpmXY3J+lEUMVTXAez7ShlgFLsQWm RH8mMsViJ/eN/NT5aGirv5YGSpYxYiI7fi7tjMl3E41TxKXnhoExnTZDcRAmQWkXGa vC4hELK9ShMklrSYLbV3UlyvMPpYVxxB1j3txZWmDR427RWCpKC/2cjGwJTigUnK8U FGtYb70NhE5aw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3B5CC48295; Fri, 2 Feb 2024 15:09:53 +0000 (UTC) From: Nuno Sa via B4 Relay Date: Fri, 02 Feb 2024 16:08:33 +0100 Subject: [PATCH v8 2/7] dt-bindings: adc: axi-adc: update bindings for backend framework Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240202-iio-backend-v8-2-f65ee8c8203d@analog.com> References: <20240202-iio-backend-v8-0-f65ee8c8203d@analog.com> In-Reply-To: <20240202-iio-backend-v8-0-f65ee8c8203d@analog.com> To: linux-iio@vger.kernel.org, devicetree@vger.kernel.org Cc: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Frank Rowand , Olivier Moysan , Rob Herring X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1706886592; l=1739; i=nuno.sa@analog.com; s=20231116; h=from:subject:message-id; bh=araWL3MBWOdTthhIEzT+iX7Wos0rotGDe8HqcId2NUg=; b=OFaluHTSBdAo3FZvY865OFIddk28bmx2W7H6blQTixDosaTQhwqIKXJqd4FmBInBKrMJTQ9x0 SvW+oC2uy4fBp+3BmQaEBpLontOc5sJ5nuCbFzV6KoshQdpPChBWSQq X-Developer-Key: i=nuno.sa@analog.com; a=ed25519; pk=3NQwYA013OUYZsmDFBf8rmyyr5iQlxV/9H4/Df83o1E= X-Endpoint-Received: by B4 Relay for nuno.sa@analog.com/20231116 with auth_id=100 X-Original-From: Nuno Sa Reply-To: From: Nuno Sa 'adi,adc-dev' is now deprecated and must not be used anymore. Hence, also remove it from being required. The reason why it's being deprecated is because the axi-adc CORE is now an IIO service provider hardware (IIO backends) for consumers to make use of. Before, the logic with 'adi,adc-dev' was the opposite (it was kind of consumer referencing other nodes/devices) and that proved to be wrong and to not scale. Now, IIO consumers of this hardware are expected to reference it using the io-backends property. Hence, the new '#io-backend-cells' is being added so the device is easily identified as a provider. Reviewed-by: Rob Herring Signed-off-by: Nuno Sa --- Documentation/devicetree/bindings/iio/adc/adi,axi-adc.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/iio/adc/adi,axi-adc.yaml b/Documentation/devicetree/bindings/iio/adc/adi,axi-adc.yaml index 9996dd93f84b..add10b22dcac 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,axi-adc.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,axi-adc.yaml @@ -39,12 +39,15 @@ properties: $ref: /schemas/types.yaml#/definitions/phandle description: A reference to a the actual ADC to which this FPGA ADC interfaces to. + deprecated: true + + '#io-backends-cells' + const: 0 required: - compatible - dmas - reg - - adi,adc-dev additionalProperties: false @@ -55,7 +58,6 @@ examples: reg = <0x44a00000 0x10000>; dmas = <&rx_dma 0>; dma-names = "rx"; - - adi,adc-dev = <&spi_adc>; + #io-backends-cells = <0>; }; ...