From patchwork Tue Apr 18 22:37:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brenda Streiff X-Patchwork-Id: 675544 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 87A3CC77B7C for ; Tue, 18 Apr 2023 22:48:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232845AbjDRWsN (ORCPT ); Tue, 18 Apr 2023 18:48:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232829AbjDRWsM (ORCPT ); Tue, 18 Apr 2023 18:48:12 -0400 Received: from mx0a-00010702.pphosted.com (mx0a-00010702.pphosted.com [148.163.156.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 175B840EE; Tue, 18 Apr 2023 15:48:09 -0700 (PDT) Received: from pps.filterd (m0239462.ppops.net [127.0.0.1]) by mx0b-00010702.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 33IIkpQl011018; Tue, 18 Apr 2023 17:47:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ni.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=PPS11062020; bh=H8quVE2PlIiIVz4NJq4t/xu7XTAaIdYUoo9K+fkSw3I=; b=lVgmRGG5bSBF13QwPwHoWZxoEJ1lZaRkLks1twmKGLKxgB4d79Cd0vvkPeT6r3NTwI2Q 9ulZZNwFS8hFBEmWTSHrwtU5mAX1ulutpNkFQIVBuE14SOZVZBD4JNiuSKPUycrfQ4vC py0lhUwDm1HgL4HA3ScaSOYbhfaMhOngzPYouOJL+D1jxph4AO/5+sP2fDWkK2cFDFQa catRJMHU4F32uFEPxDw/Y+UHcZvDgNUldzoPuRB/0BPKb9u3PmmUu/8Zb9gDyMAjIPnJ Y0v+qpANri3dSJ/tQ19qOI+SN3Kn94hnVXc7qB7pQkIJWCupAip6MCEwQ4Zrci293jfe 8A== Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2172.outbound.protection.outlook.com [104.47.57.172]) by mx0b-00010702.pphosted.com (PPS) with ESMTPS id 3pyr0eq17h-2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 18 Apr 2023 17:47:55 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GDM7pKw4Y3IikWxITPN+Z/1+IelWP+uw9PlV+OmL/Jq5oKxOCO2hlf3Oszl/muPOS3nxFy8mrR4NxaK8IEXhPUjOALEy3SM23z5yaJHHUv31+0rZsQp0hOJMpaV1ie1ZLU08ioeYoARApCqkA9hg61Ny1867C4tXRsQmx4mo3Bv+/Wkt1ErKKnOkGcDUAKI/dAActKNRnXnPvCawSvjrv50pAyCWecC8E5BGHDAw1ZWRcEHtIokm0iOGND54pBcDjlephyhrlo3PudfkSE53WZYMXaju9gydf+xPCXOFNmDmCu8ZarKjq3Y+Qs8HFmMdsCRP08eY9SHZ+OrNpasbYQ== 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=H8quVE2PlIiIVz4NJq4t/xu7XTAaIdYUoo9K+fkSw3I=; b=Q4w9LiE5JPrrQyaoMnd1wr0L0AVYwVx8HGgYp2b2fxUqheBCSTg/UDbPMCD+1ldTMzVjDbfn7fn8E7fLbTpXhVcP+UDnZaHzileKXmjPFK6zDYKO9K4FZ1sF+LIdOZjXm591aa5xWTPo+c5LuZokJkSmgcRFjhVWKrU4Flmr6xhjD7KLdOFQSV5iojqLAKp6S+tRaM5OeBOYNlJQTBvkHjWDtCarjtUXFXlice9PfeuztZXXGcgvlqHHsq9Q9EOTycNrrPsRcTm080j2hDVw7h53T+SZK1AT0hrc0ty5gNjKBGOlBVHUp+QmVnpSkpLS1uBfQq0b6/Zv/eD7UelZ9A== 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=nio365.onmicrosoft.com; s=selector2-nio365-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=H8quVE2PlIiIVz4NJq4t/xu7XTAaIdYUoo9K+fkSw3I=; b=p6mvED1ZmfTasM3AWCtPG6WZ+e5jwCUBBStY2MpIyemM5YVUKUqNrvFTgOgH8VPEagKAwfSYmTI3Jhv8p7FqtmctM07ZA5P9PR6UAVkai5k1JG8QSiTGMTRrM+EZejhGqHvpBhSTioqEO/KjZvTf7wvhcci4P3Qa5LfkSDECOSM= Received: from SN6PR04MB4973.namprd04.prod.outlook.com (2603:10b6:805:91::30) by DM6PR04MB6761.namprd04.prod.outlook.com (2603:10b6:5:243::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Tue, 18 Apr 2023 22:47:53 +0000 Received: from SN6PR04MB4973.namprd04.prod.outlook.com ([fe80::f4d5:a7d3:adac:3654]) by SN6PR04MB4973.namprd04.prod.outlook.com ([fe80::f4d5:a7d3:adac:3654%5]) with mapi id 15.20.6319.020; Tue, 18 Apr 2023 22:47:53 +0000 From: Brenda Streiff Cc: ilpo.jarvinen@linux.intel.com, Brenda Streiff , Gratian Crisan , Jason Smith , Greg Kroah-Hartman , Rob Herring , Krzysztof Kozlowski , Jiri Slaby , linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 tty-next 1/2] dt-bindings: serial: ni, ni16650: add bindings Date: Tue, 18 Apr 2023 17:37:59 -0500 Message-Id: <20230418223800.284601-2-brenda.streiff@ni.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230418223800.284601-1-brenda.streiff@ni.com> References: <20230410211152.94332-1-brenda.streiff@ni.com> <20230418223800.284601-1-brenda.streiff@ni.com> X-ClientProxiedBy: SA1P222CA0004.NAMP222.PROD.OUTLOOK.COM (2603:10b6:806:22c::14) To SN6PR04MB4973.namprd04.prod.outlook.com (2603:10b6:805:91::30) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR04MB4973:EE_|DM6PR04MB6761:EE_ X-MS-Office365-Filtering-Correlation-Id: dcf31bfd-e630-4186-b2b8-08db405ef1be X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: RixgoiWgipk+3zmJV37NZGcyaL6r/tqQJQ+/yNIzpaw5Sp3tK4q8n2WSS3zGsjaqUyBWs/ukz0JO6NT+BEtLqtlTjGSyLuD+TE0wXajM/JOI/SYctDhdflJKM3OCKBGGlP+taNi7tkQL8sKBPJWuOuZrbtK871RZQ6FUWG0KMVljESzPBKLxQ9G4obmmS748hthILGxhBaTKwKaYeii0SqBvd7us359E9XZcxkhMKzvtN89AolMw815d4st7n05uoSBjtvVAoKaXUSYF4iqnasepWgmHLQmocAAvjHYwimLEjCrgLitVeFbpQ8zdc2sU8mhh2jCHfkhv7pXLD7Gfa0/js3X4hTJq7y1RNaurtM9Ty3Gd/0AieEAFn6tjaYOK4ITyxVoZykyF8td5dNLMbg3pnTvuWVcOhXtUP0Lm5WwfWNLbPr59SzmnX7xN3N7bhiE7YJdQbe16vZgcmKHOd7vx1XBv7+3ZEvC6Z8cmwD3Q9SozCIHvGyzbss44FrhAwo+f/h69ETRKqF0sqyW2BS3a3T82fFuAosqyz1jAUZK0VNwGHpAd7uAlP8ZRVbjpapsNkY1FtHWm07OhE36AHQ== 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:(13230028)(39860400002)(346002)(136003)(366004)(396003)(376002)(109986019)(451199021)(44832011)(36756003)(2906002)(5660300002)(8936002)(8676002)(41300700001)(86362001)(38100700002)(478600001)(2616005)(26005)(1076003)(6506007)(6512007)(54906003)(186003)(966005)(6486002)(4326008)(66476007)(66556008)(66946007)(83380400001)(316002)(266003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: HYM+/hmxt+EJfssIl2dLtudDfELZt7+w0ki3jhyhg0eogJ/6av/nhu1mdbjb2a18G0e97+ykogqcFIStV47Tr32M1kxZAFDsO/Nvj3t5zb/Ceor9LKwsP+zq6jPLIEKaTVUYGrvIYo0BIOFbPsgQSMVWkdv7GmXI3rKmepy5brZGUmMBQ3QcYLSrcz1+U/AdVHcrkqbb+ZwB9phirsOSZ2gryDtnZvdx7gyAT4IDS/XQRXaraEWaTzF+0ago+xLvEUYadcc8MHOW7kkfD+q+2d7Pq5eUO1P+cIkgLKBx7bXL5YzQyn833Y/mRs7kPzbDlwrwY0FmHpvTMue7YCbHHJeoV/gaPJ0c6y/h4W0rDoRODPncRxogUU1NBZppr9f4HJOJHMAFC3UUO1WozlTVhshHTvsVgAL+8H01MUxr++OFPdESt4ZOvnIk4kdIgmN9uyluE6CiNdKhrQas1bOA9ETaUpNHtEOq5uJPI8+ViZ6b8M7LEUMt4zw/Qu0wrZvpbun7mXtX4v1kEAlHyEJihX5b1uh4/tnigmvv8YY5TH/li4zNTojN3mYsh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d-e630-4186-b2b8-08db405ef1be X-MS-Exchange-CrossTenant-AuthSource: SN6PR04MB4973.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2023 22:47:53.1786 (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: 9al+yS7MdN0NQENspWq4o05s17BNV5kdjSukUNk9XPHEiMNeaWxE43W8+cpSjkrBiGx6h/BPeA70X/GC5q2C+g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB6761 X-Proofpoint-ORIG-GUID: ledOvnFxX3jfVhGRB5MNZ3gqondKakDH X-Proofpoint-GUID: ledOvnFxX3jfVhGRB5MNZ3gqondKakDH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-04-18_15,2023-04-18_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=30 priorityscore=1501 mlxscore=0 bulkscore=0 phishscore=0 malwarescore=0 adultscore=0 clxscore=1015 spamscore=0 impostorscore=0 mlxlogscore=999 suspectscore=0 lowpriorityscore=0 classifier=spam adjust=30 reason=mlx scancount=1 engine=8.12.0-2303200000 definitions=main-2304180191 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 --- .../bindings/serial/ni,ni16550.yaml | 64 +++++++++++++++++++ 1 file changed, 64 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..93b88c8206b9 --- /dev/null +++ b/Documentation/devicetree/bindings/serial/ni,ni16550.yaml @@ -0,0 +1,64 @@ +# 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 + + clock-names: + items: + - const: baudclk + + # legacy clock property; prefer 'clocks' instead + clock-frequency: true + + 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: + - | + serial@80000000 { + compatible = "ni,ni16550"; + reg = <0x80000000 0x8>; + interrupts = <0 30 4>; + clock-names = "baudclk"; + clocks = <&clk_uart>; + ni,serial-port-mode = "RS-232"; + }; + + clk_uart: clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <58824000>; + }; +...