From patchwork Thu Aug 5 06:54:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chester Lin X-Patchwork-Id: 12420429 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64700C4338F for ; Thu, 5 Aug 2021 06:59:10 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 266B360EC0 for ; Thu, 5 Aug 2021 06:59:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 266B360EC0 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=kXH16fMmIARbTt4V79kV7ftaFVOgTmRXauM0+Tb+G8E=; b=07/raHiwdJxmNk dWVq7orRFx2GynMGYrZj0uqGlmOW1Y1EF65ceWFs9Z5EJPyDJ8+BJ90Kxf2uOVPiNuGkyVITonUHH DyPLuycd4A0pBj+A9YI2tRAuhbWafDcrqtapQsZXbYUlI+mHkx7rUMDgKFlsFNyQhqKVgbtWckPyj mZqiNW/OGOi2YXDPVNATJu/JEFBXAMbMFVXs8JksQ98CTtmLiJ7S4F/8wZRBGEYEwWXXA1aUnuzCI iOCFrAKEDTCUPYCfn3Nz3f+44GAgKxLOpQIiX2eiR+62hcZCMttrp9wWq1gTdVDE92+ovNJFDsVWa EiSzL63W4Mq+aO5o8S0g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBXIs-008HsN-Kq; Thu, 05 Aug 2021 06:56:31 +0000 Received: from de-smtp-delivery-102.mimecast.com ([194.104.109.102]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mBXHn-008HVr-H7 for linux-arm-kernel@lists.infradead.org; Thu, 05 Aug 2021 06:55:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=mimecast20200619; t=1628146520; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UtyUz1WM9GduhJ+JpYxAxePP9bArCgW5jeOHNMAwSRw=; b=PjO6jnxlY1uGr+PIapF3E7xITgLuuFGUGYlgXxJb91uNfW1/nsvFZTFBFIsQ8pW35PlCRZ OpvwUKWxYikXMI/bSe42KDYRilRKUCAVTJoOK5QY58rGjYOC4pmhA3qwjbFSl9xT+oZxeG EBju/IsRVBNtDv7Xizse56tUGZiE8Qo= Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05lp2107.outbound.protection.outlook.com [104.47.17.107]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-39-WW7BnNmYOPqvHr9iBLzbKg-1; Thu, 05 Aug 2021 08:55:18 +0200 X-MC-Unique: WW7BnNmYOPqvHr9iBLzbKg-1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MN0RE5+u3XNa0DCnySCoZ1VNJ87wgXtCoI3usq+mx5IkupM3WJ4TnaH+ekayLDcjiwN2Nw2Bap4pxixQj/2XcWSsZvVGqq4k7WtDWvdGN/lP4+C1EvbbAmWsGQj6heiUBCw6XdAAhc8a0yuZ8Cll6jrBzotzCbo0oYlCLE4vBGgB186/pwKyoMHVS6ewW05ZxsuQVpaOALdthZhCTyooZlmIKbk9xVbzL1tA+BANsQMU6Lou8kVJ3kkx4N9kwr8XQ186ghk2mkjMpHw887dOjQp2UgUJbgiVTyEGHDRtRfT7aA0wBOAETQc3mUNyLTPbp9TSwXqm8b+AldVY4+ggSg== 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=BTd5YWY+hWCRPjqqB6Wb9W9t5J8FxV+zb6JupzkHl5k=; b=bdyO5ERIgZALKqV4ag7p8DxGAGzpvaCiqgnmmhP8pXMTO54xTTbxD+zRt02o1F44UlFXV8iSN6ZA/014de6G/2W3vDhhKzBPvgSLJMQGEwBVhiXwuNbtHtaM4Ryxo9GXkqL6C1Pn3UQUiHZmAcHO9DjWsNHNc74eo/2nQs2AYcvsO0i0NN/eKBVRbiK/pdr3MickQ9zwBrd66Ph5QWw32dsK4TPvl6zA1apcI6uOfsc7rsSs6rkj/YPYg+lbek7/3ztOWSO+WDLEU0X+UFUkF2l501tS5JJ/651AtsbKDp3gzK8l4+7VN6hdRfPvpO4aeec2XgUGXSYVm52/E/JuWA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=suse.com; Received: from VI1PR0402MB3439.eurprd04.prod.outlook.com (2603:10a6:803:4::13) by VI1PR0401MB2368.eurprd04.prod.outlook.com (2603:10a6:800:29::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17; Thu, 5 Aug 2021 06:55:16 +0000 Received: from VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::f1df:db6f:4ff8:a667]) by VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::f1df:db6f:4ff8:a667%5]) with mapi id 15.20.4373.026; Thu, 5 Aug 2021 06:55:16 +0000 From: Chester Lin To: Rob Herring CC: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, Greg Kroah-Hartman , Shawn Guo , Krzysztof Kozlowski , Oleksij Rempel , Stefan Riedmueller , Matthias Schiffer , Li Yang , Fabio Estevam , Matteo Lisi , Frieder Schrempf , Tim Harvey , Jagan Teki , s32@nxp.com, catalin-dan.udma@nxp.com, bogdan.hamciuc@nxp.com, bogdan.folea@nxp.com, ciprianmarian.costea@nxp.com, radu-nicolae.pirea@nxp.com, ghennadi.procopciuc@nxp.com, Matthias Brugger , =?utf-8?q?Andreas_F=C3=A4rber?= , "Ivan T . Ivanov" , "Lee, Chun-Yi" , Chester Lin Subject: [PATCH 5/8] arm64: dts: s32g2: add serial/uart support Date: Thu, 5 Aug 2021 14:54:26 +0800 Message-ID: <20210805065429.27485-6-clin@suse.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210805065429.27485-1-clin@suse.com> References: <20210805065429.27485-1-clin@suse.com> X-ClientProxiedBy: AM3PR05CA0141.eurprd05.prod.outlook.com (2603:10a6:207:3::19) To VI1PR0402MB3439.eurprd04.prod.outlook.com (2603:10a6:803:4::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost (118.166.54.149) by AM3PR05CA0141.eurprd05.prod.outlook.com (2603:10a6:207:3::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.17 via Frontend Transport; Thu, 5 Aug 2021 06:55:15 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3443da3a-3c01-4f42-ebb4-08d957ddfaf4 X-MS-TrafficTypeDiagnostic: VI1PR0401MB2368: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1079; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vHlwsNoKyr7K8xirtEbeumjBqmiiudcfmPCo1nS4EydSk63W2MKA1FkHshmxu0JkoQQRHAYrFqRESnHIH8HLKBaSB3kIbSj3tUld2MW9FgJOdPxb1ZZ6kV4NEpfffHDNMtFctOkaDwLtIOvuudA6fW2/EARK9z8U/8kAsRseDvjRW66X0CRStwmpee5azhXC8+YaywgGGG/0/b49rGDWrTHnSmsqTFPOUvoGQjUH3ifOoB6ANiVRTCfBP0Ouk8ctv7lgiQR8uM3remRd74hsgw91wb+mIfZWAoedbZSfokmstSydMK9y0HDN5VbuKx8HXJVAYixYDvSdGVP2hnkgspNDcFZP8zll2XvDUQBNcQjxZcjd+MhZALB8O24FbZarmTVM+ZReLEiSr86LDb0Zs8mwYg5UqupSuh5fh8q8r5C++l/hSY2GIMZVCBU3Im7avxxYX+NDJHIiKdjMNtfOCwezoTXL8l3EZZbUa+mCghpFNFCBkAP7GNqHU0vM4O5XgUcGQM/6Po04+8TO/TzNDS4cP6Q9JCn15E/j7Tf/Lzld8rlMBbw86uIYFz7t76x5ZnwOc8KICC9xgcejS77RBmIxcYwGxsi1v2rITu+g2fUbiiBFjUE2Dz3zA0pDYqROt0wXIqgJ6mrni1lTieXbLg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0402MB3439.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(8676002)(86362001)(6666004)(8936002)(66946007)(66476007)(66556008)(956004)(2616005)(508600001)(83380400001)(1076003)(5660300002)(26005)(4326008)(7416002)(6486002)(186003)(36756003)(107886003)(2906002)(54906003)(38100700002)(55236004)(316002)(6496006); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: D/T+K8OUXViZbpwIYlllCNYRtCA5KIvgIXg/mK/Mr54OJNn2SfogdEMYb2+m52YSOIY6gwwXIHhM9VsWX+1Rpq6elw5DUkLcrpfT3lzn94/STKoLn3rrHP5BXyH0ped0eQs60axjAvF37UmR8c2WMqA37OxIRJ0V3SERYS8PqyF8bbEBAhzESnwWAsDFafFGXGgYeIgLV4RHxHnzs7SH85mKu293yTpC2Rls2fxBdz9GHF1n2vinOPHOKclzn+NNV1jOARrZMmUnpsOk6yf2SjcObQffXi0jFTXJry6NvAQZsaxmK6RAi1NsquI/uE+mlv0hO2ZcZdXjKpoS6rLAXbKgU+K0RDv/gZBSqS5DpbmgkecOEXX4G0EF6r8dwGmtPRE5jJBZ4KhkcuWrzdxdSRmrj1X2LEqYhJWRuN8VvD+fCk4HnFnkRTzFRxaF/n0kGNBwVidRhFhZEuRPVx9hzKOdUYI7KfGQH2qTBVw2UwWDQ0zFAGJJgU/oO7K69Ru3R4HWK0uLGWtXLtRqzxguV92O7YVSzjHG4u9Tzb4ZqMyKvz91pWdx0P5ZbVr4zNYZGNL84TGLuQ7xROuI4Eto8xr7dXTRmFfJaRHa20Viv1Hm2WVsP0qj1acj4ylu9aJt1Z6ibEmc5tvhg0qXAjvFyw9VYxphyGdd4AHYDKaLMiPd2Lqoz3rBOBniQLP1clGKf6iuSdDlWKrJkjW1M5pocGCnLZfnwfnyv8d1ZTYxxPHDQOCge6mKqoxXx/8Nqw5AF4BIbNbhzN8n0456+k5hxqmWQorOAfCrOkG005ncFWBdU/ChY4Kh5xqmba9eaqD2d1quXdS9q+PGpyK5euZu1geN41fdJPSIbGPvmHAtip7ErJ6fKnYEWtKXJd5PVJ7ae9OqaU23ncAlZNQ5Kd/GZctXaOp3aKqOLM7D571jHTb1N3+VywTwNS/Cw6CQ7XI+9Z5C/kDu+hrI02irqkfafkNTib+eKblC+cnn9jlIxZGBxoXsTPznQs0qj5AGYwSJi4I8Y/xc0t3zB1ltVoNgvk54bHoiSfZnIrr+xJJ8Ebhw8CKwKwe9HqRpPOVlGzxq/LpeC52k2m7Ewdjs+X98VfaKFi0zFDlZngadyEi2sMdUDW/VBOwRCCkZT8NMgdwiRyC7qYdWJjpfxWfBL6o94Wv/+GPp/hyfhMt1FtgJI8EttF55xOrilTEH75SBiEyPQ4AleKRhjqj/Xd1a0chP/F4Oh3OERWTmaGpFQrp22xh4AEvCoFlNjVfPpQIqLroOo9NEIxvd9oiicI75Hb4cHLuRhd6d/6KchlyrDzJ/5aSfZH4UDl2ygYX3YBepYgLI X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3443da3a-3c01-4f42-ebb4-08d957ddfaf4 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0402MB3439.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2021 06:55:16.2438 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fS1vz+maa2hMWyQVrr2T57pU19dqoYD9Sh94HLgJpboInbXYHjhrgcGWCyVBdp3T X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2368 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210804_235523_769392_A1089589 X-CRM114-Status: UNSURE ( 9.36 ) 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 Add serial/uart support for NXP S32G2. Signed-off-by: Chester Lin Signed-off-by: Larisa Grigore --- arch/arm64/boot/dts/freescale/s32g2.dtsi | 31 ++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/s32g2.dtsi b/arch/arm64/boot/dts/freescale/s32g2.dtsi index 3321819c1a2d..0076eacad8a6 100644 --- a/arch/arm64/boot/dts/freescale/s32g2.dtsi +++ b/arch/arm64/boot/dts/freescale/s32g2.dtsi @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-or-later OR MIT /* * Copyright (c) 2021 SUSE LLC + * Copyright 2017-2020 NXP */ #include @@ -11,6 +12,12 @@ / { #address-cells = <2>; #size-cells = <2>; + aliases { + serial0 = &uart0; + serial1 = &uart1; + serial2 = &uart2; + }; + cpus { #address-cells = <1>; #size-cells = <0>; @@ -82,6 +89,30 @@ soc { ranges; + uart0: serial@401c8000 { + compatible = "fsl,s32g2-linflexuart", + "fsl,s32v234-linflexuart"; + reg = <0 0x401c8000 0 0x3000>; + interrupts = ; + status = "disabled"; + }; + + uart1: serial@401cc000 { + compatible = "fsl,s32g2-linflexuart", + "fsl,s32v234-linflexuart"; + reg = <0 0x401cc000 0 0x3000>; + interrupts = ; + status = "disabled"; + }; + + uart2: serial@402bc000 { + compatible = "fsl,s32g2-linflexuart", + "fsl,s32v234-linflexuart"; + reg = <0 0x402bc000 0 0x3000>; + interrupts = ; + status = "disabled"; + }; + gic: interrupt-controller@50800000 { compatible = "arm,gic-v3"; #interrupt-cells = <3>;