Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp849841lqj; Mon, 3 Jun 2024 02:44:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbveUHQ0OdoJbxxq5saMqwGulGDVlfLu5UpttpjWws2B1d9ARx04R5ayPIZ9jjz+pCDV4jp2Y090YSL9At5pysvVZZquTARA+2+s+gSg== X-Google-Smtp-Source: AGHT+IETwfF5Fldy0jkft17kWpsYy87lNLvBGhq4frQRaOPGjsWd8kdCxkxSFF1itLL+j66goJKY X-Received: by 2002:a17:902:d548:b0:1f4:5685:b159 with SMTP id d9443c01a7336-1f63705cd55mr95356775ad.31.1717407849745; Mon, 03 Jun 2024 02:44:09 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717407849; cv=pass; d=google.com; s=arc-20160816; b=XexFRkcRxwyeguTjmPM73SFR7VoeYDKvp5/6qXUulxlWsQJEKPA9CCsoPhWWDW/MwK 41PkpmB7Wt9GkAUPv6QrQkcKRgiRwWWYmuRQpt0u7L8pdePNW6caDOXW2OmOb9Lgdvk9 nPcKa6+7k04qtZsJSLOrmY6qP3SaXGFq6i8pix+Vzy4gh+4mierzGM8IGRgQJjG69yIp zNhtEuRUXM8HPOXkHHDq+tVRY9ALAR16PJNV9am4d3cmBS/g8AAkA36LRjpZE8OW3QNs ah3nvyAC80pQbG/DepC4FXkE7bzt5Ils3WxdVbtJzuuuTPO9MM5wqXHO91DSJFnk8s7P dtCw== 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=K6uqFVTq0VAhvN8fr4VDmf755N4VYaeRsgM0QfYPY2ffPd8Cn8j4hNfJAUGP+J6DEv HjlWa1EQAM5mto6Tw2/HfElOROdaOfI9s0NerfcepHoownDO1z8m1fxJ3TKxVIPuevWR Wiw13nMdlOscvMCw7giEWWfAyfXFfXdCjNAeLvksq8KcxkQ1jWomXy9saLrCcJKtlzTb mOqm3LaePKAEspGk+tD6LQJExhi6U0MgKiKznBCO98VLhoVT4l7WJeZVnIjitvyuHwnQ p+oRClEr2XZPeK4Uir7a/25vTHnhEVWAClaCq3wgSphT6a/zMAR5GjMe4COz0ooiT5EG bgWw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=YCEfMhiM; 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-198882-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198882-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 sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f66ae549e2si24828985ad.538.2024.06.03.02.44.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 03 Jun 2024 02:44:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-198882-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=YCEfMhiM; 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-198882-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-198882-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 43B10285803 for ; Mon, 3 Jun 2024 09:33:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 708168592F; Mon, 3 Jun 2024 09:30:10 +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="YCEfMhiM" 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 E788C8529E; Mon, 3 Jun 2024 09:30:07 +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=1717407009; cv=none; b=s7L5PsfkV0k9rZUC22GjioQegrhhDb6gqSoLstc1TLiBV7pruVYE73E3JWEcK3vCMOMdd8apu7zxJSFgqh1+iBvLYFY50f0W79sWtysG4pDEd3SmNmwY1WZM4zbD2ZTT5zNoQgJMsV1n7S3tehE/3/S6LOyVjwfhpGgKpWpRhEY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717407009; c=relaxed/simple; bh=mwbF8qFqPEiHGCuofaI2GHtdCwbEc2wQbbT2CihcuTs=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EgwY5diDOq3NfwA2cLdVXpYi6xmRkAcsK82nhZSt0hyln9cO/RJEkIx8SsYKL21Hlq/eW4S4GwnjXlv/+BW5JI6XREWXqVR3EhuZS6JNa0kPg8Y9bW5Io0mrKsBFUBV0Y51kJuHsdfgl12UUUpO8vI9J4DjBzpf5Urr2YWrCdE8= 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=YCEfMhiM; 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 (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 453875hg018812; Mon, 3 Jun 2024 11:29:47 +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=YCEfMhiMRJwAP+iD gYsuNSMdDmXPSqueRiZYOYzz/W5hMMj7mtMCjsrQH+tapuQL70bdFN3LiXtXUsAH AkvwdhBg+G/FC53EAaPvvgl7dZyMaNFj0Ml06p4nKEdGz0626kIqmItULsqyAitQ Qi3QhTp6nHiHa1Wq6vcyfgBOZ8wUr2S4hSs4P+uAWh8lnBmz0Jk+6pZ8DZTBPZ1m BYQkQozlel9tF7K9dFUdZJO7YX68Dufm9VZEhQn+9QQhs/KqQl+StC7dUxesCnFE G7pX3WYoL2547Iw4Ahgz//ZBPdOGmX/Thm7KgMKFq/zNp7NunP9Yjbn4e/Pc6Rg+ 87X7FA== 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 3yfw3we2gt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 03 Jun 2024 11:29:47 +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 A12AE4004D; Mon, 3 Jun 2024 11:29:29 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id AB7522165FB; Mon, 3 Jun 2024 11:28: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; Mon, 3 Jun 2024 11:28: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 v3 01/11] dt-bindings: net: add STM32MP13 compatible in documentation for stm32 Date: Mon, 3 Jun 2024 11:27:47 +0200 Message-ID: <20240603092757.71902-2-christophe.roullier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240603092757.71902-1-christophe.roullier@foss.st.com> References: <20240603092757.71902-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.650,FMLib:17.12.28.16 definitions=2024-06-03_06,2024-05-30_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