From patchwork Thu Oct 1 13:20:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 1375061 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C2DQg3Xppz9sPB for ; Thu, 1 Oct 2020 23:25:47 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=PX9mhZwd; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4C2DQg0CYLzDqGY for ; Thu, 1 Oct 2020 23:25:47 +1000 (AEST) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nxp.com (client-ip=40.107.21.64; helo=eur05-vi1-obe.outbound.protection.outlook.com; envelope-from=vladimir.oltean@nxp.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=PX9mhZwd; dkim-atps=neutral Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2064.outbound.protection.outlook.com [40.107.21.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4C2DJy5hCnzDqVS for ; Thu, 1 Oct 2020 23:20:50 +1000 (AEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QEfzA0dX0vu6XSZ1BmgEpVg6ZTHCQeo8AmtW4YEoHjWadcTY2Sz4glVbGzxVZMED58nqPwZPXByt2oDQZMeYkcRLtB82bMnQkwl0n2leNBNWB2tuCsGSOB9ZPaLSN0XocGKqPylz3KSDSEQw2h7gIxXcF1zNCGBfwtyaJdgrdC0jIsjgsaY/GWAt0zkZ+SMjxqH5lzv6pkMyMCV13msk4Uq41w9e2ISjH9fYNbFPCjJXnSwcEhP5gpUHVpYTBetV0pJ0rISEqd+sM4Ou1idYpBmBBRkt4VdWk+xk21P9nFgCoY5Wqe1H2Po8lUL7xH4HJI3xW1kIPt5nLYMgCQnDFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=S3/Xyq3rsfPktVd1WFC1eSvBi9kBb47rHAozahNZjt0=; b=WnKoYrWtGzluNT4tY0JCgN0M9ph1t4JWpgnebidNeOEeu/ZNrV6tH60xMzFAh6m5vEO5zcUJzxUXblyCBePlhRjLTk9csXL4eZmwdYfTtUOdOD0Y0TBiftVcn/HueT/JiKJdpkagXV+LGEeWegZn8nQPPWQ60QLOb38aLL0xoevl2I92HDY+nkD2kTdMcfcMxFdcVJscIJpclqglBubA7clcVd8rUa7NhdpguPMGAiAg6/Ojw+hPhA1zncoGBKjCJoTVtlsxu7FfBo6AHurTf3fBuNBR/EKwMHuy2/NhNoASfpTnT3bk0uddbX6ectD9FV9kTW3wH6tMhnhSgbnoAg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=S3/Xyq3rsfPktVd1WFC1eSvBi9kBb47rHAozahNZjt0=; b=PX9mhZwdDpYZdCh0NlAspLKA8NyowlttaoSEPnLSfXLBaCtBIbK1xuSxqv10f1GZmg1lvWIdWIH5kN0PWHZx1KmLm87XAR+EUYo8CIKeoo8CFNVtlWbg80HNpmM12/mcSNMtbuuyet7S1nXve67zh2uoIEQWXgxVgGeDE2zYAmE= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5696.eurprd04.prod.outlook.com (2603:10a6:803:e7::13) by VE1PR04MB7374.eurprd04.prod.outlook.com (2603:10a6:800:1ac::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.25; Thu, 1 Oct 2020 13:20:39 +0000 Received: from VI1PR04MB5696.eurprd04.prod.outlook.com ([fe80::983b:73a7:cc93:e63d]) by VI1PR04MB5696.eurprd04.prod.outlook.com ([fe80::983b:73a7:cc93:e63d%3]) with mapi id 15.20.3433.032; Thu, 1 Oct 2020 13:20:39 +0000 From: Vladimir Oltean To: robh+dt@kernel.org, shawnguo@kernel.org, mpe@ellerman.id.au, devicetree@vger.kernel.org Subject: [PATCH v3 devicetree 1/2] powerpc: dts: t1040: add bindings for Seville Ethernet switch Date: Thu, 1 Oct 2020 16:20:12 +0300 Message-Id: <20201001132013.1866299-2-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201001132013.1866299-1-vladimir.oltean@nxp.com> References: <20201001132013.1866299-1-vladimir.oltean@nxp.com> X-Originating-IP: [188.26.229.171] X-ClientProxiedBy: VI1PR09CA0064.eurprd09.prod.outlook.com (2603:10a6:802:28::32) To VI1PR04MB5696.eurprd04.prod.outlook.com (2603:10a6:803:e7::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (188.26.229.171) by VI1PR09CA0064.eurprd09.prod.outlook.com (2603:10a6:802:28::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.32 via Frontend Transport; Thu, 1 Oct 2020 13:20:38 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 625d4bef-09e1-43ac-0352-08d8660cca0f X-MS-TrafficTypeDiagnostic: VE1PR04MB7374: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6108; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Y4SqmbtVKQORV+Pbt0X1CpnhLVFwh6fogRxJ8ExQ5iXJ1M1DuS/anXGH2L10a2Kw6bpgvfOehT25ZaXLtawMt9pMjfRpl6PlJwre73uKkhtINfX6W/3JEPnRIaw0u8k+kLky3Md3qsPy7cZVQko7gSj42DXkPRoHm7to/VYdMjnIsCPH1r3u1YRJvZ/7e7Q5uivkby4IKY23S5/bJnW3ir4WHhfrjGZ80ZBQQnEZocdrrKP2rcDa4GCg/Kj8sIfxWem8U9DiDyEOwgl0dxjQc40oy6Kb3vCd5SCAKcKG1ZGy2KOPdXbm2vBqCEI+dsVahvgCJuGm+Hqgk29IezIEPZLZj/saTgT/e56qRET+O2/4c8FCJNn1UGcl1VqHXvl5basXNbCgmxPV9TfPMIWRlgXaj00HrbUKI6UFzvRoKgY= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5696.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(39860400002)(396003)(136003)(346002)(376002)(5660300002)(83380400001)(8936002)(316002)(6512007)(26005)(6666004)(6486002)(2906002)(66946007)(66556008)(86362001)(66476007)(8676002)(1076003)(7416002)(6506007)(52116002)(69590400008)(956004)(186003)(44832011)(478600001)(2616005)(4326008)(16526019)(36756003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: YpDd5q6OANUgJBxz9u0tA6sAdPvn//t/1BZbGW/RG6jMBs8ITA2B0QWpcJOyXRCS0QRKqCKmjL7AvuVj3u22pkttKQ6VUbhmCJn1cYV0yTa6wOW2z0hG5NLUmIE7reri+N0oO7Xf/jFsACkrnMonlAr9ceXhdXvvJ++MJxxCx0vsEblpY420NBLSWDCMXPXiCEjNBBGvdtSPbkP/ht8VM1kt3JlhDTWR5Z04GVML02AiIBXvV324iAVez6rfrNZS0ZqOKBayE3l3h9Of/X42UHfcep3gTGBUamOHwSAtZbbiCCvZiDwqq7ZPNxyLR98y+1i1QHxuXHxF5KFhfPwaL1UGUls+xqLL906xXBBFVHUCS9+rW8w2jvjojfoZwAAtVvaxzvoO1ZFvGvgbO2JVu28QkMWTj2YUdLxCCtm6fGc+CH9UjO/p5iYPrxNyRyOghEL4O/KNQb2qwhKWnJeGL0FUnszsGK748wB6lWqriYyIPZrvHzsQfVosU8xY4gzNKrY1lafjGZysFoZXop5AegYOzQyh69TUcIRtcyvPeNNQgQ4Q2nw96nF3IrJJJMfhaQfPdJe6Nath46s2nBdKIgtq3d4zXPKSP+42L3oA8uZTTrjqw5qB8Kvi+ZGf2QMVgbYwcIzm0tN8nQ6UIaFElA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 625d4bef-09e1-43ac-0352-08d8660cca0f X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5696.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2020 13:20:39.0926 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: vxPPZ/nTZDJfM5s9OdacDXDzNynuE2l3XPf92HHceCpswVQUczDfFbX4O2br+vuy0NhJAUrmBYy/VsWjsq45ww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7374 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andrew@lunn.ch, madalin.bucur@oss.nxp.com, linux-kernel@vger.kernel.org, radu-andrei.bulie@nxp.com, fido_max@inbox.ru, paulus@samba.org, netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Add the description of the embedded L2 switch inside the SoC dtsi file for NXP T1040. Signed-off-by: Vladimir Oltean Reviewed-by: Maxim Kochetkov Reviewed-by: Andrew Lunn --- Changes in v3: Added definition for frame extraction interrupt, even if the driver doesn't use it at the moment. Changes in v2: Make switch node disabled by default. arch/powerpc/boot/dts/fsl/t1040si-post.dtsi | 78 +++++++++++++++++++++ 1 file changed, 78 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi b/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi index 315d0557eefc..f58eb820eb5e 100644 --- a/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi +++ b/arch/powerpc/boot/dts/fsl/t1040si-post.dtsi @@ -628,6 +628,84 @@ mdio@fd000 { status = "disabled"; }; }; + + seville_switch: ethernet-switch@800000 { + compatible = "mscc,vsc9953-switch"; + reg = <0x800000 0x290000>; + interrupts = <26 2 0 0>; + interrupt-names = "xtr"; + little-endian; + #address-cells = <1>; + #size-cells = <0>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + seville_port0: port@0 { + reg = <0>; + status = "disabled"; + }; + + seville_port1: port@1 { + reg = <1>; + status = "disabled"; + }; + + seville_port2: port@2 { + reg = <2>; + status = "disabled"; + }; + + seville_port3: port@3 { + reg = <3>; + status = "disabled"; + }; + + seville_port4: port@4 { + reg = <4>; + status = "disabled"; + }; + + seville_port5: port@5 { + reg = <5>; + status = "disabled"; + }; + + seville_port6: port@6 { + reg = <6>; + status = "disabled"; + }; + + seville_port7: port@7 { + reg = <7>; + status = "disabled"; + }; + + seville_port8: port@8 { + reg = <8>; + phy-mode = "internal"; + status = "disabled"; + + fixed-link { + speed = <2500>; + full-duplex; + }; + }; + + seville_port9: port@9 { + reg = <9>; + phy-mode = "internal"; + status = "disabled"; + + fixed-link { + speed = <2500>; + full-duplex; + }; + }; + }; + }; }; &qe { From patchwork Thu Oct 1 13:20:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Oltean X-Patchwork-Id: 1375062 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4C2DTc1QbJz9sPB for ; Thu, 1 Oct 2020 23:28:20 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=WHaNh3NU; dkim-atps=neutral Received: from bilbo.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 4C2DTb71TWzDqZT for ; Thu, 1 Oct 2020 23:28:19 +1000 (AEST) X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=nxp.com (client-ip=40.107.21.64; helo=eur05-vi1-obe.outbound.protection.outlook.com; envelope-from=vladimir.oltean@nxp.com; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: lists.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.a=rsa-sha256 header.s=selector2 header.b=WHaNh3NU; dkim-atps=neutral Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2064.outbound.protection.outlook.com [40.107.21.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4C2DK01whFzDqTK for ; Thu, 1 Oct 2020 23:20:52 +1000 (AEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OV/IPc5NmonPLSEL8/JYnHAqjZg24HOL6eQ9yhsN+WtyNhUtNDyoNlMhTgHE3k+R2rFnI2WaozxzUxr/wUU95gUbBUHoVRvpDB1lVk9cK4k37J0EpbGtnvX2AddByan0nM2dUhLi/p4JT4fm+yPN8TY5dLqiYeMt2lkQozQgENlTk8Tf66Pbeca4GgoGmn3wNMHuo/yl9KK/CjNXJKrhi7Yx7cOqVa6s6yl7A6SabX0uRC6ip6eiPjt5oN+k60fZfOvgfd8bidM2ZTZjrHMs13zEVG3nhct6Dr9afOCULxXu4d+LQbf4flqIxpu3i/Lov7l9T1aDEstesQ4jmCcgBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Refz6xWjsnu07/TZ2DAFn8k1Mzfxvzx9uLSy8+yuybE=; b=bw75R27ZrMAKECbJ9NCALe6AW88a3T15lT3BjWlO7gNKo0S3mkgetCe2dP21jpnaipGhUfZ/zy/SdT4shDJS6lPtHEz5znXA89KgurMesbdLdhJQRoeZwkEunWHmSUDrgKF7avxarpMMOcSgpfWudqYleStC6vIMZeZR7nsaMG2Ty0ReIhn5gZsXJp1qEihVM2voYzbYatmo3X2QfoVQAXXI7oqrhWEK1emL+oQP+C1q5o57xm81aiQ/St60Bli7/Msmh/NO9I3+O3WORLZiOPQtG5A5tADT0QYe1U+kyBtD+OGtZd2sJ16y/iakM/vq9IWPruUS2AUV5qnHgkOcvQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Refz6xWjsnu07/TZ2DAFn8k1Mzfxvzx9uLSy8+yuybE=; b=WHaNh3NUS48JE08zCooQRCv04HUsjuGtN83kLQ3qAOK28qNQJqKzuJHb7fm7iZXSOTp6dkke+uShZ7R80drC+ggt1XeY8PLrcXXPohNyBEPhol8g9PcBpVDEnP2SYa14IGUa0ymph1PMLgZZEolA9x8h42neG1FD1YDJt/UZee8= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VI1PR04MB5696.eurprd04.prod.outlook.com (2603:10a6:803:e7::13) by VE1PR04MB7374.eurprd04.prod.outlook.com (2603:10a6:800:1ac::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.25; Thu, 1 Oct 2020 13:20:40 +0000 Received: from VI1PR04MB5696.eurprd04.prod.outlook.com ([fe80::983b:73a7:cc93:e63d]) by VI1PR04MB5696.eurprd04.prod.outlook.com ([fe80::983b:73a7:cc93:e63d%3]) with mapi id 15.20.3433.032; Thu, 1 Oct 2020 13:20:40 +0000 From: Vladimir Oltean To: robh+dt@kernel.org, shawnguo@kernel.org, mpe@ellerman.id.au, devicetree@vger.kernel.org Subject: [PATCH v3 devicetree 2/2] powerpc: dts: t1040rdb: add ports for Seville Ethernet switch Date: Thu, 1 Oct 2020 16:20:13 +0300 Message-Id: <20201001132013.1866299-3-vladimir.oltean@nxp.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201001132013.1866299-1-vladimir.oltean@nxp.com> References: <20201001132013.1866299-1-vladimir.oltean@nxp.com> X-Originating-IP: [188.26.229.171] X-ClientProxiedBy: VI1PR09CA0064.eurprd09.prod.outlook.com (2603:10a6:802:28::32) To VI1PR04MB5696.eurprd04.prod.outlook.com (2603:10a6:803:e7::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (188.26.229.171) by VI1PR09CA0064.eurprd09.prod.outlook.com (2603:10a6:802:28::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.32 via Frontend Transport; Thu, 1 Oct 2020 13:20:39 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d0fa78ee-c896-4451-94f1-08d8660ccaa8 X-MS-TrafficTypeDiagnostic: VE1PR04MB7374: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /PGkATylz69ms2ppTvZnxFkweF2RjuzY2h3OERp0Q1tsXdVIwmJVHMF4UJUjWx/acDXYiqCHy1Bmom/e1jTaICOGirrSaltwpZCrIaZkl/lL2pr9Un8aTIAEG5wCZ9NC+PB98rQoHGk299PlpWRaId9y9xlB4Th1YnVTJwL+S0jLtMfqKjlNkWVTdQCqRqKgd3FnYk+SEY+TmrUP5rzbmM5Z7NG3nS9oTu5LFTsHDrDrGVlhCZBcFUxDrvrzQedRTVSpOoKIZA1jtYsrzBt+xNsBQUVaY8lMhgzfQe8wZOCmRhxipVpUvzmxvxhvfiRTjbO8p37nSb4tkh7lfyVIQJOXpgRSC7lfF3v4cMJ/F0LR1vVgTt5kKKyEmW1Lj/NAuBkEeUjZcDhLxdT6xKF2D49OnjEI939kojA+iERrm8BpmC84HKQHWt2Qf1oNv62a X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR04MB5696.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(39860400002)(396003)(136003)(346002)(376002)(5660300002)(83380400001)(8936002)(316002)(6512007)(26005)(6666004)(6486002)(2906002)(66946007)(66556008)(86362001)(66476007)(8676002)(1076003)(7416002)(6506007)(52116002)(69590400008)(956004)(186003)(44832011)(478600001)(2616005)(4326008)(16526019)(36756003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: AXaiFhCFAORAvFqR9yITCX2ONBM1NaQYyYKLZSFhtdtTfAbJK1bNMUHsbcOTut5KDdLLUw4kfy/i3QHz0BdchMjO++CAqcuqN0+/6haS4/vhrVscY6ikNN4wMRyTx7tRoLDADU+KSQlRs49oWbZdVyn2/r3pKVKyfO9OoO/uQNxx0moYzqjg+k7KuKA42/sQWnmiefSUmwYEPOXyF6260i+DXyaA8jQx7XepnYHtLcZ7Lf8rbMt4LdOQUuWp/XsKYL2m9/sbRHybraHP/b/S6J1sNjM5anjbDMXnWVAR9Q3No+bCqwJf4ImsriaeO4v6ciHuflFL8lTwxJrhczNbRv+XShm1AnrKh3CIWozBf0ZCwKJOHyv6lApfkeHLnSCxzA9uljKlLa8lIQgSy14eWGPS8JLghFyEK/HcuSdJt8bU9iOMa8YEIpXjJIWNWupLlRdICuE1SUnI+ZzB3jccl/w9o4OBIFFnHAoICSWfcal8QUDu81XpBB5WLvC7Yw2T8Loa7KzIYmxOZcxF7fXFRmj0tBZ9/f3lMbm2rvh4GNYyU+ryuZEA/zVvUyjPs2vd/A9e7Gny9o4ELP2B+NAXNfpJl8FAL3t0C6i3a7kUF85hLNp8S7l+51Bee+oRbrAYoDxbQe0ipVvxhM/x81jh9w== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0fa78ee-c896-4451-94f1-08d8660ccaa8 X-MS-Exchange-CrossTenant-AuthSource: VI1PR04MB5696.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2020 13:20:40.1030 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UslRyUHzCXW2M1VA2jKT5x92bKNWiHA8ohcds2sXe+VQT21duwIeVxOR1TMlN7q/D6YZTm1xms7vhN2Dh0WeHQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VE1PR04MB7374 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: andrew@lunn.ch, madalin.bucur@oss.nxp.com, linux-kernel@vger.kernel.org, radu-andrei.bulie@nxp.com, fido_max@inbox.ru, paulus@samba.org, netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Define the network interface names for the switch ports and hook them up to the 2 QSGMII PHYs that are onboard. A conscious decision was taken to go along with the numbers that are written on the front panel of the board and not with the hardware numbers of the switch chip ports. The 2 numbering schemes are shifted by 8. Signed-off-by: Vladimir Oltean Reviewed-by: Maxim Kochetkov Reviewed-by: Andrew Lunn --- Changes in v3: Renamed interfaces from swpN to ETHN, as per Andrew Lunn's suggestion. Changes in v2: Use the existing way of accessing the mdio bus and not labels. arch/powerpc/boot/dts/fsl/t1040rdb.dts | 107 +++++++++++++++++++++++++ 1 file changed, 107 insertions(+) diff --git a/arch/powerpc/boot/dts/fsl/t1040rdb.dts b/arch/powerpc/boot/dts/fsl/t1040rdb.dts index 65ff34c49025..e4067f3d2980 100644 --- a/arch/powerpc/boot/dts/fsl/t1040rdb.dts +++ b/arch/powerpc/boot/dts/fsl/t1040rdb.dts @@ -64,6 +64,40 @@ mdio@fc000 { phy_sgmii_2: ethernet-phy@3 { reg = <0x03>; }; + + /* VSC8514 QSGMII PHY */ + phy_qsgmii_0: ethernet-phy@4 { + reg = <0x4>; + }; + + phy_qsgmii_1: ethernet-phy@5 { + reg = <0x5>; + }; + + phy_qsgmii_2: ethernet-phy@6 { + reg = <0x6>; + }; + + phy_qsgmii_3: ethernet-phy@7 { + reg = <0x7>; + }; + + /* VSC8514 QSGMII PHY */ + phy_qsgmii_4: ethernet-phy@8 { + reg = <0x8>; + }; + + phy_qsgmii_5: ethernet-phy@9 { + reg = <0x9>; + }; + + phy_qsgmii_6: ethernet-phy@a { + reg = <0xa>; + }; + + phy_qsgmii_7: ethernet-phy@b { + reg = <0xb>; + }; }; }; }; @@ -76,3 +110,76 @@ cpld@3,0 { }; #include "t1040si-post.dtsi" + +&seville_switch { + status = "okay"; +}; + +&seville_port0 { + managed = "in-band-status"; + phy-handle = <&phy_qsgmii_0>; + phy-mode = "qsgmii"; + label = "ETH4"; + status = "okay"; +}; + +&seville_port1 { + managed = "in-band-status"; + phy-handle = <&phy_qsgmii_1>; + phy-mode = "qsgmii"; + label = "ETH5"; + status = "okay"; +}; + +&seville_port2 { + managed = "in-band-status"; + phy-handle = <&phy_qsgmii_2>; + phy-mode = "qsgmii"; + label = "ETH6"; + status = "okay"; +}; + +&seville_port3 { + managed = "in-band-status"; + phy-handle = <&phy_qsgmii_3>; + phy-mode = "qsgmii"; + label = "ETH7"; + status = "okay"; +}; + +&seville_port4 { + managed = "in-band-status"; + phy-handle = <&phy_qsgmii_4>; + phy-mode = "qsgmii"; + label = "ETH8"; + status = "okay"; +}; + +&seville_port5 { + managed = "in-band-status"; + phy-handle = <&phy_qsgmii_5>; + phy-mode = "qsgmii"; + label = "ETH9"; + status = "okay"; +}; + +&seville_port6 { + managed = "in-band-status"; + phy-handle = <&phy_qsgmii_6>; + phy-mode = "qsgmii"; + label = "ETH10"; + status = "okay"; +}; + +&seville_port7 { + managed = "in-band-status"; + phy-handle = <&phy_qsgmii_7>; + phy-mode = "qsgmii"; + label = "ETH11"; + status = "okay"; +}; + +&seville_port8 { + ethernet = <&enet0>; + status = "okay"; +};