From patchwork Wed Dec 1 17:56:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12650507 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 37712C433FE for ; Wed, 1 Dec 2021 17:57:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Pb++jjfSZ5H9agPa6LbWNe2xGnd4fpEFAAEB6qZuDXU=; b=ZgRjz85jDKb9tK YXHXTt1RpVhAVviW97ZBu8s1fZpmzxwZ5aTq87G0RBCT14Khw+OEc/bi3nOK93Nq8pKU2s3/JwMz/ WjaesI6e7gjuMTMhdYC/8taEmU5b0sUUcEwKek/HmZ4UItU9ZNgIDIkaZ+RpHuckcfYq5oFg3aulc j/xE+DnZnz1f6MUurfVQur6O+PXNQdQE/9AeN4VqsRUq/8eKjB5zXu/xpvBeyQDAmUPu7eOOOwqPb dCJUDaQAmsMRS6blmH/Hpl5MYuXaxYOaCPOcpWXNBePL9/q0KynJK5hxinOSFO3jZZv+B8HFcBPcj 9jiJu+WA0dCdFjTimrPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msTrC-009dSm-Kn; Wed, 01 Dec 2021 17:57:26 +0000 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msTqo-009dJl-6t; Wed, 01 Dec 2021 17:57:03 +0000 Received: by mail-pj1-x1036.google.com with SMTP id nn15-20020a17090b38cf00b001ac7dd5d40cso2297046pjb.3; Wed, 01 Dec 2021 09:57:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=01hLkNW6U3CPpS68qnrfuu+pdGd+j2RGBLQC7jYPJ7E=; b=LGFmv6hvr4XYmTujm0fajcm1lO45kdBhoHNt2JqP/aw3ZvnY6U59KycxvJxbRP9jdA RDRNyNydD4be81R+3/h1ihoPmxmQLXgzTIRg7zxVhROjFJNE5AYCneblWvKjRFa/p2Dj pqAmax9lMNCUscMTPwX8H4mXwj556+f4PPfqOV4R2ZfZIDs589XWVEB4VCpS/Wa2bYLr qE1tsFeZubdvN14tGvjoyi4/C7hm8gcLpsaZFwhSaOer3M4/ZXqkB6LNP5a7jLFkG6h6 M6dV96v3dGLHBX6mSSHLqjXSt7UHrCRysLXhwXP/x1/08R21YbEdGpJfY7WIDUVnxIL3 y2ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=01hLkNW6U3CPpS68qnrfuu+pdGd+j2RGBLQC7jYPJ7E=; b=bfitWZcK/RAXX48FoiEGlrKLbUHwqk9215qUQRrGy4ofqqrg1JLMNH+0ftWPnao/PR HLW59f5grrEX5+19b3UuVUOdQcSeAjms9HFIntjXAZW5ECyef/c6asDj5mn7mbNT8Q8O so6mps6U2xiKkRJUx/wQ3iwpV433kDJfpnKn9qNdp3hlbDCDqOP1VmuSbjQdOtuGUVnE wP4Fc3se4hA9KMFRZFyX5LHoGoG6mU9aTOj9xFVriDMwI8q7AXYWut1gDnCVrZazhU1/ Gx7LjQ4WbuTmZSg+yCWlew9iGgkLpjwrogZK6twI3jP+CZh9IQN5fsU5Hs01AzT3l7JT QHYw== X-Gm-Message-State: AOAM532pK4hUMBAJtJcWEBDdTIl0XSml3/PjUwSrGuPOFbRXA55DWDS5 yGmVAQhz0Dut1qiwC5nADuY= X-Google-Smtp-Source: ABdhPJxwejBZAQbi2Bm8sAB1y0DrRWCAn7pPr7nzDhzzY7gu8JIeoa7SjaOXvXEPZxeHjG1Qjx2I1w== X-Received: by 2002:a17:90b:4acd:: with SMTP id mh13mr9504069pjb.230.1638381421139; Wed, 01 Dec 2021 09:57:01 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id j13sm471546pfc.151.2021.12.01.09.56.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 09:57:00 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , "David S. Miller" , Jakub Kicinski , Rob Herring , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM IPROC GBIT ETHERNET DRIVER), Doug Berger , Ray Jui , Scott Branden , Kishon Vijay Abraham I , Vinod Koul , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM IPROC ARM ARCHITECTURE), linux-phy@lists.infradead.org (open list:GENERIC PHY FRAMEWORK) Subject: [PATCH net-next v2 1/9] dt-bindings: net: Document 2500Mbits/sec fixed link Date: Wed, 1 Dec 2021 09:56:44 -0800 Message-Id: <20211201175652.4722-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211201175652.4722-1-f.fainelli@gmail.com> References: <20211201175652.4722-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211201_095702_271486_898D8FAD X-CRM114-Status: GOOD ( 11.02 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org There are Device Trees with a fixed link rate of 2.5Gbits/sec, add this value to the supported enumeration of speeds for a fixed link. Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/net/ethernet-controller.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml index b0933a8c295a..ff4909e1fdda 100644 --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml @@ -178,7 +178,7 @@ properties: Duplex configuration. 0 for half duplex or 1 for full duplex - - enum: [10, 100, 1000] + - enum: [10, 100, 1000, 2500] description: Link speed in Mbits/sec. From patchwork Wed Dec 1 17:56:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12650509 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 636C4C433EF for ; Wed, 1 Dec 2021 17:57:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jGZp9o/775wuXha+dicyWYGWQDOq6QkfZvt6eMhfvh0=; b=UYBcJD8YIWK4GT 8TiWeVLGUIm7CAS6kxP646JB1rX102Cw6M52+cMfckw6RLkYS6oqBN6TJDQawHOFp9H1zbFCzJG6h IFPAguMzyFYvQpDtYkJXMB5IA3QetDIs5Tqdz9lp9slNmr+x1FSIkpRJU+c/fT1x0sdld+EFEqoTb DU1yPaax46Y4ZqymipQTtUUCJbM0OB/bHZfujt1S5vhrlwQWloUbQaZay7ZFTamCjRR3WZFGrYWi/ mjS+ZjX3E7CsUiBceux1HvErx3rWUAzgRt5jYro4Q1FjP3D81qHp278JOkWAcbmRFBMzV5R4ECdEL 3m+20rHG+UURt/ybihmw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msTrN-009dWz-SN; Wed, 01 Dec 2021 17:57:37 +0000 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msTqp-009dKN-Gb; Wed, 01 Dec 2021 17:57:04 +0000 Received: by mail-pl1-x633.google.com with SMTP id u17so18294645plg.9; Wed, 01 Dec 2021 09:57:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=8NzlNFEIINqTDcWXH0e+WAbc6LfC9f1pv4m0DsSAh4M=; b=MlYX+38bebzRMaYNeN2EmfOKqLzrhDKnBDaSqxWJ1nf4SpBuhDRx+wXW7RIkc4gGq2 +powvlGTI/pQMziKrr16YnLZNpMDL72dBTtsWBNAcYNxJtu29FmhI8okc1C9o4Zx+SmD 4oRlcwymxL92xZTeMchH64bZ6QedSkVqYS2CWEfBZ+GQfcXx8sdN8pizDc3ndX4jm92L hz5jHSaXnKc3IZU5npd723/wY4fdxXLvFzPIbu/KNcdIBnUFyWvT/ONQ1CpKK2eslI0f MdMFjIKS3MGa/1UmGKJN76pGfiyO0pBmS8kzJ5S9ViGK/UrIV4hLgZVlrcf4Wbc/2Pmk NUGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=8NzlNFEIINqTDcWXH0e+WAbc6LfC9f1pv4m0DsSAh4M=; b=7vrgFIJYN7PE+mzbCKzeYy246i3lNHQ5p6JNargBLpp3q1GCFjZwR7ApVuMJZYiTOC rUzM4xWMxHk8+26ru/NWANbmgg5BT26huhddSHRWSSBaS7rUUulo9XFWc0QZPF/T52ms 6z+LVu3v5FoVaT/9qHxKZ7NHMFItCC++eW494osmVTHv0cndIJ69DL6wq5w/mB6xXW0+ tdVedEU0He6Ln2GduflmTCh2j2759n4zTj5KBySgACpbipJCJWjvG3K6uQWrpP4MAVLT Z2q7JToUt7QMBZt9UEdOu9Ip5OJv8ApnQFX8/FcdKjHPUsueTIYV8CNnzZi9TR20qSf4 k9Tw== X-Gm-Message-State: AOAM533YFCACJSlb7XM6uiJc9EYpiWlzxhSxDKv8Zy/qbY+PrMBWpVpY hxAsk9+xzR1k9HSs+uDmNCM= X-Google-Smtp-Source: ABdhPJzdoyylYdHTMJD/A1gdPn+qlC76D/QkYKB03SZS0qIdqZTN3akJtZdg1hXJBGd8gyQuZ0xvmQ== X-Received: by 2002:a17:90b:380e:: with SMTP id mq14mr9728940pjb.74.1638381422438; Wed, 01 Dec 2021 09:57:02 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id j13sm471546pfc.151.2021.12.01.09.57.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 09:57:01 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , "David S. Miller" , Jakub Kicinski , Rob Herring , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM IPROC GBIT ETHERNET DRIVER), Doug Berger , Ray Jui , Scott Branden , Kishon Vijay Abraham I , Vinod Koul , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM IPROC ARM ARCHITECTURE), linux-phy@lists.infradead.org (open list:GENERIC PHY FRAMEWORK) Subject: [PATCH net-next v2 2/9] dt-bindings: net: brcm, unimac-mdio: reg-names is optional Date: Wed, 1 Dec 2021 09:56:45 -0800 Message-Id: <20211201175652.4722-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211201175652.4722-1-f.fainelli@gmail.com> References: <20211201175652.4722-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211201_095703_572198_B6F02CB1 X-CRM114-Status: GOOD ( 10.04 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org The UniMAC MDIO controller integrated into GENET does not provide a reg-names property since it is optional, reflect that in the binding. Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml b/Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml index f4f4c37f1d4e..cda52f98340f 100644 --- a/Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml +++ b/Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml @@ -64,7 +64,6 @@ unevaluatedProperties: false required: - reg - - reg-names - '#address-cells' - '#size-cells' From patchwork Wed Dec 1 17:56:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12650511 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F1318C433F5 for ; Wed, 1 Dec 2021 17:57:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=WAKfg3eAlcrvEX2O38n/d/tkGsZwvLlISKsjG095GJE=; b=lKaySEPJkf5w+f n/gM8EoFgtpxf03g/TdXwYheHjlidnh2e29zybWNigHFAV7TPSTwHHczRLZXWNTRIWbxf4vVMETv9 PwvWrA6w1n27+LlI/TihtCnWpXyUtP3+wKWPTum0TSV27+MgXFHdkMaR1X2kaKgnL7p0jRcxOWPZk rMWdzHJDF4aNwNV9VlI5lr3NEIpkR9U4JLZuHuLi+9DguaGhpTVB09+uEI8c6tb0j5WYfjwnjM8RS /Xa8leIOs2J85tAp608dw0XtbCwtT26N6Gy+mW20j+KRQOAhwD7rBmPNgXRB8P/jCP+Z+20Kyovok wV9kqpLjbrw/tBo6TXFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msTre-009dg9-De; Wed, 01 Dec 2021 17:57:54 +0000 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msTqq-009dL5-Vc; Wed, 01 Dec 2021 17:57:06 +0000 Received: by mail-pj1-x1029.google.com with SMTP id gf14-20020a17090ac7ce00b001a7a2a0b5c3so332543pjb.5; Wed, 01 Dec 2021 09:57:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=G8eVTKgQ71scTCdgvnAxinAjRWpK2tMB1hMCFM8SGqY=; b=TJLygwWmFT3NFxoArSaSrPF6hLheab0+03eo//cCfOFTrQ8w3Iwp32rQWcfu7DY/yj EiRlmHgya2RcZw1wSLELTvVT4Ra36K07EkrClGoMAS1tujMvDS1FjnbfeWw6CDFjjE3F riWoM//EDGe2YtumDOJX9b7oLSahBs2oTauJdupYwAfg6DtI4j8lCNOWSJS28Y6ukxbN r81aj/A0AIGWZJXcHMTNi+xDtjJ59NoqQ8vkZ2xSA0Y0D8xjI+goBiECqKLsf0yOurBA dE575IYVPMV0ofy7z8qjzibFDA8yej9rF8I3ZxYGDxNySr1p0i6zqDjmnl2fDCORxaoK EAQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=G8eVTKgQ71scTCdgvnAxinAjRWpK2tMB1hMCFM8SGqY=; b=63wEPIuAN0l8rTfQqi5ag8fAeZE+huujI780mEKXaHB3ShSIpSSvSng8N6g1NZqABV kefx1cfZSdMaywR/2pzdWBzf5FCFrRWfCXo5YGxpPCjjDlryex7P1jeaQuHy0NDh/5bZ Iw6dQAryHUa0hI73LRa96FjSGvUsdT+IVS/7nuiZORk8UqXaZuZ5ORwRtSRv9iRs/fTM 1ene9LE4V/1uEOapHvc8jfZIhkrYnMyOWOANgJCyGS0V8RMFwro6nSqNpio7UyMxMhTF 6nTkmMiboeZhqYgVrSTqX9Ninq5uTWWH5v+0XyB7MWigT32JbK4uw6+83RZZ20IJksnn jn/w== X-Gm-Message-State: AOAM533oER6kD0H6hS+CtvUBfgxshOaG5xCX3hlC6FwEOz6Hy8ovXiey i/7sfBACYN02LyROT4JclshUFVfoORE= X-Google-Smtp-Source: ABdhPJw4UuaplVy3jWIzuUmvxoeX1tlKubQUfKWev2QarbPvf2tzDlr7vy4BsUp3eOod9oJVmG6kfw== X-Received: by 2002:a17:90b:4f44:: with SMTP id pj4mr9540173pjb.150.1638381423834; Wed, 01 Dec 2021 09:57:03 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id j13sm471546pfc.151.2021.12.01.09.57.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 09:57:03 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , "David S. Miller" , Jakub Kicinski , Rob Herring , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM IPROC GBIT ETHERNET DRIVER), Doug Berger , Ray Jui , Scott Branden , Kishon Vijay Abraham I , Vinod Koul , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM IPROC ARM ARCHITECTURE), linux-phy@lists.infradead.org (open list:GENERIC PHY FRAMEWORK) Subject: [PATCH net-next v2 3/9] dt-bindings: net: brcm, unimac-mdio: Update maintainers for binding Date: Wed, 1 Dec 2021 09:56:46 -0800 Message-Id: <20211201175652.4722-4-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211201175652.4722-1-f.fainelli@gmail.com> References: <20211201175652.4722-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211201_095705_051870_78AFACE2 X-CRM114-Status: GOOD ( 10.08 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Add Doug and myself as maintainers since this binding is used by the GENET Ethernet controller for its internal MDIO controller. Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml b/Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml index cda52f98340f..0be426ee1e44 100644 --- a/Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml +++ b/Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml @@ -7,6 +7,8 @@ $schema: http://devicetree.org/meta-schemas/core.yaml# title: Broadcom UniMAC MDIO bus controller maintainers: + - Doug Berger + - Florian Fainelli - Rafał Miłecki allOf: From patchwork Wed Dec 1 17:56:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12650513 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B37BAC433F5 for ; Wed, 1 Dec 2021 17:58:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=YXX48rf/yT+1a9FD1vuIujwd/Ylt/VzB/KNbNY8MsFo=; b=s1BIAE92u5xoSG pPCD2vWnNgiMgtdqOKBz/PklsahNXzCKgIZyX9PlY2G9Duz6uYrFXVIoueEB48YcJ1NwFU1U2KeL9 GDr7vBSx2p2lsczB2S19iaAuCxx5Qmzx0vhj7Gr7//RnhPROAHWSZojB6mOZi7Dtex4qUOIa1sgdk fbFb6IzFWrTUHUCrX9ToaXyA8CTk0yx/P/mL7qTMjOn0owSU1U0/kEiVRxlVWxxkl/AAKCmF+L7O3 6B16tTM7mRJdIkqNmwUfF1ETRQXA/N2YgBcmZEZWMJKUzy+ADENRj98olEoaQgdNjJjjbYZW3SD6l a3sXFyzIf8yyZtLj7c7Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msTrx-009ds8-4T; Wed, 01 Dec 2021 17:58:13 +0000 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msTqr-009dLg-PS; Wed, 01 Dec 2021 17:57:06 +0000 Received: by mail-pf1-x42e.google.com with SMTP id o4so25286261pfp.13; Wed, 01 Dec 2021 09:57:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tExO4r+cy0RFB17XdXDlhBrae4MKdtqXWFJl8QhkaZ0=; b=OdhppBQEa4ryLH9att8LycRi3rFQ6Ga0EBTENit5xYQDB1Bfba3CKRCE8+rFa0Mpyv f2gFF2MNjOj1KBDwXU9LxBuif8gDT4/7cTgs2tA4u6yMJN5AClWL6IZ8BpOQuV5Vm7YT XmfFFyaWBBl9RsxHVfQURfNkvMiGqQv19t5gXTJfW26Ow2EGYCX8j1k7QAK65EcGXV0e G35bFclcVFGsMWS9RUUAfNHjTro9qzcOMr+MHLteCkTKdMSsrqRlX3SGaGZryEDtSiE3 zMtzOY/vwApuDcHjVJfE5buQaAxDeYTNFBpUixPc5rHljnGkagxSZ3JT5j/RiSIeU4u2 qBtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tExO4r+cy0RFB17XdXDlhBrae4MKdtqXWFJl8QhkaZ0=; b=jithw5hXIHA0u1qn6TP2gOfBe5DgkbfoLcnbSBPgMIohk9qez/vo7yIqiQX4YEkYO2 x/QUYzya+fyo2Z4Kl+v1n3VRvd+nxxTtPyDbkci/+i/Geio/TTRXcwlAVbapCLo0NZZ3 gTfwLdYkHarKbiH2nMuMG+/AQjp4Cdz4i1JRB4sjmpbHmrPbimyO5Ny7S9H7JvXS+SC8 i1ez94ABItyyh3vOV4BXJ9CuN7egykfPtCaAuWeJIoNZjB6qvYPvgHrX5Jp7wxCEqgTI IlQUCUNubBAzJYENwQhB83DlxfkskXYop6Rjo+reSrt6FpM1WcxgIfc9tnyfJfveeyid X/qw== X-Gm-Message-State: AOAM533k8J33AS/k3wd8bk4kpKIPIm5DG2PhqDVv2AVM3IKdu3Nj6oRX 958eK6F31ISh+XKFA4XyIEw= X-Google-Smtp-Source: ABdhPJwMiQoRDug6ipJxypCtMgfXSsdjC+XcWPhh3/HN9O/4/dDPGj02z853Fem37KY+f7wl6gt8qA== X-Received: by 2002:a65:6a0a:: with SMTP id m10mr5782535pgu.82.1638381425196; Wed, 01 Dec 2021 09:57:05 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id j13sm471546pfc.151.2021.12.01.09.57.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 09:57:04 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , "David S. Miller" , Jakub Kicinski , Rob Herring , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM IPROC GBIT ETHERNET DRIVER), Doug Berger , Ray Jui , Scott Branden , Kishon Vijay Abraham I , Vinod Koul , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM IPROC ARM ARCHITECTURE), linux-phy@lists.infradead.org (open list:GENERIC PHY FRAMEWORK) Subject: [PATCH net-next v2 4/9] dt-bindings: net: Document moca PHY interface Date: Wed, 1 Dec 2021 09:56:47 -0800 Message-Id: <20211201175652.4722-5-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211201175652.4722-1-f.fainelli@gmail.com> References: <20211201175652.4722-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211201_095705_855185_384035E8 X-CRM114-Status: UNSURE ( 9.23 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org MoCA (Multimedia over Coaxial) is used by the internal GENET/MOCA cores and will be needed in order to convert GENET to YAML in subsequent changes. Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/net/ethernet-controller.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/ethernet-controller.yaml b/Documentation/devicetree/bindings/net/ethernet-controller.yaml index ff4909e1fdda..404035754db6 100644 --- a/Documentation/devicetree/bindings/net/ethernet-controller.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-controller.yaml @@ -69,6 +69,7 @@ properties: - rev-mii - rmii - rev-rmii + - moca # RX and TX delays are added by the MAC when required - rgmii From patchwork Wed Dec 1 17:56:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12650515 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4FD3FC433EF for ; Wed, 1 Dec 2021 17:58:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zU6nmxH0hSkWw8hjoRB9CXiZPvnPuvOVFke7+JnqeIo=; b=t+OvBwJ3BwszsD zuIxqiLEXW8svXXgoxkpN5IQxL2kKRlsZaybQgaYvtNdPkMdfVaT2/f/pjyyAjbJtYRGLlskcJrnh FwpkaP7om8YxlVZ191HdurCGh3pPn5DJWWOS65lVcq2Sh/YFIRBuoBn1cTXkHqSsNAaZILVvVBt+m 39pA4WTfvIuEbBrqpf908EmzNkKrZz7ftswcuViNb88OCD6Mw/HiEKhiXmXhJN3wexD5fCWgWbTqi L5qO5NjRwLtMs7ApbapcFwtsdEWJFyAZ0+SmcGwaUSsgnHWUwcfrxWv4qb9ThXoE23Q9rdbG3W1WC ef6NrznB1PGcd1vlto3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msTsP-009e8t-GE; Wed, 01 Dec 2021 17:58:41 +0000 Received: from mail-pg1-x52c.google.com ([2607:f8b0:4864:20::52c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msTqt-009dME-ON; Wed, 01 Dec 2021 17:57:09 +0000 Received: by mail-pg1-x52c.google.com with SMTP id s137so24444324pgs.5; Wed, 01 Dec 2021 09:57:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SsPDWA/IpTbr1IQoycdlGv3rvSmlrI/sthPXZ1KvdTI=; b=WGJJPmLLxppamlAkA4vMG9L7OxZCQ+uPa028rJw82NkSCDPhSHk4e2Gyuy35kNY980 ewdtZxQJBxYedwc0TgtFlSm5dvFVk8jGEOQswj0B3QT9T5QVelPdNHTYnjeorgJ1sogs tuWXmJwb7O4hKoNaK2YSWyMnlK2WQpBu18C6oZ/uB35xpkO9r++o+8tAUpvzhr3SZfvD oygOzGyqgT3iI9Qg9+ziAqRT7EDOgSSXJFlWoeHLfU4MgK0bgHBc590PRJWFt7d91CWL 2ZwYYKz2es/uM/QITWh5aEt2a7/a5QxJbrnkuD5TdPSICneGDx5usJmfboQlF88AIbju 5/HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SsPDWA/IpTbr1IQoycdlGv3rvSmlrI/sthPXZ1KvdTI=; b=3HAOt/OMjB31sApMBY9X9bs/lWa5YkIioDRZ51roBiY7LGm3Y29tgbexf1UxRz/vIf 50rLgeYOA1f/sHC+V2KTuSr/9mpRKtxkbo0OYeLAoZcmXpt47LLV71g69Mqr19t5MHzC RGV2+4ktDP8PRLXNV/jys81Fig10MTmgZakzPl9l/y/HyaLeagr3I82ohkNAZTqUAeTR u6Mz3sDgEjGu6umSpPLsnKq74BDODwO2JGxvC/H7JyuuaYkwPtadVDSLrSsFZNab1ofQ je4A9qo+0oarZS/bwiK8FnkWnh5xv6HiQUAeGcA6Rq1mEC2XJK6IpS+nv49lA/co/zZA APPA== X-Gm-Message-State: AOAM531QimFTnl0cwaCGS6azXgC7RGSToAWpoTS2v5NLc72FrvZ85ZaE EKmgLkSNDq05RfMwawafckk= X-Google-Smtp-Source: ABdhPJybiHtKx2prctis7Q+rqyXO+qsyaOEaBQ5mZZd05ABoK397/caoo3s5qUAiCH+0l6gD1+/s3Q== X-Received: by 2002:a63:4f09:: with SMTP id d9mr5961635pgb.535.1638381426540; Wed, 01 Dec 2021 09:57:06 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id j13sm471546pfc.151.2021.12.01.09.57.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 09:57:06 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , "David S. Miller" , Jakub Kicinski , Rob Herring , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM IPROC GBIT ETHERNET DRIVER), Doug Berger , Ray Jui , Scott Branden , Kishon Vijay Abraham I , Vinod Koul , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM IPROC ARM ARCHITECTURE), linux-phy@lists.infradead.org (open list:GENERIC PHY FRAMEWORK) Subject: [PATCH net-next v2 5/9] dt-bindings: net: Convert GENET binding to YAML Date: Wed, 1 Dec 2021 09:56:48 -0800 Message-Id: <20211201175652.4722-6-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211201175652.4722-1-f.fainelli@gmail.com> References: <20211201175652.4722-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211201_095707_823559_A83CAA83 X-CRM114-Status: GOOD ( 27.04 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Convert the GENET binding to YAML, leveraging brcm,unimac-mdio.yaml and the standard ethernet-controller.yaml files. Signed-off-by: Florian Fainelli --- .../devicetree/bindings/net/brcm,bcmgenet.txt | 125 --------------- .../bindings/net/brcm,bcmgenet.yaml | 145 ++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 146 insertions(+), 126 deletions(-) delete mode 100644 Documentation/devicetree/bindings/net/brcm,bcmgenet.txt create mode 100644 Documentation/devicetree/bindings/net/brcm,bcmgenet.yaml diff --git a/Documentation/devicetree/bindings/net/brcm,bcmgenet.txt b/Documentation/devicetree/bindings/net/brcm,bcmgenet.txt deleted file mode 100644 index 0b5994fba35f..000000000000 --- a/Documentation/devicetree/bindings/net/brcm,bcmgenet.txt +++ /dev/null @@ -1,125 +0,0 @@ -* Broadcom BCM7xxx Ethernet Controller (GENET) - -Required properties: -- compatible: should contain one of "brcm,genet-v1", "brcm,genet-v2", - "brcm,genet-v3", "brcm,genet-v4", "brcm,genet-v5", "brcm,bcm2711-genet-v5" or - "brcm,bcm7712-genet-v5". -- reg: address and length of the register set for the device -- interrupts and/or interrupts-extended: must be two cells, the first cell - is the general purpose interrupt line, while the second cell is the - interrupt for the ring RX and TX queues operating in ring mode. An - optional third interrupt cell for Wake-on-LAN can be specified. - See Documentation/devicetree/bindings/interrupt-controller/interrupts.txt - for information on the property specifics. -- phy-mode: see ethernet.txt file in the same directory -- #address-cells: should be 1 -- #size-cells: should be 1 - -Optional properties: -- clocks: When provided, must be two phandles to the functional clocks nodes - of the GENET block. The first phandle is the main GENET clock used during - normal operation, while the second phandle is the Wake-on-LAN clock. -- clock-names: When provided, names of the functional clock phandles, first - name should be "enet" and second should be "enet-wol". - -- phy-handle: See ethernet.txt file in the same directory; used to describe - configurations where a PHY (internal or external) is used. - -- fixed-link: When the GENET interface is connected to a MoCA hardware block or - when operating in a RGMII to RGMII type of connection, or when the MDIO bus is - voluntarily disabled, this property should be used to describe the "fixed link". - See Documentation/devicetree/bindings/net/fixed-link.txt for information on - the property specifics - -Required child nodes: - -- mdio bus node: this node should always be present regardless of the PHY - configuration of the GENET instance - -MDIO bus node required properties: - -- compatible: should contain one of "brcm,genet-mdio-v1", "brcm,genet-mdio-v2" - "brcm,genet-mdio-v3", "brcm,genet-mdio-v4", "brcm,genet-mdio-v5", the version - has to match the parent node compatible property (e.g: brcm,genet-v4 pairs - with brcm,genet-mdio-v4) -- reg: address and length relative to the parent node base register address -- #address-cells: address cell for MDIO bus addressing, should be 1 -- #size-cells: size of the cells for MDIO bus addressing, should be 0 - -Ethernet PHY node properties: - -See Documentation/devicetree/bindings/net/phy.txt for the list of required and -optional properties. - -Internal Gigabit PHY example: - -ethernet@f0b60000 { - phy-mode = "internal"; - phy-handle = <&phy1>; - mac-address = [ 00 10 18 36 23 1a ]; - compatible = "brcm,genet-v4"; - #address-cells = <0x1>; - #size-cells = <0x1>; - reg = <0xf0b60000 0xfc4c>; - interrupts = <0x0 0x14 0x0>, <0x0 0x15 0x0>; - - mdio@e14 { - compatible = "brcm,genet-mdio-v4"; - #address-cells = <0x1>; - #size-cells = <0x0>; - reg = <0xe14 0x8>; - - phy1: ethernet-phy@1 { - max-speed = <1000>; - reg = <0x1>; - compatible = "ethernet-phy-ieee802.3-c22"; - }; - }; -}; - -MoCA interface / MAC to MAC example: - -ethernet@f0b80000 { - phy-mode = "moca"; - fixed-link = <1 0 1000 0 0>; - mac-address = [ 00 10 18 36 24 1a ]; - compatible = "brcm,genet-v4"; - #address-cells = <0x1>; - #size-cells = <0x1>; - reg = <0xf0b80000 0xfc4c>; - interrupts = <0x0 0x16 0x0>, <0x0 0x17 0x0>; - - mdio@e14 { - compatible = "brcm,genet-mdio-v4"; - #address-cells = <0x1>; - #size-cells = <0x0>; - reg = <0xe14 0x8>; - }; -}; - - -External MDIO-connected Gigabit PHY/switch: - -ethernet@f0ba0000 { - phy-mode = "rgmii"; - phy-handle = <&phy0>; - mac-address = [ 00 10 18 36 26 1a ]; - compatible = "brcm,genet-v4"; - #address-cells = <0x1>; - #size-cells = <0x1>; - reg = <0xf0ba0000 0xfc4c>; - interrupts = <0x0 0x18 0x0>, <0x0 0x19 0x0>; - - mdio@e14 { - compatible = "brcm,genet-mdio-v4"; - #address-cells = <0x1>; - #size-cells = <0x0>; - reg = <0xe14 0x8>; - - phy0: ethernet-phy@0 { - max-speed = <1000>; - reg = <0x0>; - compatible = "ethernet-phy-ieee802.3-c22"; - }; - }; -}; diff --git a/Documentation/devicetree/bindings/net/brcm,bcmgenet.yaml b/Documentation/devicetree/bindings/net/brcm,bcmgenet.yaml new file mode 100644 index 000000000000..ba9a6d156815 --- /dev/null +++ b/Documentation/devicetree/bindings/net/brcm,bcmgenet.yaml @@ -0,0 +1,145 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/brcm,bcmgenet.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM7xxx Ethernet Controller (GENET) binding + +maintainers: + - Doug Berger + - Florian Fainelli + +properties: + compatible: + enum: + - brcm,genet-v1 + - brcm,genet-v2 + - brcm,genet-v3 + - brcm,genet-v4 + - brcm,genet-v5 + - brcm,bcm2711-genet-v5 + - brcm,bcm7712-genet-v5 + + reg: + maxItems: 1 + + interrupts: + minItems: 2 + items: + - description: general purpose interrupt line + - description: RX and TX rings interrupt line + - description: Wake-on-LAN interrupt line + + + clocks: + minItems: 1 + items: + - description: main clock + - description: EEE clock + - description: Wake-on-LAN clock + + clock-names: + minItems: 1 + items: + - const: enet + - const: enet-eee + - const: enet-wol + + "#address-cells": + const: 1 + + "#size-cells": + const: 1 + +patternProperties: + "^mdio@[0-9a-f]+$": + type: object + $ref: "brcm,unimac-mdio.yaml" + + description: + GENET internal UniMAC MDIO bus + +required: + - reg + - interrupts + - phy-mode + - "#address-cells" + - "#size-cells" + +allOf: + - $ref: ethernet-controller.yaml + +additionalProperties: true + +examples: + #include + + - | + ethernet@f0b60000 { + phy-mode = "internal"; + phy-handle = <&phy1>; + mac-address = [ 00 10 18 36 23 1a ]; + compatible = "brcm,genet-v4"; + reg = <0xf0b60000 0xfc4c>; + interrupts = <0x0 0x14 0x0>, <0x0 0x15 0x0>; + #address-cells = <1>; + #size-cells = <1>; + + mdio0: mdio@e14 { + compatible = "brcm,genet-mdio-v4"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xe14 0x8>; + + phy1: ethernet-phy@1 { + max-speed = <1000>; + reg = <1>; + compatible = "ethernet-phy-ieee802.3-c22"; + }; + }; + }; + + - | + ethernet@f0b80000 { + phy-mode = "moca"; + fixed-link = <1 0 1000 0 0>; + mac-address = [ 00 10 18 36 24 1a ]; + compatible = "brcm,genet-v4"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0xf0b80000 0xfc4c>; + interrupts = <0x0 0x16 0x0>, <0x0 0x17 0x0>; + + mdio1: mdio@e14 { + compatible = "brcm,genet-mdio-v4"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xe14 0x8>; + }; + }; + + - | + ethernet@f0ba0000 { + phy-mode = "rgmii"; + phy-handle = <&phy0>; + mac-address = [ 00 10 18 36 26 1a ]; + compatible = "brcm,genet-v4"; + #address-cells = <1>; + #size-cells = <1>; + reg = <0xf0ba0000 0xfc4c>; + interrupts = <0x0 0x18 0x0>, <0x0 0x19 0x0>; + + mdio2: mdio@e14 { + compatible = "brcm,genet-mdio-v4"; + #address-cells = <1>; + #size-cells = <0>; + reg = <0xe14 0x8>; + + phy0: ethernet-phy@0 { + max-speed = <1000>; + reg = <0>; + compatible = "ethernet-phy-ieee802.3-c22"; + }; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index da2fb287c4b3..eb0f6caf0062 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3830,7 +3830,7 @@ M: Florian Fainelli L: bcm-kernel-feedback-list@broadcom.com L: netdev@vger.kernel.org S: Supported -F: Documentation/devicetree/bindings/net/brcm,bcmgenet.txt +F: Documentation/devicetree/bindings/net/brcm,bcmgenet.yaml F: Documentation/devicetree/bindings/net/brcm,unimac-mdio.yaml F: drivers/net/ethernet/broadcom/genet/ F: drivers/net/ethernet/broadcom/unimac.h From patchwork Wed Dec 1 17:56:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12650521 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A0B13C433EF for ; Wed, 1 Dec 2021 17:59:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=nXu399RAgP0S8AVy7GTnagjU5AomzwUDkZ/g+FQhs4Y=; b=Ov9G4l1XJ1bw8D DzKxF5YZdJsjvJYXGTeL9+L+mmXY7e0UZab6uGhunyV3he5ucEFktIfgZVfZVwGWUhJqxKyNeOOcw 6d7kiprIYd6RgvRFpLPrDcRZ4fWy1V0JQj56gyl3sN+TxqHZYFj3RYOGIlMEQiq0C1LZIfkcqtwVI 7cxXOn8LKT2ZaizMayaI7BABjrUTPuplnqTuR1op7eMr7ou4+yVlmwyefL4rsi6glstzA3qPl7nG5 iruygXMazn3jqOg/2yIqIUTotJ/pdqHo8UqDAgf0022O8vhCff2pubVyBmHKDQRXweZmVGtH/fJaX aB0HrPRwGN6p4pdszZqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msTsy-009ePk-9N; Wed, 01 Dec 2021 17:59:16 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msTqv-009dMm-2k; Wed, 01 Dec 2021 17:57:10 +0000 Received: by mail-pf1-x42d.google.com with SMTP id 8so25300456pfo.4; Wed, 01 Dec 2021 09:57:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KYMDVSre6+yLu8zD+7T8spnd61FbSvWPFURC895A/Tk=; b=KcIbR+oPFhCoj00vXrvlusdYemqIiSOnE3GdyiYRztMB8Dy/rlm9R2MvyGGcvK1O9d cUgPkbAwPzfGzKYLY4AVmh0HqDvwtbdupglIiJmRQx7AqjhOHsFW8r9NZhHkf8lgVhy5 BOPFsCFO246aG7YocvXhutSYzxpXXQnNILQvbDDsQyBdv9Dx9WbjJdbMjPHaepWuEij+ ST9OkZqM40nFH/YP2ynakoFYX2BAtPcZYXYcuPPZ4OxeqgHPgRBRlkC8mOUUnSfWJ0Yv qaNq8/DkQzpqgdrsDZvPKec22B2xZfUfnhfrkBKCBkhH2P/UVu2lcmRJTQzpSR5IsucT 2qcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KYMDVSre6+yLu8zD+7T8spnd61FbSvWPFURC895A/Tk=; b=f8iD0NV2H1nCLfDs6zAenaBD7hHc80BeaD83pIS6A/8ewLooAFG6P7IRFmZ05R9gAj AcmJpCgOnG5da/hFGGvX3DmoY2oWCmU+l2Oa9KGqkWPOi7zR1I7N49GbINPKyWIwbMHi bsj7pdRA3bTa8UiMTt4fARP+w4IFOrpGz8e6Vtjb5IzJHQvTyuMNUyNN4afmBdgbNA2m NKMbH2dtbKk0/9/3SwViVyllxVo3cOQeRyuWyZV/nj+EVqJL3xdlKEA398R3yY6R5iC3 pfn8VCzNJkGK5S6uo9VxaRvf4m1wA+YsGrg0sQF8a5IYFmuw54AqsbHisIPJLPJPC1vy r4HA== X-Gm-Message-State: AOAM532Bv2j24qeA1k6MuJsI02NV4P4+6vS6av0OzHnde0RQ33QSkafG j+KZvHafvkZOOF6BD9dqZBk= X-Google-Smtp-Source: ABdhPJwJCTGDL3Jx21xteh0JyBvOYoagGEJ8sFjmkkeVQ65cWgvIiV7LDRhQeT7DVJ1qfm0XXh4Hrw== X-Received: by 2002:a63:5520:: with SMTP id j32mr5904336pgb.443.1638381427878; Wed, 01 Dec 2021 09:57:07 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id j13sm471546pfc.151.2021.12.01.09.57.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 09:57:07 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , "David S. Miller" , Jakub Kicinski , Rob Herring , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM IPROC GBIT ETHERNET DRIVER), Doug Berger , Ray Jui , Scott Branden , Kishon Vijay Abraham I , Vinod Koul , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM IPROC ARM ARCHITECTURE), linux-phy@lists.infradead.org (open list:GENERIC PHY FRAMEWORK) Subject: [PATCH net-next v2 6/9] dt-bindings: net: Convert AMAC to YAML Date: Wed, 1 Dec 2021 09:56:49 -0800 Message-Id: <20211201175652.4722-7-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211201175652.4722-1-f.fainelli@gmail.com> References: <20211201175652.4722-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211201_095709_153936_6FD40677 X-CRM114-Status: GOOD ( 17.83 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Convert the Broadcom AMAC Device Tree binding to YAML to help with schema and dtbs checking. Signed-off-by: Florian Fainelli --- .../devicetree/bindings/net/brcm,amac.txt | 30 ------- .../devicetree/bindings/net/brcm,amac.yaml | 88 +++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 89 insertions(+), 31 deletions(-) delete mode 100644 Documentation/devicetree/bindings/net/brcm,amac.txt create mode 100644 Documentation/devicetree/bindings/net/brcm,amac.yaml diff --git a/Documentation/devicetree/bindings/net/brcm,amac.txt b/Documentation/devicetree/bindings/net/brcm,amac.txt deleted file mode 100644 index 0120ebe93262..000000000000 --- a/Documentation/devicetree/bindings/net/brcm,amac.txt +++ /dev/null @@ -1,30 +0,0 @@ -Broadcom AMAC Ethernet Controller Device Tree Bindings -------------------------------------------------------------- - -Required properties: - - compatible: "brcm,amac" - "brcm,nsp-amac" - "brcm,ns2-amac" - - reg: Address and length of the register set for the device. It - contains the information of registers in the same order as - described by reg-names - - reg-names: Names of the registers. - "amac_base": Address and length of the GMAC registers - "idm_base": Address and length of the GMAC IDM registers - (required for NSP and Northstar2) - "nicpm_base": Address and length of the NIC Port Manager - registers (required for Northstar2) - - interrupts: Interrupt number - -The MAC address will be determined using the optional properties -defined in ethernet.txt. - -Examples: - -amac0: ethernet@18022000 { - compatible = "brcm,nsp-amac"; - reg = <0x18022000 0x1000>, - <0x18110000 0x1000>; - reg-names = "amac_base", "idm_base"; - interrupts = ; -}; diff --git a/Documentation/devicetree/bindings/net/brcm,amac.yaml b/Documentation/devicetree/bindings/net/brcm,amac.yaml new file mode 100644 index 000000000000..d9de68aba7d3 --- /dev/null +++ b/Documentation/devicetree/bindings/net/brcm,amac.yaml @@ -0,0 +1,88 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/brcm,amac.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom AMAC Ethernet Controller Device Tree Bindings + +maintainers: + - Florian Fainelli + +allOf: + - $ref: "ethernet-controller.yaml#" + - if: + properties: + compatible: + contains: + enum: + - brcm,amac + then: + properties: + reg: + minItems: 1 + maxItems: 2 + reg-names: + minItems: 1 + maxItems: 2 + items: + - const: amac_base + - const: idm_base + + - if: + properties: + compatible: + contains: + enum: + - brcm,nsp-amac + then: + properties: + reg: + minItems: 2 + maxItems: 2 + reg-names: + items: + - const: amac_base + - const: idm_base + + - if: + properties: + compatible: + contains: + enum: + - brcm,ns2-amac + then: + properties: + reg: + minItems: 3 + maxItems: 3 + reg-names: + items: + - const: amac_base + - const: idm_base + - const: nicpm_base + +properties: + compatible: + enum: + - brcm,amac + - brcm,nsp-amac + - brcm,ns2-amac + + interrupts: + maxItems: 1 + + +unevaluatedProperties: false + +examples: + - | + #include + + amac0: ethernet@18022000 { + compatible = "brcm,nsp-amac"; + reg = <0x18022000 0x1000>, + <0x18110000 0x1000>; + reg-names = "amac_base", "idm_base"; + interrupts = ; + }; diff --git a/MAINTAINERS b/MAINTAINERS index eb0f6caf0062..6b32420bd9bd 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3872,7 +3872,7 @@ M: Rafał Miłecki M: bcm-kernel-feedback-list@broadcom.com L: netdev@vger.kernel.org S: Maintained -F: Documentation/devicetree/bindings/net/brcm,amac.txt +F: Documentation/devicetree/bindings/net/brcm,amac.yaml F: drivers/net/ethernet/broadcom/bgmac* F: drivers/net/ethernet/broadcom/unimac.h From patchwork Wed Dec 1 17:56:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12650523 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C036DC433FE for ; Wed, 1 Dec 2021 17:59:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ne5V1+2u/CQI9ZO9qNDJiyi/fwJNe+pyXuGUVuvYr+E=; b=AEqPXFtP4eXuf8 Gihybpcyi5yB4kjmIBMDk3mbxKi1mIIjznaR5WpJGJemRlDrXVZBr539t9BrzLR3Hd6zudrPrN2EF GtE37go8Q3mel9sqW3FhofZugrk7wHarsBtAv5cbSrpQKDev8s2L36obhq1uNZAV1emQCIk+y0uup LlCXjN2FSonK5bSN0q2vaBVP1DWsQ6O0DIgrVgCIHGBYHoCPwvrY+u+evEmBPV4zXpb2g5ucs2Muz tf9QnWBd8/X1ShwmIlWahKlPYSPYv9HWtebXFZYHDFcLWBsdzU+BLVF8lTrc6/NMviJTevNscUd5K G+X325i/c8+uuESDL5uQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msTtR-009egB-VJ; Wed, 01 Dec 2021 17:59:45 +0000 Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msTqw-009dNA-Ek; Wed, 01 Dec 2021 17:57:12 +0000 Received: by mail-pf1-x42c.google.com with SMTP id z6so25300426pfe.7; Wed, 01 Dec 2021 09:57:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aa5Ws1F22vChn3gRvEo2dOdDM88h3YVq71TvWa1r5ug=; b=LAGe/R42jpeJqH8NCWEQkoXB5Rqxs/Tbu2WBmC1SKO9PEeqz43n0OINEglEZjUt1yJ UMFJ470LFcbnGxpGTf7jPYhsmNDW/a3WHuAXepFZ1G0XTFrl4uw30nW79WOECwYVze9D BEKl9Ha/ryoWzBiNgFu3us2+mp2GS45Mh6AUJcl6Phr7jRiQHN09wwqt/3E2S6XPSBs8 GxHXDx1p/Irg22NXY+h1dYS3gLJ3pcIlOBKZsOLHe79Ry0qG1evCHwOfKuSIEXmpAlMg lEzetlgxNDaeWeVuNdpBJdx4+drfO8ZYYeXZd/njz4i32+SGCGF8WHIoIwqWAnzH4vDO 5f+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aa5Ws1F22vChn3gRvEo2dOdDM88h3YVq71TvWa1r5ug=; b=5unI+zojSx7PWt3suY/VtS/g7bg4krRCPZqk+ik+7qY0vjd/l4MKCWzE4tlaMgeVK/ B1wdY967ZwOx73VL39J/RT7XA+KYewBId9T0aJGZ4A7p/1u4PTn9MsysjgFJQ1vGpgzN 806pHysZJW5GoCGkmIVnX2YxXyzTl1Oa1GqH8EgF/OxbTeMKk5IqCCXFdKFiL5zyXzOy eDHbnfF3ZPklmEQXPjv8DwT8TPSPnuNI7v4fpDhW85eoqdGQzYakyOXnYIIW/CxUn5QO 2PdKRIXMoqPWhHVemyGwqtfOLHa4iXtQSbJA0vhp9CDewVaeW8JRz7f5JhY+0qHaPfkI IMRw== X-Gm-Message-State: AOAM531LArJ+qFAs8CcTDvxwpC73/D5b3Ncj2lfbAWz17H0jMO5C05wI Dle1A2aYoxyFme9cc2qgUDw= X-Google-Smtp-Source: ABdhPJypwY1A1ipTzyB0dHar4IILUlsjTCrtk1ed8DjyW2mjy101JQkkR/NJoBKV3OonbusEhjFWmw== X-Received: by 2002:a63:2c8c:: with SMTP id s134mr5726520pgs.221.1638381429226; Wed, 01 Dec 2021 09:57:09 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id j13sm471546pfc.151.2021.12.01.09.57.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 09:57:08 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , "David S. Miller" , Jakub Kicinski , Rob Herring , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM IPROC GBIT ETHERNET DRIVER), Doug Berger , Ray Jui , Scott Branden , Kishon Vijay Abraham I , Vinod Koul , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM IPROC ARM ARCHITECTURE), linux-phy@lists.infradead.org (open list:GENERIC PHY FRAMEWORK) Subject: [PATCH net-next v2 7/9] dt-bindings: net: Convert SYSTEMPORT to YAML Date: Wed, 1 Dec 2021 09:56:50 -0800 Message-Id: <20211201175652.4722-8-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211201175652.4722-1-f.fainelli@gmail.com> References: <20211201175652.4722-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211201_095710_535715_C3AA120E X-CRM114-Status: GOOD ( 21.46 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Convert the Broadcom SYSTEMPORT Ethernet controller Device Tree binding to YAML. Signed-off-by: Florian Fainelli --- .../bindings/net/brcm,systemport.txt | 38 --------- .../bindings/net/brcm,systemport.yaml | 82 +++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 83 insertions(+), 38 deletions(-) delete mode 100644 Documentation/devicetree/bindings/net/brcm,systemport.txt create mode 100644 Documentation/devicetree/bindings/net/brcm,systemport.yaml diff --git a/Documentation/devicetree/bindings/net/brcm,systemport.txt b/Documentation/devicetree/bindings/net/brcm,systemport.txt deleted file mode 100644 index 75736739bfdd..000000000000 --- a/Documentation/devicetree/bindings/net/brcm,systemport.txt +++ /dev/null @@ -1,38 +0,0 @@ -* Broadcom BCM7xxx Ethernet Systemport Controller (SYSTEMPORT) - -Required properties: -- compatible: should be one of: - "brcm,systemport-v1.00" - "brcm,systemportlite-v1.00" or - "brcm,systemport" -- reg: address and length of the register set for the device. -- interrupts: interrupts for the device, first cell must be for the rx - interrupts, and the second cell should be for the transmit queues. An - optional third interrupt cell for Wake-on-LAN can be specified -- local-mac-address: Ethernet MAC address (48 bits) of this adapter -- phy-mode: Should be a string describing the PHY interface to the - Ethernet switch/PHY, see Documentation/devicetree/bindings/net/ethernet.txt -- fixed-link: see Documentation/devicetree/bindings/net/fixed-link.txt for - the property specific details - -Optional properties: -- systemport,num-tier2-arb: number of tier 2 arbiters, an integer -- systemport,num-tier1-arb: number of tier 1 arbiters, an integer -- systemport,num-txq: number of HW transmit queues, an integer -- systemport,num-rxq: number of HW receive queues, an integer -- clocks: When provided, must be two phandles to the functional clocks nodes of - the SYSTEMPORT block. The first phandle is the main SYSTEMPORT clock used - during normal operation, while the second phandle is the Wake-on-LAN clock. -- clock-names: When provided, names of the functional clock phandles, first - name should be "sw_sysport" and second should be "sw_sysportwol". - -Example: -ethernet@f04a0000 { - compatible = "brcm,systemport-v1.00"; - reg = <0xf04a0000 0x4650>; - local-mac-address = [ 00 11 22 33 44 55 ]; - fixed-link = <0 1 1000 0 0>; - phy-mode = "gmii"; - interrupts = <0x0 0x16 0x0>, - <0x0 0x17 0x0>; -}; diff --git a/Documentation/devicetree/bindings/net/brcm,systemport.yaml b/Documentation/devicetree/bindings/net/brcm,systemport.yaml new file mode 100644 index 000000000000..44781027ed37 --- /dev/null +++ b/Documentation/devicetree/bindings/net/brcm,systemport.yaml @@ -0,0 +1,82 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/brcm,systemport.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom BCM7xxx Ethernet Systemport Controller (SYSTEMPORT) + +maintainers: + - Florian Fainelli + +properties: + compatible: + enum: + - brcm,systemport-v1.00 + - brcm,systemportlite-v1.00 + - brcm,systemport + + reg: + maxItems: 1 + + interrupts: + minItems: 2 + items: + - description: interrupt line for RX queues + - description: interrupt line for TX queues + - description: interrupt line for Wake-on-LAN + + clocks: + items: + - description: main clock + - description: Wake-on-LAN clock + + clock-names: + items: + - const: sw_sysport + - const: sw_sysportwol + + "systemport,num-tier2-arb": + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Number of tier 2 arbiters + + "systemport,num-tier1-arb": + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Number of tier 2 arbiters + + "systemport,num-txq": + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Number of HW transmit queues + + "systemport,num-rxq": + $ref: /schemas/types.yaml#/definitions/uint32 + description: + Number of HW receive queues + +required: + - reg + - interrupts + - phy-mode + +allOf: + - $ref: "ethernet-controller.yaml#" + +additionalProperties: true + +examples: + - | + ethernet@f04a0000 { + compatible = "brcm,systemport-v1.00"; + reg = <0xf04a0000 0x4650>; + local-mac-address = [ 00 11 22 33 44 55 ]; + phy-mode = "gmii"; + interrupts = <0x0 0x16 0x0>, + <0x0 0x17 0x0>; + fixed-link { + speed = <1000>; + full-duplex; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 6b32420bd9bd..8f544447ef94 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3983,6 +3983,7 @@ L: netdev@vger.kernel.org S: Supported F: drivers/net/ethernet/broadcom/bcmsysport.* F: drivers/net/ethernet/broadcom/unimac.h +F: Documentation/devicetree/bindings/net/brcm,systemport.yaml BROADCOM TG3 GIGABIT ETHERNET DRIVER M: Siva Reddy Kallam From patchwork Wed Dec 1 17:56:51 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12650525 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A5862C433EF for ; Wed, 1 Dec 2021 18:00:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JvqYl1XOdskGfw5GOpo2Rsx2cFcNv9C9sqbtHc1QmEQ=; b=bjGO0leiiwrwDN KjGSgg29U1QYm7+n8FhPlA1UauSJtghebBwGzIt1uBXFTM20GZYedlI5uZp9K7sV4XgsQ9gb6M0zB aevsOpbs/AdYZ0MhM4B8UgXdfURN6ScO8YwEeg+s5uNLoPdOZrKFkSD17Ut/5VIpi/4eSKsJ3/AwD UaAHOhp70rSkuRxbxeS3X98GJyhxkJIMbyeAjcko7bdXb4zRYyTo6m64l26NGUPyJMS7iLlyZsXQ9 4h4VQ9a6c5ZRr2wIjqrSETph2fUjyrDv7Ui494mgDflCZOjnyMJwIuy0DZ0Q5cKZfIx/6bFrvLsrU 8tAo5GF0j9zfrWrdT/ZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msTuA-009f4G-21; Wed, 01 Dec 2021 18:00:30 +0000 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msTqx-009dNa-Oe; Wed, 01 Dec 2021 17:57:14 +0000 Received: by mail-pf1-x42f.google.com with SMTP id r130so25380176pfc.1; Wed, 01 Dec 2021 09:57:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=bJLAlkJ/cxw+eyGZ9fDi2T+PE+wgI5zX9dIEMcgJMjY=; b=Qyo+pzKgsFCVfOlb4dyi73lunH8IE1N29oD+sxOyT4m+d4sd28zxj6gg8+vLA4juRi MWfJm962msCTfVYiYWMazlj0+sumH3CTiYjo18k3n2Xa6ScxYqrflfhLyeAdzFWrqe1g bnfASC/7k/90Ytjq5sz+V2vq3UoZeH3EwLAMQxrvdWNShPn0ExAVH6d3exdid4h0dxPr T8tMQgce8xJZhgn7Qf9j9Vy8Hv0kopRMLDMflmJkiuCrDCjZUenpG6rCFxxT+o5ef1Zo uwN1e2PYAspfjuGDheUmO5lAztUbwE46QHIpOZrykROM9/kK1F7PeZ/1Gr9R/h4yqopP T8ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=bJLAlkJ/cxw+eyGZ9fDi2T+PE+wgI5zX9dIEMcgJMjY=; b=deu1T+EFhuAtevJ01VL5ti+/EUqLBmRwVIO8AhYqeRmbtGf0AVA+Z+jUPZ4pWjFXC1 b4IbiYEWGDw5OAUPp9kWvpFD7wO1zRNvMOV4A+iVi6LOe1EiXOXaOhxe9vMh3DsNz7Fa jV8/IdYhanK8u14VnGR3spbuG+Jp/E9SxD/aconachSrZIINMyepo0wQV2sAgcBHqoZx PQbIIwYPMtU/CtmtKifb8b8Y1LdkdhwoedsefRhtIEAYM19JSU4d/szxqgMNJUh418eS bDPazZFvEJwD7Qwk3kWKn5xUhMXVZD2Nk6YB2HPI8nc8nesJFCo2nPJIpfak3ME7j56m IOKg== X-Gm-Message-State: AOAM531OiVld5qNlWAaxz9qPAbVlfpQl8YV22RITqXoY7eXDju0q4I1L PaaI3HHvdEx5UjKWomoFFzM= X-Google-Smtp-Source: ABdhPJwe3ruUZmU6OnzQoco26j6kjb+HTO53lAZezwc2l9peDxVHgobRFTRy7D35z4uvygUNiHSotA== X-Received: by 2002:a63:6116:: with SMTP id v22mr5483761pgb.324.1638381430562; Wed, 01 Dec 2021 09:57:10 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id j13sm471546pfc.151.2021.12.01.09.57.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 09:57:10 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , "David S. Miller" , Jakub Kicinski , Rob Herring , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM IPROC GBIT ETHERNET DRIVER), Doug Berger , Ray Jui , Scott Branden , Kishon Vijay Abraham I , Vinod Koul , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM IPROC ARM ARCHITECTURE), linux-phy@lists.infradead.org (open list:GENERIC PHY FRAMEWORK) Subject: [PATCH net-next v2 8/9] dt-bindings: phy: Convert Northstar 2 PCIe PHY to YAML Date: Wed, 1 Dec 2021 09:56:51 -0800 Message-Id: <20211201175652.4722-9-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211201175652.4722-1-f.fainelli@gmail.com> References: <20211201175652.4722-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211201_095711_825905_ED28DD56 X-CRM114-Status: GOOD ( 16.52 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Convert the Broadcom Northstar 2 PCIe PHY Device Tree binding to YAML and rename it accordingly in the process since it had nothing to do with a MDIO mux on the PCI(e) bus. This is a pre-requisite to updating another binding file to YAML. Signed-off-by: Florian Fainelli --- .../bindings/phy/brcm,mdio-mux-bus-pci.txt | 27 ------------ .../bindings/phy/brcm,ns2-pcie-phy.yaml | 41 +++++++++++++++++++ 2 files changed, 41 insertions(+), 27 deletions(-) delete mode 100644 Documentation/devicetree/bindings/phy/brcm,mdio-mux-bus-pci.txt create mode 100644 Documentation/devicetree/bindings/phy/brcm,ns2-pcie-phy.yaml diff --git a/Documentation/devicetree/bindings/phy/brcm,mdio-mux-bus-pci.txt b/Documentation/devicetree/bindings/phy/brcm,mdio-mux-bus-pci.txt deleted file mode 100644 index 5b51007c6f24..000000000000 --- a/Documentation/devicetree/bindings/phy/brcm,mdio-mux-bus-pci.txt +++ /dev/null @@ -1,27 +0,0 @@ -* Broadcom NS2 PCIe PHY binding document - -Required bus properties: -- reg: MDIO Bus number for the MDIO interface -- #address-cells: must be 1 -- #size-cells: must be 0 - -Required PHY properties: -- compatible: should be "brcm,ns2-pcie-phy" -- reg: MDIO Phy ID for the MDIO interface -- #phy-cells: must be 0 - -This is a child bus node of "brcm,mdio-mux-iproc" node. - -Example: - -mdio@0 { - reg = <0x0>; - #address-cells = <1>; - #size-cells = <0>; - - pci_phy0: pci-phy@0 { - compatible = "brcm,ns2-pcie-phy"; - reg = <0x0>; - #phy-cells = <0>; - }; -}; diff --git a/Documentation/devicetree/bindings/phy/brcm,ns2-pcie-phy.yaml b/Documentation/devicetree/bindings/phy/brcm,ns2-pcie-phy.yaml new file mode 100644 index 000000000000..70eb48b391c9 --- /dev/null +++ b/Documentation/devicetree/bindings/phy/brcm,ns2-pcie-phy.yaml @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/phy/brcm,ns2-pcie-phy.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Broadcom NS2 PCIe PHY binding document + +maintainers: + - Ray Jui + - Scott Branden + +properties: + compatible: + const: brcm,ns2-pcie-phy + + reg: + maxItems: 1 + + "#phy-cells": + const: 0 + +required: + - compatible + - reg + - "#phy-cells" + +additionalProperties: false + +examples: + - | + mdio { + #address-cells = <1>; + #size-cells = <0>; + + pci-phy@0 { + compatible = "brcm,ns2-pcie-phy"; + reg = <0x0>; + #phy-cells = <0>; + }; + }; From patchwork Wed Dec 1 17:56:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12650527 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 78CA9C4332F for ; Wed, 1 Dec 2021 18:01:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=DX4Cw948QNsGYVz689pOVsjNkEDvocBH+I0pKTrFaSk=; b=E8Ie5RVmZJvf/p GgYqDDU7oTLndo+Bi6TGKRwJMmTV/QUrKVE+xxPyvuaazOPV2eUCK416cIocOphnCXqXxYOBh1B0n vPnlw5ROtMo7BHCMUw991j1wJQmw2R1sjiAhYVG50vTCgbLYMhQ7zZa6KKQMb0RjsqC+x37WZJmxH oviBPzphoZNxxRx4U1JyVuiOiQkVWGLmsJs7XOpGCJx9aZmlv5fndVqqdaZKoEI9QD9/lEYwvWWek j7jg04bXM4V8rdqT1td0sjEysuht0Mctpu18XTEYsVuC31qMXAyJ+mUSX+ikYTOzQ2vp0X0wOipvb 8V2gEE3DN9w7NyM0j83A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msTup-009fQG-PA; Wed, 01 Dec 2021 18:01:11 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msTqz-009dO2-29; Wed, 01 Dec 2021 17:57:14 +0000 Received: by mail-pj1-x1030.google.com with SMTP id gx15-20020a17090b124f00b001a695f3734aso2326393pjb.0; Wed, 01 Dec 2021 09:57:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CofjtoS3C2UlVTL2mQI4/sEc5MpZ6MET1C9W9dcnuEY=; b=ZjxD5mfNKE0pXHW6k9ghM+tWQSVZYKoGXbrLill2uMs7FqfBnfkzmHZ+TbPfExjMWM BmlGqmvLnMaldY0AHFiDAdtmGCEtQwNjlZKkOIEvFidzRkIwEh94Rp426QFn5rM4P22y rEARxHCbXBsSMjzDC7C8DVUJDp87vkSpln1yMnlNYd6qVTAL07PQIArzI+4Rjc3aJ8g+ 6PlwKlrsbE13BT+6e6MRRNt2Mcq8u4gnnaJTkJtvoei3fPf/OQcGGN9hvz4Hk+LAijG/ prWc0pdBHX5K38xsob1MvBRrfEA11/kN/T/1EmaBvAI9Nh2Zmrs0QTf3Qla9LFT5Qr1P iNfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CofjtoS3C2UlVTL2mQI4/sEc5MpZ6MET1C9W9dcnuEY=; b=EqOjYcKxZxqmwdNi9xq9czOaYJHfKn29c/Rf9uH1Id5m9TtPc50rR9bhSC/hfLBNwB 0CQenaJJBDw/qYutB+NEVc+kmbUWJt+tUOO6vwM2lAN0yL/N1CeXU9S1Y2X5AuZjQL3Z iO7k+DQXWkW39NxbbwwbTEP865Ib85dA65xX43zebiwdf/lh3Wu0z4IuiMxoKjZjY3Je XnBQrWA3mcZAVBKoXCLyXcxsLT1bBhQB/IkIihrbUEef1PbF+0cbwe0dKc4qAG9QMHX6 uJhEvIHgD7Fb/DRiOTwQ3P2u9jdeJWHdu4BofmH8OZFSijhMTjeO3ar0Zk9JhY8Kmunk dYeA== X-Gm-Message-State: AOAM532LOUeYpqQGT8CnAbabB61DTOfxTfgWU7fzpfiD/pByR28ZBhPM WRcMJgbjFUk9Qa2pdXo6pnQ= X-Google-Smtp-Source: ABdhPJxf0xUb0pM/R2FfaUGrqutQC3ervh7m6lZSWlFbf/8bNQDZfoq9aeCNta6kbyPIKHx/iYK1vQ== X-Received: by 2002:a17:90b:1e07:: with SMTP id pg7mr9256037pjb.93.1638381431891; Wed, 01 Dec 2021 09:57:11 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id j13sm471546pfc.151.2021.12.01.09.57.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 09:57:11 -0800 (PST) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , "David S. Miller" , Jakub Kicinski , Rob Herring , =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , bcm-kernel-feedback-list@broadcom.com (maintainer:BROADCOM IPROC GBIT ETHERNET DRIVER), Doug Berger , Ray Jui , Scott Branden , Kishon Vijay Abraham I , Vinod Koul , devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-kernel@vger.kernel.org (open list), linux-arm-kernel@lists.infradead.org (moderated list:BROADCOM IPROC ARM ARCHITECTURE), linux-phy@lists.infradead.org (open list:GENERIC PHY FRAMEWORK) Subject: [PATCH net-next v2 9/9] dt-bindings: net: Convert iProc MDIO mux to YAML Date: Wed, 1 Dec 2021 09:56:52 -0800 Message-Id: <20211201175652.4722-10-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211201175652.4722-1-f.fainelli@gmail.com> References: <20211201175652.4722-1-f.fainelli@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211201_095713_134672_40E21E64 X-CRM114-Status: GOOD ( 16.56 ) X-BeenThere: linux-phy@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux Phy Mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-phy" Errors-To: linux-phy-bounces+linux-phy=archiver.kernel.org@lists.infradead.org Conver the Broadcom iProc MDIO mux Device Tree binding to YAML. Signed-off-by: Florian Fainelli --- .../bindings/net/brcm,mdio-mux-iproc.txt | 62 -------------- .../bindings/net/brcm,mdio-mux-iproc.yaml | 80 +++++++++++++++++++ 2 files changed, 80 insertions(+), 62 deletions(-) delete mode 100644 Documentation/devicetree/bindings/net/brcm,mdio-mux-iproc.txt create mode 100644 Documentation/devicetree/bindings/net/brcm,mdio-mux-iproc.yaml diff --git a/Documentation/devicetree/bindings/net/brcm,mdio-mux-iproc.txt b/Documentation/devicetree/bindings/net/brcm,mdio-mux-iproc.txt deleted file mode 100644 index deb9e852ea27..000000000000 --- a/Documentation/devicetree/bindings/net/brcm,mdio-mux-iproc.txt +++ /dev/null @@ -1,62 +0,0 @@ -Properties for an MDIO bus multiplexer found in Broadcom iProc based SoCs. - -This MDIO bus multiplexer defines buses that could be internal as well as -external to SoCs and could accept MDIO transaction compatible to C-22 or -C-45 Clause. When child bus is selected, one needs to select these two -properties as well to generate desired MDIO transaction on appropriate bus. - -Required properties in addition to the generic multiplexer properties: - -MDIO multiplexer node: -- compatible: brcm,mdio-mux-iproc. - -Every non-ethernet PHY requires a compatible so that it could be probed based -on this compatible string. - -Optional properties: -- clocks: phandle of the core clock which drives the mdio block. - -Additional information regarding generic multiplexer properties can be found -at- Documentation/devicetree/bindings/net/mdio-mux.yaml - - -for example: - mdio_mux_iproc: mdio-mux@66020000 { - compatible = "brcm,mdio-mux-iproc"; - reg = <0x66020000 0x250>; - #address-cells = <1>; - #size-cells = <0>; - - mdio@0 { - reg = <0x0>; - #address-cells = <1>; - #size-cells = <0>; - - pci_phy0: pci-phy@0 { - compatible = "brcm,ns2-pcie-phy"; - reg = <0x0>; - #phy-cells = <0>; - }; - }; - - mdio@7 { - reg = <0x7>; - #address-cells = <1>; - #size-cells = <0>; - - pci_phy1: pci-phy@0 { - compatible = "brcm,ns2-pcie-phy"; - reg = <0x0>; - #phy-cells = <0>; - }; - }; - mdio@10 { - reg = <0x10>; - #address-cells = <1>; - #size-cells = <0>; - - gphy0: eth-phy@10 { - reg = <0x10>; - }; - }; - }; diff --git a/Documentation/devicetree/bindings/net/brcm,mdio-mux-iproc.yaml b/Documentation/devicetree/bindings/net/brcm,mdio-mux-iproc.yaml new file mode 100644 index 000000000000..a576fb87bfc8 --- /dev/null +++ b/Documentation/devicetree/bindings/net/brcm,mdio-mux-iproc.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/net/brcm,mdio-mux-iproc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MDIO bus multiplexer found in Broadcom iProc based SoCs. + +maintainers: + - Florian Fainelli + +description: + This MDIO bus multiplexer defines buses that could be internal as well as + external to SoCs and could accept MDIO transaction compatible to C-22 or + C-45 Clause. When child bus is selected, one needs to select these two + properties as well to generate desired MDIO transaction on appropriate bus. + +allOf: + - $ref: /schemas/net/mdio-mux.yaml# + +properties: + compatible: + const: brcm,mdio-mux-iproc + + reg: + maxItems: 1 + + clocks: + maxItems: 1 + description: core clock driving the MDIO block + + +required: + - compatible + - reg + +unevaluatedProperties: false + +examples: + - | + mdio_mux_iproc: mdio-mux@66020000 { + compatible = "brcm,mdio-mux-iproc"; + reg = <0x66020000 0x250>; + #address-cells = <1>; + #size-cells = <0>; + + mdio@0 { + reg = <0x0>; + #address-cells = <1>; + #size-cells = <0>; + + pci_phy0: pci-phy@0 { + compatible = "brcm,ns2-pcie-phy"; + reg = <0x0>; + #phy-cells = <0>; + }; + }; + + mdio@7 { + reg = <0x7>; + #address-cells = <1>; + #size-cells = <0>; + + pci_phy1: pci-phy@0 { + compatible = "brcm,ns2-pcie-phy"; + reg = <0x0>; + #phy-cells = <0>; + }; + }; + + mdio@10 { + reg = <0x10>; + #address-cells = <1>; + #size-cells = <0>; + + gphy0: eth-phy@10 { + reg = <0x10>; + }; + }; + };