From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 398DAC433B4 for ; Fri, 9 Apr 2021 16:19:47 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BDE156105A for ; Fri, 9 Apr 2021 16:19:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BDE156105A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=rf9OPoebSkyBHbTVuNvUzZyKKl7LLS5G0BqSVrxUwek=; b=OKlK+Lpk5RmRLe9TxkHSPuIff mvjfdmUjHnY3PjDcBB+V0iPMMrUTNim7Cxoc7RqheJjowOeU3Gy4rLfy6rs+5vpMVwYFwtWc/gS8s AAMsi+7t3dQwoJBWMv2HYiwk7uas8EnwQbg8bHn0Qd1W5+MK8vaEMAaTrp/Fs1bKc3hMY1yYRpAD/ LAkAWIDNllXC+UIgUl1DzOm/+y3DfGeWgIXr1RF0772qfyxIhIubyZQG00p67u1n4QrjXmh5hvil5 c6Yuj53Ix8JhZTn6217Xb7ldPzok486TDDMlAl+NX9x5RDGACh35a8+8LZrz82XPV3U1RRlv2nTwJ +B76BPYtg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lUtpc-0014qD-Ts; Fri, 09 Apr 2021 16:18:05 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUtpZ-0014pp-PO for linux-arm-kernel@desiato.infradead.org; Fri, 09 Apr 2021 16:18:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=nPXWno11S4Od5PcOam+OVspUYzqe84Gw2wWYNw5BBRg=; b=xX8BsRmiWoTPnVeY93MTohcFYg Gvua4fgQbGFHgY5aWO/V9ks4Pv2m/jcUfrDRmpD8KmNJysh3xpOeINBxVwzGqQA2DtbYbNhQH+p5n TorkKKfTmW8/3ledNTe4NF0Kser1r1NVlUZqiT23HsP2GkuCepWJvrnbSTN+r5goeB4ZiLXJTblpA N0xbhIX8a8wURmBLY380D9yuRBVDleOutrOJ98xQC69K4irUV8sNHQM/Fs2MVvM8ky1QFVRD34aHp 2d3tMSkaDfKHEJV3VvTQ0zZouwJBgZr3F/3eJg+CNBTRxddftHK/Qs3mWs4k/kHfvHBVPMlz81ejt zBWeCdDw==; Received: from mail-ot1-f48.google.com ([209.85.210.48]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lUtpX-004e6p-6c for linux-arm-kernel@lists.infradead.org; Fri, 09 Apr 2021 16:18:00 +0000 Received: by mail-ot1-f48.google.com with SMTP id 101-20020a9d0d6e0000b02902816815ff62so331484oti.9 for ; Fri, 09 Apr 2021 09:17:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=nPXWno11S4Od5PcOam+OVspUYzqe84Gw2wWYNw5BBRg=; b=seNQD78VlMtrN/wzJ06ZVgfqsCjOiN3Mu5J4Ch2Vw8oSE4xBsV42UYyBINwJ2zx1vO sCpbOUGlJxeH5uioNtQNHBITlyGcZCuW35aKHeOqR2EJxlx2Vitb5ZHPaBX7wBpRJ4Ug SKJMqrBsjOhpCdVkE4giDKLniMRyxWj3ElKvXEpTTt/X1bb6mKKUgjBbv9uTJxYXzjon QdGniysrJJa6anVTSqtv0Y+R8wddJBPrHFY/Sg2gTDfM6EdZZwcsbiY9sL7RxuO/YEC0 f2t8FrxXJj17XWDC4Z/R4zWEujgE+1JhSc+t7RS4Kqv3NuBXsMlgmSlarMjELHlNmCwS 51fA== X-Gm-Message-State: AOAM533+Bv68rytGDII5sTkKbixj/9JvDyRH/L0XC2CxNHpTgBzib9hW YSIZ/d7iE+bHVSyFy9XLtQ== X-Google-Smtp-Source: ABdhPJwf5uML2LSRjZqxpDpvqc9tar6P33ne+FS3tnIzgi6Q+uhrWPe9XI2nGzLTXRfg7kzTMa0uyg== X-Received: by 2002:a9d:7342:: with SMTP id l2mr5141154otk.175.1617985077974; Fri, 09 Apr 2021 09:17:57 -0700 (PDT) Received: from robh.at.kernel.org (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id w1sm37517otq.75.2021.04.09.09.17.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Apr 2021 09:17:57 -0700 (PDT) Received: (nullmailer pid 3749394 invoked by uid 1000); Fri, 09 Apr 2021 16:17:55 -0000 Date: Fri, 9 Apr 2021 11:17:55 -0500 From: Rob Herring To: Erwan Le Ray Cc: Greg Kroah-Hartman , Jiri Slaby , Maxime Coquelin , Alexandre Torgue , linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Fabrice Gasnier , Valentin Caron Subject: Re: [PATCH 1/2] dt-bindings: serial: stm32: add fifo threshold configuration Message-ID: <20210409161755.GA3745930@robh.at.kernel.org> References: <20210406072122.27384-1-erwan.leray@foss.st.com> <20210406072122.27384-2-erwan.leray@foss.st.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210406072122.27384-2-erwan.leray@foss.st.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210409_091759_269203_E2E88CB9 X-CRM114-Status: GOOD ( 14.87 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Apr 06, 2021 at 09:21:21AM +0200, Erwan Le Ray wrote: > Add two optional DT properties, to configure RX and TX fifo threshold: > - st,rx-fifo-threshold-bytes > - st,tx-fifo-threshold-bytes > > This patch depends on patch ("dt-bindings: serial: Add rx-tx-swap to stm32-usart"). > > Signed-off-by: Fabrice Gasnier > Signed-off-by: Erwan Le Ray > > diff --git a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml > index c69f8464cdf3..e163449bf39e 100644 > --- a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml > +++ b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml > @@ -65,6 +65,22 @@ properties: > linux,rs485-enabled-at-boot-time: true > rs485-rx-during-tx: true > > + st,rx-fifo-threshold-bytes: > + description: > + RX FIFO threshold configuration in bytes. > + If value is set to 1, RX FIFO threshold is disabled. > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [1, 2, 4, 8, 12, 14, 16] > + default: 8 > + > + st,tx-fifo-threshold-bytes: > + description: > + TX FIFO threshold configuration in bytes. > + If value is set to 1, TX FIFO threshold is disabled. > + $ref: /schemas/types.yaml#/definitions/uint32 > + enum: [1, 2, 4, 8, 12, 14, 16] > + default: 8 We already have 'tx-threshold' for 8250, so reuse that and add 'rx-threshold'. Rob _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel