From patchwork Fri Jan 12 16:40:16 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: 762872 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 753947691B; Fri, 12 Jan 2024 16:40:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="DS7bHVuD" Received: by smtp.kernel.org (Postfix) with ESMTPS id 1093AC433B2; Fri, 12 Jan 2024 16:40:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705077627; bh=pH1gH3fhDEkb+OMJcTnXQ2HM1Mf1nNoNFrL48HqgwIQ=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=DS7bHVuDR+Mh9HkIwDLDx0/6BTEvH3g0P+RhSvlCocceDVLwWHE9nadfJOwrQuWdl BeiNjxl4y4Zj6t6jjTAKkLoUoeSvlkc9QcS59VTbSCEGRQo/q8QorDpJoZxZgI4KX1 gbaswU6ufL+oOJ5N4A0pb709KGI5k8O5a03fFc2q59cDHbOyB77hjDPW8gOHrBO6yV rgFm8wSXw8/Yl5ky9HL5TF+W/1qn81Sz59DXcnZgVlMBP/GQo1qeZ2o+quUMUPzxxw OFdrtrsVw4mcXnhV8Bp+p2WWc93nmmxnioE/uWTNEbFzo1xJdggwYXjVxZqUHJOtmh fic07XI7ikNjw== 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 E21F8C47DA6; Fri, 12 Jan 2024 16:40:26 +0000 (UTC) From: Nuno Sa via B4 Relay Date: Fri, 12 Jan 2024 17:40:16 +0100 Subject: [PATCH v5 2/8] 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: <20240112-iio-backend-v5-2-bdecad041ab4@analog.com> References: <20240112-iio-backend-v5-0-bdecad041ab4@analog.com> In-Reply-To: <20240112-iio-backend-v5-0-bdecad041ab4@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 , Greg Kroah-Hartman , "Rafael J. Wysocki" , Frank Rowand , Olivier Moysan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1705077624; l=1658; i=nuno.sa@analog.com; s=20231116; h=from:subject:message-id; bh=DYj0q1l5M0LArXZVCHvtHZ4FXXxJPHISrp7kseIEWW0=; b=1UEVuO7VmFrTlMSuWaIxqdgLP5303J8bpuKXBAiDON9jsJtMw1yWlEHZjZxjRL4Ale1xx36xr 0ZZE2aKVMzFBPQxTO4W59/1qnQjzkSJ8e7/7X6gJdK5ebzrQ1890dlF 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. Signed-off-by: Nuno Sa --- Documentation/devicetree/bindings/iio/adc/adi,axi-adc.yaml | 7 ++++--- 1 file changed, 4 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..dc7b14546afb 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,5 @@ examples: reg = <0x44a00000 0x10000>; dmas = <&rx_dma 0>; dma-names = "rx"; - - adi,adc-dev = <&spi_adc>; }; ...