From patchwork Fri Jun 23 14:09:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Olivier MOYSAN X-Patchwork-Id: 112162 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp5810109vqr; Fri, 23 Jun 2023 07:23:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ74fvgQLQiFr5SSCEhviNGyUfFOiAffD2Rdas0ncqA6ypYQLr9sFSlIJQJ1edlXKT+Kj0hi X-Received: by 2002:a05:6a20:1450:b0:121:9e73:5535 with SMTP id a16-20020a056a20145000b001219e735535mr13969950pzi.48.1687530183804; Fri, 23 Jun 2023 07:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687530183; cv=none; d=google.com; s=arc-20160816; b=1GpriAijG/LsI0IFvjbphi39t2BEXI5U01HtyxpuSP7V9zu90uZTlzl3Xip3l2N2tx VRchLOJ3X02gjDoKtOJNTBaWp55y465C4NR003CLRLUC489ujb3IiWYixFk8xxLHL+KL 6iyzlvToMkUbbtfo7AzC/i5YrjttAPn7dK4FXOQZwqG0xpQt35YNQUuXjT5THTdE6a0r GHCHnjkh4qAEc+xCN6LMwHDCMs2dTg+xPUX2tLZH7CgHr5XGH66catiH1x7KlhV9Mdf2 Eu1mt+WfSlGSQHF1a/lFgkhxratzUPuAkWnWMzKwgR+lh3gKEXqea6ganMMlulCck1lv 9nyg== 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=; b=Me2ANstyIxL9Lz0qY40U5rglFtSwykdD6BubcIusnnwD7En9P9nXdTmp+B7yqYNL+5 66Dcm5UhwEF5YqSdTyhmqY25CwzwYOnGPBcIiF8CrFUUQPqHhIF1sVRNlyPJeCZ3W9vb nXWvB768OlQH8baG1zc4ISHrPmFhdmig0GCdQRZdnwarE1eVHef7zYR102w+H1Y95OXE 3k6XBiEZytX+ZXnfrZbHuGDcMnWrc+xXDW9reQUBIwMDhqwvxNLEJpC5zDqSpYWVuejf THwW3c5wn3lybc/HZKlvP6JblPIGzEEpye8TZqovTSYCd1luJGnhRlfcyNYt5C/7/Vab bMDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=Tei5phz9; 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 h65-20020a625344000000b0065e445224e5si3159333pfb.332.2023.06.23.07.22.50; Fri, 23 Jun 2023 07:23:03 -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=Tei5phz9; 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 S229657AbjFWOLt (ORCPT + 99 others); Fri, 23 Jun 2023 10:11:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231393AbjFWOLr (ORCPT ); Fri, 23 Jun 2023 10:11:47 -0400 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECE462694; Fri, 23 Jun 2023 07:11:40 -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 35NDXeuY001402; Fri, 23 Jun 2023 16:11:29 +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=Tei5phz9CfvGSam80UX4VCaT1XIdBF0vvPlXQeZ7fPQDa9Q/Mh3DWbYWWwhXCZjiE9pg FqrEjuh9NsOIcYjSp5PihmCduSPEHuMpf22Ed6gT1MGgiHq0NbRTMC8lk+Cagtq9nHn7 YBv8L6tDwg4UzvNbdBPQqlhBwq3k45b3Synbj+0hDwA4PnPI98ULisiswLkOs6jymqPT QeiouoYkTAmN9qeLFONoXGj4tMR1SAMlOA2FS77hGJo+FGzCGrYceduTa/ueYDt/VSBu rrPVTHSpE3g77G/ub3Pzj57OqyQVjb1W1rbWaUZO+ngNUqcKn7BPuhMpaLAe72SNGGJy jw== 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 3rd1t6vau4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 23 Jun 2023 16:11:29 +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 BBEEE100077; Fri, 23 Jun 2023 16:11:27 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id B319722AFF1; Fri, 23 Jun 2023 16:11:27 +0200 (CEST) Received: from localhost (10.252.5.198) 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; Fri, 23 Jun 2023 16:11:27 +0200 From: Olivier Moysan To: Rob Herring , Frank Rowand CC: Olivier Moysan , , Subject: [RFC PATCH 2/7] of: property: add device link support for io-backends Date: Fri, 23 Jun 2023 16:09:38 +0200 Message-ID: <20230623140944.2613002-3-olivier.moysan@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230623140944.2613002-1-olivier.moysan@foss.st.com> References: <20230623140944.2613002-1-olivier.moysan@foss.st.com> MIME-Version: 1.0 X-Originating-IP: [10.252.5.198] X-ClientProxiedBy: EQNCAS1NODE4.st.com (10.75.129.82) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-23_08,2023-06-22_02,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,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1769503650085455125?= X-GMAIL-MSGID: =?utf-8?q?1769503650085455125?= 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, },