From patchwork Wed Dec 1 04:12:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12648985 X-Patchwork-Delegate: kuba@kernel.org 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5B82C433F5 for ; Wed, 1 Dec 2021 04:12:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346541AbhLAEP6 (ORCPT ); Tue, 30 Nov 2021 23:15:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46856 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346514AbhLAEPz (ORCPT ); Tue, 30 Nov 2021 23:15:55 -0500 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64B05C061574; Tue, 30 Nov 2021 20:12:35 -0800 (PST) Received: by mail-pg1-x52e.google.com with SMTP id 137so15113910pgg.3; Tue, 30 Nov 2021 20:12:35 -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=qSxFvZRknsXn+NMy9FJpvfYA6ddl2zjmyPxFcHCzG6A2qoZtqPftfVphIHBEEkDLvH R2LmAsnQYSxyuHkjT+YuUwsr2+WV6FxFvRQohZDTnPCPXe5GKyqDve/we7eKlUWKOzli 6LtFEA8lvE72ESGx5/xW+F1n1vMIIweJICjX8hF/aIpFbfpfq+btDpftL+i7M/WfRzgu REaBeIsO9Ec6Nbm2T8KwsCX+Qh/gBB2h3nsXYSet/sGD4icwDaUbZPxZIDR0r3WHnv1e 7z4gQwJt2+rmwMTiBfGPsBDSnYOvdXfvzlEp0GzHFKycjdqnj7F8RQ7+d0EQR6BilcGs sLfw== 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=VkkHbgmJVuqS1kRHGSiBUIflTxhauoHt33RRo0ThCDAee2j0PtoYennd/Z22XDqt+j 3P0gRuvpx6W1eESF/D54TNbHEt9Y5FqXTjPyGC2QjBMPZqvTEmRI1l4riY3CRFt188Xn BZb8mflLRRDGBZ3W8xFWHsphqtjPlRe48mPNbcrsz715pFQGQwEEsQ0dmOhsopzGHylu GeHNxqYVLn9pKFbzm4OaE/ZYDNqtc4mTPDo2iwSX0Qq+QO7WWv9hE32Rl8PmIAXO3PYk sksbbVVMe2OMvTLMVM9yAXdYi13BM2W8s5YEEJPxZk5RAQzBoIDOUxAcx2sISNuVRq4Q RRgg== X-Gm-Message-State: AOAM531MzJosK1UbUMRylvlEoAHr/sDuXdpVRwwGeCV1t66O6t/jsuzZ HRbj0zuINTQC3slK5O/l1rD2MKn3mDQ= X-Google-Smtp-Source: ABdhPJyWbdwX768kqwq3ZiVkyd0yQ0A0wFNMVmq2k3vn+txLIVL1r1iQIJqSDIMuqiYaqniSn7bbcQ== X-Received: by 2002:a63:2ccd:: with SMTP id s196mr2776647pgs.77.1638331954610; Tue, 30 Nov 2021 20:12:34 -0800 (PST) Received: from 7YHHR73.igp.broadcom.net ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id s8sm4296451pfe.196.2021.11.30.20.12.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Nov 2021 20:12:34 -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 , 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) Subject: [PATCH net-next 1/7] dt-bindings: net: brcm,unimac-mdio: reg-names is optional Date: Tue, 30 Nov 2021 20:12:22 -0800 Message-Id: <20211201041228.32444-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211201041228.32444-1-f.fainelli@gmail.com> References: <20211201041228.32444-1-f.fainelli@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.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 04:12:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12648987 X-Patchwork-Delegate: kuba@kernel.org 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1AE5CC433F5 for ; Wed, 1 Dec 2021 04:12:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346550AbhLAEQB (ORCPT ); Tue, 30 Nov 2021 23:16:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346533AbhLAEP5 (ORCPT ); Tue, 30 Nov 2021 23:15:57 -0500 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1906AC061574; Tue, 30 Nov 2021 20:12:37 -0800 (PST) Received: by mail-pf1-x42e.google.com with SMTP id r130so23025625pfc.1; Tue, 30 Nov 2021 20:12:37 -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=QdiAYp+97KXoewPidJZ/CPoptc+O5S04qu4lfywjTeVcO6quxgTwr4NeRF5tyrCKOh aL5Hts6+fQhN6Y3dIdC1+D0lUj6IsbGyAxoDyvtosNYoqf/+YvULN94IQIGm8EBIJhja 6Ua8GmOGgYjCSBgdqgH1lKmdwV6JcP5fcTPGbYWU6Zd9hXIRkZx5A+p0msyUTMKLwuNc 0abJA24r0KX4ddVMiV5LZOKDwBoY87N2xC+54Nvytr6o8QZ8ajwZXgKvGfwBXwST8LZ7 tPbQLBMLA9J7mFMGSkg2Shc5mPpf9Z8jP8k79taMAhedBCWIJA5eppA52dop5KdbCuqO UJyA== 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=JgrRT69svyh9rgilOrETzbtCj4kPFrp6qKTuA1282XTrO2lzybhYjC2/e0c1/Xn+30 MbxHx0lx+N3YLz4DE8mo2gCyK7OhSfuXn5XkUO7X4wI12wof1cK3wF54HHzKoN0kI4Pv xDFQYEXQz8tYwT3B1GjKGC+6xLIcu/9LAtpUcCSgAfFARXSOPPWxnCpAah6JASGMKL0e jTnyB/YZsL0ifpw/CqNoEMBUdB0ksw30In7jjRk7brZ4NTEakRKVCor1i9ydUSIe1rX4 MRTs/RJd96h686WqJFujUwke81EiJe3Hn5humzHmyYWHGZPowwKpP1Z8Ho9ETwxUh/gp nnBQ== X-Gm-Message-State: AOAM533Pag8HPSRcNWSqS0yQFOqgKSG9WJGMnqcNZuL88yLwEXOLsQMx BzZdmZDOZ5eEIYhEgb11c+SfRCrj30w= X-Google-Smtp-Source: ABdhPJyCEyg78fsDQ4KPjxXMj3FgSjwpzhxdII+VMQ4ikaksZUeq/cGuryfwn/8rilQJn2KwlbBQAQ== X-Received: by 2002:a63:d00e:: with SMTP id z14mr2789546pgf.300.1638331956280; Tue, 30 Nov 2021 20:12:36 -0800 (PST) Received: from 7YHHR73.igp.broadcom.net ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id s8sm4296451pfe.196.2021.11.30.20.12.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Nov 2021 20:12:35 -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 , 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) Subject: [PATCH net-next 2/7] dt-bindings: net: brcm,unimac-mdio: Update maintainers for binding Date: Tue, 30 Nov 2021 20:12:23 -0800 Message-Id: <20211201041228.32444-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211201041228.32444-1-f.fainelli@gmail.com> References: <20211201041228.32444-1-f.fainelli@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.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 04:12:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12648989 X-Patchwork-Delegate: kuba@kernel.org 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3CEFDC433EF for ; Wed, 1 Dec 2021 04:12:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346566AbhLAEQK (ORCPT ); Tue, 30 Nov 2021 23:16:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346545AbhLAEP7 (ORCPT ); Tue, 30 Nov 2021 23:15:59 -0500 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6D2AC06174A; Tue, 30 Nov 2021 20:12:38 -0800 (PST) Received: by mail-pl1-x634.google.com with SMTP id v19so16642458plo.7; Tue, 30 Nov 2021 20:12:38 -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=xVoKWeNn56cuTdwEaWw3q49t3mf9LKbZIeR0Fnf7eBw=; b=oUlryFWFGsPsidH/+KD18ZO9ozd5oVMB+0TrJ5h5RZvVMB4WSiN8X8+H65psjlCb2Y RDzTI1nWljrW03lbHbHAH/EipRyffWEEMmX9V78zsFJVO7Pg9qsV0mOpJrZbmBDO3WFx jQcd4kuNNFmUknK7RRBXEbeEFdKvkEOfxbYjvvAceAi2gI2cUGNi+OvViR8vVjwQZ6wr /+zqguvN5kz7ESjuC89/9KGmTCNZiGv8OjRR5csP2YhqkEcj494sZgEMbr3JoFqhrdLC vLeMYP8wOt+9rDNPrgINrqGrdhNropwjvUvOLzySJZmNrpJkh8rcEnst4ijnEHIdnFyS f7vg== 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=xVoKWeNn56cuTdwEaWw3q49t3mf9LKbZIeR0Fnf7eBw=; b=VrTCh6g2MQQ84LI7zuN1TwCgZZpbvu6O/VoM7AJ7p66AJcazSa09jzKb0yzgZP4rjs 67ujZ4JrcV2e7Sdq4oURapDc+SoJmuU2/HMyCNxRG75MOAytWScbZImIPOG0PTkLFBH6 llmVHZI4TgATUAsFECDyKAqxQ1sJ+eCqdaICz2GCUP2jH4aciUv2wOg/BA4zIvFWQuo/ tR3juD0QyJnmTfiE8oiW4r53Vf8Qw/OgctImRMN/XI99waFP/8L/hdbF56ypa52AzURL MjfC3+Vs4zV6r1zvlUOQAnLgez91XxGYsTfCdycidoFNQsNnJNdk/MNii2ZGMldr6nxk SZsg== X-Gm-Message-State: AOAM530ORt99FJqP1L1vy95Tyf2mNp+kxFWv1WLuozKtOEYoSnfqzEL3 8VPoPz5ki6zmgoQsM89FcVrQD3u7iHs= X-Google-Smtp-Source: ABdhPJw2AIxSo0x8NdgHNJxKTcL0OCdOReI7qQTHHWdOvAKRA5PnBfFNSHUM4cdSjI4e1TbRDL+GsQ== X-Received: by 2002:a17:90a:bb84:: with SMTP id v4mr4412675pjr.4.1638331957919; Tue, 30 Nov 2021 20:12:37 -0800 (PST) Received: from 7YHHR73.igp.broadcom.net ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id s8sm4296451pfe.196.2021.11.30.20.12.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Nov 2021 20:12:37 -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 , 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) Subject: [PATCH net-next 3/7] dt-bindings: net: Document moca PHY interface Date: Tue, 30 Nov 2021 20:12:24 -0800 Message-Id: <20211201041228.32444-4-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211201041228.32444-1-f.fainelli@gmail.com> References: <20211201041228.32444-1-f.fainelli@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.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 b0933a8c295a..31bfec8bb674 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 04:12:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12648991 X-Patchwork-Delegate: kuba@kernel.org 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 82812C433EF for ; Wed, 1 Dec 2021 04:12:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346593AbhLAEQM (ORCPT ); Tue, 30 Nov 2021 23:16:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346552AbhLAEQC (ORCPT ); Tue, 30 Nov 2021 23:16:02 -0500 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E4BBC061757; Tue, 30 Nov 2021 20:12:40 -0800 (PST) Received: by mail-pg1-x52d.google.com with SMTP id 71so22186374pgb.4; Tue, 30 Nov 2021 20:12:40 -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=S6MkhaIHME8udF9GGOHXv3Gk6l/Mg/lYh8+TNbZFaI0=; b=Gwoa4drV5DpGfWUKssMGYOHR//e5TJYyP1J9r7wwqpCIIGwPWujeg4lQuxSTXSy1s+ aMCIdh4YiPfeNSepLNCJnO/jvY8pssca7FL33146Gc7aP49bJR9M62zGw0GA/AlAyi1E Bdtkek9AGLnnkeEayp9s4X7uOXc+YAh6gBWJjo8U+9ScpL2WMBo6+B/WV5tgu+bdPHca Q8kTaFuKgrDWVwC0hdiFn5ep0umYUr3wMcTN8vzlN+g+gJUJEWd/GILUrELml6VLFpLm 3KcMIp+2bykc7fBJdaVxnE3zn1uoeFh61FyFMTl54HHQzN6SxXQSswPYwyHZk5Z0Zro5 ozng== 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=S6MkhaIHME8udF9GGOHXv3Gk6l/Mg/lYh8+TNbZFaI0=; b=R5uQCi07GOLnyS4bzz5Aq8vY1Z1RkxIKLUK/NlAEnc1LDlNqFNzpjwQ0+Q8WlPG8jr jlONI5KA4g/9CQzMj/HcghfqzZnU9ie61EPmOkcx3pdiFi2KFjmLSkdaYxIHcg7xIUY7 7AWsBorsoAUuZ7pugn27M8KJRCJtGxYY4cvBrPVTlUUa91kSqdF25B9h7Id5NhfEn++u 7AVZipNQfrzC/xrmQieEVXwAmwoUjAiia+4v1zrE/kjCgn7SXQGShkIvW8uEs8ITzg4W Uzcc/oM899elmYxxPtLRJdBn8vOLm0kPvBrXIImAbSyGuZ3vqzq+3sK55f3dDStEQdWn SfoQ== X-Gm-Message-State: AOAM530uEqnYBqlCuk8mW7y8RiDemeXVbqRHpJpBvnbMx3wnsm5g2D6X eKPW/zziRpz1F9ZfLKp00/+J9VKtN2o= X-Google-Smtp-Source: ABdhPJxRf1uxWNKwa+wdIf+UoSvUN1Rl464eu8ICPeCv1mBsXX4jMtDHbFTHYu3HWUT4a/gdYlm6Nw== X-Received: by 2002:a63:293:: with SMTP id 141mr2819081pgc.25.1638331959583; Tue, 30 Nov 2021 20:12:39 -0800 (PST) Received: from 7YHHR73.igp.broadcom.net ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id s8sm4296451pfe.196.2021.11.30.20.12.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Nov 2021 20:12:39 -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 , 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) Subject: [PATCH net-next 4/7] dt-bindings: net: Convert GENET binding to YAML Date: Tue, 30 Nov 2021 20:12:25 -0800 Message-Id: <20211201041228.32444-5-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211201041228.32444-1-f.fainelli@gmail.com> References: <20211201041228.32444-1-f.fainelli@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.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 | 146 ++++++++++++++++++ MAINTAINERS | 2 +- 3 files changed, 147 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..a500ccf1ed3e --- /dev/null +++ b/Documentation/devicetree/bindings/net/brcm,bcmgenet.yaml @@ -0,0 +1,146 @@ +# 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 + maxItems: 3 + items: + - description: general purpose interrupt line + - description: RX and TX rings interrupt line + - description: Wake-on-LAN interrupt line + + + clocks: + minItems: 1 + maxItems: 3 + items: + - description: main clock + - description: EEE clock + - description: Wake-on-LAN clock + + clock-names: + minItems: 1 + maxItems: 3 + 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: + - | + 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 04:12:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12648993 X-Patchwork-Delegate: kuba@kernel.org 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DF79FC43217 for ; Wed, 1 Dec 2021 04:12:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346574AbhLAEQN (ORCPT ); Tue, 30 Nov 2021 23:16:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346543AbhLAEQJ (ORCPT ); Tue, 30 Nov 2021 23:16:09 -0500 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BDDEC06175E; Tue, 30 Nov 2021 20:12:42 -0800 (PST) Received: by mail-pj1-x1035.google.com with SMTP id nn15-20020a17090b38cf00b001ac7dd5d40cso246003pjb.3; Tue, 30 Nov 2021 20:12:42 -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=Ghs9h0Wn3m4GG42iSZLt5BTn7S2LUyXpA+w/Xs7MsHuanlP1am/7Khp9yh4vfsRNNF jkCQ2cTLm8tSfWSqheDaIOfjCnC/nDgG9U1sg39deZhOCFMknAKaOsezXsuVMYvWuhEi iAiIAhM/tjxp8lMsYh2vbj3guQios5F45ko5+mydZOJzA4Ej2lSA/2O7/RVUj8DHzEGK UfbZRbvjbUJ6fOcRWLM0kS+qGJrjUDZ1cReMRgutYKlTSufvyLasSPIr/eoJdCIo2qce sFKAwk7+mjopTLR63E7Ccp72qELJ39fqn1+fQrsv84dOW428n/WpydNGSTY/eKxF6Rzx L3/A== 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=uLP07ZKR18CdGlBx5P1NoDieZdrUfNKVdW6jGiPT8xmvEPnDT0PuqTk0CuaKHAXooJ kiW1D4qwfUT8bmcj3vbj2LtLoPHK9r9rHJrzz2v1bueFzKYnRrfQkV9j7s10iI3qSkzE /vxQZ/rtD3MdPihGG7E5Hkd4aoyUuZj+w66ToXBVjySrC7nILwWkG+flnKLqjaVeS+XG xGTeP26FVffaRmpT0zXX/fOuk1dNgn3/ssUB89xU8htY87iJDWApzJLtz5YkMCgJg6yU 01aARrcDKHSUEIC3BDobEsA3cjtLe/Vni28IrQ9OtXKHg7ELnEWA5QNCJFr8faSfo24f Gqgg== X-Gm-Message-State: AOAM530Eov3sZgmegqSpvJAPSQDQm5EBoMxgAhLb6QWbYwwad3iEQpEO NEdTeb1gNwvk0ZbMUwj2+sy+svFzY+4= X-Google-Smtp-Source: ABdhPJz+AGJrWdIboGE4ESLzP2gQL0G1mkxQUQYapwquMrl2Sdr59PkdZxUMOJWz2TJCza5Ier3z6w== X-Received: by 2002:a17:90a:e389:: with SMTP id b9mr4173549pjz.235.1638331961253; Tue, 30 Nov 2021 20:12:41 -0800 (PST) Received: from 7YHHR73.igp.broadcom.net ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id s8sm4296451pfe.196.2021.11.30.20.12.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Nov 2021 20:12:40 -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 , 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) Subject: [PATCH net-next 5/7] dt-bindings: net: Convert AMAC to YAML Date: Tue, 30 Nov 2021 20:12:26 -0800 Message-Id: <20211201041228.32444-6-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211201041228.32444-1-f.fainelli@gmail.com> References: <20211201041228.32444-1-f.fainelli@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.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 04:12:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12648995 X-Patchwork-Delegate: kuba@kernel.org 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23FECC433FE for ; Wed, 1 Dec 2021 04:13:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346653AbhLAEQX (ORCPT ); Tue, 30 Nov 2021 23:16:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346579AbhLAEQJ (ORCPT ); Tue, 30 Nov 2021 23:16:09 -0500 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCFA0C061761; Tue, 30 Nov 2021 20:12:43 -0800 (PST) Received: by mail-pj1-x102d.google.com with SMTP id gf14-20020a17090ac7ce00b001a7a2a0b5c3so19971346pjb.5; Tue, 30 Nov 2021 20:12:43 -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=QnOl9pS4YwArjHGgjzz1ujnilCqfZpwQuY83gQxN+dA=; b=ju6S4vdD6ks7/xXMnbMwpIcH15H08wA41nE9cOZreOJUXUqkjNYmJZ952hyUOMBblI 3N7PIEyU3n/37cwWztiUNK7FHp8sPHElKuVQ9v+2AlN2cRKiv/8QDAikpRDMl6ysBWES 6KCa6BlcGGDWnaI9mfX568u+F0vB/pJiUd8WLbN6hE4NCV0WpMkfRDboYAPDtf0cN8zD oHT8ZbXGtIVdDEb90fc7yozBRL88ZPixijWyHKq9Eu64uNaLPbMLQmq0rhWg0wkDqPlT 3w47CklvAjALTCLi8hJtPYVsMdguWKamknXlxWy3aZNi1XgOngenRW1oRQi2kkyrC9Na qpCw== 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=QnOl9pS4YwArjHGgjzz1ujnilCqfZpwQuY83gQxN+dA=; b=JSICXXB0jJynMTxFCTkq7f/3ydx6GPay5xVURsxGnjt/GvXek55HPNcIbPQq8juSaW lXUgdFD/ickH5gPpJ8x5/ixI3Aco7itngrkbYUkVapPGVT5O72n4X7pQ95MY+BiWvSB4 aEnLxYSjZXTCLTrhGp82Cb5awpzai4HEOfdfnbzaOw6J0JN0xvYVmZBNaS+xVZFmW3OZ dVDxTBpQewMAIWnFQ30WWZB8YLb8RDcN1EXDfC6dvvW2705CEXRYdmEnS+ov+yBTvIbD 0J0/FtOZIfPv7hX+xDWunwRkM+FEhqAr4ge88ZWhpxJuYOq2ekyebLqg5dZs8PZB2G2b 6tPg== X-Gm-Message-State: AOAM531JymPrc7UdnjQyh0TgFo3d4lKvlKhohBqThDAeJy9c2k0MLn8e JubYaWbNW/ofH8CQh98VHbYcZyBB24k= X-Google-Smtp-Source: ABdhPJyfgo1kyazz8qEK1SyEP5TB48crf42REQ2nITGkQ11f66OA25gkuqq2y0t8Mv9suNP/ft1PXg== X-Received: by 2002:a17:90a:6f61:: with SMTP id d88mr4338069pjk.109.1638331963052; Tue, 30 Nov 2021 20:12:43 -0800 (PST) Received: from 7YHHR73.igp.broadcom.net ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id s8sm4296451pfe.196.2021.11.30.20.12.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Nov 2021 20:12:42 -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 , 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) Subject: [PATCH net-next 6/7] dt-bindings: net: Convert SYSTEMPORT to YAML Date: Tue, 30 Nov 2021 20:12:27 -0800 Message-Id: <20211201041228.32444-7-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211201041228.32444-1-f.fainelli@gmail.com> References: <20211201041228.32444-1-f.fainelli@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.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 | 83 +++++++++++++++++++ MAINTAINERS | 1 + 3 files changed, 84 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..f8bfc5474a19 --- /dev/null +++ b/Documentation/devicetree/bindings/net/brcm,systemport.yaml @@ -0,0 +1,83 @@ +# 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 + maxItems: 3 + 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 04:12:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12648997 X-Patchwork-Delegate: kuba@kernel.org 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 25656C433F5 for ; Wed, 1 Dec 2021 04:13:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346672AbhLAEQZ (ORCPT ); Tue, 30 Nov 2021 23:16:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346581AbhLAEQJ (ORCPT ); Tue, 30 Nov 2021 23:16:09 -0500 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7BD8C061746; Tue, 30 Nov 2021 20:12:45 -0800 (PST) Received: by mail-pl1-x62a.google.com with SMTP id m24so16649749pls.10; Tue, 30 Nov 2021 20:12:45 -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=WwTtVH8Z3c6zD0ShZISOfu/kGJE/whdMm2FI4F47Th8gAWU7McZsvHpnzd5KfCojor qdCHDsk3A6Rpu58X61seBzh+21vOqcySL8ROjHTCNMtfxFLuEL+j0lTjD1bFkZUHnh7O /VcySZsgx1zC/9aCSNZjtKazzykacnpeq87/ZmvMDq1ujIjp0SbFz2JxbiE50uihBRGg fWf+/5Pt1Fdz8hpprsfZWwhxek3QX/53tKBRnUYWGrjtrPIF3Ki3XCdY5vLnAyBy1xAI vOr14unhuU1jTqfAzzaiH53JtVF94/9poTZJ9MufwgzZouFndXrYkFJY8JfhdmroiGsD qZgQ== 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=CTn2WM+C5E52LJF7Vyf+l4fy+hpuCrgkiIMNkaF6YuH3YWl27SqXf1+exnDCvuuqRs UvDDW0AZP1S3QSunVH9qh7GqfgOkqRzGGygeV7eQVr5bRqeANUrgIHkWTbQZ66jhmiQw IWwfvFLRdk7+zBwUP9pyqVJqnzdtHauGWRFvxZShZ61lGbqfMMdujqdqP6+O/FrP2mUb vnxaT9LQnJNb744oYdzfq2SVO+lEaEnc3l8hpmnzH1ba8gRRU+hUMFfJVM62fVBZtL87 IvNsz5eEQkJ1MjipzEJ/LsQqGGYCaJsA0qIl+g1p9LUo9UTKRxZITzfCxC26YbUBsVrY bOoQ== X-Gm-Message-State: AOAM533p94vgUUhXCPrweeTExerCB4ys3XzLMHO80FeNwoJ4lbtZti+3 bHUHPtuul471R2KAP5Qsn9MDrM0e2jw= X-Google-Smtp-Source: ABdhPJxxYt/PiDYZyWCw34TS50zG8FJH0BRNSt/EgH7ruiIrxshWCy+ul8I8ucAmqKJx6Dq1x8ay5Q== X-Received: by 2002:a17:90b:11c1:: with SMTP id gv1mr4300466pjb.208.1638331964916; Tue, 30 Nov 2021 20:12:44 -0800 (PST) Received: from 7YHHR73.igp.broadcom.net ([192.19.161.250]) by smtp.gmail.com with ESMTPSA id s8sm4296451pfe.196.2021.11.30.20.12.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Nov 2021 20:12:44 -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 , 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) Subject: [PATCH net-next 7/7] dt-bindings: net: Convert iProc MDIO mux to YAML Date: Tue, 30 Nov 2021 20:12:28 -0800 Message-Id: <20211201041228.32444-8-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211201041228.32444-1-f.fainelli@gmail.com> References: <20211201041228.32444-1-f.fainelli@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.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>; + }; + }; + };