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: 13523968 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="pZO1hVAk" 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: linux-iio@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, },