From patchwork Wed May 20 13:39:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erwan Le Ray X-Patchwork-Id: 187145 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp2235632ilb; Thu, 21 May 2020 23:56:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzh+IBsdUee56yPFgbeD9LjFZU/W8AXo6YnvwVWjSYlfuy7F+m32KBWzY16zZQuos6Zn9WL X-Received: by 2002:a17:902:c381:: with SMTP id g1mr4095268plg.117.1590130608844; Thu, 21 May 2020 23:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590130608; cv=none; d=google.com; s=arc-20160816; b=zDwKdYlNYlcSb6zwYbp2IO7YmBmOKwxEltcDXXU/lpuH1+HvBUtwigQ6EzVZgSD3e0 16kDrtE0FY1L+Yb9VWbUW8iz0W5a0dNbjCRNM43V3g1Vi4B9Xhg7cy+nemXVQclBTNjJ hyspMb63ndQ7HxZoOgAjI5HRvhC058163kP062cQU7olSen3JN5BWkrK7BL7MJcOobi3 RmuLBCQa3w4LiGbqalxb5sTOBBWVpO89NgxcqDEmoz1YtAOR1cHddgJZqON9zMBEKiIm OlnXfszoZ7Qd1sGXm+rHrG5ixXWAW7AbtfdL7AgoYIU5XQSiUR/I2CkFQDWzbJ+8AF7s mN8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=2uK5mkoiH8JbUWH8zKre3Ta+Pm08VHpy7RZo2v8K9M4=; b=jUh5GkW4K+ZYhfX26wfYNs5BUZf70jFHVibFOFx383fqWqXL9EQOOuoAaJ5e1aswJ/ NfXfL7rQw5umpXhMJ20di7qpxbTpLGfLqWL6KHR3vwBYca1a8njb41MSxUMTC9y3BLbX g48NPTfGNN1YiA/qxOXmf1XGyhHkXIxkZWVUQWDXXrgVN/OiD6FxJfva/SAlzlFrVMSG m1PzMC8HoXJAkUhq2kQQApY53lrnP+OhXUH43j8SSPiSdSzfcxArPNQAAvh5baaU1KWy XIUST66QD2wqV2zNK/1dFY1LJpc+S/NcozI8yr9jmJYXfypHGi1mk+DZ8KGTIo62oA43 EZ8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@st.com header.s=STMicroelectronics header.b=L5IXSC6X; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id d1si1589673pls.315.2020.05.21.23.56.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 May 2020 23:56:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@st.com header.s=STMicroelectronics header.b=L5IXSC6X; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=st.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 34CAD6E982; Fri, 22 May 2020 06:56:15 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [62.209.51.94]) by gabe.freedesktop.org (Postfix) with ESMTPS id AD9ED8989C for ; Wed, 20 May 2020 13:39:51 +0000 (UTC) Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 04KDbH5s030392; Wed, 20 May 2020 15:39:42 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=brO3sqZGXqcbkphnICTmMIGQeXj+VgY9J4aJQV0Xnww=; b=L5IXSC6XTbj6vAGZut48J6hklJzk1CLGGBe+0eQnyopZgpBq3CojUc7bGcyqvCHUZCNk K97H8FkfguiuziG2IAJB/IHadQCG0qtgf9wVy3Xoo6Psnlbe5KRAEfNu+PZK5mfWdC3T 3tgRFETmEHz0OUcnQuS3cJTiFJAkB+zcC1zeSv6uYR8crBul4LpLGJupQ+y+6Wy2bK+3 bkZKeunIJzcbkPRYjezyhIpHse2Dg4Og0JNuE13BlRY0Bue9MURYgrbVgeDEjiwpiLV3 n2fLxwQrRoG8Sf2zWpUYcYB/VIf6Pk4fEtkauS1mD57Ybk8inuC2GG9Zew1uxwbETdQ2 bQ== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 3125n3rnbn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 May 2020 15:39:42 +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 9B95510002A; Wed, 20 May 2020 15:39:41 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 8D4CD2C38AA; Wed, 20 May 2020 15:39:41 +0200 (CEST) Received: from localhost (10.75.127.46) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 20 May 2020 15:39:41 +0200 From: Erwan Le Ray To: Greg Kroah-Hartman , Rob Herring , Mark Rutland , Maxime Coquelin , Alexandre Torgue , Sumit Semwal Subject: [PATCH 1/2] dt-bindings: serial: add generic DT binding for announcing RTS/CTS lines Date: Wed, 20 May 2020 15:39:31 +0200 Message-ID: <20200520133932.30441-2-erwan.leray@st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200520133932.30441-1-erwan.leray@st.com> References: <20200520133932.30441-1-erwan.leray@st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG4NODE2.st.com (10.75.127.11) To SFHDAG3NODE1.st.com (10.75.127.7) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216, 18.0.676 definitions=2020-05-20_09:2020-05-20, 2020-05-20 signatures=0 X-Mailman-Approved-At: Fri, 22 May 2020 06:56:07 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, Erwan Le Ray , linux-serial@vger.kernel.org, Fabrice Gasnier , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add support of generic DT binding for annoucing RTS/CTS lines. The initial binding 'st,hw-flow-control' is not needed anymore since generic binding is available, but is kept for backward compatibility. Signed-off-by: Erwan Le Ray -- 2.17.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel Reviewed-by: Rob Herring diff --git a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml index 75b8521eb7cb..06d5f251ec88 100644 --- a/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml +++ b/Documentation/devicetree/bindings/serial/st,stm32-uart.yaml @@ -35,9 +35,11 @@ properties: description: label associated with this uart st,hw-flow-ctrl: - description: enable hardware flow control + description: enable hardware flow control (deprecated) $ref: /schemas/types.yaml#/definitions/flag + uart-has-rtscts: true + dmas: minItems: 1 maxItems: 2 From patchwork Wed May 20 13:39:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Erwan Le Ray X-Patchwork-Id: 187144 Delivered-To: patch@linaro.org Received: by 2002:a92:5b0a:0:0:0:0:0 with SMTP id p10csp2235430ilb; Thu, 21 May 2020 23:56:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx5xK02/kosokbCuHvnXOkhtBn0sjIpFEjRcieZnwyaCK0KNIOVIr8RJ99JPJlqZ5k1UKaX X-Received: by 2002:a17:902:5988:: with SMTP id p8mr13525259pli.146.1590130582583; Thu, 21 May 2020 23:56:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590130582; cv=none; d=google.com; s=arc-20160816; b=0HfncRE6xYK/tL8iJHXdPW+WqI4LcwcUnIG7pqXglkFEUFDoh7iwt7gJmkUK9O18Sz yNXnWBsChDo9KmqcJjyBXg976dSz+qyRcnS32N9zOd2xXz8wNfYh3APddUvfsXtWY885 eR2LinDhNSdPSmaDexkcYoc4FDCbdCl8GIWI1OC+Ec8hv0t+rjv0SMX2xqr17DvARI3Q LvZdmmP68U2DTAocUvudq8lN+qiHAOaD3esizl70G3a2qGn2+iwjVZMDg49btyqOtCQS /Q8B4G2XNQ1osKsJQa5t9TZyZhCm8PtjYzti20gxMdbdTdyQY1jammrvAbaesvDNxGKR /8PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=H6Epn6iPDgXyisDN9cXVlUshdAhhVpWTztjEVvJfMWI=; b=YF+ArnHdbfwmRz4tIzBBko+qjDQbkuKOjmYdsCsOgdggxgUX/zfAiFlnP3mUP0HeY2 kWl7vCBD3O5st7HIQWgCTn1vJkWgGuW3uDQpRrDL90GSrVpmWI7uJljxSwuPsMj+KzQz bZ0hg8pt7gtabA0DF7ylmkVt6PnxqjQq12Um4kQD5GSXEQZbAColtg5rw+7hwBCsWI7X g1Sn7+mKrMoo+xH4GAPwi7sdMFqVl02dFCV0cdYEQ2IaHKmbau5xWgMWHJFWBZdy00qc 2h447NRHUWmNN0SVpsfJP5Y41rbXvJ2jx++0ZUy6Ec/6bDd9kZ8VuS6quoJqU6PmmO6v 6Lkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@st.com header.s=STMicroelectronics header.b=L3lFrasv; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=st.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id f1si6463593plm.32.2020.05.21.23.56.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 May 2020 23:56:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@st.com header.s=STMicroelectronics header.b=L3lFrasv; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=st.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id EF0446E348; Fri, 22 May 2020 06:56:07 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [62.209.51.94]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0D56C6E850 for ; Wed, 20 May 2020 13:39:49 +0000 (UTC) Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 04KDZUki013233; Wed, 20 May 2020 15:39:42 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=Ra6W9fZReLRTQrx+lu7bVII6kYd76LIwYkwWDAY0Cqo=; b=L3lFrasvXkvpYdrWyPK63OLsSj360TP3KX1jqMA1OYkfPfFg5x7bT4/Ad0J+1XuhTBY9 6WvSEt9LMyK06Yt1nEwXV6AOFuk/fTCRZBgSqdRmC03uPiw2ADxAPEYEQ6njiJAv1fhJ V9yBftCK6A1UFE2Pdx5tgFvQTmR9kE0p/nMArswPm2lF6SsF3Bo6/GpffqLXvinxOAfX eKIEpVbyAIlCgV1i7CcJMl3KuODXi0sTIeVlCFMVsjfUK367TvdNmWbjKZXvwp/qWHSM toBRKt6rM74mhhV51wulH22H22wVznKZyjFqIxjPdOiyOyidIvI7mzmfbKGA3/gKTYbQ WA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 3125xy0jfg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 20 May 2020 15:39:42 +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 72FE310002A; Wed, 20 May 2020 15:39:42 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag3node1.st.com [10.75.127.7]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 5B0B32C38AA; Wed, 20 May 2020 15:39:42 +0200 (CEST) Received: from localhost (10.75.127.46) by SFHDAG3NODE1.st.com (10.75.127.7) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 20 May 2020 15:39:41 +0200 From: Erwan Le Ray To: Greg Kroah-Hartman , Rob Herring , Mark Rutland , Maxime Coquelin , Alexandre Torgue , Sumit Semwal Subject: [PATCH 2/2] serial: stm32: Use generic DT binding for announcing RTS/CTS lines Date: Wed, 20 May 2020 15:39:32 +0200 Message-ID: <20200520133932.30441-3-erwan.leray@st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200520133932.30441-1-erwan.leray@st.com> References: <20200520133932.30441-1-erwan.leray@st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.46] X-ClientProxiedBy: SFHDAG6NODE2.st.com (10.75.127.17) To SFHDAG3NODE1.st.com (10.75.127.7) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.216, 18.0.676 definitions=2020-05-20_09:2020-05-20, 2020-05-20 signatures=0 X-Mailman-Approved-At: Fri, 22 May 2020 06:56:07 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, Erwan Le Ray , linux-serial@vger.kernel.org, Fabrice Gasnier , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add support of generic DT binding for annoucing RTS/CTS lines. The initial binding 'st,hw-flow-control' is not needed anymore since generic binding is available, but is kept for backward compatibility. Signed-off-by: Erwan Le Ray -- 2.17.1 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel diff --git a/drivers/tty/serial/stm32-usart.c b/drivers/tty/serial/stm32-usart.c index 17c2f3276888..9cfcf355567a 100644 --- a/drivers/tty/serial/stm32-usart.c +++ b/drivers/tty/serial/stm32-usart.c @@ -1033,8 +1033,9 @@ static struct stm32_port *stm32_of_get_stm32_port(struct platform_device *pdev) if (WARN_ON(id >= STM32_MAX_PORTS)) return NULL; - stm32_ports[id].hw_flow_control = of_property_read_bool(np, - "st,hw-flow-ctrl"); + stm32_ports[id].hw_flow_control = + of_property_read_bool (np, "st,hw-flow-ctrl") /*deprecated*/ || + of_property_read_bool (np, "uart-has-rtscts"); stm32_ports[id].port.line = id; stm32_ports[id].cr1_irq = USART_CR1_RXNEIE; stm32_ports[id].cr3_irq = 0;