From patchwork Thu May 23 18:06:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 10958615 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8C89E76 for ; Thu, 23 May 2019 18:09:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 70E3D28672 for ; Thu, 23 May 2019 18:09:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6191028678; Thu, 23 May 2019 18:09:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1C65428672 for ; Thu, 23 May 2019 18:09:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:To:From:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eSRwx/BwK+s3Ech0fSeKTml8z/vg8mE/aFGBrzbI3Jk=; b=lgDp87NIfHu649 l6tD1k1BVtHd7Yehss7672YPfetIpoUeeo/0MIhYY3PlfALyHVxq0EXGhciiJB6FR2hv91XrLmhEX WWyraqVy7sGupYR23wi5ryA0NGf7Jvla4C8KWbtArBXtPyr33V6CQIzpeeoxGBIlulY/DGNHslUSJ KRLh1g+yCHqtn11gg5jNQbTRPA0qXt+RLj384NzKv/CWDSerZAQVDVHgEfL/F0ztofcxWNbyemxCf rv2sSO0KTw9z0ZuWz1NzHEi8okswGkcDsMZvzZoJot7Tv+8X5wKmXtR+tx+0jHzO5VS/55/L79cIH 2LS0xbL3VMqKhwycb6fA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTs9d-0002z5-Fs; Thu, 23 May 2019 18:09:25 +0000 Received: from mail-wm1-x341.google.com ([2a00:1450:4864:20::341]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTs9a-0002yS-Vy for linux-arm-kernel@lists.infradead.org; Thu, 23 May 2019 18:09:24 +0000 Received: by mail-wm1-x341.google.com with SMTP id x64so6789611wmb.5 for ; Thu, 23 May 2019 11:09:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=sOizVTvn298iqjSRIp3glGwvPvP9G7hNhxiAnwHpvqc=; b=HT6PtgZ6wal7rH84TWBdE51xCeto45OrsGyFFDtrbFmNmcgEAA1B2EBwKF8VC5xOkb 7uOUIKrnz9F1TSPHPVm5QQqW2woKrLheB47BUr/1eTGeohIB70SxmuuNFulA3gxrsl8F GYqzNO/3OiY/ilaAScYRcCRDuw9JURz/VR1IsMDW3t89JD/s2OqB5WUFuHi9M9n4ZLnh MYP1IPRAnvHuqovoQvzUHmqL0uHWn+m49qPR5c/9ErFB7lSnl2HHv8fYOTVRp6BkMVeK x71H1lKbrLZn8i8wOG2nTEZ/K9R+Em39arssLJ9d2Q8Na99qY74T3P32gWd7OXR2PzNi Z0cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=sOizVTvn298iqjSRIp3glGwvPvP9G7hNhxiAnwHpvqc=; b=RQD5GZbXSE/TvrC+v6YVoT49MxEpPE2LnnVP71i0hV07Oa+L9rZcm8AOadU+EfWjhD cZyhuJezPS+8wdFYhKnFW1CDSQ9UEROlIQP5RQBAXXX4eNqWzM+PW89uvnqw7ZRmvugG kmp1zthY5HbkC2yfW0bnV4n8nJNDmduJjXRETsjPm8+wr08/Xp0f7ImYvrocdhloXftW nfGtxfjnmdZ4En4l+nZv4cESgHiTFN7va2m1/uC2U36x7MWrS25OQ40N8knwjB3OFEoK u9pic5ANmhIZpo60rnG6B3mDzDgXdyuuUcl1hVMUUtvJWySyD2B9AKOFLf20OWu5ORQZ My5A== X-Gm-Message-State: APjAAAWHo4GcW/SMzXOeO6rw5Jc2x7beAmTZ+NVq2Xd6wap4oru4nix7 331+hqjFkFP6nVvfSeYZO28= X-Google-Smtp-Source: APXvYqy147/NpI75h/2GI1OtYxZdgY6B6QxWwtQHLXxbCBDNL5Qo9H3CMyCRV+mfMbejpfCFouvBpA== X-Received: by 2002:a1c:7dcf:: with SMTP id y198mr12219750wmc.94.1558634961344; Thu, 23 May 2019 11:09:21 -0700 (PDT) Received: from ?IPv6:2003:ea:8be9:7a00:3cd1:e8fe:d810:b3f0? (p200300EA8BE97A003CD1E8FED810B3F0.dip0.t-ipconnect.de. [2003:ea:8be9:7a00:3cd1:e8fe:d810:b3f0]) by smtp.googlemail.com with ESMTPSA id y10sm451116wmg.8.2019.05.23.11.09.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 May 2019 11:09:20 -0700 (PDT) Subject: [PATCH net-next v2 1/3] net: phy: add interface mode PHY_INTERFACE_MODE_USXGMII From: Heiner Kallweit To: Madalin-cristian Bucur , Shawn Guo , Li Yang , Rob Herring , Mark Rutland , Andrew Lunn , Florian Fainelli , David Miller References: <9d284f4d-93ee-fb27-e386-80825f92adc8@gmail.com> Message-ID: <10f0f749-ec92-2ec6-45bf-a4f40163a19a@gmail.com> Date: Thu, 23 May 2019 20:06:49 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <9d284f4d-93ee-fb27-e386-80825f92adc8@gmail.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190523_110923_031148_6DC41391 X-CRM114-Status: GOOD ( 13.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "netdev@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for interface mode PHY_INTERFACE_MODE_USXGMII. Signed-off-by: Heiner Kallweit Reviewed-by: Florian Fainelli --- include/linux/phy.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/phy.h b/include/linux/phy.h index 073fb151b..7180b1d1e 100644 --- a/include/linux/phy.h +++ b/include/linux/phy.h @@ -103,6 +103,7 @@ typedef enum { PHY_INTERFACE_MODE_XAUI, /* 10GBASE-KR, XFI, SFI - single lane 10G Serdes */ PHY_INTERFACE_MODE_10GKR, + PHY_INTERFACE_MODE_USXGMII, PHY_INTERFACE_MODE_MAX, } phy_interface_t; @@ -178,6 +179,8 @@ static inline const char *phy_modes(phy_interface_t interface) return "xaui"; case PHY_INTERFACE_MODE_10GKR: return "10gbase-kr"; + case PHY_INTERFACE_MODE_USXGMII: + return "usxgmii"; default: return "unknown"; } From patchwork Thu May 23 18:07:56 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 10958617 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F0F0E112C for ; Thu, 23 May 2019 18:09:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE34628672 for ; Thu, 23 May 2019 18:09:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D16A028678; Thu, 23 May 2019 18:09:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8956628672 for ; Thu, 23 May 2019 18:09:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:To:From:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=112HdAZZd0HiH+v07RFFEBrlWIDF/2gQ9MVmMLLDHw8=; b=UXZ9rJAHQaZ1BZ 53QQ7jIsXG6cf3m5QRb+FhAKcP5KvdVv9RXjYThZe7JI/k7Zf8jT262aWRJJjj9PkRErIEwusftAH wfHElRc9Qo/Dm1Ov1+i9Np+U57jVWLF4WB6U/Dron7MPURxbO9rOea1kDd3NEXPivsHIMML5pIAYK Lk2IwR6WKrjLqcCxQMpPncGq/oauLzSrARkgOCVZcr2I61WhtXhLg0NiIU76Qr7gD0DdTs0Q+Jwv3 4H6r5kf02zrR5kfiBWkVrMrINzB33V1FJCaEPusCe8ALH4RQ1D1eTJ4sOJpOq/NBTsIpa/E4He4Pf qEWSoLTDF3aPhLfFReAw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTs9s-0003Gl-1e; Thu, 23 May 2019 18:09:40 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTs9c-0002yi-ES for linux-arm-kernel@lists.infradead.org; Thu, 23 May 2019 18:09:25 +0000 Received: by mail-wr1-x442.google.com with SMTP id l2so7283417wrb.9 for ; Thu, 23 May 2019 11:09:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=z1bHAtbIn7rSn47PzmH0efg4xnX6wgVivQeyJp4q2b0=; b=BfW+Ptbz0yweHlXl4q8XNk3KTCoeAneQn1AcFc1LH9Jftou1T+9hajJIXqeiIOOvhx A9FrPd+LKczQZEamBkt9TEL69XEBU6uk9eUccMCbM0WwWtvB8jkdfYTcgmeeJp0uLWLH hbdZBTtzDfpS9lzZfxAq+CSYfQztc+LxtEwGZUKDcsW82prkYF+h+p90WCGuKgT1nCJC VoI0jXoqRCXxtQX5d1sLTocYlpKVGMNrZZPNeTjaNRplBrWp3rdwZlkWuG8yRWnPW+NA VXpVLYFXdrY3e+mQT6bUWxTfYHsQLorEVFPcjodVi45qGBWXdUAN6KeTYmjEfIcuz0N3 kgNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=z1bHAtbIn7rSn47PzmH0efg4xnX6wgVivQeyJp4q2b0=; b=Dt9SAT00sMZ3Ijh5FV+N99RdMyD28vkGTWkrpgrGMI3HP259upZteQcyiPEvSzUTdR TFD1UyTHbrPcy/3NpAi5ZhKBaclVal3fHhekYzbvIEQnMCv29OzSeyUJjGLY5WQ3v0Lk okm1Bo1bVEr2rEkjXY5ahDZhpxGmAYmaAogIuD6N7kNb0I09qCqLPTlDiEdbMGxNDroT M1u16QBCqvkyvGMZIGTxEX2LGZHufy/nw3my0hKEpscepL24IZJIUwQkxmCIFl4sTf2Q L1fCYCYyLBVeYU4IopJ/IFdH6pd/sNPNCIhUe+plBjznYxQTubblHTe8CdrOpkef9ujY vOtw== X-Gm-Message-State: APjAAAVht/uf3gP5Taj4NrFVYriCkinh+G/5Jx+7p/2GJQrCWDPraoMP pn19CeZr5DDHgC0zVeH4t8Q= X-Google-Smtp-Source: APXvYqw2taeMm2hx3sf4eipJMUoRMrxDqWF1PlN1DCdkzDGCEN6JLPU395wC4e7PGcmnf6yrLUyUng== X-Received: by 2002:adf:83c5:: with SMTP id 63mr30194086wre.33.1558634962910; Thu, 23 May 2019 11:09:22 -0700 (PDT) Received: from ?IPv6:2003:ea:8be9:7a00:3cd1:e8fe:d810:b3f0? (p200300EA8BE97A003CD1E8FED810B3F0.dip0.t-ipconnect.de. [2003:ea:8be9:7a00:3cd1:e8fe:d810:b3f0]) by smtp.googlemail.com with ESMTPSA id u2sm42511817wra.82.2019.05.23.11.09.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 May 2019 11:09:22 -0700 (PDT) Subject: [PATCH net-next v2 2/3] dt-bindings: net: document new usxgmii phy mode From: Heiner Kallweit To: Madalin-cristian Bucur , Shawn Guo , Li Yang , Rob Herring , Mark Rutland , Andrew Lunn , Florian Fainelli , David Miller References: <9d284f4d-93ee-fb27-e386-80825f92adc8@gmail.com> Message-ID: <60079a09-670b-268e-9ad5-014a427b60bf@gmail.com> Date: Thu, 23 May 2019 20:07:56 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <9d284f4d-93ee-fb27-e386-80825f92adc8@gmail.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190523_110924_481503_714EAEAB X-CRM114-Status: GOOD ( 14.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "netdev@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add new interface mode USXGMII to binding documentation. Signed-off-by: Heiner Kallweit Reviewed-by: Andrew Lunn Reviewed-by: Florian Fainelli --- v2: - binding documentation change added to the series --- Documentation/devicetree/bindings/net/ethernet.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/net/ethernet.txt b/Documentation/devicetree/bindings/net/ethernet.txt index e88c3641d..5475682bf 100644 --- a/Documentation/devicetree/bindings/net/ethernet.txt +++ b/Documentation/devicetree/bindings/net/ethernet.txt @@ -43,6 +43,7 @@ Documentation/devicetree/bindings/phy/phy-bindings.txt. * "rxaui" * "xaui" * "10gbase-kr" (10GBASE-KR, XFI, SFI) + * "usxgmii" - phy-connection-type: the same as "phy-mode" property but described in the Devicetree Specification; - phy-handle: phandle, specifies a reference to a node representing a PHY From patchwork Thu May 23 18:09:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 10958619 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id EB186112C for ; Thu, 23 May 2019 18:09:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6DCD28672 for ; Thu, 23 May 2019 18:09:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C6EC828678; Thu, 23 May 2019 18:09:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 722BB28672 for ; Thu, 23 May 2019 18:09:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:References:To:From:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ET8nFX5sTrQ7CTtBuUVxZrwwwbq2hpa8kAeXUVpl2cQ=; b=OngfD9A9+fjbHh iV8m/NzIQxQ/Ujk0HHO40pgvsy4tOZW2QGw85PTmmNnu9dBEu5tJirg6iWk6k3/w6+TDXfGbvpIrQ wvRJkkAtA9NLb3na6B2uaglTH8OJFf4/NSvtoFqPcgnC27C6lOiKOmZzCPNekuoFfwyJJIx9AWILO K5McBBMTzjy86SJNoJO73C5wCjiCO+w1O1YZXaG43fVjShu6bupOArHUlxzcdsccQZCS0hhu3vwRB nMGbZslXXN7ih7Nkx67a+oraw4gWJbMI/J6DPSNAHhqQsF4U+k8aE3i1aFjPHhJicePT6WyrewiQC OXiI5I3tOfRPdGY2g+xw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTsA4-0003Up-MM; Thu, 23 May 2019 18:09:52 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hTs9d-0002z4-Si for linux-arm-kernel@lists.infradead.org; Thu, 23 May 2019 18:09:28 +0000 Received: by mail-wr1-x444.google.com with SMTP id f10so7293535wre.7 for ; Thu, 23 May 2019 11:09:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=MUoTI3lFf39uXeM0VMygbT8Su2qPCBrpSTIiYNMYwMo=; b=rr02zRjWHPqO2iKOD8uh3r3TDWyeBMV2gm4f8JstYzBGZAVHOzfjcHXFyB95eJlnMc dL8XAkDoWzYcc7kBADW3J5ATrKlhXVlg9G1zneiH5N6x/yEO7FbzEsKyR5ch1bQrsJoB 1VzQ+Jzdwkp/i6jm9V5+z9M3VJfa2X20K6I3sM9OTEpZcOXVvCG7E2KBd4t753EBf7i1 TpTuyu0q30SBw4RRwL1AuzYiDk/xF832kDs3Vs2MLeczRxm+QxIT71muIg3U95bNMDAL ucBJ7TeAwEmjmU8Wm7iXmJEz8BBkZ4Lt1ZGVcqoPR+cLHbsPPUEllfK2wlmG/et4K5N+ dS9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=MUoTI3lFf39uXeM0VMygbT8Su2qPCBrpSTIiYNMYwMo=; b=uAARXDaG7tbuSMEUMmPS3huwvzh1U0RxtKQZDIONtXmhFiSlYddaQU5WTsASqmyzmq Sux8r6tEoieOPxVBhXYD2aXuowmR4vpZOjUJQ67pzJYVmz6C4GYAvZIPz+wkC93XQyBt X4QMx+L8FMpOuk1RaMyDtqUCzDBX7BLEsm/NYVJ6oPjkPZUXz1ZzVBH/pcli71rHH1eU 8At3CWhuoLPTLIvyfKwcACNSYftrjk+OuQvpG5u3AFwmII0me+5dt5lj+jkobgEGgPuJ oLBG1SJlukFK4TmuZ/rT6GtK35XyQjlT3lIpbSvZ6IDBVMKEOYvYeD8OHM5coVZvHw+7 MLog== X-Gm-Message-State: APjAAAW7eJ1SD/AqEVpTYiPZyGYNgffQ1+3BOUjLEOL7V9/jCu3u/e+u tW0qhBpHoxQ6ZEkTobsr+jQ= X-Google-Smtp-Source: APXvYqw7fovl5AhusgJmiVAm3W+wCGx8IE3r1LsoQJIUn2wT4olUeQsRIvDQvuLXGpmYD62Gu1I1pw== X-Received: by 2002:adf:a4d8:: with SMTP id h24mr3714696wrb.171.1558634964298; Thu, 23 May 2019 11:09:24 -0700 (PDT) Received: from ?IPv6:2003:ea:8be9:7a00:3cd1:e8fe:d810:b3f0? (p200300EA8BE97A003CD1E8FED810B3F0.dip0.t-ipconnect.de. [2003:ea:8be9:7a00:3cd1:e8fe:d810:b3f0]) by smtp.googlemail.com with ESMTPSA id b10sm64526588wrh.59.2019.05.23.11.09.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 23 May 2019 11:09:23 -0700 (PDT) Subject: [PATCH net-next v2 3/3] net: phy: aquantia: add USXGMII support and warn if XGMII mode is set From: Heiner Kallweit To: Madalin-cristian Bucur , Shawn Guo , Li Yang , Rob Herring , Mark Rutland , Andrew Lunn , Florian Fainelli , David Miller References: <9d284f4d-93ee-fb27-e386-80825f92adc8@gmail.com> Message-ID: <96437cfa-b1f9-eeae-f9ca-c658c81f61c0@gmail.com> Date: Thu, 23 May 2019 20:09:08 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <9d284f4d-93ee-fb27-e386-80825f92adc8@gmail.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190523_110926_312230_0A7C357A X-CRM114-Status: GOOD ( 15.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "netdev@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "devicetree@vger.kernel.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP So far we didn't support mode USXGMII, and in order to not break few boards mode XGMII was accepted for the AQR107 family even though it doesn't support XGMII. Add USXGMII support to the Aquantia PHY driver and warn if XGMII mode is set. v2: - add warning if XGMII mode is set Signed-off-by: Heiner Kallweit Reviewed-by: Andrew Lunn Reviewed-by: Florian Fainelli --- drivers/net/phy/aquantia_main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/net/phy/aquantia_main.c b/drivers/net/phy/aquantia_main.c index 0fedd28fd..3b29d3811 100644 --- a/drivers/net/phy/aquantia_main.c +++ b/drivers/net/phy/aquantia_main.c @@ -27,6 +27,7 @@ #define MDIO_PHYXS_VEND_IF_STATUS_TYPE_MASK GENMASK(7, 3) #define MDIO_PHYXS_VEND_IF_STATUS_TYPE_KR 0 #define MDIO_PHYXS_VEND_IF_STATUS_TYPE_XFI 2 +#define MDIO_PHYXS_VEND_IF_STATUS_TYPE_USXGMII 3 #define MDIO_PHYXS_VEND_IF_STATUS_TYPE_SGMII 6 #define MDIO_PHYXS_VEND_IF_STATUS_TYPE_OCSGMII 10 @@ -360,6 +361,9 @@ static int aqr107_read_status(struct phy_device *phydev) case MDIO_PHYXS_VEND_IF_STATUS_TYPE_XFI: phydev->interface = PHY_INTERFACE_MODE_10GKR; break; + case MDIO_PHYXS_VEND_IF_STATUS_TYPE_USXGMII: + phydev->interface = PHY_INTERFACE_MODE_USXGMII; + break; case MDIO_PHYXS_VEND_IF_STATUS_TYPE_SGMII: phydev->interface = PHY_INTERFACE_MODE_SGMII; break; @@ -488,9 +492,13 @@ static int aqr107_config_init(struct phy_device *phydev) if (phydev->interface != PHY_INTERFACE_MODE_SGMII && phydev->interface != PHY_INTERFACE_MODE_2500BASEX && phydev->interface != PHY_INTERFACE_MODE_XGMII && + phydev->interface != PHY_INTERFACE_MODE_USXGMII && phydev->interface != PHY_INTERFACE_MODE_10GKR) return -ENODEV; + WARN(phydev->interface == PHY_INTERFACE_MODE_XGMII, + "Your devicetree is out of date, please update it. The AQR107 family doesn't support XGMII, maybe you mean USXGMII.\n"); + ret = aqr107_wait_reset_complete(phydev); if (!ret) aqr107_chip_info(phydev);