From patchwork Thu Oct 12 20:51:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brenda Streiff X-Patchwork-Id: 733676 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94C12CDB47E for ; Thu, 12 Oct 2023 20:51:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442583AbjJLUvo (ORCPT ); Thu, 12 Oct 2023 16:51:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347407AbjJLUvn (ORCPT ); Thu, 12 Oct 2023 16:51:43 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2090.outbound.protection.outlook.com [40.107.220.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B61DBB; Thu, 12 Oct 2023 13:51:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=U+TJxiJnRcwJqumzJtujrWfUrsuxcw9KU1b3KhQmBrPMLSw0oFuoI/UIvCntJIccJ+9+sJmDDpeAk93cInIxvjjM05EBWqchtRYAnGH0CKLTOVfEMHoxZxCNyv8eOiJgagcYQu42McWrC9oNPHOJLmfXgKqY3SmbCgDXAFRIHhA204Gm2OIfNoKumZdtL8+anNY2dZ6gJ7h74cnAhQDb8KJtH1m/4NCoHsTvTrhE7vi45RTdblwwhi7OZKroHRAT4qe/W8uoJ28j2/5qcGPxMhubAGuzCpijvEEQCl1BHXxoXDIAVvZxrCeZRtwtt2ReeTXMFDiJn6FluGOByjOn3A== 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=5VxahNJvg1fevmOR8fte5obsPgGZZs2bgPIUgAUdt6I=; b=F+ko3ooxvEIa34pw7qiB7ugkBAHKAPUnjYDyBSUu81Lmlodso+ZGnB4Sly4X96hNXWkmE3PqHWr6kOcXKvhkoOLEoywASlXAXWIlC0+aAOZ5XPa98TKH1WrAHAO+bUGu+jKZoQNR8vv8DqXYrHaIVhtsmEATI4d8sqZ9xKIyM5BTwGCEmvj7kcRSTjoVzcG7zuGMkzBa1of9Y1XtbuXS6xB+Bx7gVZqPrdyk3V0dTPB19iRj93NJV3JcIZ4b0R/3PVuAag3fBKlibK1gba2dLNueGqIK1EqL4PvrxOB0wU/L9X4emraxeV5FZ+Hc/zvauzA7WEYKUmK7vWj+QQQerA== 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=5VxahNJvg1fevmOR8fte5obsPgGZZs2bgPIUgAUdt6I=; b=JQ4nOJgBtMdqCp8jWf2cBuGwG3tvyqhkfTewJ2wm2KumyjrpuPHDmaghCKFVOrL9OMFQvy919+bB3HigUHp+Lx3T93ewkKjO7QXsWd48mNqijB0HYetUxXwzZ617PG06MZv4+D9FWu27OEzlNXAJxKn5ytZ2ziDOaJie5tXwfhM= 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 DM6PR04MB6608.namprd04.prod.outlook.com (2603:10b6:5:1b7::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.30; Thu, 12 Oct 2023 20:51:39 +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:39 +0000 From: Brenda Streiff Cc: Brenda Streiff , Gratian Crisan , Jason Smith , Krzysztof Kozlowski , 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 1/2] dt-bindings: serial: ni, ni16650: add bindings Date: Thu, 12 Oct 2023 15:51:10 -0500 Message-Id: <20231012205112.112261-2-brenda.streiff@ni.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231012205112.112261-1-brenda.streiff@ni.com> References: <20231012205112.112261-1-brenda.streiff@ni.com> X-ClientProxiedBy: DS7PR03CA0087.namprd03.prod.outlook.com (2603:10b6:5:3bb::32) To SN6PR04MB4973.namprd04.prod.outlook.com (2603:10b6:805:91::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR04MB4973:EE_|DM6PR04MB6608:EE_ X-MS-Office365-Filtering-Correlation-Id: 0901a7c7-313b-45d0-2ae7-08dbcb6507f1 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: ZKKE9ErvsQX93ufOa9xeNJ5MZ4K5TBMzgO0FKVqLe36U8I7tLN2ExYGpDAryjWp1aV4jS5+RlVpYSK9r8CFHsI9QwaRHpiCEx5zhKztMxBdPxeGOtDWEKW1Sx4/1FKtd6Fmli6WSqckDGMgaFj0d8xeiZpckZCFZyIBhLVrZk0sHJqvreNtqV4AuDsDrS/FzPHzFf+ZHp1LRWLG9WJqEfzy95TU97f62vY0i2mn0va1tW8IJrRZtdBbc+wOb2L/BtjaSIolJrhM/43gW+N1LhZZSEpM1UGhdtSAw2hEWvGkvChJ1A3lPll9hALEknDmaOpS25mUPFHDhfvEeyc/gjzK4DW8QG1ERiXwvf3PlBs1fqFJ5KabRlnw94KpojCyd08ZqY1CRRok83t+Q1x9l5+uxxupbZddcLkAungUwKGxgL/hsR5DxO8jw1hJZDOGYcLD7qHxldN77I/SJuC/zBAK4PSxwlQsu+c243Jueyw0ydYCRfu+fV0wkg7QxLGrZvLxTOG+Gbl0YE+2tu3GH6nDP8NXpjrZ7mqnyqNpo5J5zmY2UGGUv/VYWsS4GzlAoBP+jHm8PBtLJGDWFR6HZP/6DM7qkMNs/IJzvYn30mds= 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)(396003)(376002)(366004)(136003)(39860400002)(346002)(230922051799003)(186009)(64100799003)(109986022)(1800799009)(451199024)(26005)(6506007)(44832011)(36756003)(316002)(83380400001)(66476007)(54906003)(66556008)(66946007)(2616005)(38100700002)(1076003)(86362001)(6486002)(478600001)(2906002)(6666004)(966005)(6512007)(5660300002)(8936002)(8676002)(4326008)(41300700001)(266003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +ihOg+f4gvWRwDtl6djwkovzhnVev/JZq5hI6lgfLQxBdZhhqqJ7jDRiR/s0lMI66HE86nTZI2twNvMwlX9Y84Y2g1vDOpHApfrF4a3oX0GNHtthZPV/v6arNMPlXtEB1kRxxmC+aqGp+EZYr6eb8HXZY9wjzRT6AvvhPbB5xlw6kXKMDaY+vLvNy2HhNJkehXQ5GbVrhdF+qHKiUVs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dTV1dVurvy7wsocX9DJtJd/SIZpmANLKYfjhzNbDHrLrO4U5sSyBjRIJsdrJeBh7kia+8VDrDJJTFV99GT+WWhrF1gcnSjp4+ZjEgv1qUmdjRAb3YwMPDyp6RzVoO5TDdCAdJXOHdFVwFxcp/n3l6YyKEoAlIMYPak0x3HpyWBtjuZ/RaVaqPXiPZf1Jj+Ucyz2R02DB75zAy2WiSK1fu2PLuxp+6MTyBeSR+EtWqvWo1wD5Jv9K6mp36JR/i6nzkvGoQSdO++fdI0s3uZJi8G11xGo64p1EU5QHJp1XRPZmRBy5uFMr9WI4Pc6eOMZqgLGk/ X-OriginatorOrg: ni.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0901a7c7-313b-45d0-2ae7-08dbcb6507f1 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:38.9773 (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: qx6nxn3qu9VCnD+VtxDImTOkGbt1gl/95CtF017zBlZCgY9balJW6I5JtTpp0/wGMIn5UlMCZ0g8lsuBIMHuBw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB6608 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Add bindings for the NI 16550 UART. Signed-off-by: Brenda Streiff Cc: Gratian Crisan Cc: Jason Smith Reviewed-by: Krzysztof Kozlowski --- .../bindings/serial/ni,ni16550.yaml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Documentation/devicetree/bindings/serial/ni,ni16550.yaml diff --git a/Documentation/devicetree/bindings/serial/ni,ni16550.yaml b/Documentation/devicetree/bindings/serial/ni,ni16550.yaml new file mode 100644 index 000000000000..72ab125dd892 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/ni,ni16550.yaml @@ -0,0 +1,51 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/serial/ni,ni16550.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NI 16550 asynchronous serial interface (UART) + +maintainers: + - Brenda Streiff + +allOf: + - $ref: serial.yaml# + +properties: + compatible: + const: ni,ni16550 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + clocks: + maxItems: 1 + + ni,serial-port-mode: + description: Indicates whether this is an RS-232 or RS-485 serial port. + $ref: /schemas/types.yaml#/definitions/string + enum: [ RS-232, RS-485 ] + default: RS-485 + +required: + - compatible + - reg + - interrupts + +unevaluatedProperties: false + +examples: + - | + #include + serial@80000000 { + compatible = "ni,ni16550"; + reg = <0x80000000 0x8>; + interrupts = <0 30 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&clk_uart>; + ni,serial-port-mode = "RS-232"; + }; +...