Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp562328rdg; Thu, 12 Oct 2023 13:52:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF6/nnhVpz4+WohdRm0NwpOpcCzNjHgiEDA2cHWLz3ZNs6XPCehHyEP/QNN67s04Rh4fcf2 X-Received: by 2002:a05:6a21:789a:b0:14e:6c19:60f6 with SMTP id bf26-20020a056a21789a00b0014e6c1960f6mr26599193pzc.50.1697143925392; Thu, 12 Oct 2023 13:52:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697143925; cv=pass; d=google.com; s=arc-20160816; b=r5zouVU0DbSfLnFqqYw8AVtuTnOA9lCYt+RGWQEONMWuC7MDpMw14GdSYkdzN5Oh3u NK9fLlDZCzXgBV5urtzLm5FbCXmfXn7Tvb0gX5MCCgG8reT9PR1To12yVaVL/thA2QJE JiSd5rqwAzw7tsLH3oLy5HVSj/zMTtrbyQH3iaDjGsoOa57sa/rDN++7DHeHdpb3kfx3 ahxS1eWxmSxTcjWX7q5UWfP08K+xVSU/wDCYSBP6iNHOXdD7Z8ILJLHquD7g9c/O3Xj2 mzexqjwhs6UqQxynuqxWC5ZvPWpe88+ofFLmhW+w5LFWg/2gHgiT4wHdTg/MfqBZYINV ujEA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:mime-version:content-transfer-encoding :message-id:date:subject:cc:from:dkim-signature; bh=Iw5FRkuCAddj6aCuQyeliwqJ/eqPugxwATruAfBhJjQ=; fh=q9MODyIo1eeehdGIWkgB+VH0CuMcC363G0UAZ8eWzSw=; b=D/OBgSJU1oOXj8ENk3BnxmfSjNhbCcjIv0fPC+W/JDRIS68t0or3N+AqEKm1Zl+Sg1 O5YG4DYqPd5Uiu4sv/pfdLZMuGHygEAEXW7zyCl891SgaAdsgQ2Yf/ZGxGbRkH1RxXLh 7B6fOdD0RSVNwWhNx9tZ2lTmg/G0t++TFb7WUeXxUfQISi9HkYDgkUnjfbJXBpxNGFVF NFwTOUGrPJK5wR/qsZssR1+ja5mjtyNgHbd2rIGGFLRGO4UxgNU7F7aEplr794XYPZzy LK2DXukYdtoQWsKxVSSk89vUaz2kutjGt/cwPzzLfl0Avi0oGrAjrStVbeB7eHBVusdg x4kA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ni.com header.s=selector1 header.b=biu3DDlq; arc=pass (i=1 spf=pass spfdomain=ni.com dkim=pass dkdomain=ni.com dmarc=pass fromdomain=ni.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ni.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id np4-20020a17090b4c4400b002747da1ef66si3362053pjb.53.2023.10.12.13.52.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 13:52:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@ni.com header.s=selector1 header.b=biu3DDlq; arc=pass (i=1 spf=pass spfdomain=ni.com dkim=pass dkdomain=ni.com dmarc=pass fromdomain=ni.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ni.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id D53B5826C4F9; Thu, 12 Oct 2023 13:51:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347402AbjJLUvo (ORCPT + 99 others); Thu, 12 Oct 2023 16:51:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347385AbjJLUvm (ORCPT ); Thu, 12 Oct 2023 16:51:42 -0400 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2098.outbound.protection.outlook.com [40.107.94.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D14BDA9; Thu, 12 Oct 2023 13:51:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=E+ABi66S7bo3cKhYEWb8zpqdHQlbpIAUVSs3oe1xzU7YSlPecKyV05qJZ/hFt6AwYoqDviZvhYJ+uqrxTTLPf/XBabLTPczPQ0pIMPptP7aQUtlYqjnEYxrMIlipz8sKkAU+ILM2Zt1SjfXjxhW7PUHwHeBDS3ypQzFovv1J/0KJStKc6vOOAVDFimvaiSOty3za1QqtDvreL58yqICmd0qXNXHvK2hor/yv2AdebHNnwT/FUlax8BazZBamyBh8hTLoVsj8qLACkcwgQZHPTOyGPHT9IKgPOJynvyjjS8FU6k/q7YQONK1qjvi5aSlZiRFXue2N1KsKw1fhSXbyhw== 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=Iw5FRkuCAddj6aCuQyeliwqJ/eqPugxwATruAfBhJjQ=; b=PHUgthfaBIW7Y00NKKhhbYa0VaQ4PKq9O95R2oS1ZfovDAycw4/r0mVPU2pO/Q/yXIH3WCzIXKM1253VnmY/Ngk9bvsBL8x0vAdtpGpUW8MIYlpbSL+s4BQnLN1mtXljN+fBJbkCNFsn6BMReFJ4hm8fyEhIcPDL72G9TutgY2dK/4HpUlutYPDMR+qrnNhkAq3toEOlvi6Mvd0LFCkmaaWF1z6PQVuLURxyQgs8+vpUBvqSHXmUhHCzy1RQ4/AePjRXJ2fUqxfs4FsQ2LARkYqIjr6PqyRX27fZ8TvNuz3VzGNWBXQ6s7X4/xCHP+sPnx6LV1siInY0wqvgpqQ30g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ni.com; dmarc=pass action=none header.from=ni.com; dkim=pass header.d=ni.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ni.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Iw5FRkuCAddj6aCuQyeliwqJ/eqPugxwATruAfBhJjQ=; b=biu3DDlqrroakebzKh15KdL88xmeGUDJVXHZAxAtG7X+tQcbzIuEHaWyZUi27++fD8vI6seevQwqDiwCekVBnmK4LDTxWYpNCwQ/5HmeRCKgnr42qU1XkzG9oJKBiKFV05CZTU0onYP01Pndnwvcs8K4GuQxzq4skjwZRn8ld7Q= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ni.com; Received: from SN6PR04MB4973.namprd04.prod.outlook.com (2603:10b6:805:91::30) by BY5PR04MB6376.namprd04.prod.outlook.com (2603:10b6:a03:1e4::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.29; Thu, 12 Oct 2023 20:51:36 +0000 Received: from SN6PR04MB4973.namprd04.prod.outlook.com ([fe80::3205:e23b:425e:a57]) by SN6PR04MB4973.namprd04.prod.outlook.com ([fe80::3205:e23b:425e:a57%4]) with mapi id 15.20.6863.032; Thu, 12 Oct 2023 20:51:36 +0000 From: Brenda Streiff Cc: Brenda Streiff , Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v5 tty-next 0/2] serial: Add driver for National Instruments UARTs Date: Thu, 12 Oct 2023 15:51:09 -0500 Message-Id: <20231012205112.112261-1-brenda.streiff@ni.com> X-Mailer: git-send-email 2.30.2 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SN7PR04CA0184.namprd04.prod.outlook.com (2603:10b6:806:126::9) To SN6PR04MB4973.namprd04.prod.outlook.com (2603:10b6:805:91::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR04MB4973:EE_|BY5PR04MB6376:EE_ X-MS-Office365-Filtering-Correlation-Id: 6080d44f-a130-4752-c5ef-08dbcb650686 x-ni-monitor: EOP Exclude NI Domains ETR True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lnxdc1OnKUb5lwjnabjXxUF4irwSQCXkJuzjLrBQSG+5dZo5jkaWtnAjuiKmZhNVLh1vEltFhOMe/ZjEaT7h7fEZc20fvE9D9cztXWNBpTvGp/t0qHQtI6r+y7q/8HbNGglKazr+WYxpkYyzufWmNu3rUBNoAGoL+5r92NxZ5yPSc694zzHY8DKTThKfCGVFWkJt3VEzlqzxVXW0IawHZP85piawsJ423Rqur+7hotYMM2aHBeNYtCzxenyV6NDsGzns3V43pqOpLVhJZkUw8Uc5nS4+9Rm5CBGV6JdEXMef5AuliL9Uykkaz65770sCHIN5fxzC+1eNNyh0XR6PU1Wa0ZK+9VAbR6tafWRauwAGO+oEYYXsFON1+fhg2R91aP3f+FROIZ94CbvsdF3u+SPX5wPcpMtWrvPHJnqwhRCOHjd1kyVcIuvamoBvzltjvb4Jb0d8wAufKSKKxGOXdRvar/ds2BKaaRa/NCJ7ZcVWRakBIVIGVDZwXNoeurZuy1dUfIy87yKhRRnpnwe9vnq+Muo8NSjGWre+rXE8M9i2GuJGEYNhkTUmMV2fjsXM5cWbv3p7Y8vIZJPKWBEV6A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR04MB4973.namprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(376002)(39860400002)(396003)(346002)(366004)(230922051799003)(186009)(1800799009)(451199024)(64100799003)(109986022)(6506007)(966005)(6486002)(44832011)(5660300002)(83380400001)(6666004)(478600001)(4326008)(41300700001)(1076003)(26005)(66946007)(8676002)(8936002)(2906002)(54906003)(66476007)(66556008)(316002)(2616005)(6512007)(38100700002)(36756003)(86362001)(266003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?hcpJ7bA31W7FzL5qlEC/NfvRq0pRxXGHYvyiN5hcLV0/+c2arWWSxBBwQ+CZ?= =?us-ascii?Q?wRSW0XYJ+ccOzC5X7/0Oat9rl3zhb1eNkbN6hnpYCOxUAPg+iULmwHt8cp5Z?= =?us-ascii?Q?c1hEAWOuTFD/j59jf091X/os2t6MZ+qjWiwxmy1/9aRJvgmitw5KV6tA5PyH?= =?us-ascii?Q?k+Z35oIYGeE+8xtHd/uCWUJYLfypn51GB6vtqxyMb+2EfAdPetsLVSqoYofY?= =?us-ascii?Q?Kqd1Ss4f+zbszWmjz5dFhJSm7wwg3/Z4nMJ+98NDsPsQgzUgvcwKdK+Vx0PL?= =?us-ascii?Q?5CGPvhrZL8ro2Y5CXAK8H7/M5GSu0KO8Rh3czWORo1DdYxxcsAr0D5OMQfZG?= =?us-ascii?Q?4+bpiekMv0wW3ADWWElQA4hNj7NTf6YsJzXlpvB03gtJOf/ZD3dFN3tCLYyX?= =?us-ascii?Q?6TA7clrBodgTlS25FAAedHgipBXs2BsCsAswICMNazXbBwc7tICB6IR2rq/u?= =?us-ascii?Q?eY3Q9HEWxs+q0AGsSwyF3w6StE/zn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XMmKkmrSk1W65XiTqeZj/TtzTmz83V4Xj/jc+q6qK0aVERrzJOr?= =?us-ascii?Q?4Mk/u8gZA8arAnjZUI9+uzasjAtV/qGQP8aDhokm7utKyMKtPC98BEFSgk6+?= =?us-ascii?Q?f7d+zwpAVDu6CEIItonh4JR00D7mmSNuywcKd3hF8SVg/wM9HeEl94e9EDw4?= =?us-ascii?Q?Z8MrhCpBB3bWjM4WHu0OzJFtPlSpgu0DPts71Afo?= X-OriginatorOrg: ni.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6080d44f-a130-4752-c5ef-08dbcb650686 X-MS-Exchange-CrossTenant-AuthSource: SN6PR04MB4973.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2023 20:51:36.5789 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 87ba1f9a-44cd-43a6-b008-6fdb45a5204e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LFDbz3DC8fh4ei+qPG8Hj2zVjJ0Jvh4t7dKsuY388p/wmkaOw8hpHE4nuWCrjKlBzTeRML11shB+eWMJs3sfXw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR04MB6376 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 12 Oct 2023 13:51:56 -0700 (PDT) This patch series adds a driver for the 16550-like UARTs on National Instruments (NI) embedded controller hardware. These UARTs have an interface that is compatible with the TL16C550C (for which we build on top of 8250_core) but also has extra registers for the embedded RS-232/RS-485 transceiver control circuitry. --- Changes from v4 -> v5: - set_mctrl callback needs to set CLKSEL in up->mcr, not local mctrl - initialize potentially-uninitialized 'prescaler' - Style fixes: - comment the effect of the PCR modes - remove extraneous parens - add to Makefile in the post-66ebe67d1b68 sorted order v4: https://lore.kernel.org/linux-serial/20230505213850.829639-1-brenda.streiff@ni.com/ v3: https://lore.kernel.org/linux-serial/20230418223800.284601-1-brenda.streiff@ni.com/ v2: https://lore.kernel.org/linux-serial/20230410211152.94332-1-brenda.streiff@ni.com/ v1: https://lore.kernel.org/linux-serial/20230329154235.615349-1-brenda.streiff@ni.com/ Brenda Streiff (2): dt-bindings: serial: ni,ni16650: add bindings serial: 8250: add driver for NI UARTs .../bindings/serial/ni,ni16550.yaml | 51 ++ MAINTAINERS | 7 + drivers/tty/serial/8250/8250_ni.c | 478 ++++++++++++++++++ drivers/tty/serial/8250/Kconfig | 13 + drivers/tty/serial/8250/Makefile | 1 + 5 files changed, 550 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/ni,ni16550.yaml create mode 100644 drivers/tty/serial/8250/8250_ni.c -- 2.30.2