From patchwork Fri Aug 23 19:11:30 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Stefan-gabriel Mirea X-Patchwork-Id: 1152376 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) 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.b="hCL36r5w"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 46FWHT734Hz9sMr for ; Sat, 24 Aug 2019 05:12:21 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406039AbfHWTLh (ORCPT ); Fri, 23 Aug 2019 15:11:37 -0400 Received: from mail-eopbgr20069.outbound.protection.outlook.com ([40.107.2.69]:31678 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2405030AbfHWTLg (ORCPT ); Fri, 23 Aug 2019 15:11:36 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=As2xMRq4glTIu/8FmqipYrzou4bO6ippOcQCxutWe9V/4yBwlMLF39ZTpx2KkOEc/A8MDfv7jnAYtr4v7F5TDLoNJjOIP43zv0X7ogn8T9bL6MZRCMUOWGD2XLSnYisKYFxsjfinSnOWF0Som+f6Vu9ujlUXjdxBHr72k3y82X66/sT5XvmFcf5VZRcBAt4OxWWbliEA8wA1ygyumJ3X32Andyuq/YTp6tdj1nqGm70+GjQeZfW6EPMpAmIWMw/FlUGSwg1gv5fVtav1M2ayG4ha9mgwVYeUN5FbqdDFKJvGgwLkdNVhmWtBp1rZGusPaQCirwZhv7h5RGD5x7Ye/w== 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=jymAq2v/YzYBaJb8qC1WGpbL+wvEGUPZTdLCiVQmFfk=; b=Bn+kZdiqrlcVfVjk63K7xO0GUGZ+Aj/0bpPX88CRsWRQsXIO3dOdZp/Z6/Aw46s2059yRH3cX3qS4uHiB3Xz93bq2sQY078IkY6+26B/MLMCNASrcYKm4Fq2+bWqsWMY6u7H6pWoudX70GhH1HgLwOUGNLSsjKRLg/5dt0dLZNj0cS7uT2Q1hNY8xpcBQAX3EUrfIzCpYj5hGopAIRg2PGphoxtCg8Muymzr6cX6BB/BIfpVZe81wPp7SnJwVKGg9r36E4pMgcRwHWRQYyYiZM0eivfikuoMpjKW0TWv563huiJkTC8tvZYjoPnpYcBKGCWEnpgqdnwvMUok1ygmzA== 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=jymAq2v/YzYBaJb8qC1WGpbL+wvEGUPZTdLCiVQmFfk=; b=hCL36r5wwLFae8HGlmofxMqwJe0jy3dsgdR8yBvqL5J9X/PlQuk03RZJSJid9fsxpAGhPcPW4KyamGlrp0J55ZUJoL6uNYKzkfLpSLSWzMaWmExqlp45MXdEjn0u8/wZeXJ5Rg9aVeJLoBIRZhd+J6Prd3RiCq3C8TtjVHd0vqw= Received: from VI1PR0402MB2863.eurprd04.prod.outlook.com (10.175.20.18) by VI1PR0402MB2717.eurprd04.prod.outlook.com (10.175.22.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2178.16; Fri, 23 Aug 2019 19:11:30 +0000 Received: from VI1PR0402MB2863.eurprd04.prod.outlook.com ([fe80::7de6:ea4b:9b5d:d023]) by VI1PR0402MB2863.eurprd04.prod.outlook.com ([fe80::7de6:ea4b:9b5d:d023%7]) with mapi id 15.20.2178.020; Fri, 23 Aug 2019 19:11:30 +0000 From: Stefan-gabriel Mirea To: "corbet@lwn.net" , "robh+dt@kernel.org" , "mark.rutland@arm.com" , "gregkh@linuxfoundation.org" , "catalin.marinas@arm.com" , "will@kernel.org" , "shawnguo@kernel.org" , Leo Li CC: "jslaby@suse.com" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-serial@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" Subject: [PATCH v3 0/7] Add initial support for S32V234-EVB Thread-Topic: [PATCH v3 0/7] Add initial support for S32V234-EVB Thread-Index: AQHVWeaSf3fMl3EAgEiOhwJSBo8Ewg== Date: Fri, 23 Aug 2019 19:11:30 +0000 Message-ID: <20190823191115.18490-1-stefan-gabriel.mirea@nxp.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.22.0 x-clientproxiedby: AM5PR0402CA0007.eurprd04.prod.outlook.com (2603:10a6:203:90::17) To VI1PR0402MB2863.eurprd04.prod.outlook.com (2603:10a6:800:af::18) authentication-results: spf=none (sender IP is ) smtp.mailfrom=stefan-gabriel.mirea@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [212.146.100.6] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 761eccd0-70a7-420f-0279-08d727fdb46d x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600166)(711020)(4605104)(1401327)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:VI1PR0402MB2717; x-ms-traffictypediagnostic: VI1PR0402MB2717: x-ms-exchange-purlcount: 6 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4941; x-forefront-prvs: 0138CD935C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(136003)(376002)(39860400002)(366004)(396003)(346002)(189003)(199004)(476003)(2501003)(66446008)(6436002)(6486002)(386003)(6506007)(50226002)(966005)(81156014)(66574012)(256004)(86362001)(14444005)(66946007)(64756008)(66556008)(66476007)(66066001)(186003)(8936002)(6512007)(6306002)(25786009)(81166006)(36756003)(478600001)(52116002)(8676002)(14454004)(102836004)(6116002)(5660300002)(486006)(26005)(2201001)(71200400001)(53936002)(71190400001)(1076003)(316002)(110136005)(7416002)(54906003)(4326008)(99286004)(7736002)(305945005)(6636002)(3846002)(2616005)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0402MB2717; H:VI1PR0402MB2863.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: OvtUPGdQWDAagI9q7+SOmGAkPj7C+ej5Cio45n/dQu1vc97caL+1R+v/kL+u/Ey8sPLNL0Bic2Z387BPI2Sk1j2qHsOJ9PlsIBaZGR6E3bipPrfVaWkLcKjbj0UpYN/CL5FW8hp5S8HjMFwCBh6gd3GMGfysw8b9Inrs2pix2x2U1gRNDNKEJGpeqjui9uL3TjEC8FQEStU5R81EBvZMFCd4/YqPnT5FB2GuuebVnp9IBvQxDwj9lhpeuP8ThtmUvZEJDFgINCsWQ59kbHc8kDoDrK4lT6EA4j/9v1tS14bek4N/MJkIY2X5qOUGsmQ/y19FQ59Sx9WPykL/Fvn971ZroD/vfVnQXfTD6Dn3bg5PIoKemjiuXUSVLZ6dIAiJ3Ps9lp+hOClXecmfhNbJ6/Zszw04TZNW1gRFbBFShDQ= Content-ID: MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 761eccd0-70a7-420f-0279-08d727fdb46d X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Aug 2019 19:11:30.6015 (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: lrzqXP31+V9t4qGVkIEUKgQmAZWw5xnxPPb1gmBN2aUHVDOmklNtkmaLIQ+1w/krahaVFR5EVdC0WJ7Dw4/wNrzrs7h/XlW++QDnyvi7io0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0402MB2717 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hello, NXP's S32V234[1] ("Treerunner") vision microprocessors are targeted for high-performance, computationally intensive vision and sensor fusion applications that require automotive safety levels. They include leading edge Camera Vision modules like APEX-2, ISP and GPU. The S32V234-EVB and S32V234-SBC boards are available for customer evaluation. The following patch series introduces minimal enablement support for the NXP S32V234-EVB2[2] board, which leverages most of the SoC capabilities. Up to v2, this series also included the fsl_linflexuart driver, which has been included in Greg Kroah-Hartman's tty git tree[3]. In the future, we aim to submit multiple drivers upstream, which can be found in the kernel of our Auto Linux BSP[4] ("ALB"), starting with basic pinmuxing, clock and uSDHC drivers. For validation, you can use the U-Boot bootloader in the ALB[5], which we build and test with our patched version of the Linaro GCC 6.3.1 2017.05 toolchain for ARM 64-bit, with sources available on [6]. Changes in v3: * Remove the patch 'tty: serial: Add linflexuart driver for S32V234' following its acceptance[3]; * Replace 'Freescale' with 'NXP' in the ARCH_S32 config definition and the 'model' property from the device tree; * Remove the 'fsl-' prefixes from the dtsi and dts file names; * Move the 'model' property from (fsl-)s32v234.dtsi to s32v234-evb.dts; * Add newlines between the cpu nodes in s32v234.dtsi; * Make use of GIC_SPI, GIC_PPI, GIC_CPU_MASK_SIMPLE and IRQ_TYPE_* in the 'interrupts' tuples; * Move the 'timer' and 'interrupt-controller' nodes before 'soc' in s32v234.dtsi; * Be consistent with the 'LINFlexD' spelling in documentation, strings and comments; add new patch 'serial: fsl_linflexuart: Be consistent with the name' to update the LINFlexD driver as well; * Remove from fsl,s32-linflexuart.txt a statement regarding the limitation to UART mode; * Make the compatible string SoC specific ("fsl,s32v234-linflexuart"); add new patch 'serial: fsl_linflexuart: Update compatible string' to update the LINFlexD driver as well; * In the LINFlexD binding documentation, insert a space between label and node name and remove the 'status' property. Changes in v2: * Update the entry in fsl.yaml to apply to all S32V234 based boards; * Add chosen node to dts, with a 'stdout-path' property for earlycon; * Remove linflex_verify_port(), because it was only called from uart_set_info(), which was going to always fail at the "baud_base < 9600" check, as we are not using uartclk from uart_port yet; * Fix compatible string used in OF_EARLYCON_DECLARE. [1] https://www.nxp.com/products/processors-and-microcontrollers/arm-based-processors-and-mcus/s32-automotive-platform/vision-processor-for-front-and-surround-view-camera-machine-learning-and-sensor-fusion:S32V234 [2] https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/ultra-reliable-dev-platforms/s32v-mpus-platforms/s32v-vision-and-sensor-fusion-evaluation-system:S32V234EVB [3] https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git/commit/?h=tty-next&id=b953815b819b0f327b5538feba3639d52db70172 [4] https://source.codeaurora.org/external/autobsps32/linux/ [5] https://source.codeaurora.org/external/autobsps32/u-boot/ [6] https://source.codeaurora.org/external/s32ds/compiler/gcc/ Eddy Petrișor (1): dt-bindings: arm: fsl: Add the S32V234-EVB board Mihaela Martinas (2): arm64: Introduce config for S32 arm64: defconfig: Enable configs for S32V234 Stefan-Gabriel Mirea (2): serial: fsl_linflexuart: Update compatible string serial: fsl_linflexuart: Be consistent with the name Stoica Cosmin-Stefan (2): arm64: dts: fsl: Add device tree for S32V234-EVB dt-bindings: serial: Document Freescale LINFlexD UART .../admin-guide/kernel-parameters.txt | 2 +- .../devicetree/bindings/arm/fsl.yaml | 6 + .../bindings/serial/fsl,s32-linflexuart.txt | 22 +++ arch/arm64/Kconfig.platforms | 5 + arch/arm64/boot/dts/freescale/Makefile | 2 + arch/arm64/boot/dts/freescale/s32v234-evb.dts | 25 ++++ arch/arm64/boot/dts/freescale/s32v234.dtsi | 139 ++++++++++++++++++ arch/arm64/configs/defconfig | 3 + drivers/tty/serial/Kconfig | 8 +- drivers/tty/serial/fsl_linflexuart.c | 8 +- include/uapi/linux/serial_core.h | 4 +- 11 files changed, 213 insertions(+), 11 deletions(-) create mode 100644 Documentation/devicetree/bindings/serial/fsl,s32-linflexuart.txt create mode 100644 arch/arm64/boot/dts/freescale/s32v234-evb.dts create mode 100644 arch/arm64/boot/dts/freescale/s32v234.dtsi