From patchwork Thu Mar 25 15:24:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 409228 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 80DA4C433DB for ; Thu, 25 Mar 2021 15:25:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 53DA561A41 for ; Thu, 25 Mar 2021 15:25:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231296AbhCYPY2 (ORCPT ); Thu, 25 Mar 2021 11:24:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35042 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230113AbhCYPYT (ORCPT ); Thu, 25 Mar 2021 11:24:19 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF07AC06175F for ; Thu, 25 Mar 2021 08:24:18 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id j20-20020a05600c1914b029010f31e15a7fso3334308wmq.1 for ; Thu, 25 Mar 2021 08:24:18 -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=vjIiCTomysNBHigYUO2F29y2fu9n4K1mpORfU6aQthU=; b=rehPFnP/AkKl027/tuMZ0dZjy9QnfxgtQtJSVXmCLlNHgBtiKGpuIydvjUqstxJ+f1 bpbA1vG8+/viUmDHV3RKst1+0+mDVIe/4jSWY4U4MYrK2Rfh5KO1q7ganxzw9cwv3KGz /jEFmNs3PQ5tZnWZ4TwCAH6pjdYFfuFwzaOoMZ2g9A81gu5i+OxYNjp5K/830ylhR7dj F+eGVi3tQ8yTCn1n4pSwJUb4j8lZz0KLWQWim6IEAi8g/gQe4oyA5OHVPOjQCV+vPZDL oFn260UmkLUx1YNj8VIagF9/JVKRYW3a7wzL9tnWV5DwSBuMLdAomP9REXKschZg3V3L nFgw== 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=vjIiCTomysNBHigYUO2F29y2fu9n4K1mpORfU6aQthU=; b=ig+frQQgm+Z+QfUs2J0bp4pWakRiof/yxbFvMcrFmYtGUL+2Po7nBk/9uU0dLpi7A3 10dsWJfNqXKY4/EJWng1zLi++CrdHxYn3NYH/ZxhgzLFWkJszzeqJJghDZ8JQHKTY0r2 LTcKX7AVY5sgwlWgk5svQdz81CpXt9kV188ABUYHAelDk9hf+mrCEfTsdgnr3ReWXJdy LjNVlthetes7b+obEzd+MmmWBJZ1KUdrCsnkPx6RTc9qZUl73X3H3kbJKBjOb04zY5nC 7d5IBlV5yGmMABh5l3GSpLH2k3Qdk3YJPcKfgJqVqldTB+Mknvet0kcFFR0kNauulGhQ 8GNQ== X-Gm-Message-State: AOAM532CQ5oR1O/PoMFKcznrOG6EBnPy3nxELj/gukpoMNhxXkB+nBiW itpSc3iprIWnjqfhNCSnNMrMRQ== X-Google-Smtp-Source: ABdhPJx+pqAdNhSx9GFKMbPAXZItlskPfQ2YKeW1riDj8QxU69vfbwXWlnBOaVLScMfrAyLE694NVQ== X-Received: by 2002:a7b:c92d:: with SMTP id h13mr8624075wml.147.1616685857177; Thu, 25 Mar 2021 08:24:17 -0700 (PDT) Received: from localhost.localdomain ([2a01:e0a:90c:e290:b105:9672:b0a:5820]) by smtp.gmail.com with ESMTPSA id p18sm7395260wrs.68.2021.03.25.08.24.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Mar 2021 08:24:16 -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 v2 0/3] tty: serial: meson: add amlogic, uart-fifosize property Date: Thu, 25 Mar 2021 16:24:07 +0100 Message-Id: <20210325152410.1795557-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 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 | 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(-) Reviewed-by: Martin Blumenstingl