From patchwork Mon Oct 23 21:04:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brenda Streiff X-Patchwork-Id: 737496 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 05BC5C25B4B for ; Mon, 23 Oct 2023 21:07:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229829AbjJWVHP (ORCPT ); Mon, 23 Oct 2023 17:07:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229557AbjJWVHO (ORCPT ); Mon, 23 Oct 2023 17:07:14 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2133.outbound.protection.outlook.com [40.107.93.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D975110; Mon, 23 Oct 2023 14:07:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eEsK7/HEL6u08pHBcLzpGi6wKQKIqC6kDgAyOseDGiGPJ2Q5b9nPasWtPFVWJs108kV7/Clr8hVlicsRhWfqhylq+Jhu3LSFDt/23DNaB5CiB7CeLGlRDGdekPsqpxxyjlc4Kvnvfy+oJzcB59Dse0ieSQ3OgoIo3t52+jdfVsoKWa26mdy8r6hbnT8X4SmBf9dooUssSYIfSHX2CSU6kLVu7TT8pN6k+2d58NvpRwofS7jv8rHaNA2Dk1o33IqBrHHZ6GhdkKqq7IGWqeCFasDe7hXA8dR/AabLmCWSU2B2alSH+1uTeBvTWqd9PJpc4UGcZoQBAFqDW4dNAZOnMg== 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=MfQYGTLy3yUUj5a8r98nzVJVPtnl18VhV/hLJuu4UHiePx+bQlDhXSBRTmp4ZCwqjggtMMrjoik+2g7xjRS6O5mpYC9cX2sSuDhNyk2DSO2G/yxM/AsR+g4W/ovYnBqHcpT7Gl/c08QNZx1wDnYfv+SgiGd2jiFELg5AMesNsVwv/3TUu9bLtO5jzV1oo9rLaiWuI0BCh2U/eZMdkfB1jD7sSrzRoUtmoVp76rgtjAqKTQ0dfeQR47xQXkWd1xX1AjtVenQggWdqR5/wUn6Ul97lH0XiKuRmFY7Rm3pa36avUHDaKz0+TIqT92Q1XrUi7HN40Z+qH5DxH1DQKifEJQ== 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=HRScEAwHRkCUIe9lbR9vY8FGM3m1OflQLcwz/pIv52g1CGZ6cn1g4yzIXCxvApQJ9UWlleatoWt8vLzFoxGM70YIRdzNPxiiS1rfbkzDV4nrP6PzVD6kmVUOCQE8znVrlgkBazksYiNtyjd4T47NnGza88Bxk+84z80Gk2OKty0= 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 DM8PR04MB8134.namprd04.prod.outlook.com (2603:10b6:5:317::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33; Mon, 23 Oct 2023 21:07:07 +0000 Received: from SN6PR04MB4973.namprd04.prod.outlook.com ([fe80::9481:d7e:63a6:1bef]) by SN6PR04MB4973.namprd04.prod.outlook.com ([fe80::9481:d7e:63a6:1bef%4]) with mapi id 15.20.6907.030; Mon, 23 Oct 2023 21:07:07 +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 v6 tty-next 1/2] dt-bindings: serial: ni, ni16650: add bindings Date: Mon, 23 Oct 2023 16:04:56 -0500 Message-Id: <20231023210458.447779-2-brenda.streiff@ni.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20231023210458.447779-1-brenda.streiff@ni.com> References: <20231023210458.447779-1-brenda.streiff@ni.com> X-ClientProxiedBy: DM6PR12CA0029.namprd12.prod.outlook.com (2603:10b6:5:1c0::42) To SN6PR04MB4973.namprd04.prod.outlook.com (2603:10b6:805:91::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR04MB4973:EE_|DM8PR04MB8134:EE_ X-MS-Office365-Filtering-Correlation-Id: aefeb68a-f9a2-44a9-9736-08dbd40c03fe 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: rN3nh2JiZvd8Eb4rUFi5tq4hDE58eUSptpqjZw+IR7d9CQYpsSyfKkBxbQgl12eJGo4lb68hjCfL8mZuNYaKLLVFlBAe8Om85Z/IKduys9Jgh5E+oDlnrfP51J0i5xlWqy4lSE6LZlLYpEHie/1a6q5E+vB1wZmdHHP4evzIKwip2nLtwNymv+0Smxamhc08DvCJX9JuoHuNSB+jc50BEpFPkhdXdjCKmvRi6uo1qjknU241sH2S+1EEb5gAbThMxJfZN8YikZx6DAGcu6a5hQoUgBeFXiElu1QdfCx6yyOcsBMT5kVfB+9VvdVGouDQk2n2hpbkYa3WghlwXkuA9wBOOlEo0DHuzAqnFny3iKHmdGjW7pb0Sjx1fSwvSlG1emddK+QJW1Q7Akw6H6M5IrXjPnj+xZolvwC5Zyj3cMAYupQiVvwczETqEcfYbKt/kJASuu6Hc2tOXcnOH5eiW4Bv/Fs6ZLkZTXuwDzJ5neLA7cfrxQ0BRusznyDN1siX/iRe7+8GvkfKO5Ed+ruXQMsZdfIxpZw+QPSZqxigX2lvp1UXZaKznxK7EubV80RgogogtZmR3nddgCVF2WJgj7p9sogqvbDtUUXlm1XvV5U= 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)(376002)(366004)(136003)(39860400002)(396003)(346002)(230922051799003)(1800799009)(186009)(64100799003)(451199024)(109986022)(2616005)(6506007)(6512007)(38100700002)(36756003)(86362001)(1076003)(26005)(44832011)(2906002)(6666004)(966005)(6486002)(478600001)(8936002)(41300700001)(83380400001)(4326008)(8676002)(5660300002)(54906003)(66946007)(66476007)(316002)(66556008)(266003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: SVh/GPasGX1mXVFYiDagIaKDnXICgkU09IVp+HkeaRMNpE9wjs+uI0kPUIbjaSAFZRkFupIgFOjPcXMgbre2sw6X0FdqOnA1fCV2S7QmloxYwxwttFeI43rtNQ4B5WT7yASkH4wqGzbMrBBhFu5Qi8pvlZ/4MRI8srF2XymuHifb6s/THTScEsqScWkiwLplB87/28CbTXD4lYBm9TaBIw4Y3255QnoUS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RUCRDMzZ3PLiTZjRGJ6SlFyAV9tUBUGBU0mu7GD6cJwbObm9tuIG7Iyd17rXYFjuYfxc94n8OSRyOQl+bgDAClxoP9yBMH8g82NLKhmuu48i1kdKD2DFkM7ENUIt3fQTyustffIqSicrqD67GUd1PzKfaGLzNflSV748AWHFzfWpex6PsjjeT9pwEUtZp3oaKNRiP6AavXW0sKwTH/Dyb91OqbgO1DR8JV7WN0TZv6V3sMLklJgRoGbDmtrugC6S91UVnrSC6S4SmqTLcLLs146Z X-OriginatorOrg: ni.com X-MS-Exchange-CrossTenant-Network-Message-Id: aefeb68a-f9a2-44a9-9736-08dbd40c03fe X-MS-Exchange-CrossTenant-AuthSource: SN6PR04MB4973.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2023 21:07:07.6567 (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: vARmxL4yVqQORqdomFcV/IXhHBH3m9f6e3rtpeXIkvZi1BrrCahltO31+bN3qW/o3iz0+AOWifi8zQRBzXGjoQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM8PR04MB8134 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"; + }; +...