From patchwork Fri Jan 19 16:00:47 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: 1888549 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=sLx3N07M; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:45d1:ec00::1; helo=ny.mirrors.kernel.org; envelope-from=devicetree+bounces-33260-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [IPv6:2604:1380:45d1:ec00::1]) (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 4TGkr03Gltz1yPV for ; Sat, 20 Jan 2024 03:01:20 +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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 27BB91C22D06 for ; Fri, 19 Jan 2024 16:01:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0C56E54BFB; Fri, 19 Jan 2024 16:01:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="sLx3N07M" 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 BFA5B54BE8; Fri, 19 Jan 2024 16:01:09 +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=1705680069; cv=none; b=c0wYa3W6vx/tlY8UKnpc49dwNfZ7OeeKw+1Q8VEd60SDq3klu5jOp4vTZ42tcIRvOTYEJKqiA0FBUNQcZOWcFTHBQJ4cPcLwW+o35tB5yWObryYcXZgxGPFg8pmsQW2JDbsy2+oOqLjSFRsZU6FcTt0ThkUYj/gTXww63WjhMyk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705680069; c=relaxed/simple; bh=cRBsVA/gjcOt9pjoEuJIhQ39NaZaSPebkpAvtLwDKu0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=RuTfzuEghFo0cO2oP5bFtEYiEDeu4WZj7xubspR2XeyGj+zfefes5ojeD0mGXG+9+c6wIfIYkmrNjdHp727k6fuwX7luyFNpZKE1c+xpIJcQ1ZXNstfK7MNG8c8akbi3XJZ0IaFS1l/2RdJk5qLLSbMPN81ZR91Wcxne408QQEU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=sLx3N07M; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 608AEC433C7; Fri, 19 Jan 2024 16:01:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705680069; bh=cRBsVA/gjcOt9pjoEuJIhQ39NaZaSPebkpAvtLwDKu0=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=sLx3N07MtITVXcK1m1UIJgDe44vcVm4t0yOu/4krkfPDJqYoELVyZomStInRIxa84 1RjZ4KPkoO2dN3tErC5C11ZErvzVWDI/2/ukb7SccFTHMSQbfCZAokO7wY2NS0u16B 1BLDQ96YoIR+Qe5pxEjwNwSqLmPdtmEm9NNRUxvdx33Kx4Nagr3C9CIZvQ0rX9FIgW EbuyE+qk4kbWEnkf/pRE3hAk2UZIcMFEbiD+4hD2FK35KVMpe8bcRbVGBxZd0/6+1C LFjMQF/nW7XKXgWuKMaNDHdBcPnyJopp8XRmhCz+/BUW7I1hWahNWDvdSGt62H60Ho ForBvRQ4asf/w== 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 454CCC47DD6; Fri, 19 Jan 2024 16:01:09 +0000 (UTC) From: Nuno Sa via B4 Relay Date: Fri, 19 Jan 2024 17:00:47 +0100 Subject: [PATCH v6 1/8] dt-bindings: adc: ad9467: add new io-backend property Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240119-iio-backend-v6-1-189536c35a05@analog.com> References: <20240119-iio-backend-v6-0-189536c35a05@analog.com> In-Reply-To: <20240119-iio-backend-v6-0-189536c35a05@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 , Rob Herring X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1705680065; l=1193; i=nuno.sa@analog.com; s=20231116; h=from:subject:message-id; bh=u0BDfBpNIPqTnjAdSKSUmF2FUWY8hltyVdK2adeadi0=; b=C8ZXHJRK4mxXyrcT9biL0tbjXlOsedW5wPNxrWe8PHwMNx7DFMNi3KvMs9ktjTFJ+3qGQAwJv VoDmEvrhTqzBJBpM3D+8dx8QRNYd6IGOwIpTWEH66Cc8xtMqPH7QXPK 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 The ad9467 will make use of the new IIO backend framework which is a provider - consumer interface where IIO backends provide services to consumers. As such, and being this device a consumer, add the new generic io-backend property to the bindings. Reviewed-by: Rob Herring Signed-off-by: Nuno Sa --- Documentation/devicetree/bindings/iio/adc/adi,ad9467.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/iio/adc/adi,ad9467.yaml b/Documentation/devicetree/bindings/iio/adc/adi,ad9467.yaml index 7aa748d6b7a0..eecd5fbab695 100644 --- a/Documentation/devicetree/bindings/iio/adc/adi,ad9467.yaml +++ b/Documentation/devicetree/bindings/iio/adc/adi,ad9467.yaml @@ -44,6 +44,9 @@ properties: Pin that controls the powerdown mode of the device. maxItems: 1 + io-backends: + maxItems: 1 + reset-gpios: description: Reset pin for the device. @@ -68,6 +71,7 @@ examples: reg = <0>; clocks = <&adc_clk>; clock-names = "adc-clk"; + io-backends = <&iio_backend>; }; }; ... From patchwork Fri Jan 19 16:00:48 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: 1888551 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=bq9ffkOO; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:4601:e00::3; helo=am.mirrors.kernel.org; envelope-from=devicetree+bounces-33262-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [IPv6:2604:1380:4601:e00::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TGkr51Srbz23fB for ; Sat, 20 Jan 2024 03:01:25 +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 am.mirrors.kernel.org (Postfix) with ESMTPS id D45E91F22F1E for ; Fri, 19 Jan 2024 16:01:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2909054F89; Fri, 19 Jan 2024 16:01:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="bq9ffkOO" 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 D27EA54BE1; Fri, 19 Jan 2024 16:01:09 +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=1705680069; cv=none; b=XchVw4tTIYQQnJM9ObHiASh76u7kulv+b+67eQc34OXEo26oXOy9/vngzZgQquVkv9//vjjNVOO/RS/UrWRZy/BH3iCpgdCD+9B5FaE0ire67CZ3xN59YYkJ5M/QwDjBqbH+GdS9pSp7YkZ6UrsO8Wv128xQ97m4Y42CLv3cynU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705680069; c=relaxed/simple; bh=Gyh97/yhmBY6SBtoSix+uXg8bS8pDPinzhK+HnPgz3g=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JoyTviATZUE2tYeLvoEeL+XlJYbHIWXTObWA70+G9bXxujL2Qt0BYPHa/gKnlFaNez1slLKix559aZa+ZuSn5shQzyVHDs85ZPBNeeQXsgG+BhI3ZZDvjGb+OnqV8CfOYynbaVMtdj+ZrgpCNquPWJUsvZy2ExqA2v98DI/dTUU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=bq9ffkOO; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 787E1C433B2; Fri, 19 Jan 2024 16:01:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705680069; bh=Gyh97/yhmBY6SBtoSix+uXg8bS8pDPinzhK+HnPgz3g=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=bq9ffkOOVYK6Jmz+UdwF4VSLfFH+AYyUCQo+dlg1YqV3Ch7YSQsAQ12TircDKQHoj uzmQfpAB4XTrarPEI5NDElA1tvCAlqgA8vUcWKhaktmnq5EOlVZYULvMCyQ/XYujqI XNHfvus2RKQdCg4TCaEvgJd0W45O5fD+cRBr6jJ1OX9V359iDLY6JK8WZ0r7LUdjy0 TMnHtRQgd/4y9Zi1wZE/MwTNDP7nM7RY562PwQ3/Xl/C2Muq2s4BcO9BFdNzOpKZ9G +49uO6zA1CD13hiiVQg6Z+LpaYMIjEVnQB/+j5T/EgHf8nvbOHihhyCBYrrIvr4rc2 ptZo22QNEeROg== 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 537C8C47DD3; Fri, 19 Jan 2024 16:01:09 +0000 (UTC) From: Nuno Sa via B4 Relay Date: Fri, 19 Jan 2024 17:00:48 +0100 Subject: [PATCH v6 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: <20240119-iio-backend-v6-2-189536c35a05@analog.com> References: <20240119-iio-backend-v6-0-189536c35a05@analog.com> In-Reply-To: <20240119-iio-backend-v6-0-189536c35a05@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=1705680065; l=1695; i=nuno.sa@analog.com; s=20231116; h=from:subject:message-id; bh=JfEb/bzY7KUbX0bS1qTJLEVqmnweeO1n+vRJXjAwpXk=; b=lDqzlyRNlKdPnsmGHz+0fTGx652cG0MjxO8WF0Zf1mLTeMXeYOnuXG4CcZt9zIoy3ziGs1+iv RGo6PeVKc5lBqIXmV77o/f/HB28nk5H8o+nSYCfgn/2CcT4IGk94o8Z 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 Reviewed-by: Rob Herring --- 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>; }; ... From patchwork Fri Jan 19 16:00:50 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: 1888552 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=pZO1hVAk; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:4601:e00::3; helo=am.mirrors.kernel.org; envelope-from=devicetree+bounces-33263-incoming-dt=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [IPv6:2604:1380:4601:e00::3]) (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 4TGkr71m9Lz1yPV for ; Sat, 20 Jan 2024 03:01:27 +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 am.mirrors.kernel.org (Postfix) with ESMTPS id E8F821F22D2E for ; Fri, 19 Jan 2024 16:01:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4674D54F9F; Fri, 19 Jan 2024 16:01:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pZO1hVAk" 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 0108C54BE2; Fri, 19 Jan 2024 16:01:09 +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=1705680070; cv=none; b=r7zRpB3coLsfLp+JVHEMHhKCl5CE6JYstEJmYLgKGn/+uDHtwvaIGO91cGUAaKC+zb771NXMx0JGm7G+czeLqE416ojPtcKO98MM/79twQi/icGlLnwGfXAdmMMuWFyowCWr2Jr1v0ciGSXxd0MEFcn9q9sNu0HvctTvytGf52Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705680070; c=relaxed/simple; bh=dlT7sb276rylclHuFkREGT780/vB7zT6Zn20C4f3HN4=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=vD/coxUWDfvxVqtkmgNcYr96eUIp3XVT4/OnWBzhStiJ/vRi2cX2R3qGkEtEAzi845Ph/75elmM5iOSDwMrKsz42jL1cenry18S+w5fFHmwx8rY4qupKVrNROgcxlYV1afowEorFWaudcMEnNligcD2/gl/+6vgOIhFtB0RLFYo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=pZO1hVAk; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id 86668C43143; Fri, 19 Jan 2024 16:01:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705680069; bh=dlT7sb276rylclHuFkREGT780/vB7zT6Zn20C4f3HN4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=pZO1hVAkOfNQQgHo/vs9v+ZW8VKrHf9HK+foJxbHO4yFU0pezybkCcViagdus/Ok5 YsCqW6LwMQHXtanUpwB+KXpWG4nbMH/v8ejACd5XKTn0OmKFIKkUy20lNRqE6+ju3p CRhY3z7/SIog42+AwASXFklHkve+RI7/dyirhJKh1N1egN38fgLu9ehzku5JT7zZlF TFk//P0UeRVGpw57C9DOh7ARVK+HwroTEVJvjwRzJYqQgnweEe6wRMLBSP+Uzzeuak WV7uXIFfrIlBbE7KMP/zSxDYYZqYjBy78DfaXEVdG893hNtzTlY2RmzuQN0xr6tCk4 A0ycn7leobk0Q== 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 6EA28C47DDB; Fri, 19 Jan 2024 16:01:09 +0000 (UTC) From: Nuno Sa via B4 Relay Date: Fri, 19 Jan 2024 17:00:50 +0100 Subject: [PATCH v6 4/8] of: property: add device link support for io-backends Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20240119-iio-backend-v6-4-189536c35a05@analog.com> References: <20240119-iio-backend-v6-0-189536c35a05@analog.com> In-Reply-To: <20240119-iio-backend-v6-0-189536c35a05@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 , Rob Herring X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1705680065; l=1401; i=nuno.sa@analog.com; s=20231116; h=from:subject:message-id; bh=1SIlZLeWvH+Uj8mRjKYsNmpossjqlEP0aA6gu8k1B1g=; b=lNdN6nKGk4+4hx4VfCFtdQ/VUAEKRn7KSwFCyZ8I2knD5YtojVap0bJ3DPzxHHeEf27TmRvCN n+oHSpbXsjmA+uMQ989KZfm32N0AtdiEH1Wwy12ASJYHS6ESbKyWWjK 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: Olivier Moysan Add support for creating device links out of more DT properties. Signed-off-by: Olivier Moysan Acked-by: Rob Herring Signed-off-by: Nuno Sa --- drivers/of/property.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/of/property.c b/drivers/of/property.c index afdaefbd03f6..c5909ffd93f2 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -1244,6 +1244,7 @@ DEFINE_SIMPLE_PROP(interconnects, "interconnects", "#interconnect-cells") DEFINE_SIMPLE_PROP(iommus, "iommus", "#iommu-cells") DEFINE_SIMPLE_PROP(mboxes, "mboxes", "#mbox-cells") DEFINE_SIMPLE_PROP(io_channels, "io-channel", "#io-channel-cells") +DEFINE_SIMPLE_PROP(io_backends, "io-backends", "#io-backends-cells") DEFINE_SIMPLE_PROP(interrupt_parent, "interrupt-parent", NULL) DEFINE_SIMPLE_PROP(dmas, "dmas", "#dma-cells") DEFINE_SIMPLE_PROP(power_domains, "power-domains", "#power-domain-cells") @@ -1334,6 +1335,7 @@ static const struct supplier_bindings of_supplier_bindings[] = { { .parse_prop = parse_iommu_maps, .optional = true, }, { .parse_prop = parse_mboxes, }, { .parse_prop = parse_io_channels, }, + { .parse_prop = parse_io_backends, }, { .parse_prop = parse_interrupt_parent, }, { .parse_prop = parse_dmas, .optional = true, }, { .parse_prop = parse_power_domains, },