Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp216042lqp; Tue, 11 Jun 2024 02:12:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVu70oNrTUTsk05oZO2bH7dHwy8DhCywXI9iqJQ8UARPojyNJlgap3G2xfrfkwFRSDBXqxJGTl5UhLq9PuoARDT9UpHXY2LdWZJASvk3g== X-Google-Smtp-Source: AGHT+IHZzL5dP52gkpFMfKnmd3oKp6bNuIbh1hd0sRa7knQK+U01jBqNk5aOkxk7Adol98LTe4sq X-Received: by 2002:a17:90a:598a:b0:2c3:38f5:b3c4 with SMTP id 98e67ed59e1d1-2c338f5b526mr541798a91.42.1718097138835; Tue, 11 Jun 2024 02:12:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718097138; cv=pass; d=google.com; s=arc-20160816; b=GHOHWHpijCam+g7HLLA1LoRX2daRZ3hguo3NctwfsIyXJV0xLQQCKy07E1nQlx/Dph BBlRufsvuEjmDyWNN0cgYz57eNZ8mEoDwqSj15aXou9P+b/XqiYyJZV2824ab9tuY+5U f5O79JhJw05C8yAq8o3EMQjNWDPnxZxUNV4J7hoE1GQ5lW7hR85BkVf2NUxK9sh1NEYX ymhaXDbKmpJXBbDZPAthMYJWGwrwo+UWOZCBpRs9YVDO9fNR1rvmdUYejUGF3rOQDBYF x73B4qHvbZPpe/cFQkgVlC+ierR5eS7fBIxiCvO/S8JkYKj9Yc+DcOgWOwprnU1mCYfp Z2nw== 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=RmDzsMQhZ0rQkoG+NfxdcgkuNRhG+uLFD5UX9v+sIl8=; fh=PNVS6hneBIB5DuUKcqXTZxY2dQy/qm89zdYDxH+oLxc=; b=yhLLyf9ZgTJWxvDUy+aO4GkZFdTaqIWKWx2HyJNPWPGTGz75F2Tb61VuL7VRB88a+H wOmulmaDK3G6fJ1FeRqDZ6Od/TouhvpkioMQcyT8Od2joi4XSitWsppySXiWero+FK4l u0QfLQK0ZQ6pJDQVaJBW5rJFSZg+3Z9HZn2l8O78og4CXGpr40YvTo2ArPNO8hHiGIi9 Rkj0fh1/CXRL+aed2Wl9zGy72KKOmaMHeI6SBUU+3JBHuTzAeRBsTSmcN1RlIvDsGymb hT0OGdusc/vp3oBY04zSU1Mw3CuXpJskXJFa8w00VPf9HZfKH0x28200XBgrEV0IuuGQ QOYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=H8ClqFHy; 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-209487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209487-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 sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c2d0e2755csi6403587a91.9.2024.06.11.02.12.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 02:12:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=H8ClqFHy; 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-209487-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209487-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 42E94B28D7B for ; Tue, 11 Jun 2024 08:38:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BD88A176ABC; Tue, 11 Jun 2024 08:38: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="H8ClqFHy" 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 EC62B174EE3; Tue, 11 Jun 2024 08:38:07 +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=1718095089; cv=none; b=JVWhgEsVKv5h+DJpRNPehXfBXrvFy7sNr7zCVT1Yc3AI7o+2smgw9x68HreeX0a3JVV9pxHVYnMoMyQQ8WHgVSa62SDvpy4TL+11kpGdbngIgPPl1zVJwXj6Map3gdVBdM/nQcEfEFMFrc4n0UaaVkgH/Q5TUC6YcEU7YM8uGVg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718095089; c=relaxed/simple; bh=7BYihXQBuufqkwpNgBcCE/uLyRVIlbtJP8Cq26n3umo=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=q6d7wMHXm+hXxLZ5Co4xq/T14szStNx85JKk06cicZgFOqlj8IKru5S8Jp4mznyBHLeYXDiU+m6Au/HekrIJHZyNXoMsmUjrehNN6CQQaL/9rZPTzBp1Fa+jxWD7VHAC1QnIhCTfVNQfWJvHxoxg7ddfoD7D1SxNoEqpWlFjN7Y= 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=H8ClqFHy; 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 45B7YHI6027547; Tue, 11 Jun 2024 10:37:40 +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= RmDzsMQhZ0rQkoG+NfxdcgkuNRhG+uLFD5UX9v+sIl8=; b=H8ClqFHyn+VuzgdH ckM88DP87fXvaSz1ua9a2qihiSP1DD4wRexr2hSG1/tm81moh2PKtPFEKlkB/tf6 GrKihJKTlYawSELVgZyMy/nAW2Mgu1UT/VWSGUjjGpLRmzJE2uTOfzcl/JO94HVn d6rkoJYKGp66mK4WA5QOoUjsY/gMvgYGM7L7IBe+8m2sEWMD2YSEdl/MdEIBBHEL xvKE8e9t6FqUE9KjVOfPsgg/RGcthTM0IjDSTiLNmNzRsOuzPY2DsK1jxs6Xj7Kj Y5yEjOZ7WngvHSPNavOAPkX97dyv7kcazTQKMbSw5H4kLY7EX04vcCF1F9GeNhfy UL9xXA== 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 3ypbp41s44-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 11 Jun 2024 10:37:39 +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 3D5FB4002D; Tue, 11 Jun 2024 10:37:33 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node2.st.com [10.75.129.70]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id D9FFD210F68; Tue, 11 Jun 2024 10:36:19 +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, 11 Jun 2024 10:36:18 +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 v7 1/8] dt-bindings: net: add STM32MP13 compatible in documentation for stm32 Date: Tue, 11 Jun 2024 10:35:59 +0200 Message-ID: <20240611083606.733453-2-christophe.roullier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240611083606.733453-1-christophe.roullier@foss.st.com> References: <20240611083606.733453-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-11_04,2024-06-11_01,2024-05-17_01 New STM32 SOC have 2 GMACs instances. GMAC IP version is SNPS 4.20. Signed-off-by: Christophe Roullier Reviewed-by: Conor Dooley --- .../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