From patchwork Fri Jan 12 16:40:18 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: 762256 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 A426177633; 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="N7KFPgPc" Received: by smtp.kernel.org (Postfix) with ESMTPS id 337BCC41679; 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=dlT7sb276rylclHuFkREGT780/vB7zT6Zn20C4f3HN4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=N7KFPgPcIsenUSIq0wMoRsPfn26vH0SUALOLgspcCSrb7/SwaU8acZKVc5xHcpAqH WWZHlPvdBytaCc3t7rHLV6sDJ7UMliJuwLwbubquUcykvV/2G4Eznyt/An8bepemDf WslGfwlL2LENPv43oPn0ybAawaiEhVWhdz0PJcDZqhRRRTu7/WFhrt4QSb9rQnD7rm JoupHHpKmuityx38PNdy/+n6EbqU/7/GnbFPUlDHcm6h1jNtNmX/TgCY1vSb6I0zER H4BgkauKD07MneBjXVPEAmiz9vgfNBcttt5bXrfl6nzkpTwmRJbwTQEtUE7sj/yqvD /niEYksLIG7YQ== 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 1FE29C4725D; Fri, 12 Jan 2024 16:40:27 +0000 (UTC) From: Nuno Sa via B4 Relay Date: Fri, 12 Jan 2024 17:40:18 +0100 Subject: [PATCH v5 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: <20240112-iio-backend-v5-4-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 , Rob Herring X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1705077624; l=1401; i=nuno.sa@analog.com; s=20231116; h=from:subject:message-id; bh=1SIlZLeWvH+Uj8mRjKYsNmpossjqlEP0aA6gu8k1B1g=; b=1l811YqXr/g/vY91ogWQgyZh4gHKB1fEPTdlkEczMpenBqgU9TPER3HT6F2oqKrUa89tibQSl cdsnnq+IajkDwUyPxssuOQVt0mYiMcAxUE4FqvhanCNZ18zCgNbxBSN 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, },