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: 12694256 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 4686AC433F5 for ; Wed, 1 Dec 2021 04:15:14 +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=QxPzJoDIonCjw8 CnG/0rFFwREXnd5+WJVzgeQtVmxDNHFNlnT/XJC0wezdvc4dBHKUWy0IQc2R3wPe7dDom0N7OQ4an sDah0puQXlXZDnTjNQBjFCKTzfyuoxka3+wZgj3/ZL0IMnqnsumjy5QEG1aXYuxgrfIPr1+tLho60 bC21zEFoaTe4Iiv/jwHXaxVpGGw0/9UbNmUrSexl0DNOfiDO5CFiBvAWo0MbRIIMkKAKVj/oy1Rea piEy/UpsmwJqy4ycZT2n7H8oJlHBnJcR91IJTQPRDVCTE+9zXXHqevr4GNBnb1s4dekRMD9JSVUmw 88U6+VVK9REr5F982RNg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msGzC-007PTa-9I; Wed, 01 Dec 2021 04:12:50 +0000 Received: from mail-pg1-x530.google.com ([2607:f8b0:4864:20::530]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msGyx-007POb-B6 for linux-arm-kernel@lists.infradead.org; Wed, 01 Dec 2021 04:12:36 +0000 Received: by mail-pg1-x530.google.com with SMTP id r5so22133805pgi.6 for ; 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=cPbnofuJ2vNSm7xy8pEdc7+X1uRY0xfhkIjf4oERR01v+1xMjGtDZOYhKOIPQaRAJ7 d/wwQFPk7Uoz/P7S4josqsBMCG/6yoR/Ac16hpVX8xvjLX58S/0UicrzJ3aTjxrLrimg nSljlhP/HWZ44uRTPM+JPsVyLVnXkRUXRZ8UpTKfyKYw1MpCJ4PzLOgAAMoKwxqYTY8o aA2TLDe19Y0adwx3XmntlzyXp8wcOQyISFKJLgimpwiC8PAOMbs6FQ+XIiZDawd3bZpw Ro3Jq9pvUR4MMNurR8D8UqPpHWjUqK8rCkhaBtPdPFnu6lJSYOqHekrDvlX4arhCR1FE dSGg== X-Gm-Message-State: AOAM532Bc2EI+OvxUlb1T6YIXWJFo7W1LkMP19tzudBzjV8WsNCGEyAh hDrHhHBu1oOWMSSwgA95BjM= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211130_201235_402153_B295BD84 X-CRM114-Status: GOOD ( 11.42 ) 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 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: 12694259 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 5FFC3C4332F for ; Wed, 1 Dec 2021 04:15:16 +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=QECrxsJkLrEx12 73Xrs27NpyAFR6UHD1N5ps5sDO97K/ThjT/zCxXq8kgITRxqCO9xtJIhUoGhy4W41umtsbKkJYTup fBzdbIP9tQ4CFQzercaNIgTL1NsSAVCU0riDwlCRiR7pxqoJIzvYkaqBp1jinVbtS82yrnH6Abc8Q Dm+pKV0HhFT5TrLlZ8iHANqLzwNRegvy/jXefldn24ofxoZ3BXih/EMm3Mb8yDDOrZKmBak2kwee8 imztmYaZ3HOVZgV3CHJLY0mFLShpSJvE/dzmSbu3lQHG2qAMOtFmYLj1aWBYfOhZf+on49UBffNVJ xeOGyqpe544ZSo0zDLvg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msGzN-007PXj-W1; Wed, 01 Dec 2021 04:13:02 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msGyz-007PP9-0J for linux-arm-kernel@lists.infradead.org; Wed, 01 Dec 2021 04:12:38 +0000 Received: by mail-pg1-x52e.google.com with SMTP id 200so22212047pga.1 for ; Tue, 30 Nov 2021 20:12:36 -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=QuPv/CnW7bwkhdItPf1VNV95huCAD0cy6hAOx1UnIKAy6Kt3wLpOeyoWYE5Otu4x69 9jo3hLN9JMNhsWQZqJVwBRT0puFwt37rDlrZmQJMbaNQsGo5ELMNwQJGs8R4NM30pRIh 85ZrLxGVemf3s4bTtGJE+OSRLx0rsgN+PZk8lHrJF3H3XYxVEmBHiMXoQfY4aQMUN+Lr KT1a+k23vd3VwOn9fnsT7Wgt06mBI2tktcDtzFnQw8TZ20D7yL0HMs7J+t2RBGp8jrLW EfSHFpnjlnc93yIJ3Hs2deq2AAN1PgnsUX6XIJcIOwUoVUqqGD7p5rqK3QIafvD0mdU8 qP8g== X-Gm-Message-State: AOAM531gM2LG93q/Rz1koB7/B643uxgbbKCJTEWnkJFbNuaCBR7lxeDU dBicVKr21erpc/Xb1va6fioKhpZ8TeA= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211130_201237_073014_0B262BCC X-CRM114-Status: GOOD ( 11.53 ) 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 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: 12694258 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 08F86C433F5 for ; Wed, 1 Dec 2021 04:15:18 +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=Q6PpWBjgVzuU9cba4nm4slniiSD4mQd45s99v3lj0UM=; b=Gc5GD0e0zqegvY NeBG0VaXdjAXH4RKa/TmdwX4m3GuhFZPfZgbSyOFGoYlDzLe8VkJ/8dxsHmlZ14sfGqXw5PDflQaG eXXYVS6nQ9LF7Uf2ZT59kmvBJ+pri/Lj7di8kY5dXF9C62T2R8RqTAazgu/tsOgyFms3/ALw5G8qU H6j6w7Y84lcap/tbCnDzy1u8yq0cMoL2+ZMt1dD3qiU+DDZLfQUzIaCqfDET62OPNDtRkUULCtbBO HRl9Vbtjkvr8iFylpKZ1nnp/oX/IFhB0JkWPTW3bu0Hil4/FrEuiwKI1RAG6CrW7ACI6W1aY6jSVi r19lwquDUwkbOfBOttGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msGzZ-007Pb7-K2; Wed, 01 Dec 2021 04:13:13 +0000 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msGz0-007PPm-PN for linux-arm-kernel@lists.infradead.org; Wed, 01 Dec 2021 04:12:39 +0000 Received: by mail-pl1-x636.google.com with SMTP id k4so16637796plx.8 for ; 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=F0AkkhxY2NrCR4bq1UPJgaCRrYAkqBgI5HECR5WHjU/SEPZ0qntskuizwZQq41YBL0 X3KIWS0uDRsTnRav7fjqPwcF7MPJmBfbuGAQsoLec7uf4FY640y+6qQW9lM+QCSDevJP 7OQg3v4bZkNboNGohbJOR3s74YXShzp8Vl0FOP2voQh9bTVZc989SQ5W3wTumibe1Cho sEcmojBPTjOteLO0C6Ah++CNKGbKLrc2Z57k+Aj+3GSjUWD0sXRwNz9AOXP5/dzL09O6 p0VqlVx3aLaywpuiuoWcmybMAQj5EnTBt19Sger1w0GH6sUqjiGWIE+PwbhulFmF+k4s NyLQ== X-Gm-Message-State: AOAM533uUOpaOYTsVr8Fv0Ue/IxmLzxAWzqdFdE19/rVourTmvLO6pVZ NwA1IRjO6Hw/ck3w5AgJLas= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211130_201238_847005_D7EBAD43 X-CRM114-Status: GOOD ( 10.89 ) 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 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: 12694260 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 71382C433EF for ; Wed, 1 Dec 2021 04:15:40 +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=YR4xLeG1KmIPia4rR8O5MyUx0uwlBwu8Hn/kHVnO96Q=; b=yMdZHdT6rjPKjF mttbKKeJnk1X8jU4S5DhwzFqTwA5nlUacN4i+YgYLxoNixJs6VSvnC/i2CT5JsEHcZXgeevM4ftb6 gHp+I78yIYXk4DDqdDX5POvDxw25KKyZxLrm0kQ+qNtxMRWDDZmC8BmRa38kUX02bkbQOfst6v9Eg GQi2p01Jo9hhXJLVeAGKZbX3Yuv65M9VIfMPae4SHRAG+sU4IEc5k3LgIpf8n+/CuF/Pxdu+kz1Z8 yAN+Uev5bmCmynEGSCr54Lugqt4kCWolmYwRB1hUcl14hCXTXczU8mcntRP39jlq/dhgXZSbMY43n O/h/7YIwosjLdjz8t8mQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msGzl-007Pe5-Qq; Wed, 01 Dec 2021 04:13:26 +0000 Received: from mail-pg1-x52b.google.com ([2607:f8b0:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msGz2-007PQC-FD for linux-arm-kernel@lists.infradead.org; Wed, 01 Dec 2021 04:12:42 +0000 Received: by mail-pg1-x52b.google.com with SMTP id k4so12049905pgb.8 for ; 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=0KkbAW/r15VYvmnotWntvIQK7/8UK9yDuuT8/uNNIhXTTfTqgjZgM8tnEvwwlwNzFS H54sC9qpnHjJ4WJ9HgzkscHr41obUf7z46ibMmy5rN3+DRW96Heryc1CBZQbcxHFADia oou915AKJXZDKKEQrzN3USgM0WL7WqK8mOVXOy1xACI0pgLCCWPCD9Ikbpi+OixCA+rb +9o+n8GfNCzuSZqvzdhwl7PhiX7BAYqiLOgXhBuFTnlomdAhnEJe2tDPojhm37YRQbsY ahWNEsyN0Y4nzYoApRN7LVlfiJnPANfq2VzRW8eSpw5e/JiPgmzgadANzZoQfJP9nU4+ q8ow== X-Gm-Message-State: AOAM532HuIuU2nL2mkTgEa1il0N4zesWgQCnTL5U8eEsG7dhlemiuD4P gMLicavXQfbA2EZ4jsv7D5c= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211130_201240_547519_9382F82C X-CRM114-Status: GOOD ( 28.77 ) 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 | 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: 12694261 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 CF0A6C433EF for ; Wed, 1 Dec 2021 04:15:48 +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=Kdq39Em7Y0iwFRiEVOCFwQeOGhN23qCal17zY5BPnCU=; b=JUk08nyMgGoRbL VTI6JEMFu38I1p35yD4Y8/Fws9imkGDDDFJihrlF0RJrHn1Y3tFEhdUO9wh5LGaBKFmixq1BA6x+d DhuMEmDGNpMXJmAzFk0a+z3NfNaTuqiUJE00GClB+DnRhv7cQ8nGJFafRSni6hrcUrtmeZMImM9Uk JOgfifSZfpRhNLM4sMqKoG25DxHpBsL6IDeDy7Z6IfSySS3KYZsjeHDudzl/lFpiKBbUTV0Hnv2FL oTo4PBHQZzfM1obKRMnByUYaVWtiQqWccODY+pUc59G3+hX8n1aeQztmIFADHUVNaxetJvAOMfFGU 4hth7C8bu3wzCjRspmrA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msGzz-007Pht-I2; Wed, 01 Dec 2021 04:13:39 +0000 Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msGz4-007PQp-06 for linux-arm-kernel@lists.infradead.org; Wed, 01 Dec 2021 04:12:43 +0000 Received: by mail-pj1-x102b.google.com with SMTP id w33-20020a17090a6ba400b001a722a06212so216663pjj.0 for ; Tue, 30 Nov 2021 20:12:41 -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=7m1Obd9TUWhIPh8kWAxW7VdbfcoIaYPc5les6y0GBIUYhaRfJXAmiXYdwDeq2uDj+z vGQ4ghJCC7zyxBqvPLW8HwUon5CUvNMlXe3XjNuFgfz+2yqLj7pT46NOgfekqPjHmZAk fnB+Tbc/2iIflntUBoOWSSWH8IuAD/ZXVIVxggS6Bq0Yfd2WDaDJomyDWLZ06CFSD5oW msHVPotvykoe/4VBkEVFPhMQ5+uGQ5Nwr5zmx/IOy+gRlz0CqXKMzvkTlRayuF5z0iSQ 2r/1IUTBphDjIt0mjeWvuBFlPqoIte95rDSZh52LMu7kOXKkndy6eQWVh4RDtmWQLdmc B7yA== X-Gm-Message-State: AOAM531KhNjg53MBqFSr7oPXBKiUEENe5yjS1GgNlxshgSUpB8xeY3oy 6QDwW0cfVka+g0SpbDiH7M0= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211130_201242_078934_1CC2000B X-CRM114-Status: GOOD ( 19.43 ) 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 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: 12694262 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 691E8C433EF for ; Wed, 1 Dec 2021 04:16:05 +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=8zfmkReUM8W139Y5MLlOWWJ7KmCQjO11AqZvPcW4sE8=; b=nWRPqfZXgmo/RP g266Xwtl+Nje7b4BwHUOTPgvqAbyqF7BTQO4CST0/BWEhzLReIvL45zcuzlv0NJj6PXw+diM81wB5 ThKv9tqdKZDwrpd5R/gr6Dn0dUeR4pgH3lgNbmaFI3V98bISZuPI9aAh4RMASEMthGvRE6c3Gh2gA YN5Sna2F9UJy1OyusSO6LNBYahOmqwQ+85LZmBbi1t5WM9zOrrT86/Ti9owvOKbAO2xB/T2nqJJlf wR/3cbltD6gVOS4y6PWKD5D41e+WkkSJ79EOSnAuLgeMkMEYHuSwyGLDaPd4GYC6X6nCorm48CtHL PEwTtCQSWwlOuxtBX1lQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msH0J-007PpU-NK; Wed, 01 Dec 2021 04:14:00 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msGz5-007PRE-RY for linux-arm-kernel@lists.infradead.org; Wed, 01 Dec 2021 04:12:45 +0000 Received: by mail-pj1-x102c.google.com with SMTP id y14-20020a17090a2b4e00b001a5824f4918so19970578pjc.4 for ; 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=PV//EKvQQ4Dl+Pjd5Yox3eXP7hT2VRhMA/dAkub8Oi+2VwjUOYucxp4J8aHyjSps72 zzEhIJV6xfBGoY6S2+ENM5z97R1ngDFbawKva5VVw2r90HOd7hPQcghkltpsFcbujFik fW0zu09+TW8yKb6Wjv3Pt7G/kF+KOQc4pAGhdLfC8OW7T7l6YsaMlG1P2IA7jEkHrMHc phmanDeVOHfoqEDUHSRzvWqxXkBryBr+E+UrVBzsB0gfOmkQo2ba6eoXqAvukgse8U98 E6nPhImfTAAg4M/limFEqaGcSNCFqJMTIwGU1dtbzkEB3xS9HWlX/KQ6MQ2QH8iHigCC 8LrA== X-Gm-Message-State: AOAM530tIsRs1xZb6pJPUHSsW0jAPpBqX+OrZPQzBt9QiiQ38E9JS3Fs xxo1h/1/4mAxU/gt1YW53W8= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211130_201243_923344_DFC0F8BB X-CRM114-Status: GOOD ( 22.76 ) 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 | 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: 12694263 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 9EBC5C433F5 for ; Wed, 1 Dec 2021 04:16:14 +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=xiTG9PfMeRwfcCCtAci7/J2mG7PC2CjkDVOCJ6i2mSc=; b=sK8V4rh7fFb6Zd fb+k/M7UowVLwOdIx+6TzCdsT3ctoOT9Lu8pLZgxWccaOs1SmvjbCHArGCjBEigxp38AtWkVXUJPk pPpIdbQp24mN8FotWJ+jKMnVu+uuklkjrLqmFOjZrGbUaBa4u8M5v0i7yxj56saLDXHeM1A6nxFhN awmCYqjLsLLyyo3OjxVvhPrFavfEg8g70r9BJKIps67Md4gx7+thv8cug65yqqaeDNXNI+XkcEEir aCzfFUZpB504Nf0VQlWQX1LukCLQeHwJIO3zKQK8iyhhTe5ZuIVgUNEPnm5ptwXIVWVYSfifZzFWj ivcXHgL09+CdaWxujHDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msH0h-007Q0t-LR; Wed, 01 Dec 2021 04:14:23 +0000 Received: from mail-pj1-x102e.google.com ([2607:f8b0:4864:20::102e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msGz7-007PRd-Ob for linux-arm-kernel@lists.infradead.org; Wed, 01 Dec 2021 04:12:47 +0000 Received: by mail-pj1-x102e.google.com with SMTP id y14-20020a17090a2b4e00b001a5824f4918so19970630pjc.4 for ; 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=CDXFdBUFvLKjkPnnk4dSnmvkcsALN+0DcZFn+1NKVwfmEPigmkFCWSGKUgENQgw9Bv 099LL730ixsktmWlX8ki5pk8LVlxjLIG6LXZvTA8W3Xr68EHFLPFPYvCvYMY9UTitQeR vPUfiP7wJwXcQAazPiTHKcZyUwvt1a/vCVxcW4/KdL9btd+Tw0/Vou2HrREDjc4yveaB sRE6t0HfZlBX0v9HnfYLqp1BWIILsxGXvPm2a/kJD/H9nL4LzNhyIU5IlzRejM7TKxHf 1kN0teClalvW2+UBlDYwWWyIjvQOl/nYH5SSdXuL6Fsvouf0RN0ztbMLE67b/Wm4KJej Easw== X-Gm-Message-State: AOAM5315u6GHndVfTZ+uQDsSSycDhfdhbiDDQzQ0bGyxAJWj5I6Trl43 ecNUEf3hrpDtU6A1QzUAXI9nEy+ame8= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211130_201245_841855_B28C9729 X-CRM114-Status: GOOD ( 17.96 ) 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..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>; + }; + }; + };