From patchwork Mon Aug 14 08:01:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Tanure X-Patchwork-Id: 713766 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F354FC41513 for ; Mon, 14 Aug 2023 08:02:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233178AbjHNICL (ORCPT ); Mon, 14 Aug 2023 04:02:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229990AbjHNIBt (ORCPT ); Mon, 14 Aug 2023 04:01:49 -0400 Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F3349F; Mon, 14 Aug 2023 01:01:48 -0700 (PDT) Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-5236a9788a7so5473915a12.0; Mon, 14 Aug 2023 01:01:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692000107; x=1692604907; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TSi5X4VgjsCMeAaQPLcYj9iEMPItGUk1KSzbhdjTG3Q=; b=MkYcbpZmXAZXdsStvHTfA6gJsstR5KEOTTt8CUuwKjNxjuOIQaA5rChfS6E/F5VyKG STE0fWXaMHot2lOhBRgM5oRm4RnfjTQAmjn41KaI/HsjOfMGzp52O/HioU9oKiQ77og8 6z/WUBkrzNLR3zw9xF5VToNARDMTE6uaIOeO38RlFOHpjW7+GUTIvd+L/z8eHWZUCDB7 FpUvr4FnZrjFhWs6H7mS244v6O5Dqoppyts4UxJsg6d1Oy/CvXitRcu21nF+DxdcshXo Dikct8K8gGY45sgCxSmaU5WElmhaFxv9ifkWEvi7rPCWHVtMPRz00qtg2MrmKVospSgz thAw== X-Gm-Message-State: AOJu0YzdDpBmtw7Y3gs8ocaqDO8pAcgMpC9OkdSbtlj53tUYhXuw39gf TdOrvDmUHhWq1e9+ZRmkUCs= X-Google-Smtp-Source: AGHT+IEaAODooEEvQc066LIoQt4jMjMo+rdKjU8jqDHOucWJHkabU02sFbYF/sNsPcVB7Z+X3fz7AQ== X-Received: by 2002:aa7:d3d3:0:b0:522:1bdd:d41a with SMTP id o19-20020aa7d3d3000000b005221bddd41amr6651311edr.4.1692000106646; Mon, 14 Aug 2023 01:01:46 -0700 (PDT) Received: from ryzen.lan (cpc87451-finc19-2-0-cust61.4-2.cable.virginm.net. [82.11.51.62]) by smtp.gmail.com with ESMTPSA id s25-20020a056402165900b0052568bf9411sm678074edx.68.2023.08.14.01.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 01:01:46 -0700 (PDT) From: Lucas Tanure To: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Jerome Brunet , Kevin Hilman , Xianwei Zhao Cc: Nick , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, Lucas Tanure , Krzysztof Kozlowski Subject: [PATCH v9 1/2] dt-bindings: serial: amlogic,meson-uart: Add compatible string for T7 Date: Mon, 14 Aug 2023 09:01:27 +0100 Message-ID: <20230814080128.143613-1-tanure@linux.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org Amlogic T7 SoCs uses the same UART controller as S4 SoCs and G12A. There is no need for an extra compatible line in the driver, but add T7 compatible line for documentation. Signed-off-by: Lucas Tanure Acked-by: Krzysztof Kozlowski --- Since v8: - Fix issues with git send-mail command line Since v7: - Send to the correct maintainers .../devicetree/bindings/serial/amlogic,meson-uart.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml index f1ae8c4934d9..2e189e548327 100644 --- a/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml +++ b/Documentation/devicetree/bindings/serial/amlogic,meson-uart.yaml @@ -52,6 +52,10 @@ properties: items: - const: amlogic,meson-g12a-uart - const: amlogic,meson-gx-uart + - description: UART controller on S4 compatible SoCs + items: + - const: amlogic,t7-uart + - const: amlogic,meson-s4-uart reg: maxItems: 1 From patchwork Mon Aug 14 08:01:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Tanure X-Patchwork-Id: 713994 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 271FDC04A94 for ; Mon, 14 Aug 2023 08:02:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233176AbjHNICL (ORCPT ); Mon, 14 Aug 2023 04:02:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232656AbjHNIBu (ORCPT ); Mon, 14 Aug 2023 04:01:50 -0400 Received: from mail-ed1-f49.google.com (mail-ed1-f49.google.com [209.85.208.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BF40AD; Mon, 14 Aug 2023 01:01:49 -0700 (PDT) Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-51cff235226so8396109a12.0; Mon, 14 Aug 2023 01:01:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692000108; x=1692604908; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sMTTRR25R89hKbOO/W0HzP5By9l6RSmOyGZbfso3dPE=; b=HtxnY/lxXgtSB9h7YKP1g192eRQb7iZZCTGCO6tkAVktX5dGjqVo1x/dQ+oKv1WWeC Ct9crY+jdyNfOLQIlOV/kOEcv/Py9is6hmyMyY7WZBYKPFLUsQmXqxdk7kcc/o647X5/ GmmJJGJDIuxYVGLRVH0lq3Ka8fnsKWG9ZZUEiYTwig1Z90HOcV1OMajHH5G81uHIF9rr qmKVdqfP/T1ehoFXORkRd6OHPKoik+eExcWYpSPiqEKQcP2JNhNmtitA0Z3xMdQYRhzn 4kpiuHWYKn/hOte4uaH7LiL7TI1LowqqHQWLt5pyay6+3N23Ku21pbx2e0oczofwQcyd 96nQ== X-Gm-Message-State: AOJu0YxUgyDF46586d4GJypp7bfj0iSEWdTWaECRV8E8j+9fGZLlO7HR U8KWXBSjuFqw9WNTGYUE9lE= X-Google-Smtp-Source: AGHT+IG9fmf+oLcXRU5lXPTS7InX83yaVfnPLLxfI8jNNzmLI02HPG3m3YGJqjVm0m5XaHVFv0q0lA== X-Received: by 2002:a05:6402:40cf:b0:51e:5898:a23d with SMTP id z15-20020a05640240cf00b0051e5898a23dmr12673976edb.5.1692000107737; Mon, 14 Aug 2023 01:01:47 -0700 (PDT) Received: from ryzen.lan (cpc87451-finc19-2-0-cust61.4-2.cable.virginm.net. [82.11.51.62]) by smtp.gmail.com with ESMTPSA id s25-20020a056402165900b0052568bf9411sm678074edx.68.2023.08.14.01.01.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Aug 2023 01:01:47 -0700 (PDT) From: Lucas Tanure To: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Jerome Brunet , Kevin Hilman , Xianwei Zhao Cc: Nick , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-serial@vger.kernel.org, Lucas Tanure Subject: [PATCH v9 2/2] tty: serial: meson: Add a earlycon for the T7 SoC Date: Mon, 14 Aug 2023 09:01:28 +0100 Message-ID: <20230814080128.143613-2-tanure@linux.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230814080128.143613-1-tanure@linux.com> References: <20230814080128.143613-1-tanure@linux.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org The new Amlogic T7 SoC does not have a always-on uart, so add OF_EARLYCON_DECLARE for it. Signed-off-by: Lucas Tanure Acked-by: Neil Armstrong --- Since v8: - Fix issues with git send-mail command line Since v7: - Send to the correct maintainers drivers/tty/serial/meson_uart.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c index 790d910dafa5..c4f61d82fb72 100644 --- a/drivers/tty/serial/meson_uart.c +++ b/drivers/tty/serial/meson_uart.c @@ -648,6 +648,8 @@ meson_serial_early_console_setup(struct earlycon_device *device, const char *opt OF_EARLYCON_DECLARE(meson, "amlogic,meson-ao-uart", meson_serial_early_console_setup); +OF_EARLYCON_DECLARE(meson, "amlogic,t7-uart", + meson_serial_early_console_setup); #define MESON_SERIAL_CONSOLE_PTR(_devname) (&meson_serial_console_##_devname) #else