From patchwork Wed Sep 8 06:45:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chester Lin X-Patchwork-Id: 12480299 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=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, 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 F1C2CC433EF for ; Wed, 8 Sep 2021 06:49:11 +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 BD33E61108 for ; Wed, 8 Sep 2021 06:49:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BD33E61108 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: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:In-Reply-To:References: List-Owner; bh=PWKlKBC8kzVWG4F8R3WlQGH5IOMmAatAjKzlpREF358=; b=o0/zNlYHmZ378c rpmApmNwcRMO3N1rifRxsC/qMZLWnCGq4vWQG9E5EufNY8UEnTbntRqqMK6xWsCf7d9Fz1YfuVqsd KvNg7n1w1N0rlA0Mbe0A/28v9h9OJldeIE6y4uZ0ZFjg94S04kLp+CZKr0t+L5JD03RNBpa1XXYcc +nBEIEQ6UExQ5hc964cMCZ5VxKbkBsiaaqt6bZK1Kosds2FsCWqr7BgVNyfc5/KTx9O1LDUMfVls9 zWOk0zDUu+PX6O5CUcwZ9TVhfWDmuGQRy1fg/eYeLOnFdAB+g8K31EX+oc+1VYmQKRC2nO8jk08tC 5/t1U6SdEqC74dyph0Ng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNrLW-005djf-6m; Wed, 08 Sep 2021 06:46:10 +0000 Received: from de-smtp-delivery-102.mimecast.com ([194.104.111.102]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mNrLR-005diP-PQ for linux-arm-kernel@lists.infradead.org; Wed, 08 Sep 2021 06:46:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=mimecast20200619; t=1631083560; 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; bh=96XUoOOR+n8URO+VbxQ15UyVfC9VmW9gnfdIEBGaxVI=; b=EECZjVM7vSOo/T+ALfkgWQ6LZUWb5LgjniU55eMDaz4ZKK1TFEt3SLhV36WeBYAASv68BT 4QGgvl5zxoOhKEYWhwSMB4L2QaL73Tc70hEz20q2kIaSKG6HZD5yzZxwidI5rzf5t3+r5b +qYN19HEd5CARu9vI/0B1JC9V8XrUvI= Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04lp2057.outbound.protection.outlook.com [104.47.13.57]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-34-qC-11fIMPlKq9Zh6N4Vm8Q-1; Wed, 08 Sep 2021 08:45:59 +0200 X-MC-Unique: qC-11fIMPlKq9Zh6N4Vm8Q-1 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fgVxYsgW2ukFKlfQEw/w3QazIYvsnMyPwRh+cqxnkbruMH78ahHySJbQWK3dL3FHz6Ly0DsjKCLSICqeCI0J2KX9Vt0xGHkZxUjRMV5+FPo8xvhgtn9HwBW/wftKkJ/mo80RQVZON8R4+KricGPD7mSNk0lzqjVtj8spXYedf/JwPAqsvHe9wmhRWvMX0V+LRCMQmQRO8pOzpJvLbRoWD3tdeuE5dx97RvpOuAb3GzdOrUeiBFK7d+OWDUbgdEZKti7YZbk3oMReBrFs5v2zZqHIdQ8A8zaKCYxsCHejvTnGs04ipTH7SWzcZGpgwxEbPMvG9HIFKPJI09R9CNjlQQ== 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; bh=EuKQjVZEFVoqMyl70j1cENi71otdqBRnDeIRT6J1lc0=; b=mU/YFeHO3JfXOiYBFPyfDp+lc2pKM+UXafGvGqq7pqz/p3qZIY66/6IRTPWsFL3WJJhza0uU2e8MDSwafUhyPEHOX8TalJnyJr+7sh19VNs800Ba/XfOQGqZWA6q/7dAAseUbFa+4kT9X+M1hv6ktFdIlZ+jxlKWS1tHmfkWu0P8FOmslmz6zFKNGxMVyJrK48ekCmZt6xoZfDJeC8Q2Fl+tWl2QsCty43FdOfPsPtQvPRLeVga1o2suaRAhpYaF/X+j46oWhY0TIhGyLDSHwOjzQl92GBJZbHTK0tCwwNFRNSllEPXasLBHIrsAQzZc3bYfM8iUUa5CtlwGR7pHcg== 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 VI1PR04MB4000.eurprd04.prod.outlook.com (2603:10a6:803:4c::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.19; Wed, 8 Sep 2021 06:45:56 +0000 Received: from VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::88cc:32fc:2cae:3fde]) by VI1PR0402MB3439.eurprd04.prod.outlook.com ([fe80::88cc:32fc:2cae:3fde%7]) with mapi id 15.20.4500.015; Wed, 8 Sep 2021 06:45:56 +0000 From: Chester Lin To: Rob Herring , Greg Kroah-Hartman , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, s32@nxp.com, Shawn Guo , Li Yang , =?utf-8?q?An?= =?utf-8?q?dreas_F=C3=A4rber?= , Matthias Brugger , Radu Nicolae Pirea CC: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Krzysztof Kozlowski , catalin-dan.udma@nxp.com, bogdan.hamciuc@nxp.com, bogdan.folea@nxp.com, ciprianmarian.costea@nxp.com, ghennadi.procopciuc@nxp.com, "Ivan T . Ivanov" , "Lee, Chun-Yi" , Chester Lin Subject: [PATCH v2 0/8] arm64: dts: initial NXP S32G2 support Date: Wed, 8 Sep 2021 14:45:20 +0800 Message-ID: <20210908064528.922-1-clin@suse.com> X-Mailer: git-send-email 2.30.0 X-ClientProxiedBy: AM0PR03CA0032.eurprd03.prod.outlook.com (2603:10a6:208:14::45) To VI1PR0402MB3439.eurprd04.prod.outlook.com (2603:10a6:803:4::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost (36.224.129.215) by AM0PR03CA0032.eurprd03.prod.outlook.com (2603:10a6:208:14::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14 via Frontend Transport; Wed, 8 Sep 2021 06:45:54 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 07bef97b-b25b-4b4e-6c1c-08d972944ee5 X-MS-TrafficTypeDiagnostic: VI1PR04MB4000: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6790; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 4PSroSdVfZBQNsfL905Wt2qSZTBfVCwEpAh1jombNnxNXzcFkzh9NLK7PquBntdG3zwSy4NdxI6u6Q0wrFLrRL/kNQ+ZTzDj9MqhFB7h09AnfOfiEYj6bztGimGWubtKXtMqRqfFsoKElDJVe1Xu4bnKm9/1k/qkoh35/S3enPsMNPlhAtLa6iwUUmWh6BxBTMHqknRL8fd4BXb32pVSuQLvbg46+uTi5EvPV0ufcNjmAJ5S50SUu3SQcflBsK3q3gN0Y37uYZkvZZjTe5vB6KiyYk4lV0kUYxwZp9CF+ZM7JGbuUxAyksazJmMTnKiXQhnjzx29p58b0TvirVHFcoB3YQtRGYApt0BLad/t4SL2Q8mrrGQRHfu56JCsRDPsSmh9LoYB1CqAbrMs7bGg4ihygvm79d0Dpl9BBGk0AtvYuGjfL6CzbXrdf/EU4H3aTWtpNLY/+DQj04UKWN1ZtpC4xW317vqUTgXqGrlcbn+StlsJ5RqXZJXltR4H6FJQj4CSUIL2TOZN6aN6s6+Wc6arUe8bV+fqsfmjbnqCzOY+SMGKtqB0me60tiuGJ8rx6viSu2DEyWeElFNyJUy7MwVueOlrbeOBUTSGnYhWnbkXqpnnjxOHtpU4NhXO7i38vdJCQqWdWzKazev/GZNwYHwDX2hxp8FbJoDTaEi8Hxafr0BoFEe+oOO73LVEZzHbLJEljv0YbTIWuGk0a52AjaGgpUPsPu80NA/SMMtpKCmyANPl3iJ/xSXTfgCmXwnOfpHwV1WAgjJXstpcrZyJHw== 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:(396003)(366004)(136003)(376002)(346002)(39860400002)(66946007)(38100700002)(66556008)(66476007)(86362001)(7416002)(478600001)(2906002)(8936002)(83380400001)(2616005)(110136005)(186003)(5660300002)(6486002)(54906003)(107886003)(8676002)(36756003)(1076003)(26005)(6496006)(921005)(966005)(956004)(316002)(4326008)(6666004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kMwZZkRQ4KIrlK+lxpjSOJo2BzP48Gyl5U8/yJKZutMOXkuBiHW63b6rK2BXkzfussxwZ9uAu1h2mZ8p/0NSDiMrJL8nPP8WtQe0+grHqpS2SUWgt8zuxZ06vAlc6lR/2jYsUXvbOG+HbT6Uyg1ZBnZJFuYW3hJRKHO9DIxPHSpRafb15jGuZpPD9s3g6tk5DmOAdvTZi3yyqz5lnD+MuKXAgMq7j++GHJQyh0+02JDvyRjfQqmPeJxDpS0ZfAMDCmeWsKWoXOTL+6hK9WBcLPOU/AY6ySm4r5IszzsjW6Eo7fSj6Pr6SCCGLJpwNBtln6gUs0jdjvUA5mnk5cIb4eu9+l3Sc/uJN6M+Z6Unzsl6mjNuA0sV50hnfI3mfjiMPCtZTohPQVUtLEp4VCyfs2yBseD7oWMj7nHa79D6y3u6c9e92rN5PbEPuVhrNJJj851b5BImJj4yyyFgVp6H4/YsAngJVxZAZ7q3FFt7/7B3QmJzbGINo2Ijf2M7WwXU8PhvWcImjqXKl4n3lGz6JIWmbzHUmVzCg+eD8TdfOYL9shtaYc2vezbsHPg0qIESVsffl8n7DkRGYZVKcVqcEZvE5SJdn7Ww3TABR5FKSoekUZ2XlHsYkWLNFLEUj/cGi8H6kH8I2f48oV98Y31yID9ZJBn99HZ3vD3eK5p6bbAmXALBpBoxSNUevu+JPYhAgjvKusW/WtgtQIQ0YOwjTEH7fB3pZpeQGNSuSOQbJ8SGb09thQRO8cmUUBMOu6HJlRp2X7k3+5g9/HlTL9px37B0k27mbhpkC5cLO3q0tpSU45WO9wD6dA8meYYImsyvAXPalMidvbrp4uYM1LjqX5KY9MbGZpy1iL/INjrSinO5tuhxGMjSsPWTgosDFkHUt5sS1m4j0s+RAfrrEPAlbZPrM+gUVCYU3/uwgQ2ubXn6va95NIDT+ZmhedjKZBMcb7JhXmaUWWiMM2oH5DlZ5N6PVU2rU4RxumIEKcxNtpQVMsD/mqYbKTgPTYEJy0nEb/BOHIgsc6r4CZcfgrwQk9uH2aDH07vrUFzCpwyzObaDiwijv6DFnkgSWpseD8vrbGu+cjctLNkRBXjMC99HmWRJwhinYmCpVgau+KM4u3MvEYxcT8Z9gzYmi9Irv1YSYTUAlUY9CKjpqQvrT6yhld5l4DbuarkX7jAAA8ORedzq1SyLRYT/HvdTphPYHX0DvYDW+JUDNv8nPpZJ4bilXWjXZSptP4WIcin+1yuLWb9GIhMBOQ7lywb+6kq70v9t1uB+PnrgY1EUfqCX4DsuChE53yAaNr30KhrEHVJ7A1aKIDXn5xWIZEBtpYwyXm4R X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 07bef97b-b25b-4b4e-6c1c-08d972944ee5 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0402MB3439.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Sep 2021 06:45:56.0116 (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: 4hlizc3gyy4Kj9cFGdjOhQd0IiEGPKqrRFAI0/ZasEpl4sKWK+qqVKVkdlmYNukd X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4000 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210907_234606_028984_860DB3C6 X-CRM114-Status: GOOD ( 18.34 ) 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 Hello, Here I'd like to propose a patchset, which is initial upstream support for NXP S32G2. S32G is a processor family developed by NXP for automotive solutions, such as vehicle networking and automotive high-performance processing. This series focuses on S32G2, which is the latest generation we can find at the moment. As the first round to support S32G2, this patchset only enables basic components and interfaces the SoC must have while kernel booting, which aims to have minimum hardware enablement for these two boards, S32G-VNP-EVB and S32G-VNP-RDB2. The concepts of how these boards work are originated from the downstream kernel tree[1] developed by NXP, which provides lots of details about the SoC S32G274A and its integrated boards. This series has been verified with downstream ATF[2] & U-Boot[3] based on the ATF boot flow. Thanks, Chester [1] https://source.codeaurora.org/external/autobsps32/linux/ [2] https://source.codeaurora.org/external/autobsps32/arm-trusted-firmware/ [3] https://source.codeaurora.org/external/autobsps32/u-boot/ Changes in v2: - dt-bindings: - Rename the compatible vendor string to "nxp," for s32g2. - Drop the specific description "S32V234 SoC". - Fill my name in the maintainer field. I tried to contact the authors of fsl,s32-linflexuart.txt but got no response. - Remove redundant minItems/maxItems from compatible properties. - Remove the redundant example from fsl,s32-linflexuart.yaml. - dtsi/dts: - Add a SoC description in s32g2.dtsi. - Add an interrupt-affinity to the pmu node. - Move the psci node into the "/firmware" node. - Remove the redundant properties and white lines in DT. - Remove the wrong interrupt specifier from the gic node. - Specify the range and cell-size of /soc [0 - 4 GiB]. - Correct the reserved size of GICR to 512Kbytes [0x80000]. - Add new Signed-off-by to the DT uart patch. - Fix copyright strings. - Revise reg properties based on new cell-size. - Move the serial/uart aliases from the SoC .dtsi to board .dts files. - Correct the model string of RDB2. - Add comments for the uart markings on PCB. - Adjust RAM size comments of memory nodes. - Convert reg addresses of memory nodes into hex format. - MAINTAINERS - Add information of reviewers. Chester Lin (8): dt-bindings: arm: fsl: add NXP S32G2 boards dt-bindings: serial: fsl-linflexuart: convert to json-schema format dt-bindings: serial: fsl-linflexuart: add compatible for S32G2 arm64: dts: add NXP S32G2 support arm64: dts: s32g2: add serial/uart support arm64: dts: s32g2: add VNP-EVB and VNP-RDB2 support arm64: dts: s32g2: add memory nodes for evb and rdb2 MAINTAINERS: add an entry for NXP S32G boards .../devicetree/bindings/arm/fsl.yaml | 7 + .../bindings/serial/fsl,s32-linflexuart.txt | 22 ---- .../bindings/serial/fsl,s32-linflexuart.yaml | 48 +++++++ MAINTAINERS | 9 ++ arch/arm64/boot/dts/freescale/Makefile | 2 + arch/arm64/boot/dts/freescale/s32g2.dtsi | 124 ++++++++++++++++++ .../arm64/boot/dts/freescale/s32g274a-evb.dts | 34 +++++ .../boot/dts/freescale/s32g274a-rdb2.dts | 40 ++++++ 8 files changed, 264 insertions(+), 22 deletions(-) delete mode 100644 Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.txt create mode 100644 Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.yaml create mode 100644 arch/arm64/boot/dts/freescale/s32g2.dtsi create mode 100644 arch/arm64/boot/dts/freescale/s32g274a-evb.dts create mode 100644 arch/arm64/boot/dts/freescale/s32g274a-rdb2.dts