Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp191495lqp; Mon, 10 Jun 2024 00:18:23 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXlfzwfaFlBMdK1I2u6HU2Dh04qKUez5D07pgTF/TtjGLAi8kZkr7lnnRXeRj+z4RofoGEwh5+rflj3rsKfkbMNmps6nptMVPPagoLaqg== X-Google-Smtp-Source: AGHT+IH5ThGoDWiLSA4jCm4TAIMnkqpQvb0RVhg03BopsF3XjUSBiZLp0Guy+erB4OHJKG/paqSb X-Received: by 2002:a17:906:d208:b0:a6f:24cc:5f2 with SMTP id a640c23a62f3a-a6f24cc0689mr52489666b.57.1718003903715; Mon, 10 Jun 2024 00:18:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718003903; cv=pass; d=google.com; s=arc-20160816; b=zyem0ZUzN8U4uvpZavO5EY/DwzSzxyhQKCXEgC0HVLKTXBvQtWDhRtxDJOxbYiSDiz wCTDWYE8lf2nP5bO7mU8cP+ou6i9XvYBwFjcm3DsOKIalVb3NGOLFbFSwprOELZG4ToF xDQ+jbUpEppLhiPyGdnJ6HMt373opu+nJIV3KrKVuvk8yynwUQejXl37OMdlTa3VAS7H lb3q8GI0UXZ4VemE+GrkUBm8c3iXlf1qCEDyjbie6JSs6l07A7BO+GcDwe0sp4jT9G8t IGwH7vSbaKGFvvkcImVPPUOokvWYVFoB20S0Kb2FmqCBgnFp7NCPcTHV+iVpuGJI5SPw to1A== 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=MATnV0OWqMTL3XMj64kWzJNas3kxCFy5hM5TuSEEvLY=; fh=PNVS6hneBIB5DuUKcqXTZxY2dQy/qm89zdYDxH+oLxc=; b=Nrt9WcegUQmtO0RldfP2vUM26kzwytSSH2HK9oK/VYiV7Bo1lGKb/L1Re0IdDjyPE0 rtNsQeDtjTFZ8SbpKXpu0oCQ0i8aRkzcmQJY+p3H1cxE+rO0IM008RZzvOfrsD8KhZv0 Nf2cn5UoPnj3tVYOCitGESoZKW2FV8TaHUXmc/S5U9yI6RwuRKy008vXlDaSmj2X3JMe ym9RSSGx9f18Q0hA74tIYJXy8M30y3gYye6QhFlIhwVGm37t3xSAjKxEaQ9ddIDdGcnD 0ODZAqgO/rnArn64Yi2Vrv5si7HMu32E7S0mMaw5Q6n6oaHwE7Q8aMlH0WhqhhnsmIbA qT3w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=QTlP85Bd; 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-207757-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207757-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-a6f11e420basi159772266b.90.2024.06.10.00.18.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 00:18:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-207757-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=QTlP85Bd; 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-207757-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-207757-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 1A8BF1F223FC for ; Mon, 10 Jun 2024 07:18:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0AC58225AF; Mon, 10 Jun 2024 07:17:41 +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="QTlP85Bd" Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (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 5BD0537143; Mon, 10 Jun 2024 07:17:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.207.212.93 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718003860; cv=none; b=LglHwKZZ+8F1+6z7rfsDoojq/vCptc8Kt4/6zR+w8C0uGcZ/DVs03lQKYiZkvjBxHqUukQG9SvDj4qv45OlBNA1Nyb5i8hVW3d/TT6rpivMwgrcU0CLoplbj5m2zsjOhxChGH6pqIIsAPUW7j6ibAyAh/+m8Yu9p3G4f4tGpKpU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718003860; c=relaxed/simple; bh=ELHG6KXsCPxpq8rAjFOjUunqXofuwXSI9tyRIUTmPAc=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=eiCtnnpT+Dg4PByQ6CpfwtZhqUQWKdydOHjOtSik6WzRKr2bl5S2VEYslsPcR0keR09B55ki0qkXei6KyXM6A8CRudRNKnaqlVfeleMb8NNNSFGkKz4IstAmo+/E4NxxOgsp7j+0CJAp1PLGQqGUyy5BXOV76Kw+pj3s8ZLXU6s= 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=QTlP85Bd; arc=none smtp.client-ip=91.207.212.93 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 (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 459LOld2006902; Mon, 10 Jun 2024 09:16:44 +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= MATnV0OWqMTL3XMj64kWzJNas3kxCFy5hM5TuSEEvLY=; b=QTlP85BdlhGVPntU f50Cay+C5SNjMla3FFGNBFU2yxLW4dKKH+WAkE/eCXdzYwX4ENiyuMGwDT2Bp7DJ BIhcmTx3DH4wqtQw3PuhMnvndOjqEz1cp+hXSNPUvoeudwp1OqbnBJCjFfR4TPTa JCDVtcfs2a1E8Yu1MIoOC5UKyCKt3bleAhx20mV5uQSosMnp7GGh7gUkcOxfkIVI 3/zGclvtVPEPcAOKUy6y/Z2P8Xy1Fm43BHHyrmEPTZGV8gjKm8LE7BeI2i4E0CzI lIZ23yc1kNnlzJhRR6FjH6q+TcOfWTniO89ddPhCAciBGTg0jWSDHXqqxZSed4p7 Y7v7EA== 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 3yme6d5ca9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 10 Jun 2024 09:16:43 +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 45B7840044; Mon, 10 Jun 2024 09:16:17 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 341B8210758; Mon, 10 Jun 2024 09:15:08 +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, 10 Jun 2024 09:15:07 +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: [net-next,PATCH v6 1/8] dt-bindings: net: add STM32MP13 compatible in documentation for stm32 Date: Mon, 10 Jun 2024 09:14:52 +0200 Message-ID: <20240610071459.287500-2-christophe.roullier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240610071459.287500-1-christophe.roullier@foss.st.com> References: <20240610071459.287500-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-10_02,2024-06-06_02,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 | 43 ++++++++++++++++--- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/net/stm32-dwmac.yaml b/Documentation/devicetree/bindings/net/stm32-dwmac.yaml index 7ccf75676b6d5..f6e5e0626a3fb 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,39 @@ required: unevaluatedProperties: false +allOf: + - $ref: snps,dwmac.yaml# + - if: + properties: + compatible: + contains: + enum: + - st,stm32mp1-dwmac + - st,stm32-dwmac + then: + properties: + st,syscon: + items: + minItems: 2 + maxItems: 2 + + - if: + properties: + compatible: + contains: + enum: + - st,stm32mp13-dwmac + then: + properties: + st,syscon: + items: + minItems: 3 + maxItems: 3 + examples: - | #include #include - #include - #include //Example 1 ethernet0: ethernet@5800a000 { compatible = "st,stm32mp1-dwmac", "snps,dwmac-4.20a"; -- 2.25.1