Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp150327lqb; Tue, 4 Jun 2024 07:38:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWDMpsypm9UOJIkJEEh/2Q/oQLRNcTFKRQu55iZBlFTa3rxvQ9Ec+T2pJPpuP4S2HnEz8BDuQtTF1PiSIG7NKqGB6xqRs7nEQLs9k98lw== X-Google-Smtp-Source: AGHT+IFeRy90B4R8zGCdeMoLjDHg3d+Uniatb+20WwHT9MMujIXVbDAfLGHz0Z45AN3g8vheBBtg X-Received: by 2002:a17:906:8441:b0:a69:23c8:e12d with SMTP id a640c23a62f3a-a6923c8e231mr284649566b.68.1717511907048; Tue, 04 Jun 2024 07:38:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717511907; cv=pass; d=google.com; s=arc-20160816; b=lOFusZKYTrk1t/4E7CygDTtNvKE00agkBYOAKyvVrOhuQIvVZME/H/cbWkvobM2jhW YeI51GSpEd1sFo1ce7X2j7RhPSPML2deIrs5h0It5EAJUs5vRdKEmRpTFlvqAxi25Ko/ LY+/m4l4Vd0a6dZf1FVm6xj9GcRW1+zkv2sV3g99gnCYLOEtzcAEzKH4IeH+EZltJlLT IJfykgDanMarKCB+8TsKHo+Dcxnkz6hzmkUOp3JJIMZNthBeRTvKJv1Lbsh6QebQdb7P 5j6hozXTRxuMFOgWmDxFeV3TI3R4pT3k8OH7u7hQWSak7b3vlsJyjwSFJTgTvlwRTEIT lGPw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=nJww/C4GoPVlnGAjG/SzvrPTyaA+YJJskMcAe2B+/Ds=; fh=PNVS6hneBIB5DuUKcqXTZxY2dQy/qm89zdYDxH+oLxc=; b=HpRPoEswhn9xlmrTceluqLfSA9Q0jY9BiTiGgMlRSQ18LMGL6VEJUOuef82bQTU1/R y47dTZln/v6Vn4f8R6EcTOn/OUN6gPSvU4fj5VviTLD0X3seY5HEUWDDhHcZnP7ngyl7 tSYIeYe3PnFYA7fs1plUmhjWOuhfg+C2B1qqQUEIhs2b91SzE9nXPnI1Y+7+4lcSTOp8 7YtygyWHrCHmrgqvmGzntwUQFgufikG7MbVUjkWYq53KBmwcY3qhBkYOA/DXF6Pi2HDF 754XeOdmINRMsoX+DeUI9FiqZE3ebt5Uj32rsc0+Ht/EpiogxoR/r2ybhITcbk6aFmtw Es0Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=TJ30TXMj; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-200845-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200845-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a67e73fb470si481763166b.248.2024.06.04.07.38.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 07:38:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200845-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=TJ30TXMj; arc=pass (i=1 spf=pass spfdomain=foss.st.com dkim=pass dkdomain=foss.st.com dmarc=pass fromdomain=foss.st.com); spf=pass (google.com: domain of linux-kernel+bounces-200845-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200845-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com 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 B78401F21E25 for ; Tue, 4 Jun 2024 14:38:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 51D9414658E; Tue, 4 Jun 2024 14:37:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="TJ30TXMj" Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (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 8482313BC13; Tue, 4 Jun 2024 14:37:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.132.182.106 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717511833; cv=none; b=Iw+s/M6UhPrAIzF75PHEY1r4NV+DRJkEibqCFG5LdE9L4/3IBdoYC0XbKfbFG0ga/aSe1JMh/jlzjVPy7Ybo5H7cNeSZft0ja3s0NJn/Ird/jkY1QNo7KloMMJu8traIJymHe6ISdLcS8Kv2rgvzQmSeKiOUBpdiCEtcozp6ABg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717511833; c=relaxed/simple; bh=mwbF8qFqPEiHGCuofaI2GHtdCwbEc2wQbbT2CihcuTs=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=qTjE8DhEUB3z5X6DSTnqp1I0bSEVs3x6GvVkbIGE5+oTIrd46HwkGYCf7qmybjQVzT6z9NiycYNL+9Xl7TZFo3ZHhNR1jPErLNHVmSvfM80hdfa2c8vH4H5DGOMtljJMxZXRhIsRqXDSg2M/EEZMOnrETotElnhYvJTgdVzmCLo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com; spf=pass smtp.mailfrom=foss.st.com; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b=TJ30TXMj; arc=none smtp.client-ip=185.132.182.106 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0288072.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 454CIso9011839; Tue, 4 Jun 2024 16:36:37 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=selector1; bh= nJww/C4GoPVlnGAjG/SzvrPTyaA+YJJskMcAe2B+/Ds=; b=TJ30TXMjZPK4NO0n +vi9jziS0UiALfLRFwT/tnVrwYMI8a6QnI/j0iodanb312F5KV8NRuGOcNHVnzyl hHnlRC1Ix1Pe4j8Y/nxhiEF88kcUQo3EgOkxRuEmY2uuEvcSPF1FKcTrdzY+SWq4 zkXFQarVMDB7pl3qfY5/jBiFIv/2kxcXf7UWu5r6SGLI/XX0wTv9Rij1zrBtsD8O N8KBoqaRQtZAYeUtBJcBrIYy7WV7GkLp3UtXlWUD1mwRgrbRP3UtPvEvtBecfweh yNgb8m5fDNI3PMB7D+AsXJCVe0W0Rsr8NY5FxdWrXCpk7WAOqUJdIEnxay3Gycra myeVFw== Received: from beta.dmz-ap.st.com (beta.dmz-ap.st.com [138.198.100.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3yg7r03hjy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 04 Jun 2024 16:36:37 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 90E5240044; Tue, 4 Jun 2024 16:36:30 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 69EC122194C; Tue, 4 Jun 2024 16:35:16 +0200 (CEST) Received: from localhost (10.48.86.164) by SHFDAG1NODE2.st.com (10.75.129.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 4 Jun 2024 16:35:15 +0200 From: Christophe Roullier To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Richard Cochran , Jose Abreu , Liam Girdwood , Mark Brown , Christophe Roullier , Marek Vasut CC: , , , , Subject: [PATCH v4 01/11] dt-bindings: net: add STM32MP13 compatible in documentation for stm32 Date: Tue, 4 Jun 2024 16:34:52 +0200 Message-ID: <20240604143502.154463-2-christophe.roullier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240604143502.154463-1-christophe.roullier@foss.st.com> References: <20240604143502.154463-1-christophe.roullier@foss.st.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE2.st.com (10.75.129.70) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-04_09,2024-06-04_01,2024-05-17_01 New STM32 SOC have 2 GMACs instances. GMAC IP version is SNPS 4.20. Signed-off-by: Christophe Roullier --- .../devicetree/bindings/net/stm32-dwmac.yaml | 41 +++++++++++++++---- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/net/stm32-dwmac.yaml b/Documentation/devicetree/bindings/net/stm32-dwmac.yaml index 7ccf75676b6d5..ecbed9a7aaf6d 100644 --- a/Documentation/devicetree/bindings/net/stm32-dwmac.yaml +++ b/Documentation/devicetree/bindings/net/stm32-dwmac.yaml @@ -22,18 +22,17 @@ select: enum: - st,stm32-dwmac - st,stm32mp1-dwmac + - st,stm32mp13-dwmac required: - compatible -allOf: - - $ref: snps,dwmac.yaml# - properties: compatible: oneOf: - items: - enum: - st,stm32mp1-dwmac + - st,stm32mp13-dwmac - const: snps,dwmac-4.20a - items: - enum: @@ -75,12 +74,15 @@ properties: st,syscon: $ref: /schemas/types.yaml#/definitions/phandle-array items: - - items: + - minItems: 2 + items: - description: phandle to the syscon node which encompases the glue register - description: offset of the control register + - description: field to set mask in register description: Should be phandle/offset pair. The phandle to the syscon node which - encompases the glue register, and the offset of the control register + encompases the glue register, the offset of the control register and + the mask to set bitfield in control register st,ext-phyclk: description: @@ -112,12 +114,37 @@ required: unevaluatedProperties: false +allOf: + - $ref: snps,dwmac.yaml# + - if: + properties: + compatible: + contains: + enum: + - st,stm32mp1-dwmac + - st,stm32-dwmac + then: + properties: + st,syscon: + items: + maxItems: 2 + + - if: + properties: + compatible: + contains: + enum: + - st,stm32mp13-dwmac + then: + properties: + st,syscon: + items: + minItems: 3 + examples: - | #include #include - #include - #include //Example 1 ethernet0: ethernet@5800a000 { compatible = "st,stm32mp1-dwmac", "snps,dwmac-4.20a"; -- 2.25.1