From patchwork Tue May 18 07:58:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 441614 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,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, 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 60430C433ED for ; Tue, 18 May 2021 07:58:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3FBC361350 for ; Tue, 18 May 2021 07:58:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241938AbhERIAB (ORCPT ); Tue, 18 May 2021 04:00:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241792AbhERIAB (ORCPT ); Tue, 18 May 2021 04:00:01 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87C4EC061573 for ; Tue, 18 May 2021 00:58:42 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id z17so9068595wrq.7 for ; Tue, 18 May 2021 00:58:42 -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:mime-version :content-transfer-encoding; bh=DkFAJ7cUM9Paz3T90sR+cBtykdhQ8PjkYKNHuPU6o5M=; b=ITrtzVzPkLnjWtjElFMH31l+nVtM/TcQlGdY97yww8azEW2GuW+ptPOqD0j+2epwO9 50UTGFcMift4HCK21eiIrSxXUQIvNO0nGh0OzgfSoIJOMsxH15mZQ1ywa/XCDxXSqP4g aVzknNUvQ/m+BmertAk6N2SBmNb94V0915egTGL6g5cNMcU57HotyPGxk31uX+nV6/kE ydXh2Ztmk30ZOmZY7hXbJBHDpFNWg1AUvudIzoRRXUwjryjRhdF0ofHGLsVjC/tiYyZB yZiZ1zCmii3IUIbvc2DvtTSIAL2Z7Msl8oqtqrgHTgdiRFej5r1Wc3o6tLv/1blwpyuc L2wg== 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:mime-version :content-transfer-encoding; bh=DkFAJ7cUM9Paz3T90sR+cBtykdhQ8PjkYKNHuPU6o5M=; b=d8KS3KRU56kQQ8l2ftsTS5Adu78hr3wd31qdDGmU+p6ZSJGixTs2WUBig9ESAgYVpE roWMydaN1sffNPe0QqWSNL7V1PS1NPYdPsuvTehAbM+C8gQ8ADnhlvVxxSQOHhiWbLuW +9LBIDetosgJzPEOImn9ftBLYMJ0O8MZi0TvY7j408nUB2iGaiqj1/5Wo5VFoCZz4zZQ YqdAp6JWJdpjXLKlT6vuIZ6x0G3jXK3qJ6M5CE2Z1URjqvWRNlbyUy2/AvN73pGD2rEO 9QKCDIxS6dAytwQtJObj3yGq32JnT8shY/SKIhNmDEd72Vmlcpsiemgaq4mf3zm6OwP/ aiug== X-Gm-Message-State: AOAM533vL016uLne+WPXGH89NWH9uS7LdjrhWTDChD1PC5gjoM3X1b0y JSVKiu8nJ9Vt8hTyZ+H3oMo1gA== X-Google-Smtp-Source: ABdhPJyKfFz0SKbNMOc+Ey51iyEMF4nI1arx0EzIXE/uR/jMy6HmULXM7jsFhK6o1WZ0X4tTPNMlvw== X-Received: by 2002:adf:fd82:: with SMTP id d2mr5256142wrr.218.1621324721170; Tue, 18 May 2021 00:58:41 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:90c:e290:842:2d82:a1ae:1a91]) by smtp.gmail.com with ESMTPSA id v16sm735448wml.6.2021.05.18.00.58.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 May 2021 00:58:40 -0700 (PDT) From: Neil Armstrong To: gregkh@linuxfoundation.org, jirislaby@kernel.org Cc: 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 0/3] tty: serial: meson: add amlogic,uart-fifosize property Date: Tue, 18 May 2021 09:58:30 +0200 Message-Id: <20210518075833.3736038-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.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). This adds a property in the bindings, reads the property from the driver and updates the DT with the new property. Changes since v2: - removed spurious blank line from bindings Changes since v1: - switched to a more generic "fifo-size" Neil Armstrong (3): dt-bindings: serial: amlogic,meson-uart: add fifo-size property tty: serial: meson: retrieve port FIFO size from DT arm64: dts: meson: set 128bytes FIFO size on uart A .../devicetree/bindings/serial/amlogic,meson-uart.yaml | 5 +++++ 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 + drivers/tty/serial/meson_uart.c | 5 ++++- 5 files changed, 12 insertions(+), 1 deletion(-) Reviewed-by: Rob Herring