Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp508337rwe; Wed, 19 Apr 2023 01:53:42 -0700 (PDT) X-Google-Smtp-Source: AKy350YM3kTAEB56BOANl5pcHCtZJdoiyKQZ8D/UfJ6SWqH5k3PTrJnv6mbe8hpJ5qJzjLmQxLmh X-Received: by 2002:aca:d19:0:b0:387:24c1:bab2 with SMTP id 25-20020aca0d19000000b0038724c1bab2mr2201345oin.54.1681894422442; Wed, 19 Apr 2023 01:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681894422; cv=none; d=google.com; s=arc-20160816; b=f49vrK2mGfBN1L/wYA+8tb4uqRA/g9IOisr5nEaLaoApR/S8NZG+s38M+HJUug+EK3 wK8NO5/5i+siwWLvTQgeBm0rzJ0jZ8Tp0EN97XyjW8yN99VnlAOZUotITaCHa1yz8KAv fO1KGrBleG5EDxGy3vvcLAHguNJgTiEP/7XVJBduMRdTpLawttbzi28WgrX/lTlZRPvm WwRdy5Mg+ilUOHRT6uxssx77gTs/nX7Vs5vzrTGeLDlTE8XHeBe2et8Yc59p3SmsXN4n jYor5Y99XHBPYtI9P0s5Y4ZyR7+EsWVdDablVx0n8A6VRZjBRfpUY5OxUU4Esmj/ybrg MnDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=3Qlld2XzCVc9i+xQE2LggHCC3Vx3E3mH6+jFp7qQ9zM=; b=N//y2DFXzL5h11kNTALkgPu6l8x4ea17S1Fl25gT9tA+gat+dncfVVdgBrPkKlI1Mt bj4pzh0v7Xng9G81UmQ2fsiHFrrBZzwQDMBb6Ics4C7AMtrqlfcjRZhwRHRiBNdkr/nt tzCva6DlvH1Ft5OFUfSzvB6m47+ZlVlAN1lGFQGIw3dAWpSv6uDcY4XQR/MQSVfdn0Tz o+6kM/koQoUi3aTwLlA6aG8NZhtg9gTkQ0oSoLVh8LDGef2t7J9E8/cQ1Mbi0MXnT0AT xnNbWcf4q5FHFGW/vujEGAnTar0osIMH5NtOA6fBTjdfwB6/Tr9P7MDHoN9RE/k0SI0q tDIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MduE4DHJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc20-20020a056820169400b00546df640308si7518620oob.11.2023.04.19.01.53.29; Wed, 19 Apr 2023 01:53:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MduE4DHJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232724AbjDSIqs (ORCPT + 99 others); Wed, 19 Apr 2023 04:46:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232082AbjDSIqq (ORCPT ); Wed, 19 Apr 2023 04:46:46 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 653FE7EDD for ; Wed, 19 Apr 2023 01:46:38 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id u3so27649592ejj.12 for ; Wed, 19 Apr 2023 01:46:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681893997; x=1684485997; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=3Qlld2XzCVc9i+xQE2LggHCC3Vx3E3mH6+jFp7qQ9zM=; b=MduE4DHJYpYX+4Z6wgZ3OC+ZDMyRLERM8BiJKfNWT9m++IVpL9Yc9EYhsCO1GsxAvE s+JY7chVmt2eSmGliP6EJOt7x6eTq3f+K+RVcztMzx5AP76uAovJu/0uy/RbJrGXTUKz Y8/t376OT2br4IWEycIIzYKo9Q4V8+t/6LZ5AraS/3OXPa9zZbLC0sig0VZPrETv2Ss+ zVhggOZVv81Svmej57j0HwptfjUkSTse9gIEYiDm6/YEhKCCTpqPREILsRuc0r5p39nq hJooQISbvzJsD6bF3wAPxD8H976HWt7EoxKnnGrN+NtMj3EmQONubbSshTEJh22GBuyz zdAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681893997; x=1684485997; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=3Qlld2XzCVc9i+xQE2LggHCC3Vx3E3mH6+jFp7qQ9zM=; b=jYxaQqLKHwVonVpn6kD3saVRmlaE4cnfPFlpcOeqlj9bwwxYl1Rn9Z9P6jQvUxh4ht Lo6LCgwtZ4gvZbA07VJrxlAIKQ5JU2OO5RSs7BUFnhwgmZmzdHYz8y+yKMG4+DfB3PGL DJg85yUnvXZ65uQevKn5zt4KJ8IdaNECEeiuTZAUnFxdDifMrQdp5ENGXlbJdErxEigx 5TzR2WlV6zvHBkYucDyVZ+K66cAnDy29CmYT/b95oLwPRjc2c4QsqS+hbMtiogMLBxVM xRnuUCkEFopTlgtmIpEsFR3BkKxF5vkTMstt91HksozfN4El9wHkQ5mxMV/AXnVMR0kn AASQ== X-Gm-Message-State: AAQBX9e11sLx7ofkFI2fXnko5Mj8zwiq+fgyxx0TOkB1DixnrvAE3Zu9 zE/ZN5MGLMTvxvgloqA+mMh4Qw== X-Received: by 2002:a17:906:5255:b0:94a:5a9e:9da0 with SMTP id y21-20020a170906525500b0094a5a9e9da0mr12067444ejm.77.1681893994109; Wed, 19 Apr 2023 01:46:34 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:62f5:eb43:f726:5fee? ([2a02:810d:15c0:828:62f5:eb43:f726:5fee]) by smtp.gmail.com with ESMTPSA id c1-20020a17090603c100b00882f9130eafsm8961438eja.26.2023.04.19.01.46.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Apr 2023 01:46:33 -0700 (PDT) Message-ID: Date: Wed, 19 Apr 2023 10:46:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Subject: Re: [PATCH v3 tty-next 1/2] dt-bindings: serial: ni,ni16650: add bindings Content-Language: en-US To: Brenda Streiff Cc: ilpo.jarvinen@linux.intel.com, 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 References: <20230410211152.94332-1-brenda.streiff@ni.com> <20230418223800.284601-1-brenda.streiff@ni.com> <20230418223800.284601-2-brenda.streiff@ni.com> From: Krzysztof Kozlowski In-Reply-To: <20230418223800.284601-2-brenda.streiff@ni.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19/04/2023 00:37, Brenda Streiff wrote: > Add bindings for the NI 16550 UART. Do not attach (thread) your patchsets to some other threads (unrelated or older versions). This buries them deep in the mailbox and might interfere with applying entire sets. > > 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 No need for names for one clock entry. > + > + # legacy clock property; prefer 'clocks' instead > + clock-frequency: true Drop it, we do not want legacy or deprecated properties on new bindings. It's not a legacy binding... > + > + 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>; I still wonder what are these. Flags? Then use common defines. > + clock-names = "baudclk"; > + clocks = <&clk_uart>; > + ni,serial-port-mode = "RS-232"; > + }; > + > + clk_uart: clock { Drop node, not related to your code. You are not documenting usage of fixed-clock as it is obvious and already documented in other place. Best regards, Krzysztof