From patchwork Mon Jun 13 22:53:22 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadym Kochan X-Patchwork-Id: 12880269 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 403A2CCA47E for ; Mon, 13 Jun 2022 22:56:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=bKmYbCPTzc5gdvlc+ZuH4UvisOd/IkZsNbAIVaNpf6E=; b=Vzx0wcpgBs17zZ gDB0ZHTQhbQriIJIr3E/QtecI76/o12tKeCqELQy0j3H72P6JYzspTvyeFLuodyMjQ0bBjZnjH4i1 L+c6SKcUqEa1cOmRGZNlXy9ya9yk7ql14Mxx0welEPojQ24iCzy0gUqA7eCxI9mRJ7q8oWHxEfe3c Y1KsQtXiR7RBifvbP+Mmk4raJdD/+7usNXvkYaggurPw2AzABYGcPVVE+BSPSX8SmAvzgwHf31PU6 NaTxKPSI3v7HUlZ8Hoq+s93XNldtHBs4lltIyb5PE+in9rj9GHiSYqEyRLkkL1GsZOS9AVITuMR6y HJLU5vh5Tsfgb3JosmKQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0sxo-006Ae2-GJ; Mon, 13 Jun 2022 22:55:16 +0000 Received: from mail-am5eur02on0720.outbound.protection.outlook.com ([2a01:111:f400:fe07::720] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0sxk-006Abp-Nj for linux-arm-kernel@lists.infradead.org; Mon, 13 Jun 2022 22:55:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EUnPZaFbwMH/+NemFRW1ehs0dXe7iMlHi2sbQj5MjzI3i6m1F4DWsaBS8qiJPhjIrKotIj8saplA3kBdmLJO+g26JWX/toVExmBefG9ZBvcTOoUkAEHJ++w8xlsn5Yt+umwdd0cmndYFLsPSS3VcLnePAIcBXu1/JzWVm2kl2EEPAnqfypmrSfffdCvVCapJgoLJ1csc/RQ02FzuCfhoZEZBxf/10uJUqc9s1kodHH4Awf/ipBEWixE01bWt2GwUpulpn6N+n4iHwI3RmZsrv9Vm/aNr+RgA6bg+T7bA9mlkegIA5pbcbXYs4R6thXOZkSjPVhDV+aOqaotVHF5tTA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=B1peEdIuzVN/6A+er6r7jHsim5mtpbGbhi8voFswPMw=; b=jScUY1gnaCuExCU/EchSPyO+XQ1rxswyQL0gdluN3fs1fCQSpcg0rG5UVgXMg1/srcXOB1HU8CMWJ6ATv0mRpx+t3yXHYci7jFelYf0plu8HtGmOeNOP6a/vpQGndUWREkTKa70Wk2Hu5KutNBRaJs0y3bT6PgMKMTeonTsdbnRdtOv27534NFxwIJlERqJNWHEOH6cjZSFiWF/owrOjytNOnub0wimV+Wg0fhT3rldB/jE08YICpxuXSXZaN9/UxynamN7K7lWKTLQunzfdPIS41b7XcqoBZKab6lnsw65VQHvCn1biJ2SmV6jQbVWhuBx1rodxT+Au3OV3F0JFzQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=plvision.eu; dmarc=pass action=none header.from=plvision.eu; dkim=pass header.d=plvision.eu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plvision.eu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=B1peEdIuzVN/6A+er6r7jHsim5mtpbGbhi8voFswPMw=; b=wGhImL3fRITKCcXcFiBOvg6DDTHpqVq4T3gMQJrVvG3W7tpJghfL0IA89cc3tTlMTgwHDRfwicDglEzM3DoAjDEvvXhx2IEW5afay80e+xFXQbtqnEGmefRFCouhk4vtN8mI+4/xYrd8MHiRj3D51eMv0FXx3K2w2ANE4jAiGgU= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=plvision.eu; Received: from VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) by DU0P190MB1801.EURP190.PROD.OUTLOOK.COM (2603:10a6:10:349::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.20; Mon, 13 Jun 2022 22:55:06 +0000 Received: from VI1P190MB0317.EURP190.PROD.OUTLOOK.COM ([fe80::2c45:bc33:2584:959a]) by VI1P190MB0317.EURP190.PROD.OUTLOOK.COM ([fe80::2c45:bc33:2584:959a%7]) with mapi id 15.20.5332.017; Mon, 13 Jun 2022 22:55:06 +0000 From: Vadym Kochan To: Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Chris Packham , Vadym Kochan , Gregory CLEMENT , Konstantin Porotchkin , Andrew Lunn , Robert Marko , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v9 1/3] dt-bindings: marvell: Document the AC5/AC5X compatibles Date: Tue, 14 Jun 2022 01:53:22 +0300 Message-Id: <20220613225338.393-2-vadym.kochan@plvision.eu> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220613225338.393-1-vadym.kochan@plvision.eu> References: <20220613225338.393-1-vadym.kochan@plvision.eu> X-ClientProxiedBy: BE0P281CA0034.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:14::21) To VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8a8bc320-992b-46be-dab4-08da4d8fc262 X-MS-TrafficTypeDiagnostic: DU0P190MB1801:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FUNac7KE+u0tvQvKkXAqH1Wt5ywE1CllnLbwahI8qs/FVu6c3TSu34nUlIk4B19oEftwuordx05aTdKFF3jXQ0ohIBvEzBe12jVyr8BQlzuCjSdZLH0piO/fJa17St1YLxPCkIP9E8edYux/2Bvn8eRg1/KCLlgNBMf7a5dL8BmnAfMfMtyeMAPr+T0F0+zGEddMAI9Wu9ymi/KKXCqw/Q7IWLHtIH50EL3S/1RPjtK96PzFSxTvSmpvEdmipv9/2HZW4G4zFa5McnFUN3UItDdWg0VUtsBXhkZKFymrfEkKK9x/H1tbYos7wDo39KpOyc7IejZ3FJYnj6/W936kvjxTSiAEz6TqWpA+rvweElBSZVBjPAwN1iX4GAkQz072zcL6PCiIp8KPRhidA/tq9M67ZlVW/99A5cUn7UnvfiTtgXwlRrnXfkpKz8pQ8vXWPqU+oisrS0hNsSSS6x1AaM73D3Um1bdkhCPVmfm0dqLHaf6h14SOY1cNkMbrrSIrBYDjmE0uOc6rVa0+tV7WgiGqbHFZH4FN9rnEIgwAze3X7qjGQWA/6E6vGRUS9OF3gtqz4BGkQ5gVQuapPe3nWWaB4Kti9dGqggNGIKOhOqBCIFQW9Z0xLkrf2sK3tblqVNRBOiFjWWSe1c+2A4UfGnJs8E8Nx9oVzFAaz0WU8ajKJYA5vz69ekmsH7yLW4YIwUDD4k5jVhYaFP5T6zsnkpM4uEV7yAbRth5zwkOQ34KoSzjNwjI13BH+Dy/sTzFiJrxLHgjdjKjzazsSnNHuG/nLIrQ7zv3kYrhiRxfwcs6bxwoR8StJYlO6/5Voef+q X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1P190MB0317.EURP190.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(136003)(346002)(39830400003)(396003)(366004)(316002)(7416002)(5660300002)(66476007)(8676002)(66946007)(66556008)(8936002)(44832011)(508600001)(86362001)(6486002)(966005)(38100700002)(6506007)(38350700002)(6666004)(26005)(6512007)(52116002)(2616005)(2906002)(110136005)(36756003)(41300700001)(1076003)(186003)(921005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: J0YoUEefjgmD7qECrFZ2IbnXlGyHCHjcGu8DtXfCNCKxmC1g3qVT1cc4kdF+SqFkGHQAdk8yTlw+VZbny63tZDQcW31g5ME9z6K3DiK7uoJZg3tTV+tZKCgdpl7oWH9YUOwcydMmO/pJuNFn4M9uNdmRmIFvTH0fs9QW+vcbSdGTdzT4LQuuVroQma5vvSt0zB5kI0OEq2I2jIybQDTuakpmE/s6CluwJE013WsTjXlwR7fPOM2iJkxvUqyThp2VkmivQ/XS0uduyIn8qqH80syWmHkkKHEnZaHA2MFnTjkZv1CEdtaZIkMHDEPVk2vy6uw7eIIdKzxdsK9d3CaA9RzE+t0JfA70D8ZuhpXBIZOHk0Xq5HtVm4Ay+Gcn1pveYQrpyIq/Xd0nNt22odoP8uDTWwWGu+GtxIJc4D+HG0fZvGI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Ag3pcOVqrr6dBVdfHgxXd+hehT9FXy9JpxIi+qvqMksUNcZSQbpJ3UZwvxdVHqbS7Wlp2W/asY6vJ2gc/k5qFlkrv74jr73KRiOpykAIprBzWS1MzNbv1ycnv5KY+DMng6I2Jk4qjtve2htNj07OA7EjSz0TQ6mvZiN7K18tQzFUxVxHn4dDv+TVt0LLgWC5x1llOvoLXIRiNOTdpv7tz0fz1Pz9AZ7zjT7OKCDqUXBOpoq7p91C4sQjiEs08cEahGM= X-OriginatorOrg: plvision.eu X-MS-Exchange-CrossTenant-Network-Message-Id: 8a8bc320-992b-46be-dab4-08da4d8fc262 X-MS-Exchange-CrossTenant-AuthSource: VI1P190MB0317.EURP190.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2022 22:55:06.5298 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 03707b74-30f3-46b6-a0e0-ff0a7438c9c4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: VcYfa30LNE/lWeCh7Xki6JqusDoLN+pqDB6h+9oOT/1VZqTmWWzBxdgbd1kDERSWYfae9JDHS6FIcGjMMbZ/va8382eVht+gEBnyIDTXSGg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0P190MB1801 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220613_155512_803979_CA5D767D X-CRM114-Status: GOOD ( 10.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 From: Chris Packham Describe the compatible properties for the Marvell Alleycat5/5X switches with integrated CPUs. Alleycat5: * 98DX2538: 24x1G + 2x10G + 2x10G Stack * 98DX2535: 24x1G + 4x1G Stack * 98DX2532: 8x1G + 2x10G + 2x1G Stack * 98DX2531: 8x1G + 4x1G Stack * 98DX2528: 24x1G + 2x10G + 2x10G Stack * 98DX2525: 24x1G + 4x1G Stack * 98DX2522: 8x1G + 2x10G + 2x1G Stack * 98DX2521: 8x1G + 4x1G Stack * 98DX2518: 24x1G + 2x10G + 2x10G Stack * 98DX2515: 24x1G + 4x1G Stack * 98DX2512: 8x1G + 2x10G + 2x1G Stack * 98DX2511: 8x1G + 4x1G Stack Alleycat5X: * 98DX3500: 24x1G + 6x25G * 98DX3501: 16x1G + 6x10G * 98DX3510: 48x1G + 6x25G * 98DX3520: 24x2.5G + 6x25G * 98DX3530: 48x2.5G + 6x25G * 98DX3540: 12x5G/6x10G + 6x25G * 98DX3550: 24x5G/12x10G + 6x25G Signed-off-by: Chris Packham Signed-off-by: Vadym Kochan --- Notes: Changes in v9: - Renamed $id with "ac5" prefix Changes in v8: - Add review from Krzysztof Changes in v7: - Add rd-ac5 and rd-ac5x boards to binding. - Rename to armada-98dx25xx.yaml Changes in v6: - New .../bindings/arm/marvell/ac5-98dx25xx.yaml | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/marvell/ac5-98dx25xx.yaml diff --git a/Documentation/devicetree/bindings/arm/marvell/ac5-98dx25xx.yaml b/Documentation/devicetree/bindings/arm/marvell/ac5-98dx25xx.yaml new file mode 100644 index 000000000000..1d8dd7c00c1a --- /dev/null +++ b/Documentation/devicetree/bindings/arm/marvell/ac5-98dx25xx.yaml @@ -0,0 +1,32 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/arm/marvell/ac5-98dx25xx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Marvell Alleycat5/5X Platforms + +maintainers: + - Chris Packham + +properties: + $nodename: + const: '/' + compatible: + oneOf: + - description: Alleycat5 (98DX25xx) Reference Design + items: + - enum: + - marvell,rd-ac5 + - const: marvell,ac5 + + - description: Alleycat5X (98DX35xx) Reference Design + items: + - enum: + - marvell,rd-ac5x + - const: marvell,ac5x + - const: marvell,ac5 + +additionalProperties: true + +... From patchwork Mon Jun 13 22:53:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadym Kochan X-Patchwork-Id: 12880270 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 0B59AC433EF for ; Mon, 13 Jun 2022 22:56:47 +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:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ecMBarrVCj2VfvGBeESBoXn4iXX7nU18d0zNuDQh9gQ=; b=le3tfiDsUOd4zP mda4aHsMSe8tlIfpYIAN3Kkfdvi0hFiuBBukU8lgD7Q5C3kGGeNjlguneqAoWZfTJpOwhkTcrtbDP CkZbiG76N1Yu2W2jydT7oFK8yr6NXHpma7hRvmpkrNTmc8apHLrtSwxq5AWnt0yP/4pO95ZEZPmwW LEdfQFMLUzXxGWt6rXTkmLN/9N0Go0KUmA7T/zepA7RblL4UVSr6uM3dNFw7OZ8FTlqoyxJMs8NTy kZfSyxrAgBMKocVizJcx8G33bI6gOuJpiQUwDdzszber/Z3RXeC7oPqqzgE9vP0SAmIePr7pIlieL XqIFAoZUaK1Qg4wvu/ZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0sy7-006Ai8-5x; Mon, 13 Jun 2022 22:55:35 +0000 Received: from mail-he1eur01on0729.outbound.protection.outlook.com ([2a01:111:f400:fe1e::729] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0sy3-006AgN-1s for linux-arm-kernel@lists.infradead.org; Mon, 13 Jun 2022 22:55:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jy4hJ5gFEvCY0EBrAd5EHaW8Gdr4LD7uIAbwcv2eU5RBd0P830CEiaW4jjUcBjd95SBy09zTMsVSU2VsGwENB8xqrq7+Va2Qk+UBYJiU2vy39Sl6XQEGM40C2oMcmXt9mvSTH/0mjbzhzZXWBBQOTPnpQyZFGNiCD60629rO5/A1Hu6UuVs26r8psSdu2roxc7alqnkFprrIXhm2S6Xe+hnrWp3qz3EJhU0/8Zd1sRTQdpu07C1uQXuCfqvKKtLwz+VHXSRwn2g6viWahfM+FWJYkp55HuzSfte0bXUKlqbOu70drRM5RkieKjYyHDOufYOaXVFT7zRzWcltR1ZIJA== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+F/u53EOSZoP5ia6cmC5IbPLJg8m2fJjQu7Zcs/l3+c=; b=K3jAr7dR7pUgjMaLNeYjlG2AUFkY+1GcpJIxXPB3ekytqrSgJTULuSa0gZVhbFeaROQsoGQY+3GKgcPvCLwnuJvNFE0xW6VdSOr8QDHa+iUXpf6SptxFFsTLZR95Jq1348o+hKuXzTCFOhP97GAG+H3MuKBSiSEN3WMNBFkGu/IwmbyYQzGQuIG4J902Eg5ZuGxTF9NiViWs6yCt5Ak81evTxV+5krGVaYjdtoQkorLz5cu9h8vj0YugA+5c6m4OVx9gUN5AXNzZ+exdkklqKUz3CYXoc0+RcNd5omUQ7CzhzTFgaQJpGIwwkoBo786JI4fL4A0Wfw6IC78JJiPzwQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=plvision.eu; dmarc=pass action=none header.from=plvision.eu; dkim=pass header.d=plvision.eu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plvision.eu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+F/u53EOSZoP5ia6cmC5IbPLJg8m2fJjQu7Zcs/l3+c=; b=VyYIfCpBSTSIsdZ9zwTb4QXJjBq5Px25xYpFSqG0BYHXHvYw/Ni4cgEwrsABIUu5OCJhNswDmZu0bYSIJt+4G0Fiw6waOB9TGLR8qrcDMGn6N5Bxh6YRbGoxxCfeETjc35Nn4yNcw4jiu4hRGLD/XaGewL0PHGZkl7Vn7gIUkpM= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=plvision.eu; Received: from VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) by AM9P190MB1539.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:3ed::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.12; Mon, 13 Jun 2022 22:55:23 +0000 Received: from VI1P190MB0317.EURP190.PROD.OUTLOOK.COM ([fe80::2c45:bc33:2584:959a]) by VI1P190MB0317.EURP190.PROD.OUTLOOK.COM ([fe80::2c45:bc33:2584:959a%7]) with mapi id 15.20.5332.017; Mon, 13 Jun 2022 22:55:23 +0000 From: Vadym Kochan To: Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Chris Packham , Vadym Kochan , Gregory CLEMENT , Konstantin Porotchkin , Robert Marko , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v9 2/3] arm64: dts: marvell: Add Armada 98DX2530 SoC and RD-AC5X board Date: Tue, 14 Jun 2022 01:53:23 +0300 Message-Id: <20220613225338.393-3-vadym.kochan@plvision.eu> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220613225338.393-1-vadym.kochan@plvision.eu> References: <20220613225338.393-1-vadym.kochan@plvision.eu> X-ClientProxiedBy: BE0P281CA0034.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:14::21) To VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 65688cc6-626e-40e0-fd70-08da4d8fcc35 X-MS-TrafficTypeDiagnostic: AM9P190MB1539:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TiqTDQTEoeuCxPKhNqdbnydC5eRBmd2fl/+JSrHgk9WX+jr3Hi4PYSolPlIxGtTyKj78Dae+3HsWSwEF3cN+9pLgo20Mry+DDIpzPt0CS0uMhL+8C9lv4WzdsIZ7fEEYMtjMWwa0u/xaZyll+HUzkNsitapzsKQEDG0nHA5BFdEzM8HeFqJ2REhFLHq6McUU4Yzpz0GuMLEG2wxwQs+YRYe08YKx1zonOJSIH773dyALfSg6UQwsA6b+qZlCP8Iqgp2ML2Z6gawmDWO5m03lOrQaT3lTChbZ9WPG4IQbGQ44sXpSae716RoHMk7+k7fEaAcjTiW2nM+o1rGJUG+4KaFxCsfqJeEle5d5ycSuAuq7CXjJ+fFSPJ1RTfNT4LkwsbCYaNYmNzAA8VEA4Mit8V7mg5ui+sqHIohGMBf2C/nbeyTCcBR446gmWEELHEx8a6LWMLuaUwVuHNZ2wm343SLwipVBQp7Dnf+OtvnEQ1PFw2KpIuyZhsbYDCXnDCamn1YVNs/Y2TtZxnhzhNcKv3+WlUseJ8o7FeYM5J7gFDlxMqRLi0ljnJ9WOGQkNrDrfIcMC/DiXTWnHuFi1qEjT8bZUODztNkMwaE6YZrZ6TfYGdgBFKDaM+xCxjCj34SxD0l1VB7r8ip9nh970s3qjTmlOhj48rHvrdZxS/AjhblpApcprOJ/L97w4f2E/rX+NckmUl9CDQyaKKdQUVtVy1aOIhVKlvHzDkwi/estp58tiZTmtMk2pgx2s4ignVTfqkW+3IqSjsxDU3UoL7cdhQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1P190MB0317.EURP190.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(396003)(136003)(39830400003)(346002)(366004)(52116002)(86362001)(6512007)(26005)(6506007)(921005)(38100700002)(186003)(41300700001)(1076003)(2616005)(83380400001)(5660300002)(38350700002)(7416002)(316002)(110136005)(30864003)(44832011)(8936002)(66946007)(66476007)(66556008)(8676002)(6486002)(508600001)(36756003)(2906002)(414714003)(473944003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6wsXvNAHaxUwAA9/ah5NZ6Ngd69zVdkXrPpqnAQJKO0F6GVN6tXmzK/b0yumcGlkcAFQ/FdxU+xXzSd7TIiNjg7s8AVW29WHkbKNCDwCop9MDiK9aHQIxAYP+jZzI00HC3M1pGNm4kMljJdcRxKw3PCuUi9TvrVnHsQIZwZCHYKQAEFWyopifnO6O16DHMgq/OocIUBl9jgmuJGW/McUVWnB2EPhrrvfim37sr+VYCPIuzMgUwGpBI1KF3K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YbM6nsXnD2scychuXIYtDFMfvB6B2z2ANhly6ZVpUVB2elsFavwq4zaae+tqqhhY+DLkrE1V3naCmdLmVsIq3kcsYscM6UDv9okry8x4nR8juOY0k6wfDa5gYUQ8xoR/WS0JVRGGL/+Afx1HipPOc0TCoM8xfHZklGJ6Xc1qJIL/hb2IJHNQCxVDRMnh/iXRqSN7rMXI6cWLfL3CrlNFEe8mH1U9UT482kWMvBTQn9olODS7ym7G82kJiieg+zT+4LP8R9Ao1MqUwPghOZ9mhMlF0pdeyXha/TygUOfuOC9k6woDMS0DJJ1Vo14DCGb9xPY0yx2sSwrfsVdJRosOjcJIc1/CbUcR28rbRbQiZjmDFNQaTl35h5S9HUL7HP0dVpOxekzs9IRgQUqv2GcFpWG6wceTbzSEn6xz7CQLW5yXSCmmiMQ8= X-OriginatorOrg: plvision.eu X-MS-Exchange-CrossTenant-Network-Message-Id: 65688cc6-626e-40e0-fd70-08da4d8fcc35 X-MS-Exchange-CrossTenant-AuthSource: VI1P190MB0317.EURP190.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2022 22:55:23.0442 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 03707b74-30f3-46b6-a0e0-ff0a7438c9c4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PmC254YNfnZ+DJ+xPdc2Qv4MVMjAyBJFDN4crWEckwD3ePC7j1UwDw9HaqP3uwLyZNyncQ7R2VOdzFrv3WToYjWr05KRIiMVVvXNOSam8bU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9P190MB1539 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220613_155531_303528_140777BD X-CRM114-Status: GOOD ( 27.37 ) 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 From: Chris Packham The 98DX2530 SoC is the Control and Management CPU integrated into the Marvell 98DX25xx and 98DX35xx series of switch chip (internally referred to as AlleyCat5 and AlleyCat5X). These files have been taken from the Marvell SDK and lightly cleaned up with the License and copyright retained. Signed-off-by: Chris Packham Signed-off-by: Vadym Kochan Tested-by: Chris Packham --- Notes: The Marvell SDK has a number of new compatible strings. I've brought through some of the drivers or where possible used an in-tree alternative (e.g. there is SDK code for a ac5-gpio but two instances of the existing marvell,orion-gpio seems to cover what is needed if you use an appropriate binding). I expect that there will a new series of patches when I get some different hardware (or additions to this series depending on if/when it lands). Changes in v9 (proposed by Marvell): It was discussed with Chris that Marvell will add some changes: 1) Rename "armada-" prefix in dts(i) file names to ac5, because Armada has not much common with AC5 SoC. 2) Add clock fixes: - rename core_clock to cnm_clock - remove axi_clock - change cnm_clock to 325MHZ - use cnm_clock for the UART Changes in v8: - Remove unnecessary clock-frequency property on armv8-timer - Remove unnecessary redistributor-stride property on gic - Add GIC_SPI interrupts for gpios Changes in v7: - Add missing compatible on usb1 - Add "rd-ac5x" compatible for board - Move aliases to board dts - Move board specific usb info to board dts - Consolidate usb1 board settings and remove unnecessary compatible - Add Allied Telesis copyright - Rename files after mailng-list discussion Changes in v6: - Move CPU nodes above the SoC (Krzysztof) - Minor formatting clean ups (Krzysztof) - Run through `make dtbs_check` - Move gic nodes inside SoC - Group clocks under a clock node Changes in v5: - add #{address,size}-cells property to i2c nodes - make i2c nodes disabled in the SoC and enable them in the board - add interrupt controller attributes to gpio nodes - Move fixed-clock nodes up a level and remove unnecessary @0 Changes in v4: - use 'phy-handle' instead of 'phy' - move status="okay" on usb nodes to board dts - Add review from Andrew Changes in v3: - Move memory node to board - Use single digit reg value for phy address - Remove MMC node (driver needs work) - Remove syscon & simple-mfd for pinctrl Changes in v2: - Make pinctrl a child node of a syscon node - Use marvell,armada-8k-gpio instead of orion-gpio - Remove nand peripheral. The Marvell SDK does have some changes for the ac5-nand-controller but I currently lack hardware with NAND fitted so I can't test it right now. I've therefore chosen to omit the node and not attempted to bring in the driver or binding. - Remove pcie peripheral. Again there are changes in the SDK and I have no way of testing them. - Remove prestera node. - Remove "marvell,ac5-ehci" compatible from USB node as "marvell,orion-ehci" is sufficient - Remove watchdog node. There is a buggy driver for the ac5 watchdog in the SDK but it needs some work so I've dropped the node for now. arch/arm64/boot/dts/marvell/Makefile | 1 + arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi | 291 ++++++++++++++++++ .../boot/dts/marvell/ac5-98dx35xx-rd.dts | 101 ++++++ arch/arm64/boot/dts/marvell/ac5-98dx35xx.dtsi | 13 + 4 files changed, 406 insertions(+) create mode 100644 arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi create mode 100644 arch/arm64/boot/dts/marvell/ac5-98dx35xx-rd.dts create mode 100644 arch/arm64/boot/dts/marvell/ac5-98dx35xx.dtsi diff --git a/arch/arm64/boot/dts/marvell/Makefile b/arch/arm64/boot/dts/marvell/Makefile index 1c794cdcb8e6..b6d493e34dc5 100644 --- a/arch/arm64/boot/dts/marvell/Makefile +++ b/arch/arm64/boot/dts/marvell/Makefile @@ -24,3 +24,4 @@ dtb-$(CONFIG_ARCH_MVEBU) += cn9132-db.dtb dtb-$(CONFIG_ARCH_MVEBU) += cn9132-db-B.dtb dtb-$(CONFIG_ARCH_MVEBU) += cn9130-crb-A.dtb dtb-$(CONFIG_ARCH_MVEBU) += cn9130-crb-B.dtb +dtb-$(CONFIG_ARCH_MVEBU) += ac5-98dx35xx-rd.dtb diff --git a/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi b/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi new file mode 100644 index 000000000000..cf0b4a7de323 --- /dev/null +++ b/arch/arm64/boot/dts/marvell/ac5-98dx25xx.dtsi @@ -0,0 +1,291 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree For AC5. + * + * Copyright (C) 2021 Marvell + * Copyright (C) 2022 Allied Telesis Labs + */ + +#include +#include + +/ { + model = "Marvell AC5 SoC"; + compatible = "marvell,ac5"; + interrupt-parent = <&gic>; + #address-cells = <2>; + #size-cells = <2>; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + cpu-map { + cluster0 { + core0 { + cpu = <&cpu0>; + }; + core1 { + cpu = <&cpu1>; + }; + }; + }; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "arm,armv8"; + reg = <0x0 0x0>; + enable-method = "psci"; + next-level-cache = <&l2>; + }; + + cpu1: cpu@1 { + device_type = "cpu"; + compatible = "arm,armv8"; + reg = <0x0 0x100>; + enable-method = "psci"; + next-level-cache = <&l2>; + }; + + l2: l2-cache { + compatible = "cache"; + }; + }; + + psci { + compatible = "arm,psci-0.2"; + method = "smc"; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; + + pmu { + compatible = "arm,armv8-pmuv3"; + interrupts = ; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + dma-ranges; + + internal-regs@7f000000 { + #address-cells = <1>; + #size-cells = <1>; + compatible = "simple-bus"; + /* 16M internal register @ 0x7f00_0000 */ + ranges = <0x0 0x0 0x7f000000 0x1000000>; + dma-coherent; + + uart0: serial@12000 { + compatible = "snps,dw-apb-uart"; + reg = <0x12000 0x100>; + reg-shift = <2>; + interrupts = ; + reg-io-width = <1>; + clocks = <&cnm_clock>; + status = "okay"; + }; + + mdio: mdio@22004 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "marvell,orion-mdio"; + reg = <0x22004 0x4>; + clocks = <&cnm_clock>; + }; + + i2c0: i2c@11000{ + compatible = "marvell,mv78230-i2c"; + reg = <0x11000 0x20>; + #address-cells = <1>; + #size-cells = <0>; + + clocks = <&cnm_clock>; + clock-names = "core"; + interrupts = ; + clock-frequency=<100000>; + + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&i2c0_pins>; + pinctrl-1 = <&i2c0_gpio>; + scl_gpio = <&gpio0 26 GPIO_ACTIVE_HIGH>; + sda_gpio = <&gpio0 27 GPIO_ACTIVE_HIGH>; + status = "disabled"; + }; + + i2c1: i2c@11100{ + compatible = "marvell,mv78230-i2c"; + reg = <0x11100 0x20>; + #address-cells = <1>; + #size-cells = <0>; + + clocks = <&cnm_clock>; + clock-names = "core"; + interrupts = ; + clock-frequency=<100000>; + + pinctrl-names = "default", "gpio"; + pinctrl-0 = <&i2c1_pins>; + pinctrl-1 = <&i2c1_gpio>; + scl_gpio = <&gpio0 20 GPIO_ACTIVE_HIGH>; + sda_gpio = <&gpio0 21 GPIO_ACTIVE_HIGH>; + status = "disabled"; + }; + + gpio0: gpio@18100 { + compatible = "marvell,orion-gpio"; + reg = <0x18100 0x40>; + ngpios = <32>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl0 0 0 32>; + marvell,pwm-offset = <0x1f0>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = , + , + , + ; + }; + + gpio1: gpio@18140 { + reg = <0x18140 0x40>; + compatible = "marvell,orion-gpio"; + ngpios = <14>; + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl0 0 32 14>; + marvell,pwm-offset = <0x1f0>; + interrupt-controller; + #interrupt-cells = <2>; + interrupts = , + ; + }; + }; + + /* + * Dedicated section for devices behind 32bit controllers so we + * can configure specific DMA mapping for them + */ + behind-32bit-controller@7f000000 { + compatible = "simple-bus"; + #address-cells = <0x2>; + #size-cells = <0x2>; + ranges = <0x0 0x0 0x0 0x7f000000 0x0 0x1000000>; + /* Host phy ram starts at 0x200M */ + dma-ranges = <0x0 0x0 0x2 0x0 0x1 0x0>; + dma-coherent; + + eth0: ethernet@20000 { + compatible = "marvell,armada-ac5-neta"; + reg = <0x0 0x20000 0x0 0x4000>; + interrupts = ; + clocks = <&cnm_clock>; + phy-mode = "sgmii"; + status = "disabled"; + }; + + eth1: ethernet@24000 { + compatible = "marvell,armada-ac5-neta"; + reg = <0x0 0x24000 0x0 0x4000>; + interrupts = ; + clocks = <&cnm_clock>; + phy-mode = "sgmii"; + status = "disabled"; + }; + + usb0: usb@80000 { + compatible = "marvell,orion-ehci"; + reg = <0x0 0x80000 0x0 0x500>; + interrupts = ; + status = "disabled"; + }; + + usb1: usb@a0000 { + compatible = "marvell,orion-ehci"; + reg = <0x0 0xa0000 0x0 0x500>; + interrupts = ; + status = "disabled"; + }; + }; + + pinctrl0: pinctrl@80020100 { + compatible = "marvell,ac5-pinctrl"; + reg = <0 0x80020100 0 0x20>; + + i2c0_pins: i2c0-pins { + marvell,pins = "mpp26", "mpp27"; + marvell,function = "i2c0"; + }; + + i2c0_gpio: i2c0-gpio-pins { + marvell,pins = "mpp26", "mpp27"; + marvell,function = "gpio"; + }; + + i2c1_pins: i2c1-pins { + marvell,pins = "mpp20", "mpp21"; + marvell,function = "i2c1"; + }; + + i2c1_gpio: i2c1-gpio-pins { + marvell,pins = "mpp20", "mpp21"; + marvell,function = "i2c1"; + }; + }; + + spi0: spi@805a0000 { + compatible = "marvell,armada-3700-spi"; + reg = <0x0 0x805a0000 0x0 0x50>; + #address-cells = <0x1>; + #size-cells = <0x0>; + clocks = <&spi_clock>; + interrupts = ; + num-cs = <1>; + status = "disabled"; + }; + + spi1: spi@805a8000 { + compatible = "marvell,armada-3700-spi"; + reg = <0x0 0x805a8000 0x0 0x50>; + #address-cells = <0x1>; + #size-cells = <0x0>; + clocks = <&spi_clock>; + interrupts = ; + num-cs = <1>; + status = "disabled"; + }; + + gic: interrupt-controller@80600000 { + compatible = "arm,gic-v3"; + #interrupt-cells = <3>; + interrupt-controller; + reg = <0x0 0x80600000 0x0 0x10000>, /* GICD */ + <0x0 0x80660000 0x0 0x40000>; /* GICR */ + interrupts = ; + }; + }; + + clocks { + cnm_clock: core-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <325000000>; + }; + + spi_clock: spi-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <200000000>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/marvell/ac5-98dx35xx-rd.dts b/arch/arm64/boot/dts/marvell/ac5-98dx35xx-rd.dts new file mode 100644 index 000000000000..f0ebdb84eec9 --- /dev/null +++ b/arch/arm64/boot/dts/marvell/ac5-98dx35xx-rd.dts @@ -0,0 +1,101 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree For RD-AC5X. + * + * Copyright (C) 2021 Marvell + * Copyright (C) 2022 Allied Telesis Labs + */ +/* + * Device Tree file for Marvell Alleycat 5X development board + * This board file supports the B configuration of the board + */ + +/dts-v1/; + +#include "ac5-98dx35xx.dtsi" + +/ { + model = "Marvell RD-AC5X Board"; + compatible = "marvell,rd-ac5x", "marvell,ac5x", "marvell,ac5"; + + aliases { + serial0 = &uart0; + spiflash0 = &spiflash0; + gpio0 = &gpio0; + gpio1 = &gpio1; + ethernet0 = ð0; + ethernet1 = ð1; + }; + + memory@0 { + device_type = "memory"; + reg = <0x2 0x00000000 0x0 0x40000000>; + }; + + usb1phy: usb-phy { + compatible = "usb-nop-xceiv"; + #phy-cells = <0>; + }; +}; + +&mdio { + phy0: ethernet-phy@0 { + reg = <0>; + }; +}; + +&i2c0 { + status = "okay"; +}; + +&i2c1 { + status = "okay"; +}; + +ð0 { + status = "okay"; + phy-handle = <&phy0>; +}; + +/* USB0 is a host USB */ +&usb0 { + status = "okay"; +}; + +/* USB1 is a peripheral USB */ +&usb1 { + status = "okay"; + phys = <&usb1phy>; + phy-names = "usb-phy"; + dr_mode = "peripheral"; +}; + +&spi0 { + status = "okay"; + + spiflash0: flash@0 { + compatible = "jedec,spi-nor"; + spi-max-frequency = <50000000>; + spi-tx-bus-width = <1>; /* 1-single, 2-dual, 4-quad */ + spi-rx-bus-width = <1>; /* 1-single, 2-dual, 4-quad */ + reg = <0>; + + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "spi_flash_part0"; + reg = <0x0 0x800000>; + }; + + parition@1 { + label = "spi_flash_part1"; + reg = <0x800000 0x700000>; + }; + + parition@2 { + label = "spi_flash_part2"; + reg = <0xF00000 0x100000>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/marvell/ac5-98dx35xx.dtsi b/arch/arm64/boot/dts/marvell/ac5-98dx35xx.dtsi new file mode 100644 index 000000000000..50d464d9d2f4 --- /dev/null +++ b/arch/arm64/boot/dts/marvell/ac5-98dx35xx.dtsi @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Device Tree For AC5X. + * + * Copyright (C) 2022 Allied Telesis Labs + */ + +#include "ac5-98dx25xx.dtsi" + +/ { + model = "Marvell AC5X SoC"; + compatible = "marvell,ac5x", "marvell,ac5"; +}; From patchwork Mon Jun 13 22:53:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadym Kochan X-Patchwork-Id: 12880271 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 0F604C433EF for ; Mon, 13 Jun 2022 22:56:56 +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:To:From:Reply-To:Cc:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2WdyKtLa3bHCafxWMxo9k9xPLcjceHoYTOKYUuIjRKw=; b=d0rcm2K/ww8m5t sheusGMsZBmJEMOwEI28sr41WXx5lREdgNw5FM+5dRPaiXKSLBrgtv7fkjMIVi3h4HQ1s3r+GH7US XEkS/EeEcqQW5hzQgtncKjnAc7CibkwrD++OzjxyoTNn3a7iA4ENx2YY4ZkHFMuGLjBlVwm4gasK8 GYZjGm9XLHj50VolmRjan/qUgb3XZkh7EabINPxzhy8Xg//+Zl3szgUAYFJzLjA3ZKo73cseE98Wo V7JlCiAIhBVRNW+ZjkzxdYqCdXq3VdDVEByK0XxQi6ZMs7nxRxn4J914QGQTJGtXhh7FbmYG1nRnd ZFodrOLH/88kmz80AT8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0syM-006AoV-1N; Mon, 13 Jun 2022 22:55:50 +0000 Received: from mail-db8eur05on2071e.outbound.protection.outlook.com ([2a01:111:f400:7e1a::71e] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o0syI-006Am6-Fb for linux-arm-kernel@lists.infradead.org; Mon, 13 Jun 2022 22:55:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V4L/Yk+XLEXFWaAyEskshtcIkphpTZmYCeNjjRr/FBwScrKryU5/Xi30R8ncL4q7rOJWzAwZV/WbkvEKT9qqZyKvOJ6H0vCcFmm3cbGlk5iRd3wVmWUE+RzXNlVO3ONUMpFcW0anrrsgBve5+qPGUmDEwb46hUcja09m9EdoIJ41ztv5OCnN9d59B4mBuHsc6jlKlOF3EyzFk1RY0hl6tiGEYg0qwCUYAO5VspvTiDTwTNWGpmg2SUaQ1f7iQxx3/3Clp1N1+t6T0SztoxoG87STT9vqYe02vQzgSpStsYpQEltHwuqvUxASS64c+WU4eyqlHxMMPk7sm++TSERQBQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tp7d/F55p4rcoVThy76G8xu7FRvIJIiMUMzcL0B739A=; b=g3LUHVM9d/28U0NWTjAi3ad/MJYjaOFxVWtCTOaVtNCfQm5C84B5WrCIFbB6aPdTtEQ7QkR+tVar/SXCiOqMF0rdm3JUQsH773wN9f1oJB6P9mdyAHksmTYYYE4XOluGC54YKpM3K1bGpmKZLUl4rm+65I1OuL0tGhpEQxTQDne50ZMg8SHT9uBZgVk+crYLlaXlepNsPJSUN813EL025tTpU+Siw2oc3h76KwVQwlvFdHj26wIlnwAz/y33YE7Wqd/hHr9CGrNyLMn+ccy+Yw6pHt9hscT3bfSOo3lQ461BWDVHEnGkvU7A21USxMThN8hHTwKzT6eL8u723Nw2yQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=plvision.eu; dmarc=pass action=none header.from=plvision.eu; dkim=pass header.d=plvision.eu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=plvision.eu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tp7d/F55p4rcoVThy76G8xu7FRvIJIiMUMzcL0B739A=; b=u8ftiQ9UjcA50aRZTqZgQfHNRCqfiNN8Bl7isLiEOA9kf76RRSceRXLWo3+Pm5t/xUOHLdv+nh+ZYuy2frlxnFSBWf2PE6qTG+o7VcNBKRyp8oxbBplJBx4RKYkWGcaFk3HEWsQ2Esq3FT0TW+Kt4cjJjlO/KN8prcXP1+jWkRk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=plvision.eu; Received: from VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) by DB6P190MB0568.EURP190.PROD.OUTLOOK.COM (2603:10a6:6:31::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.13; Mon, 13 Jun 2022 22:55:40 +0000 Received: from VI1P190MB0317.EURP190.PROD.OUTLOOK.COM ([fe80::2c45:bc33:2584:959a]) by VI1P190MB0317.EURP190.PROD.OUTLOOK.COM ([fe80::2c45:bc33:2584:959a%7]) with mapi id 15.20.5332.017; Mon, 13 Jun 2022 22:55:40 +0000 From: Vadym Kochan To: Rob Herring , Krzysztof Kozlowski , Catalin Marinas , Will Deacon , Chris Packham , Vadym Kochan , Gregory CLEMENT , Konstantin Porotchkin , Robert Marko , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v9 3/3] arm64: marvell: enable the 98DX2530 pinctrl driver Date: Tue, 14 Jun 2022 01:53:24 +0300 Message-Id: <20220613225338.393-4-vadym.kochan@plvision.eu> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220613225338.393-1-vadym.kochan@plvision.eu> References: <20220613225338.393-1-vadym.kochan@plvision.eu> X-ClientProxiedBy: BE0P281CA0034.DEUP281.PROD.OUTLOOK.COM (2603:10a6:b10:14::21) To VI1P190MB0317.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:38::26) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 09356605-1d84-4dba-f34a-08da4d8fd65e X-MS-TrafficTypeDiagnostic: DB6P190MB0568:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GhFpLymRMxShCW2emX6698DpOkNi2bOdqHZ+J4raFXrpaKs1UW+sO/GKhJ7I3T4zz/tx4TNyA8e0BGiBkf2lI0TopN6USu6A8ksewcCUn1Jwrut/lVClt2pyIUdWPqhEc8YOR+lH4LkIpjchpJjpcRWqJDDxnKGzUHi6mSoSJQc8gaZqfoaht7Nf8oCo+qKEKqVrSE9LCokCziP+mhunQPPiZ6/0bOOTx4EYQTztA7HLskTMS5mE+oNldQ77rJdi8bIOKyNTLceBFI0cxZ2Kh1Nch9paSvGMypjdZws3tsdLabAmTrJVE4M472i/jN42vbJD1UBePnc90vrfgsxEbSn+XD49WHq8EWuLeYGK3XGH4JomecMin2M2H9fYte0W0wb0S8krNt4mKJpHGkxpwhGw/Bl4XRwitIG0AdBlxCzJAf0xJbNy8cNxbNN/JBnpzXIVmykn49Gl/H/ZXoX9XLkVviQhPc9VxivkZLxDrnb1GTDKYA2mmcMrdlOP3TpxozK9fGnXVVB/+U3vRLXnP1NlR8Im/DIUkEAaamBTFFINCI5NTjzq+EQvTNWMZdzB+aJhiqMiG+JmmzNPMoD9b4xmB5yeXHAmlxTGVs4cm+5oeALG7niC1Lw+xze3TlXcna5Egy/7akNljV4Pm+p1zNFApV1XhYnpcETAhTTtkHQRiQvgAdJpH35q0Pppz8VY4N1A5+Zuc4C1J/AWHl2HenmMMTglSRbKGiR5iLZ/lVQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1P190MB0317.EURP190.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230016)(4636009)(346002)(366004)(39830400003)(396003)(136003)(7416002)(36756003)(316002)(66946007)(41300700001)(8676002)(5660300002)(44832011)(66476007)(6486002)(8936002)(86362001)(508600001)(66556008)(110136005)(38350700002)(38100700002)(6506007)(52116002)(6666004)(2906002)(26005)(921005)(6512007)(2616005)(186003)(1076003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: M3lMg6j5ZobrHC7Z8PnMZW5e3+6GsiQBvfyA49M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eDxWbhhGw05EtxlZyF/EFrm3QF9TzHQ11RSsyjJ0D9jLq7mX3mNLRh6/BDr/1QHwwftKy2HG9mbWmdwWiVgaO8vsJavu8Pj2ESrukA2Lymts1iD6tvvkdAngMv1+Zo8hurhQOPH98jwbFToRcV8TA8shWrJn18/iAGJzQM+axsfkxMkIqB0ZYxQuhBHZDQe3fkHtiwsjlRVI9OnPwOxdHmHbr6aHssoB1sI3TAlmyYpNVpfQgWJPbyXoxdswd/zIU5XTLEpfxh6Lyqqe+nP4Xiid4dgWMnltEqG1r6hmrKoxEj/1dZEEzvVQPHZL1KlNvl78fsCMgq5wIIf68LAc0RpoVz4ciNMkrB+H2zV8YxVIz1f3LPv6B/4z8iTk5HeuFRM/abw1R0ZJhzoy4FY4DPasft4rDRNYjDwkmtSX3ej+RQR7lcgUBzEw7TuwAQyeRjvwstp8MgpsGCU2Ti/p0xB2oOy+wJ3VRUFmDwm7CVc7DGl946dRoorwQeiqvu2gQDnEDBt5P6qfgZxxYs0B8YFvk6WgW8k1A4P1EjPr0aiR7JgCK59dIrN+nmorPZrMFAjDFGG5+Mk51q0vWGAVzesRCamjNhHbhrJGOwbaM13xs5O/rRL/ZuBXSWTX0i9B32TdhBTnw/pKdCks= X-OriginatorOrg: plvision.eu X-MS-Exchange-CrossTenant-Network-Message-Id: 09356605-1d84-4dba-f34a-08da4d8fd65e X-MS-Exchange-CrossTenant-AuthSource: VI1P190MB0317.EURP190.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2022 22:55:40.0586 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 03707b74-30f3-46b6-a0e0-ff0a7438c9c4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: YXXkTux+7XssoPdDk+mB9DpK+ZBnQYCpeRPQ94uVPhdmcq/llSCCUxT1LpI+2haRuVpTdoG9Ar1oXqF7fsTTMBiXLKBa10qRMXmdxqR10og= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6P190MB0568 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220613_155546_570508_FDA65BCA X-CRM114-Status: UNSURE ( 9.66 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Chris Packham This commit makes sure the drivers for the 98DX2530 pin controller is enabled. Signed-off-by: Chris Packham Reviewed-by: Andrew Lunn Signed-off-by: Vadym Kochan --- Notes: Changes in v9: - None Changes in v8: - None Changes in v7: - None Changes in v6: - None Changes in v5: - None Changes in v4: - None Changes in v3: - Add review from Andrew Changes in v2: - None arch/arm64/Kconfig.platforms | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 4e6d635a1731..8d96928a36ff 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -182,11 +182,13 @@ config ARCH_MVEBU select PINCTRL_ARMADA_37XX select PINCTRL_ARMADA_AP806 select PINCTRL_ARMADA_CP110 + select PINCTRL_AC5 help This enables support for Marvell EBU familly, including: - Armada 3700 SoC Family - Armada 7K SoC Family - Armada 8K SoC Family + - 98DX2530 SoC Family config ARCH_MXC bool "ARMv8 based NXP i.MX SoC family"