From patchwork Mon Mar 15 08:34:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 402197 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=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 0DAB8C433E6 for ; Mon, 15 Mar 2021 08:35:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BF0A964EB6 for ; Mon, 15 Mar 2021 08:35:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229579AbhCOIfK (ORCPT ); Mon, 15 Mar 2021 04:35:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229813AbhCOIfB (ORCPT ); Mon, 15 Mar 2021 04:35:01 -0400 Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 771CCC061574 for ; Mon, 15 Mar 2021 01:35:01 -0700 (PDT) Received: by mail-wm1-x332.google.com with SMTP id l19so7573885wmh.1 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:mime-version :content-transfer-encoding; bh=P0LQpqn1sp2gKQ3mxss2v0MtbNQBB0Oge5rskRFXry8=; b=mf0X2squuN88Q++1zVaRbHGdHRdk3lTEgBdvpHWKawpFl9gkcyhB9lxEqGPXqDEKB3 U5cPricaGv0BQdvagmtoYE+lY5Y8/CirkRwowKmsgU100hcT88/Pwx7hinYq/tYTQ7Zv daQAXFI+FMsLWslVOhvSizjfkwfNMRwVxNzG6t3gc5kTm1D0Ho+3PXi5qLapQzDxuAuU d4tXIE8CcfBPxalFFryeM/W3vbXTRoO9o3JOojFaocc9117Ym6D2tMVMJLwjvLgpZNoS 9PTtgP6ib8QfgE20jExO7jeti3Xv4/s+uprCC0R9FJamWjrh38W+MfHmshnrH02O0sVq 8MNw== 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=P0LQpqn1sp2gKQ3mxss2v0MtbNQBB0Oge5rskRFXry8=; b=o97UxhdoN6GQOxFe2mX39rEp78rGXEFZt65O/qoyhpH+sOkOmcBHUvgdf/422RhmKZ /1UtpZgWmxmofncfdyvxMNFX9jVCj2BruKi4pO7qMCBOR0iXUCwYYtc5KBZ5mmq7t3zC 9EdsSFCo+zMmEATAWOlmAI1lKRLZd07MhdBhiN9QBVd1FvpO0WpycLKkMpD08Mk/vL9g V77xJQnaJ5HBwwArI3oR6UGqm5VkvcdSznAdUuahXwupboSiMaslN0/DwfagXlHvKgeh ten3jX9295e4Me6xD+32iig4/5sgmzCPzRTWRVDHXInDX0SlMGkAaYmY2BXjgzh7+Hpy otLA== X-Gm-Message-State: AOAM531U6EZBfe8Z+0+BiJaxqFJi949FI3LY/dLUdlt4oLQXTGQddB1e ohwaoDpP0U0kYt9k90hiPXouJA== X-Google-Smtp-Source: ABdhPJyuSFJ7w+LBE8QbGv2YrAgzrRTewd+TSsCmAC0t3U6NZO7rWWq9kbxRNygSBIk41pxdEObIVA== X-Received: by 2002:a7b:cb99:: with SMTP id m25mr25428082wmi.64.1615797300081; Mon, 15 Mar 2021 01:35:00 -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.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Mar 2021 01:34:59 -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 0/3] tty: serial: meson: add amlogic,uart-fifosize property Date: Mon, 15 Mar 2021 09:34:56 +0100 Message-Id: <20210315083459.359773-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. Neil Armstrong (3): dt-bindings: serial: amlogic,meson-uart: add amlogic,uart-fifosize 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 | 6 ++++++ 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, 13 insertions(+), 1 deletion(-)