From patchwork Thu Jul 27 14:59:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier MOYSAN X-Patchwork-Id: 127038 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp1198379vqo; Thu, 27 Jul 2023 09:00:12 -0700 (PDT) X-Google-Smtp-Source: APBJJlGNKhblFr5vHG7ofIUic7Zj18q03X82ZjfJls/sk897hj/SwDFGGy3EhvWDquazV09XH6i8 X-Received: by 2002:a17:906:30c7:b0:99b:59bb:c4a4 with SMTP id b7-20020a17090630c700b0099b59bbc4a4mr2404813ejb.60.1690473611724; Thu, 27 Jul 2023 09:00:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690473611; cv=none; d=google.com; s=arc-20160816; b=auoyAwOixlLilCfJHIEjVBfCWTkegwLoTPcSw8Hkb/7Ffext9zr07F6hma+Pvnm67P 9kN2NbUVOZNUp/5uLgg/0tJBHykelj+oPiy/rLQZJg9RVManQhb+CbRP++3nU2DgqezY sWOUhIizehmhFY5xdkSbCQkECLgnVGOFeDOg3lif+xTAwMvTdL+nFG5N5oioielWrne2 wQG080TS8JFyFyo/EwB1fC/mV4UUJG3+B2TYc4rLk2Vpx/hMamtzJhwfDHUJ2XMInfoH HwhToxrjT9Es4Klt3qVqdK7jYML6oWXlV/7wHbUolxRwNEIsQ+X7zcZ3KMYT8P7BH6Yw +Uzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=kgwPhXs1Maa25udKJpXQZWNhB3KaaHj5JLRCEEzOU1U=; fh=UyZF3qNUMWiDzt5xe2KsfnVKXGa65f0Pz4LBUI4kuF0=; b=OBtKZTWThcOTkYPrsZGJnk+S1cL/cAyaobyVzyNpWs/1khF/tg5UpAX4nQzNRDQTR4 p3Y/Us6gSWJINEiy62azB/Ht/sbf9D/0j6fvrngE4qHKmBh5eSY8K8wFdrwbHpF59VfO e+Y6Dwm7dNSPeLFKf0w/qHeBYHYF3M7jV9oZnri2QX7epy8lujyYuwmGgl/WxWIHqhgZ m2V2TsKw6m6LZzchpEQxDp0wNyB37jiHkqA/UyaCFt/4PY+/7n3jSZ8xs8PduRNayyhD 9HDq0Fp7FyOno8mTrQJu0aklOZiQzOOtii2QYeIwTv4wY7eAIoijCMYvGyPJoTfW/Xjv vfvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=byP9NNFE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020a170906688900b0099bcfd32960si1177343ejr.161.2023.07.27.08.59.46; Thu, 27 Jul 2023 09:00:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=byP9NNFE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233195AbjG0PAG (ORCPT + 99 others); Thu, 27 Jul 2023 11:00:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231713AbjG0PAD (ORCPT ); Thu, 27 Jul 2023 11:00:03 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 359E7B6; Thu, 27 Jul 2023 08:00:01 -0700 (PDT) Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36RBD2so020174; Thu, 27 Jul 2023 16:59:50 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=selector1; bh=kgwPhXs1Maa25udKJpXQZWNhB3KaaHj5JLRCEEzOU1U=; b=byP9NNFEOtHdKOrP0+388ox5kM1G0mqj/zHdMXuLHq1SJTz7BBumfjtDBeByOnnYydtd x9ne9E1QWyhXWVf52pVuNq2QIC7wm7GZXSJy29/TkxagDiSNZrVZApi9zf1m9oYgt20w xoWuV5o8LoGNs5gizpmDxJ0oOQrpb+8/z0NALnRQE2WBFCrLOlTDomo4zIALAtk1ceDX VE5cjemSoaWiq2PqS3nqtYFrrNVdKZj9gMf38DeXPdOsis1l+ocdL6Cqg5mHosyGVeei XkDLvTgBIruOFCJiVd8exAwFkVjUiKCVjItzjd3hB0jbIEQNsVB4Djt/WX31tErBgWGb hA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3s3qgy9760-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 27 Jul 2023 16:59:50 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id BB8C210002A; Thu, 27 Jul 2023 16:59:49 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B3C79209721; Thu, 27 Jul 2023 16:59:49 +0200 (CEST) Received: from localhost (10.201.20.178) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Thu, 27 Jul 2023 16:59:49 +0200 From: Olivier Moysan To: Rob Herring , Frank Rowand CC: Olivier Moysan , , Subject: [RFC v2 02/11] of: property: add device link support for io-backends Date: Thu, 27 Jul 2023 16:59:28 +0200 Message-ID: <20230727145939.1157607-3-olivier.moysan@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230727145939.1157607-1-olivier.moysan@foss.st.com> References: <20230727145939.1157607-1-olivier.moysan@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.20.178] X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-07-27_07,2023-07-26_01,2023-05-22_02 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772590057565749439 X-GMAIL-MSGID: 1772590057565749439 Add support for creating device links out of more DT properties. Signed-off-by: Olivier Moysan --- drivers/of/property.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/of/property.c b/drivers/of/property.c index ddc75cd50825..864e29e4707c 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-backend", "#io-backend-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") @@ -1332,6 +1333,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, },