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=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable 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 76E9FC433ED for ; Tue, 13 Apr 2021 17:40:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5568E613B6 for ; Tue, 13 Apr 2021 17:40:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347250AbhDMRlG (ORCPT ); Tue, 13 Apr 2021 13:41:06 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:10264 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232356AbhDMRk6 (ORCPT ); Tue, 13 Apr 2021 13:40:58 -0400 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 13DHWLTQ025271; Tue, 13 Apr 2021 19:40:21 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=selector1; bh=pZ9s/N4lfu05HqEWvS2/jUO/gf8ZaUn/1iPWaeBL6gE=; b=uRcjaPdUe34wNzIXpnwi73magRFgB096RjbKGaaJzULmjXgXJSdEBGdqsoLQ9azelkov hI1h/slpMONIc14wLAa6f6iwikByOLFuNubPl9/sCnGCwIPKMXkj2vRhH/UdKeuq/B4I aQBA+K9t5nAeZsuGqnB3DbNheTn6x8D1/Hk7jrjieZu22oPcFHTll5c7lqpRRO1frmjH q8fFqIXNK4vQSphrlKd1yoXl27mftv8MPTzMeKmIpAXozbX4QEVHWQRyedpAOEtruHgB mNRsoUG159HuD1iW9ViW1rpA2wPA/LSrHioZcUYw+KxrRVPCazydwzm5mzd8P6YDGRyJ MQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 37w3mbv1ar-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Apr 2021 19:40:21 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 75C9810002A; Tue, 13 Apr 2021 19:40:20 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 63CA92159E9; Tue, 13 Apr 2021 19:40:20 +0200 (CEST) Received: from localhost (10.75.127.46) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 13 Apr 2021 19:40:19 +0200 From: Erwan Le Ray To: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Maxime Coquelin , Alexandre Torgue CC: , , , , , Erwan Le Ray , Fabrice Gasnier , Valentin Caron Subject: [PATCH v2 0/4] stm32 usart add fifo threshold configuration Date: Tue, 13 Apr 2021 19:40:11 +0200 Message-ID: <20210413174015.23011-1-erwan.leray@foss.st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG3NODE1.st.com (10.75.127.7) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.761 definitions=2021-04-13_12:2021-04-13,2021-04-13 signatures=0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series adds the support for two optional DT properties to configure RX and TX FIFO thresholds: - rx-threshold - tx-threshold This replaces hard-coded 8 bytes threshold. No functional change expected if unspecified (keep 8 as default). Changes in v2: Change added properties naming and factorize it in serial.yaml as proposed by Rob Herring. Erwan Le Ray (3): dt-bindings: serial: add RX and TX FIFO properties dt-bindings: serial: stm32: override FIFO threshold properties dt-bindings: serial: 8250: update TX FIFO trigger level Fabrice Gasnier (1): serial: stm32: add FIFO threshold configuration .../devicetree/bindings/serial/8250.yaml | 1 - .../devicetree/bindings/serial/serial.yaml | 10 ++++ .../bindings/serial/st,stm32-uart.yaml | 27 +++++++++- drivers/tty/serial/stm32-usart.c | 53 ++++++++++++++++--- drivers/tty/serial/stm32-usart.h | 8 +-- 5 files changed, 85 insertions(+), 14 deletions(-) -- 2.17.1 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=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT 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 BEE49C43460 for ; Tue, 13 Apr 2021 17:43:20 +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 3B1C460200 for ; Tue, 13 Apr 2021 17:43:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B1C460200 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=foss.st.com 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:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=9WNUnYvfugUef0ej0eiUxDU2fWUvibG19YxbTEcYTPM=; b=B5uFAcXnXopGj6vqFL6EfRSR9S S6deFM1cLZTtE2wksYyHlOy5mJ+OTTtuOLW2yf4ejcaxwsWH6zNrfYKE1Az6TW5SIrIDt70liIpij NkQ7CFA5kXPOytoUXhL3PsFQd+nNjyHzSKvdDVvzWx6AcQT6Xihgkd/xqXNIo4hT0134znCxSawP6 e0HeOa+jad0x/yjLu+7yG86fXfd/8dJhLffjGczo0YffT043q4Rp+Xm4elDeb43xdpyEbRwk/t9wS yitRzKdLyDbDHdqggEpulNJi1Y0XdyadIp1hnQZ/fn94Fa7JzvDLnlxHI95X2BSWMbUIWWaNoNDZV 7YPJ0thQ==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lWN27-009ziq-6W; Tue, 13 Apr 2021 17:41:03 +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 1lWN1g-009zgp-6U for linux-arm-kernel@desiato.infradead.org; Tue, 13 Apr 2021 17:40:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=pZ9s/N4lfu05HqEWvS2/jUO/gf8ZaUn/1iPWaeBL6gE=; b=TTbb36e4HF5jUl71QtTbD/NFtC w278lk9ZiJJtcyMQtHZEQX12jFGZbPPOCpDJqosJmv01GfNn1UiydkwFfDaqEcPDoC61ydOFsOSl1 KFgnVZ4JW9o3h3v3VcSyA3bh0UT84CVo6oIreQVm4LH0B4NzunPbQA+GFAz8s00R/fT6jaX8zgUvN hqC+i2g7F1MezlhIe13t/AW8kIF3gdZsBt5PPJrua1g0lJD7AcOhgDKbXPqsjqPI1slolMNxy69Zt w4bMWCKfOk8PS6MbAwr6KtF/SCKH9Uot//sdojnwWb2IPMHyDe8J/iECqvUXpyHLTvEBGDsDVOq3j WolaFdOg==; Received: from mx08-00178001.pphosted.com ([91.207.212.93] helo=mx07-00178001.pphosted.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lWN1c-007E4l-C7 for linux-arm-kernel@lists.infradead.org; Tue, 13 Apr 2021 17:40:35 +0000 Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 13DHWLTQ025271; Tue, 13 Apr 2021 19:40:21 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h=from : to : cc : subject : date : message-id : mime-version : content-type; s=selector1; bh=pZ9s/N4lfu05HqEWvS2/jUO/gf8ZaUn/1iPWaeBL6gE=; b=uRcjaPdUe34wNzIXpnwi73magRFgB096RjbKGaaJzULmjXgXJSdEBGdqsoLQ9azelkov hI1h/slpMONIc14wLAa6f6iwikByOLFuNubPl9/sCnGCwIPKMXkj2vRhH/UdKeuq/B4I aQBA+K9t5nAeZsuGqnB3DbNheTn6x8D1/Hk7jrjieZu22oPcFHTll5c7lqpRRO1frmjH q8fFqIXNK4vQSphrlKd1yoXl27mftv8MPTzMeKmIpAXozbX4QEVHWQRyedpAOEtruHgB mNRsoUG159HuD1iW9ViW1rpA2wPA/LSrHioZcUYw+KxrRVPCazydwzm5mzd8P6YDGRyJ MQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 37w3mbv1ar-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 13 Apr 2021 19:40:21 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 75C9810002A; Tue, 13 Apr 2021 19:40:20 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 63CA92159E9; Tue, 13 Apr 2021 19:40:20 +0200 (CEST) Received: from localhost (10.75.127.46) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 13 Apr 2021 19:40:19 +0200 From: Erwan Le Ray To: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Maxime Coquelin , Alexandre Torgue CC: , , , , , Erwan Le Ray , Fabrice Gasnier , Valentin Caron Subject: [PATCH v2 0/4] stm32 usart add fifo threshold configuration Date: Tue, 13 Apr 2021 19:40:11 +0200 Message-ID: <20210413174015.23011-1-erwan.leray@foss.st.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG3NODE1.st.com (10.75.127.7) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391, 18.0.761 definitions=2021-04-13_12:2021-04-13, 2021-04-13 signatures=0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210413_104032_718945_79E991B3 X-CRM114-Status: GOOD ( 13.90 ) 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 This series adds the support for two optional DT properties to configure RX and TX FIFO thresholds: - rx-threshold - tx-threshold This replaces hard-coded 8 bytes threshold. No functional change expected if unspecified (keep 8 as default). Changes in v2: Change added properties naming and factorize it in serial.yaml as proposed by Rob Herring. Erwan Le Ray (3): dt-bindings: serial: add RX and TX FIFO properties dt-bindings: serial: stm32: override FIFO threshold properties dt-bindings: serial: 8250: update TX FIFO trigger level Fabrice Gasnier (1): serial: stm32: add FIFO threshold configuration .../devicetree/bindings/serial/8250.yaml | 1 - .../devicetree/bindings/serial/serial.yaml | 10 ++++ .../bindings/serial/st,stm32-uart.yaml | 27 +++++++++- drivers/tty/serial/stm32-usart.c | 53 ++++++++++++++++--- drivers/tty/serial/stm32-usart.h | 8 +-- 5 files changed, 85 insertions(+), 14 deletions(-) -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel