From patchwork Mon Mar 15 08:34:57 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 12138643 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 97A0DC433DB for ; Mon, 15 Mar 2021 08:36:34 +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 2EB0764E89 for ; Mon, 15 Mar 2021 08:36:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2EB0764E89 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+linux-amlogic=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:References:In-Reply-To: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:List-Owner; bh=PPoZmcM9yuuKK2ZeQrz0JdoL/49ZCjFnO3cSzDUQiKc=; b=DFkmJcXUSPw18/+BXit8MUGgI rFIg7XBUwnJIHMPt0i1FEss81nFCm48g9t8lmA+fd9LpMzj+BMOPbUmCrBoPlunZXxLXxdF7p7vHb SiI46vkpKz7CanylHgj7snbg8Prd8KubsfczKtn8kyebhuSkEIrieMKGQ5yvQ2JiZIwd1SFG9J44v 32XZUdws9oTp/k7460ie7OsGgzIWFXRBhlrzFEVmDPLu9Epb0Zne16f0ttTRdXQzKOFXwp2tGasnB MebkxgPwNc1bmsfwHUZiRdaZp2OZ4XkVTN+APhdrptstJ4TXd5DxzxOIIq2bgf51WohOuXqAxbFlj s5nB8jxEg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lLii9-00FFBl-EK; Mon, 15 Mar 2021 08:36:25 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lLigr-00FEsU-EV for linux-amlogic@lists.infradead.org; Mon, 15 Mar 2021 08:35:15 +0000 Received: by mail-wm1-x332.google.com with SMTP id g8so7584782wmd.4 for ; Mon, 15 Mar 2021 01:35:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=h/Gkz5RJgx9sQ9b5NmpdOjRc9DJkyI918kN+6MDqa88=; b=pjzaBNJa/Cp5phiQwo5PRMNYoWo6/wuEFJl1pKg6/K5/G0qyxPc1TflAYa2B4876Aa 9W6uiziwIiAXf6WueesYR99qLSwPGeXltfm5YPSNtVQj+mTrFUfRWuJWF6Fsfwo0HeaZ ZjStNW543/Qg6svtOW8WV/o8CiHpsZp3lh/jAdmUJ2+98KDNiSfmWT0gVlqzbF5gxWE3 OC/n0slCAHgSC4T8SWBNcDHavvcoDLgH0RRx1+QaknM8ApANZw5SM0b5DOHMkXe1yGQD 0zCWQNarmtMLf+yfToY8IYbF84u13FaE+vKOVpJAJNHUeImSNoSmBr9GB48qzqDG/7M0 8R7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=h/Gkz5RJgx9sQ9b5NmpdOjRc9DJkyI918kN+6MDqa88=; b=Izl1BnO7f+c3dOH/dxC//ERAEJ86g8XLzXznONmGXuxXY+E6nHQDsLNCWpJsJXCah8 rAcoED1D1Kf8rjQgBsECOy6i+tWzOi9LV8Qvb5M0pgCf7zG3/Ssx6ryNCHRBzqH5kb2s SbLQCSHYY4KybFmvLvN+yknIzSSPx9lRYIQ7ZdABeB4oCWO3HaStX3bukzTr/TIbXl8R jAZuhZc84UbHLAsl0kci3ZMcV9QylUgN7VgXMizrK58BGYcxpxMZR0qG4KXdIcSsnsW9 w0vQ+ZExVZPXVtZnJdOzcBt7FZpZKjxp81EGHf+OuIRD95LBOk2JLaYsa4l+Y0xO4trU K2Cg== X-Gm-Message-State: AOAM532cZiQasIgSwavTeoxSyMLGZyGnGOIw2qVHgxPbInyutdRoD2Dc VR/EYwBvNLzu3TkFKwMSyrZkXg== X-Google-Smtp-Source: ABdhPJxkvfTQ4A0oqVxQTXvK6iCVYYqj/CHlIUOzPNQx4tTvdjm1Iu18EVe2v3EEEUNlrUPdl0x/hA== X-Received: by 2002:a7b:cdf7:: with SMTP id p23mr25061709wmj.26.1615797301209; Mon, 15 Mar 2021 01:35:01 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:90c:e290:708f:15aa:638c:22b7]) by smtp.gmail.com with ESMTPSA id o2sm8372028wmc.23.2021.03.15.01.35.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 01:35:00 -0700 (PDT) From: Neil Armstrong To: gregkh@linuxfoundation.org Cc: devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong Subject: [PATCH 1/3] dt-bindings: serial: amlogic, meson-uart: add amlogic, uart-fifosize property Date: Mon, 15 Mar 2021 09:34:57 +0100 Message-Id: <20210315083459.359773-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210315083459.359773-1-narmstrong@baylibre.com> References: <20210315083459.359773-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210315_083507_893752_DA31E139 X-CRM114-Status: UNSURE ( 9.88 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org On most of the Amlogic SoCs, the first UART controller in the "Everything-Else" power domain has 128bytes of RX & TX FIFO, so add an optional property to describe a different FIFO size from the other ports (64bytes). Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- .../devicetree/bindings/serial/amlogic,meson-uart.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml index 75ebc9952a99..e0a742112783 100644 --- a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml +++ b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml @@ -55,6 +55,12 @@ properties: - const: pclk - const: baud + + amlogic,uart-fifosize: + description: The fifo size supported by the UART channel. + $ref: /schemas/types.yaml#/definitions/uint32 + enum: [64, 128] + required: - compatible - reg From patchwork Mon Mar 15 08:34:58 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 12138659 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 3C184C433E0 for ; Mon, 15 Mar 2021 08:37:05 +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 B929E64E89 for ; Mon, 15 Mar 2021 08:37:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B929E64E89 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+linux-amlogic=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:References:In-Reply-To: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:List-Owner; bh=hrRRjFFYVbKaHh+3zdx2tw9ObggJLrdDEI43Bd4s8H8=; b=ZWQTUHhFKxIEZd38hvYlITkon y+y83BUQbXFRzmpHUmnyvi4KxmehUZvPc91w1G0+b2aotQjd9AXsr3Gd7lDtXNSDtRO5i/rAKsXOA i1OciHEmfV8HhycdlD2nZmW5XAt0IQ+JkUFmJXKQ87aR9m4eQvcn7TVythto050YPeixMl0eY71Rr XoEH9xtN0sYEvGrn8ohIVkeXuV1pjgpsj/9LeXQHEfJk8asWTmWwNZfCCCWBV9hS6gDNQG5y2Rbdd 3KPnoFBv0G2SZlicg/nWFAlK1P86Tbom7d7cj708OtTELv/evYcMNs+cjjEMECaTHgqUWsZAi+XS7 LlUQE6bGA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lLiic-00FFIW-EQ; Mon, 15 Mar 2021 08:36:55 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lLigr-00FEsm-EP for linux-amlogic@lists.infradead.org; Mon, 15 Mar 2021 08:35:15 +0000 Received: by mail-wm1-x332.google.com with SMTP id n11-20020a05600c4f8bb029010e5cf86347so1868916wmq.1 for ; Mon, 15 Mar 2021 01:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4O/Pa9QoYF77T5Q9QdbcadRQvPAdN3INVfdUHWaUtt8=; b=X+QUFVzKkQbG1ViUEZ3ss5XSu9heNtdx5TJHJrU1CiqtByufNS4VrOXAvqk+I5bdR2 em6RSTaKU9idqiQITHDzc/DtiLlLvKYg/uBLAmPPmR/IkaXePdP9iIX9HdsWNYFpEaVv 5dGrwHCoVJMiWt0PpoSUZH8sU4eNdWw2W/IqmLN96S4abciDPztuzn4k/buBj7xHJpRS cSvv4WbCBojzRz3STHiTyDwHgO6NrShwOGryzZ7HaEkv8mxpKJToLcx5avhbZcla8VTD uSmZAaVVomd281PQ00gMbDzr9ndev8s4cn7DzY+yfjMmDHs7ZLMKm0UC6kBDHSsefrtu Ea0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4O/Pa9QoYF77T5Q9QdbcadRQvPAdN3INVfdUHWaUtt8=; b=jbzvVlzo/GrBIMM7ZeiKVLbTqnWCGL0HhxeTXV6yzRfaXI3YfefsQij1fpw47zD+AU R5v2ANNPGsDO14Yk4BPGtld39nBK5IZkYspitfTVHRBJ07VS7wWkQ1Ze1GHfhsyOn4u/ CO9lDRFLh1PSxZvH/yMi/m17NKbBCaOQlH/3OcBBkK2j/xwmAxk/7Vy1Mq0JYdm4fYju GxbCCWRhdWL1JmwvfOH2Qp5tomSwm95tu9ZGRZawYyu34S2dPDfm4uwNbpmN8r8Z+IHF vwImZixhDBP+18lBb8E35eF7iVvQ4NBtpv4PQ4d9xq3R8c8Q44OEEkjkJoE0r2NcbPXP BIMQ== X-Gm-Message-State: AOAM530uTzPtTJEfdFktPvrVACGnX/jG1VkRX2x8OuOrasVjAhIGkSHK vljhmpno0+tM6fKG2U9nTCJfbk2iIdRFITQA X-Google-Smtp-Source: ABdhPJy3UE503fgAhTS0RzBbZfuwhb5FPKRFm4Jpd51LGdchtrvmRVxO/iaQkDxynO+Xstf/56XjoQ== X-Received: by 2002:a05:600c:210a:: with SMTP id u10mr25166362wml.147.1615797302244; Mon, 15 Mar 2021 01:35:02 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:90c:e290:708f:15aa:638c:22b7]) by smtp.gmail.com with ESMTPSA id o2sm8372028wmc.23.2021.03.15.01.35.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 01:35:01 -0700 (PDT) From: Neil Armstrong To: gregkh@linuxfoundation.org Cc: devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong Subject: [PATCH 2/3] tty: serial: meson: retrieve port FIFO size from DT Date: Mon, 15 Mar 2021 09:34:58 +0100 Message-Id: <20210315083459.359773-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210315083459.359773-1-narmstrong@baylibre.com> References: <20210315083459.359773-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210315_083507_897569_CE104584 X-CRM114-Status: GOOD ( 14.52 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Now the DT bindings has a property to get the FIFO size for a particular port, retrieve it and use to setup the FIFO interrupts threshold. Signed-off-by: Neil Armstrong Reviewed-by: Kevin Hilman Reviewed-by: Martin Blumenstingl --- drivers/tty/serial/meson_uart.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c index 69eeef9edfa5..7244b12aefab 100644 --- a/drivers/tty/serial/meson_uart.c +++ b/drivers/tty/serial/meson_uart.c @@ -717,6 +717,7 @@ static int meson_uart_probe(struct platform_device *pdev) { struct resource *res_mem, *res_irq; struct uart_port *port; + u32 fifosize = 64; /* Default is 64, 128 for EE UART_0 */ int ret = 0; int id = -1; @@ -743,6 +744,8 @@ static int meson_uart_probe(struct platform_device *pdev) if (!res_irq) return -ENODEV; + of_property_read_u32(pdev->dev.of_node, "amlogic,uart-fifosize", &fifosize); + if (meson_ports[pdev->id]) { dev_err(&pdev->dev, "port %d already allocated\n", pdev->id); return -EBUSY; @@ -772,7 +775,7 @@ static int meson_uart_probe(struct platform_device *pdev) port->type = PORT_MESON; port->x_char = 0; port->ops = &meson_uart_ops; - port->fifosize = 64; + port->fifosize = fifosize; meson_ports[pdev->id] = port; platform_set_drvdata(pdev, port); From patchwork Mon Mar 15 08:34:59 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 12138645 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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 358E9C433DB for ; Mon, 15 Mar 2021 08:36:50 +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 CE71A64E86 for ; Mon, 15 Mar 2021 08:36:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CE71A64E86 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+linux-amlogic=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:References:In-Reply-To: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:List-Owner; bh=UGKIh7aEWOxMBcRDl9U7ZffMi99ukGG3ir0BJBkjvWU=; b=MOy9QZEBe6NHf/1bvurX4gjtB +Vqlk/10LG2/8x/ClebP/o7H5DzkYso7FnMYpmV5ZFHfqCxFBaXLCXtl3aQKYZqTxG2Tmtrj4O03l wdMubrXVLZk2yrjov+66W66Ju9bNQ8n3zIsAh6y1m0w8kpprQe+1QSQCVNkzOzFfbl3gJtsBZtL4J RTAYP4o42d1oqZfkIy/So5wpL8bOwgr1j7Opt5TPbJuClAh8l0x8Vamzc7K5NMPBd4k2tZdyUgyiS DBLV2EA1/fhvqYxXby08Wrap4MmT3F13v7TsOs1C1LSLmImxU07D67Da+kdHcqXSorT3FlNpGblDR 40nEU0lVw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lLiiM-00FFEr-0E; Mon, 15 Mar 2021 08:36:38 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lLigr-00FEsy-EJ for linux-amlogic@lists.infradead.org; Mon, 15 Mar 2021 08:35:15 +0000 Received: by mail-wr1-x434.google.com with SMTP id 61so5224636wrm.12 for ; Mon, 15 Mar 2021 01:35:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9BPZS3vnao73K9jUsX/fpglGU+kHtpTMPEIGEWnyDz8=; b=J9uOWfrfMEKrcqh0mxGSAXwSVI+6IRtLA1Ee9SL2Yecz8KhM/QA7z4AG6nM2dd1b8s r8iSEl10nAm1w/8dGrFgSHg7wUYfnjQeQfagGirxlXqcfHWA3SLFA7jVaPUrvYWHwOSg 6ZGSXcnKLDYIbnq0O92AdA5vGTqNH8J9Uj2+odsqoHvXc/PxBtSlG1BFqSVLe+mhSeHK KN7FeDUw2u0m/VDRT8dxah0TPqHBRGpH4ttZqpBp/w5EKYppPWKgURQr2ElSU3f8AdM3 E7RCTGE/tN+CMx+ArF6vzrjdmIk6cYtEQyYoj5jU5iyfyrGL5tKwH3ucPi2F6nANiaKR rlxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9BPZS3vnao73K9jUsX/fpglGU+kHtpTMPEIGEWnyDz8=; b=pMysrpWFKGlRdkBmuYdmRUmNGPanLCyOwYrZgq6fBUKbSQ9Y9LPBUjuCioWSZN6/MP T5j4d99/cA1G6tT/SOvlV1m1yVwjxLUsoN7ho7E7M8CbMvlTLw9KavvGlIo6lZsIdKz9 ofKnjTvncX2gLCLg1QZpgahuaC/DYh9hzj3kodRo8o/AzDwsxQ1Qm/I74TPcm3MSS+qL zwYloIwOb8get2mEG/6nb3QpFG4InMdOvEnFZlQPVgUXarnebRuqFDId9Nw6qypT0r/P yMy/cHKEOpvMQzwidcSbanAF7M98MH/+2CXTttQsk/gdfr4f+k3INLqLvNuKlCW21FU0 zRvg== X-Gm-Message-State: AOAM530TK9X3D7dT1tIPwnPHVb9wgU8NeR1s4lu7tr2O7msnhv+RmkYU eNDB81LV3KwN1amgwSn2FF/VZA== X-Google-Smtp-Source: ABdhPJyQqwyuDSuV0WHwVd7Shb+AlqgYBqd5R3uq6WnrB0yfoRjomq0j8TJhFdUjMTF9iMgreMZTXg== X-Received: by 2002:adf:f0c1:: with SMTP id x1mr25674841wro.7.1615797303277; Mon, 15 Mar 2021 01:35:03 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:90c:e290:708f:15aa:638c:22b7]) by smtp.gmail.com with ESMTPSA id o2sm8372028wmc.23.2021.03.15.01.35.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 01:35:02 -0700 (PDT) From: Neil Armstrong To: gregkh@linuxfoundation.org Cc: devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Neil Armstrong Subject: [PATCH 3/3] arm64: dts: meson: set 128bytes FIFO size on uart A Date: Mon, 15 Mar 2021 09:34:59 +0100 Message-Id: <20210315083459.359773-4-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210315083459.359773-1-narmstrong@baylibre.com> References: <20210315083459.359773-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210315_083507_861236_E6A599C6 X-CRM114-Status: UNSURE ( 9.40 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org The first UART controller in "Everything-Else" power domain, usually used for Bluetooth HCI has 128bytes FIFO depth. Signed-off-by: Neil Armstrong --- arch/arm64/boot/dts/amlogic/meson-axg.dtsi | 1 + arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi | 1 + arch/arm64/boot/dts/amlogic/meson-gx.dtsi | 1 + 3 files changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi index d945c84ab697..571383c12855 100644 --- a/arch/arm64/boot/dts/amlogic/meson-axg.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-axg.dtsi @@ -1872,6 +1872,7 @@ uart_A: serial@24000 { status = "disabled"; clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>; clock-names = "xtal", "pclk", "baud"; + amlogic,uart-fifosize = <128>; }; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi index b858c5e43cc8..9e898479f118 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12-common.dtsi @@ -2311,6 +2311,7 @@ uart_A: serial@24000 { clocks = <&xtal>, <&clkc CLKID_UART0>, <&xtal>; clock-names = "xtal", "pclk", "baud"; status = "disabled"; + amlogic,uart-fifosize = <128>; }; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi index 0edd137151f8..bd0b049787fd 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi @@ -295,6 +295,7 @@ uart_A: serial@84c0 { reg = <0x0 0x84c0 0x0 0x18>; interrupts = ; status = "disabled"; + amlogic,uart-fifosize = <128>; }; uart_B: serial@84dc {