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 {