From patchwork Mon Dec 6 18:00:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12694948 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 4D4BCC4332F for ; Mon, 6 Dec 2021 18:03:06 +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=wIRldgsJRzTrenlGNYgiRhSg7CKmtvkSP7BPjREjFSw=; b=SAFiWV7gmvXJcJ J5fBAnsRGbukb8p+p1WVemG2Ye2caeJ4NJMG0ZVbVjVo6GsaVAxq/1S2gRZw/JwferfbCwfWSk1Up 2BffkPtbCVLSX5JRgcsFGZMHt/3PSJa/0MxG3BKMfzCh7etFDDR3/aQgQ2C49nMst+fTbQFYQ6vEN io10cdC8jB/n7+/KxzLl9Bbc2NFOdmXXCjxZ/Jb5BVBJJ8U2G/wAWVmMCUOmTJ/gPr8t7RjGWHZ+h H75QFsLrwhfbjFtC1JILPijypFiGxDegZS+Pku0g2LgdTQKOoRZUagE8PxH/4agM0ezF2sCB3c7yR T+KFTwvXzRP8GLRMQcug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muIIt-005B25-Ru; Mon, 06 Dec 2021 18:01:32 +0000 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muIIM-005AhO-5D; Mon, 06 Dec 2021 18:00:59 +0000 Received: by mail-pj1-x1035.google.com with SMTP id y14-20020a17090a2b4e00b001a5824f4918so11410609pjc.4; Mon, 06 Dec 2021 10:00:54 -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=jMr3AgR8WA/HadtPHvYuy2cexlD2vCjYqKkD0QCon5sMAb5+f53aNRaCF+cX/MjK1I ooiAo0rfd/EZFNiShmxSeKpcOfBi2F6cd6QFJcUt5A2J0wg5TSxy6O5pKQt7mTysK1XK OwfVBsyhnuyB5WwBmRpIrq+bqaJxSlhXVbywcf331X5/yguw/VA6iKu5POyTi3bk+tzh aQR/WHtuH9cKzfFVMMyQk9n1xDFfELgGM88ny/Ub/kxe8YV7KKE2yfQ5Bin+WkT8EA5s Sf/ZYYstLt3m4+lRu6E2rFNXSnGXFAZexYUtMN0fBYaVjiSq3G4knXEdNYfXQoWI3YTT +Cpg== 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=8KnZ/jNF8RgIrUticAICRoNwb8MnB4vL2wE4feGpyR7WIQEF4pegbt3DZDp9/3XFIu ICO1sM9eR+NPlQbrxDg8hRWPSoQm2i+iZE4oQC10FNDdoOdWve2sEA+2V+QHC9LPi8P2 cxYX4vqj8y8YuTnhkzbcK7uQgtRMl8mJT6Bl7D7lLnM30s+W6Y9+Eu2Tu38j5skj8Bgl QqO4qkVnSr1mjbrvQe4LcGufO2TuT8lWfZhVbjAFw+0ZOiGhT+HsxN5FQ9uPV+hJREh5 ICL65OvJO/q926d27OoxLdFKZ2244XDqDgyN/BuOObXUeiteraWvcfywCKbXsePu0+rr s5yw== X-Gm-Message-State: AOAM530s7V0u70/zXWOzFQy7f1bsXZhW/lAOk8MtN6PTRCdih6/gs/mP wG37mMpCA2Gv3kr9r0q4KIY= X-Google-Smtp-Source: ABdhPJzfEfVEta3O/mLOLewG99piJjzBrQZH40e2k1H3HdcxMIyY4VE0jKhGB70cWd1FeC6d9cg4VA== X-Received: by 2002:a17:902:7c88:b0:142:5f2f:182a with SMTP id y8-20020a1709027c8800b001425f2f182amr45525167pll.72.1638813653645; Mon, 06 Dec 2021 10:00:53 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id u11sm5444070pfg.120.2021.12.06.10.00.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Dec 2021 10:00:53 -0800 (PST) From: Florian Fainelli To: devicetree@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 , netdev@vger.kernel.org (open list:NETWORKING DRIVERS), 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 v3 1/8] dt-bindings: net: brcm, unimac-mdio: reg-names is optional Date: Mon, 6 Dec 2021 10:00:42 -0800 Message-Id: <20211206180049.2086907-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211206180049.2086907-1-f.fainelli@gmail.com> References: <20211206180049.2086907-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-20211206_100058_237166_EFCCA72C X-CRM114-Status: UNSURE ( 9.31 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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 Mon Dec 6 18:00:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12694949 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 5C1FEC433EF for ; Mon, 6 Dec 2021 18:03:37 +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=fEcp53E5vLoW8XyuZpFwPfDiOxcZc+Gl6XOGhjKOOBE=; b=NQX5UMo0dwiihM ReFuz9GH7qJ0Y/y8QlKGV1PBm+aCuAtqD+J7lvQOh+gnL0NdJl364bFGFEGvXZnaVnwBula0jUXEA 7nkzv0YxDtp7kMfRmQHNHbp+5L3POTmalw6+JndhvnCu8BrNpdLMIU857Rh2q6QYUrg5tnII1zhVX EFVSciLQipDlsIFQ5zvNlasiKjDLnKNNCtWLVWUngTJE31T98m60peSfyXZetksaCgVhUk3Tfo22K NTp7R+wbQegTgxmrY8RwkJvHgF8jBam7bnDr2dMFJ1oR8iIJC9JWkhGZsZzludpx2w0Q+1gcqg2nu M2YXv5t45XaZJSPxVnHQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muIJB-005BCo-1J; Mon, 06 Dec 2021 18:01:49 +0000 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muIIN-005Ahl-BR; Mon, 06 Dec 2021 18:01:01 +0000 Received: by mail-pj1-x1034.google.com with SMTP id gt5so8339596pjb.1; Mon, 06 Dec 2021 10:00:55 -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=okjDkCxyI/nn21Wnpt4nbTNJYmZ5d3WZ1W9wjxHEwSTr8AVMrzCy+bS4EGFyoC4Wzj PZsr8skIoCwWNyVG3rkcOtFpySG6kY6Dud7efUYRww8ujsAtcRT67ifW9PicjTVqsyff ibgk3KfUrLzTaWPBWT0BW8iZauquv+0+5X/Euoeo5KvPyXxyRpPNsP1Vsbp+/wSGKFuc IrixDjbg20zGjuEGu/DeNpfixI1Yt+bJlynj49tvk5yLCnfhDFpDk9y50IUIWvizAnuD 1/80sjPAVDcSoyrFJDv7esFff6FbeIU8SpR8jnQgKf61ulLivaxmd80YqDGEAw5lWmR8 n1Jw== 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=iN8lT5f6xibIbGg8Rj372Uv9ty4qBZPdUdrWnv6ikZaKJnCpnPm2jDnvOf6vBYjDAU LE2pn+n4O6Xt589cxPM6zZKn4CvrOoNjSkRkONAnGzV3eA5wS6R1lUVFA1MUrU0dbAsQ z2JesGgtBlBo/LvBEmhC5OFGnX0TS2tUT39x4OyOuQ9KmlHbpjoS6I7qACXzcGO6oP4s Y2EIGsth+pttDDwNDw6NVNYPyienilV056PRqSjQaP4gdyROsRTPvvblmlGfVHE0Akn4 ReEDmcoZ0q01rQLKPp1s/je2CuKEgLjcg/tK/NBs0wmqTzj48pGLIUU7JOyJR0sf6zFV 1faA== X-Gm-Message-State: AOAM532PfeqmItMmp7fU6dDMe/fRDLcst3o3dSD2yqu10zTUriZE4mi6 Gsf3X/St/kyfs9nrUHj99nM= X-Google-Smtp-Source: ABdhPJxRcvSEAMxa/zZAF0moxM14eHcIV7RVRP0bkAR0Z1M1lwu0CF2yEAKcZqA0ICl8+9xvj2tFrw== X-Received: by 2002:a17:902:c145:b0:142:50c3:c2a with SMTP id 5-20020a170902c14500b0014250c30c2amr45116624plj.32.1638813655037; Mon, 06 Dec 2021 10:00:55 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id u11sm5444070pfg.120.2021.12.06.10.00.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Dec 2021 10:00:54 -0800 (PST) From: Florian Fainelli To: devicetree@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 , netdev@vger.kernel.org (open list:NETWORKING DRIVERS), 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 v3 2/8] dt-bindings: net: brcm, unimac-mdio: Update maintainers for binding Date: Mon, 6 Dec 2021 10:00:43 -0800 Message-Id: <20211206180049.2086907-3-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211206180049.2086907-1-f.fainelli@gmail.com> References: <20211206180049.2086907-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-20211206_100059_437097_A3516D99 X-CRM114-Status: UNSURE ( 9.33 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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 Mon Dec 6 18:00: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: 12694947 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 6CBA8C433F5 for ; Mon, 6 Dec 2021 18:02:45 +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=fq24uacz92GvmInD/D+y/9Cr03nMDTPPds6pjnPN6V8=; b=h1wYibw6GHYGMe tcAW/ZNQeDGYUYx34VvXTf2rsJVuX50x20iWbzeAGK8RuBiohWXo+7rllcuaWz3Ym4TxUQxiWuO1s rq+OVdn4cE+BHOfDYUxmQ0VKcs6gQMmvkEOKzFTnkgGuXFBJ4feUxPpMOIjGXpzyfY+ckLN7ja1Vm pRpSVjKGSp8HjOGPYwe0QTyo8xfkZoC3xtm81QhScyoXOW0w3tW7w97oNJUXYMD0xFQjxTvP46mik NaVIgn1J8SSZORXjtuo6QZ1x8gAq/eXFzymkz673JYAW2vhXZuI1xYtfC6N4E4RzwJ8L0NIu2DBPr mmmiZhl1YGGHMTfQ/50g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muIIc-005AsO-OV; Mon, 06 Dec 2021 18:01:14 +0000 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muIIL-005AiH-FK; Mon, 06 Dec 2021 18:00:58 +0000 Received: by mail-pj1-x102d.google.com with SMTP id n15-20020a17090a160f00b001a75089daa3so11434386pja.1; Mon, 06 Dec 2021 10:00:56 -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=NuG70eYUXORcwGIelzhd3H+BMUojXfGScK3jwHgC0Ps=; b=Dx14OFdu0UvAWbZVjpnq0xkc1Ezt868+d31/k3C9hZCVVBGroKJ/FY/Yx9eb77rPUn e7iN/vgCf5isHeonNpd1l/uYzlvtnOVxgj1s5pvf0kceHv0DdKclylCn6DVwVdgN8NQO E00d6qJx8txI+mJAzUG51ETUy0H89ydaFM2jBpJnZTTvCXon3zzat3N1Uk1BP11VuIW0 Gg1k3sE152Na7lRStDW4Mz4VuagwrCnfxtOt07pY9AyLl5bJg/nYyZ3t9NGeY2LnAsaS j+F2IRzSVxuE8km6TzIAFBLsD73sNBY4X0Pa8Z/sDHEK5WqA2ozhwQb6s+Sv6oQoDDcW g3Mw== 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=NuG70eYUXORcwGIelzhd3H+BMUojXfGScK3jwHgC0Ps=; b=a/GoL5rne+ydtQwdyKYpPbPqylvZwRYyPg7jI6aXMBz8Tf26DC+2mKBRnGGmvwNKvl UfUhbu8i1Lm8TbpDZkR22+UBIX99Ee2WJXpv0vN5DH3e7HcCYjY1QC/SBSVI4oN3NBY3 l74DVSRFE/F4WScvIZcRBprmHKLPMVocis0zjKb5H4snpaGKSRj1ABm+6DHc7wk6NMU2 QlaGADf9J6BKv2Xs9aCBUf4H9UvJLM3dfffwtG5egJYjN0idaMuUlt4kewhMMgDNkYv/ vsD4RTQlQY/9loCIoUs1hM/xlKZKlVNQYo399ESU0D7Vk/+Vq+F+ucxLHTcoOshC6mFm n2eQ== X-Gm-Message-State: AOAM530DWv7spKuIin4XdH0yyE51BG5IR/j8wUjmeuGQWy+VwceWxukl CvpOnKxucc7wMxmEkT7ejwLihHSSXyE= X-Google-Smtp-Source: ABdhPJwUV3ctQdXWmP6IrbkyObT1OKO2ULNM2CzwgNfytBsRd/8030/dv/FVcTBmncw+7/7SenVlzw== X-Received: by 2002:a17:902:8302:b0:143:6e5f:a4a0 with SMTP id bd2-20020a170902830200b001436e5fa4a0mr45166311plb.20.1638813656332; Mon, 06 Dec 2021 10:00:56 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id u11sm5444070pfg.120.2021.12.06.10.00.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Dec 2021 10:00:55 -0800 (PST) From: Florian Fainelli To: devicetree@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 , netdev@vger.kernel.org (open list:NETWORKING DRIVERS), 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 v3 3/8] dt-bindings: net: Document moca PHY interface Date: Mon, 6 Dec 2021 10:00:44 -0800 Message-Id: <20211206180049.2086907-4-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211206180049.2086907-1-f.fainelli@gmail.com> References: <20211206180049.2086907-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-20211206_100057_547248_C600ED97 X-CRM114-Status: UNSURE ( 8.59 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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 95b5a3d77421..47b5f728701d 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 Mon Dec 6 18:00: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: 12694950 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 40B9EC433F5 for ; Mon, 6 Dec 2021 18:04:00 +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=wdyuNm6ftSrBlxFC681mFVspHcpPILkVy7Sn0Au+GF4=; b=rcMFmFLfXmLqZ3 ebBJYP+XmSfdaCH9euvKKjoQF1LfEClsrFukJ0UwuTYPpM2+T7BM3bc1dhiZftq902tfwX97QFd/8 FohZ1QqkWaDCmmjLITgZYHl8mEEc0s15V5EqHIcX6GZwgRpP/00BEDObFheEbY2JGx5ICYizV+B4y dndC07vj8KRoAFDQMRUQpKvK+R6+rh7YnuGh6DrrAJoN08SqGEafrwc5jcCtFlzI4/eybO/5M4AeE 3ow7kH32uAx79TjT1IIi8cKglAnCJIKRclBnQ/ycRJc9xGlnctDWcV5K4fCwZKZmGplj6V5CJtjoB iiahyOhTd6idsuBSibIQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muIJU-005BNd-BJ; Mon, 06 Dec 2021 18:02:08 +0000 Received: from mail-pf1-x436.google.com ([2607:f8b0:4864:20::436]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muIIM-005AjT-Tv; Mon, 06 Dec 2021 18:01:01 +0000 Received: by mail-pf1-x436.google.com with SMTP id o4so10841779pfp.13; Mon, 06 Dec 2021 10:00:58 -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=Glli2G3nC8dxP+En8m4e+HBjuVPO66nGVLRacQBgUXs=; b=BvHBJZ6kAfK7nl47VDMesFxySbPQO6zQzYiE6UlcyBljaaWAtdrbJoknjCpXdMqq4p 4jo3fbfkr9c8z0n4XTdWQ1PUg2v1iMWDIR9ScEF5kke67Is1Rw5JioKBhfT5P7OLTZyx ecNFb6fu78ttqbvaXL8HnA/t+akcanXKVKRQiAMKN+kvTYAn9SGRPsXglUJfa+PNutNK n7j8hDkxKFNWwHFvqhBw1+bOTsbJ0e/ARxWUtGIGY41xvSZZeHvvWSO1yahVsmUKbZ2t pewf6zl18kUb5rW6nAyYoSFS1htehKTyH+bxo5DxG715/LzAF78J7CCT56p2qnjh18M+ Y8gw== 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=Glli2G3nC8dxP+En8m4e+HBjuVPO66nGVLRacQBgUXs=; b=5Fwt0kY2Q6X8ITsJHdZKFXUJsE5ECi00DsWF/gnK656CVQoxHk724c+F4IftBcfNwK Ga6LH+8eZIJ/nCCAH46gqW9r3EyMHdmlimhEYmvvZFbDYvzHaDqxweDw0VN07IDrHtkO Zj8vq2SWhkVFPDF216JCw4s0YbjuchIEjfnw0GvVcnHjCJDAxSUuJXhUNKGQUs+MZT9X bSvePWJVUHCFqxpWV3t0/XAOEuWlKuHvOjtXxY0Y1jKkIwaFG3Uu6vTzB8jbQEyG/4Gl /b1iI1gyH81DxYOc77GIqoFy9kk/T+3rQds7bLPkVm6GN68DxVVnorK9v7NxZERvxCFK Lbpw== X-Gm-Message-State: AOAM5316C6Wk23ZGpTVGjG/lI5Rg9spxC/kRD4qZo/FB2ADJYvmvdeh1 cixKiXWlX7oR7Z1mq5i7phLJCsy2+sM= X-Google-Smtp-Source: ABdhPJxmzy/roEL855bjlUiWdG3HdOmxKdCTk9ikMOP4Sk2AlYiLTxo3zC5DAgec9g5qS7igxtS3Ig== X-Received: by 2002:a63:e801:: with SMTP id s1mr6483306pgh.543.1638813657742; Mon, 06 Dec 2021 10:00:57 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id u11sm5444070pfg.120.2021.12.06.10.00.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Dec 2021 10:00:57 -0800 (PST) From: Florian Fainelli To: devicetree@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 , netdev@vger.kernel.org (open list:NETWORKING DRIVERS), 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 v3 4/8] dt-bindings: net: Convert GENET binding to YAML Date: Mon, 6 Dec 2021 10:00:45 -0800 Message-Id: <20211206180049.2086907-5-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211206180049.2086907-1-f.fainelli@gmail.com> References: <20211206180049.2086907-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-20211206_100059_010281_7037055A X-CRM114-Status: GOOD ( 26.15 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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 7a2345ce8521..5e1064c23f41 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3819,7 +3819,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 Mon Dec 6 18:00: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: 12694951 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 E43DCC433F5 for ; Mon, 6 Dec 2021 18:04:15 +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=f6cgHAvbV6LBDWfJulobw33DkAvXWBFameuTH8RkSWU=; b=bprLVfmSCbbZSO ZcMAhn4vicC5y7ybjJ5tS2e4H/+Va4U7I1GsE6dstQTh49ZqJYTMmU7NeAuum0urTBPIFqjdV7dPI vMvFgwVTet/XhV7d0/QggAVzUwcG0vdG38Y8Jp74kHz6luf6DsBqJZ2BK4PXw6TRUO4F8JZYjuxYz GaLJpsjnzBw8l9BoZmFgnKx31Macg+ssuqHJ6Pdp33LWF2eMyBtaDHEsnGjPFSvip5ri5pWzpKj0E oGsXsEDpk+/erVDn6mTgGBxaKlRmhfHQdcfS/iqBpsW5Aicfpc6Kh96yCelqNhJl2EbW0N0733RnM 8tb2BCnZKj1X6ueoi91w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muIJq-005BZl-Hm; Mon, 06 Dec 2021 18:02:31 +0000 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muIIO-005Akz-D7; Mon, 06 Dec 2021 18:01:02 +0000 Received: by mail-pg1-x534.google.com with SMTP id q16so11200563pgq.10; Mon, 06 Dec 2021 10:00:59 -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=7lGSpdbBtSUGX8TNpVCqyb1N9KeekyFB33Hw0tfwp0Q=; b=bub+lU47r+RTeRssGc2TDlza/a1TPsewO1uqfzgN9o/JJbyf3cZ0L5dGxmEUIrWixD 3UsHOYdPyWgoumBTrdRJL5wnWQ7VY4HDhwvZ2h+FweNKg2j5Ihhua58YTIP2QpzxW1NE El4BexW8eoBGrkFkf7ZcdSkHfdUHHxqD2uEIJgd4HHefEf5cuDlmGfyP/qdWJMwft3MD H/DItoZDnVzUnFj/8Gxhbu1TIJ/li0W0CWSNHXRPVBl7YqtsXlAx1TRAx7R5lrWkutO2 2LxTCFy43Yngc+P2txEuDifHiME3SSA7tgyITVuipGWFLHr38kBME2NcOmUvhkgJemhM yIkw== 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=7lGSpdbBtSUGX8TNpVCqyb1N9KeekyFB33Hw0tfwp0Q=; b=pHufHE8DMP1JdJBOdQgy11sNk2kpMwfl+pUXi7f76iukfXiRvtOQuiALLIuOlDSkcc m0PUZE5auFT5WkLnFvX7Q2kLGy6UBxWAQR+7Lj/IUftoJUspS9aebyE8sxmTaP/6Wjum Pu5gSEQjbpzT44HUpQypjhZcZ7oODFk37SY4O8JA+GZva0SfJRpwUU6BCvhyVlBYtFNl 7ofiOHUKlDtJSkAW8N159BZ6h4VfWf6mbwvppSBStf0SH68I3XSfLm2xav86TsbqvzBs RRvINWcaPV6PsDOOSshEZ4H8/z1evzxgDr13vXv0Urrte/m9XBwBgRNuZKdsIkSjqH+9 Pwqg== X-Gm-Message-State: AOAM5337IL9ST+idMJqDd9ct23MfNYNl1lY7Ptt96uKOpzn9zV/KaOPx 24uE4MPIoLZR+0lny9pLKonbSVgUrYo= X-Google-Smtp-Source: ABdhPJxnQRDGONRk3NqmP47XAMsozQQX7iGhAcfjk61t9xINQJ1Tdldn4MNeuLonI3UDKv/HrIQlFw== X-Received: by 2002:a63:d04:: with SMTP id c4mr15932769pgl.472.1638813659070; Mon, 06 Dec 2021 10:00:59 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id u11sm5444070pfg.120.2021.12.06.10.00.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Dec 2021 10:00:58 -0800 (PST) From: Florian Fainelli To: devicetree@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 , netdev@vger.kernel.org (open list:NETWORKING DRIVERS), 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 v3 5/8] dt-bindings: net: Convert AMAC to YAML Date: Mon, 6 Dec 2021 10:00:46 -0800 Message-Id: <20211206180049.2086907-6-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211206180049.2086907-1-f.fainelli@gmail.com> References: <20211206180049.2086907-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-20211206_100100_508201_0B404A7B X-CRM114-Status: GOOD ( 16.93 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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 5e1064c23f41..404e76d625f1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3861,7 +3861,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 Mon Dec 6 18:00: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: 12694952 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 C6F92C433EF for ; Mon, 6 Dec 2021 18:05:04 +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=6OLsK6y4b4ftHslnM9XOqpyKp96waSQPE6ABFwVTZSw=; b=zwD71tjKJyZ87B KCZjUVrK0kqx/0SpdzkL6xBCAAAblWI7/FhIYT4kDMwpKcCCaX/m1chg5PztiMTp2OnV9eTZL2Rqe luAzcxDmIMq/jxFicgWN0I3vWbTSiXpo2nMnn/ecfAqUArnFxtYC8PqpgOKCj3HsU+zvlLXgE+2E6 MUGd/z0r7HPLoFgPSUUPwskzkU5qZu9j00qzN2b9mMTNn0UlldvcFfRUhVysrBbBQj47qS21MnZCx +aPSpVizBbiqJRgXnU7JXILaCJ1vWd2hJkmrBEHgIQTYGsCX+659s51ZUxLdZmjd0fxmwsgGhsjOF sIz9Y5Fe9J28fio1gFaw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muIKS-005Brf-IP; Mon, 06 Dec 2021 18:03:09 +0000 Received: from mail-pg1-x534.google.com ([2607:f8b0:4864:20::534]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1muIIP-005Am7-7N; Mon, 06 Dec 2021 18:01:03 +0000 Received: by mail-pg1-x534.google.com with SMTP id r138so11175511pgr.13; Mon, 06 Dec 2021 10:01: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=UVNTosnM4u/yIXEa/LyWVTOOCpFmbmo5mKS9SOh7Wz8=; b=auz+ucFGlmqD2BqC9WFBo4dVqfETASPzVTRtljRXHuccp3+SZOgp7A6JaxTcyvG9eg aODjdqLdH5zlEeXHjLYg9d6hPLCQQu8s3JhCz+MVZ4lTeYzTcWCw/hF9GUXBCnAGXW1K pa+SziJt/63GqjdgQAAy90hqnZajQMMExqkWx2//32lIX/ihmzYDvbK31dOj/2O+Itz/ sGKjREjT7mFAfWrNVS7jT/b5hOIf7//c6c8wPpicq874iyttVoslnLuGpAtVrwM3Rimj 6o4Ul3y1W7mM6RikBalh77hzNrrv0qHHxryHx7XTDD9XEZnWsHptlLyFlj+lPvI+SK/I L1Ug== 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=UVNTosnM4u/yIXEa/LyWVTOOCpFmbmo5mKS9SOh7Wz8=; b=GOQcfaXnDtQt4IOrNdTE68/0+wgSAMYWP8QVaO2rdK8auPk96Az7kVjmQu2UnqScHa BfBr7pu59vuAuWd2+KZq1mvo4eTQlVua3w+0byWNyTLQLQuPsd/0wvLRk30J5jLiYiJR siR1SACUwrPs/uHY6NX0hO5ZtCZ52GdabRqAe00Oa2mSWYg1g3nr3kCXoiXPKhtmtfSA anhhEedhug1XuxYTeoX/aCDaLe3b+W0uDV62ePJ46Q14ifhtHyl8c7vx8Uc5Z0ffR7yt jkXR7bAfnqn0txFiHIWzuub9pDZ4rck+lq4PeuhqkYZNdb79e7NJKfkB+rD/Tl/H0Gdl bohQ== X-Gm-Message-State: AOAM532oV1vYHfZ0R7D/hb1/xtlzTQe9P164leRQvMq25YSmp54Bacu3 qwOZuFPLJiya/PikxCIDrck= X-Google-Smtp-Source: ABdhPJwkDk7LSBP5K9dd33jL6DSQ4OmFu0cjiIYYOgCe8vQwrJFBKayhp10szOtUQzs1j5OnSFwMrw== X-Received: by 2002:a63:8f52:: with SMTP id r18mr19818348pgn.197.1638813660546; Mon, 06 Dec 2021 10:01:00 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id u11sm5444070pfg.120.2021.12.06.10.00.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Dec 2021 10:01:00 -0800 (PST) From: Florian Fainelli To: devicetree@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 , netdev@vger.kernel.org (open list:NETWORKING DRIVERS), 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 v3 6/8] dt-bindings: net: Convert SYSTEMPORT to YAML Date: Mon, 6 Dec 2021 10:00:47 -0800 Message-Id: <20211206180049.2086907-7-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211206180049.2086907-1-f.fainelli@gmail.com> References: <20211206180049.2086907-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-20211206_100101_380293_1A54E80C X-CRM114-Status: GOOD ( 20.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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 404e76d625f1..ed8de605fe4b 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3972,6 +3972,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 Mon Dec 6 18:00: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: 12694953 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 22602C433EF for ; Mon, 6 Dec 2021 18:05:26 +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=afkDrL/y+9MQcm/x2coFlNaUPzGwOAE6RJQX8ZKJlFM=; b=HdmFJUQcBdnCDv dybuDQG3rrOcWVLCMH5KSqgsiW4pXOH8gMY0SSlkTH9ikR8NMUszJ20RIX52CmPIdciffzZ6koZtj 36V6RtxVgFLiSTUdSlfivmaznspIAlw90Q+9qKLm2/bozlUX8rCQpCMFcS+rsFtSJVwk1GLUkbQX6 Kf3Q7dFtrJo1xOJYiWrDQQwM7l3ZSBeCiCXFtFUlRI6CoTq1Pox70NYGmaybBLtjLkVDaL3oT4S6E VA1MQdLZdYXGPET+be+/pYKdS1lqKi2DRDDzPBza6FgqnPCyFnwdDqjzbvIijx1eEVculY+LuiwGX A1D+khK4AMmwmpzdwS7A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muIKs-005C7E-VW; Mon, 06 Dec 2021 18:03:35 +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 1muIIR-005An4-97; Mon, 06 Dec 2021 18:01:07 +0000 Received: by mail-pf1-x42f.google.com with SMTP id p13so10908349pfw.2; Mon, 06 Dec 2021 10:01: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=bJLAlkJ/cxw+eyGZ9fDi2T+PE+wgI5zX9dIEMcgJMjY=; b=Vsbea1qeX+VozmQU+9qsHXe41sBZrrJPx1VjDPnoXmM0p4Ji7o05DdpDm81w20UbIR V2IccRSmPAAcWbtnDZhDfBhZk/LmIXgKLWHwIoA4+d5HFaexboja2HLhHzi5q4ceLmTg EHSO9Bi6JKYzi8Be1m25k00al8rMKXQ0OlfUIxaPHO0bmZaPE4nTnHi5+n7n3Tdku45x FT0+fYe78Vo7OxK6mxTRp6e4QsldZVZ2a37JamIs+dd2WXNK2qUcQn8/9ptji2y8jqhR ZHJ2GPC3lvsTy32lFeaiipkM+psg36u/V1kYWMSU0RnN7eA8Z237KzHAGSeUlYA0rqmC FLWA== 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=INadUyA83BfhZy908ZaCegITktjgihCSA4X7avii3142oUxy3LJPKogM/XfYXqCH4a JleelJizvVqAIhGlJPUaRO+eqEww4nhWA3KnoZ60yAgY3PB4lBUkfLyKcSw/4HZ3OSfy V0S+T2vAOGecf3CWPqbYtTdzeehfBo1R2e6d2Tnz93VBdwTRJcwJIEe0wrO+WTkbjlpg 5LQj1skpCFhEZw7x008krvh4bUbjTBmmIalsar3YE3rrZG4L88utkk+/pOusZE56cwKb jw5DawP+mggyzowfUIgBqz4b1G7Gu1qpCf7mEfrAAKYLDRcldVxEf7xSKfXgfGXfvb6R QA3A== X-Gm-Message-State: AOAM530PljADmGYy50jmAp3NXR31pbpjzRuA5s9wpQnnQ8KFmhBrihmX f/bOunurk93jrjm3P3D2tOE= X-Google-Smtp-Source: ABdhPJxa7mYehzO8+Juz3E+I0lmJ22iyBMG0h0pCrrhWf2iRDU31MS9gaVjwbeU/kbxUjZdIEfuzQg== X-Received: by 2002:a63:9144:: with SMTP id l65mr20158872pge.52.1638813661855; Mon, 06 Dec 2021 10:01:01 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id u11sm5444070pfg.120.2021.12.06.10.01.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Dec 2021 10:01:01 -0800 (PST) From: Florian Fainelli To: devicetree@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 , netdev@vger.kernel.org (open list:NETWORKING DRIVERS), 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 v3 7/8] dt-bindings: phy: Convert Northstar 2 PCIe PHY to YAML Date: Mon, 6 Dec 2021 10:00:48 -0800 Message-Id: <20211206180049.2086907-8-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211206180049.2086907-1-f.fainelli@gmail.com> References: <20211206180049.2086907-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-20211206_100105_254729_2A47B810 X-CRM114-Status: GOOD ( 15.67 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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 Mon Dec 6 18:00:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 12694954 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 1EB32C433EF for ; Mon, 6 Dec 2021 18:05:51 +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=bxKCusCgsjCSjXM9mfz/ag0j8S1SgirOtISTJUbYpW4=; b=asgwIAHNtfgTBl MI6QzK1/jtjFZ8AT9+i6Pk6v5/azRGE4lDN1oi/JqObn2cvAuKKUz320iluY2jjZxX1BYy5jJrktq iDQ0uUGIc6P18lIO6Kb3ixXHQDjduZCyxmQlW6XJUfSbJp1nHXOZnkIXtOsUDavix/S8KSqx3RwJX J7/zquENh1Ilie6MBjWWDqJ/CFGYHEfZgZRHNX5aaHmPiAms4AvIMa/ZSWv/ZKLzeI3qzZoAjPNdu qRzFU5bYi0oAw7qw2uhUwm0NfMKJjo32vSw8esw+Hn3sTB2RxQ3uplnto2OUzGAIKNCb5M3yb+yvp 34t1MfuEhmN5JCXTDLww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1muILL-005CMq-PA; Mon, 06 Dec 2021 18:04:04 +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 1muIIS-005An5-KF; Mon, 06 Dec 2021 18:01:07 +0000 Received: by mail-pj1-x1036.google.com with SMTP id n15-20020a17090a160f00b001a75089daa3so11434655pja.1; Mon, 06 Dec 2021 10:01:03 -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=a22elMeKMuvw9kAaeC7xqXjpamRaXXRHV5cJtgBXnMI=; b=FNuLLY+2QfkUYYdnHtv03ga/tmbb/WnbRqvODT34TbvpQz79NTmgr2/ROaxi1KvJiZ qonBJ/pxCvk2g0IPUd6Qpj7sabtCux2WfcYJyghukcUmsUKFoXGNQBd9A0OnYJOttTpx UIdl3MStDRxZsVsDZiX6hKX3+Xf4hhKpQQ8NWpFeS5HZyX6HxKpq76L25dbl/vWYLiNz uqzh+mwcTJ+AkK4uG67QuWo9VRAWujUhAVWThnL38skDly9DrMhLJ0Gh0bcADhdLSleA 5Iv6EqE9Gdii24EzG0q3nm7+KdSW8SoHMsIYrEVp1pzKzPnVP5a7WlBssIkHOB5yKGlL Zu5w== 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=a22elMeKMuvw9kAaeC7xqXjpamRaXXRHV5cJtgBXnMI=; b=Ht8ees2WyTu4EOdzsRDZYTFXKT2eCF0MxexIB3G3z7FGA+72MBZH4bNcedAC1HCzLi 79xhkAhKUNW+UsMmRoAkmHSjbHUKSEAXNLVs0dzzaanH3V9cTVfX5U3NZvxAqn0GquM/ QijvrYYmMqF18V5CtP852YR9uXrDxSEbJGEKsuEwCiZ0bhty+P1Xza/+aqBtNxGC9vyL /roP//fbv+LtaK6ANCg8YopNNfHoTfZnoCVnEQhEfWo4qU2tRhGIoQ+VOjpdNr03viHX RPFYGkChuSS1zmwQ+oMQf8zWzb4NHk52vyRnUS7he9Mf+m+TnXZts7YOhPuEJFmZ/Iap tyXQ== X-Gm-Message-State: AOAM5323/tRL3/2HufR8oGZ3PH6KmDlzUNGzS+XJ4ImjgTqgFMJw49td pgsy0/YuLfj934JW9JJF4eA= X-Google-Smtp-Source: ABdhPJwT0/hSqTiWhbGXegTiFL+l5hd6q19jJHrHzsa1pAOaawNuH4ZZtQfWAqoe9uuW9xXye0+Agg== X-Received: by 2002:a17:902:b28b:b0:142:4abc:ac20 with SMTP id u11-20020a170902b28b00b001424abcac20mr45718472plr.88.1638813663456; Mon, 06 Dec 2021 10:01:03 -0800 (PST) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id u11sm5444070pfg.120.2021.12.06.10.01.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Dec 2021 10:01:03 -0800 (PST) From: Florian Fainelli To: devicetree@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 , netdev@vger.kernel.org (open list:NETWORKING DRIVERS), 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 v3 8/8] dt-bindings: net: Convert iProc MDIO mux to YAML Date: Mon, 6 Dec 2021 10:00:49 -0800 Message-Id: <20211206180049.2086907-9-f.fainelli@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211206180049.2086907-1-f.fainelli@gmail.com> References: <20211206180049.2086907-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-20211206_100105_236074_2926E5A8 X-CRM114-Status: GOOD ( 15.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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..af96b4fd89d5 --- /dev/null +++ b/Documentation/devicetree/bindings/net/brcm,mdio-mux-iproc.yaml @@ -0,0 +1,80 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%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>; + }; + }; + };