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: 135208 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp2595064vqi; Mon, 14 Aug 2023 01:17:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEXwNvcC6d8vGiuoDBhsfLMOW1nWJWxuctsI0JrhBaLfR5oDHTCBh0PqJOonqVCtrp+IgcV X-Received: by 2002:a17:903:1248:b0:1b3:9d13:34b3 with SMTP id u8-20020a170903124800b001b39d1334b3mr8929613plh.37.1692001034434; Mon, 14 Aug 2023 01:17:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692001034; cv=none; d=google.com; s=arc-20160816; b=EMPg30AenUloK5j8Oa7wqsKklqvvKh5nX86E6ADa+aySpXtCG/lDNOhGC9LaeSCXgW lK0IZZG5Vuei+/rkooRqdgKlBj9Zl8ezBouPaoF+a/QWObqF39lhbE3IdaRKfoVTSkTQ NQIKCfqpp6eaPAS2eAmC6YtqBT93WErdh9vdNuZOQSrvCtMnts578jFyb8/vCIs5TAwg QFcmzrTRw2IM1sTwqnO5ClrVPwXXzs6lGhwpQjlv3z1ADFRX20++P5kW8pUilKgjwKzY 7DRPCsDudpc6cAReTgkRuS3d/63Y2+3XXoXrGpHb5CLJPK2EERjgZFvp/5wLn0+FTCXU 8r5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=TSi5X4VgjsCMeAaQPLcYj9iEMPItGUk1KSzbhdjTG3Q=; fh=3XsHY+afPiWBX8z7pc4bT1ulEpSM53jKXIGnbqSjK8U=; b=FBt7JUIwpxioxnsTB9U30yrpnKXG+DVYoGPUJyt5yb53ukGgFnbapubDr0WDZtsKAh kLpUOyZ403qjggVddB6jv/5jIHJkpWtkIbkpCeU2z0OAJfXhuMlXmsZ4KC93zXHB+bVL 6ENh/mLTWZWSD8uVAEfL0RJXi329ceC7slZ5c6c+jXT9vrzbsUthcmJhPGe/KRmHlrZQ l5OVJmyW8t99pFuAU4n+CbTwgBJILy0Ebwm5FdYXurm2SnEYS7lyKogOaDIu/jbpE/eS ZMThzv89LBqqZeNkS55N0Sa7gmhPBhBcqFiejzWrOPOsPWBHkevADLu0NBq2W8E3TsNM o4cA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e13-20020a17090301cd00b0019c354055d0si7886689plh.304.2023.08.14.01.17.01; Mon, 14 Aug 2023 01:17:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234395AbjHNICP (ORCPT + 99 others); Mon, 14 Aug 2023 04:02:15 -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-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 X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774191676754700145 X-GMAIL-MSGID: 1774191676754700145 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: 135207 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp2595063vqi; Mon, 14 Aug 2023 01:17:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGirLpo+rmaqwTcQaFBN9WSI23y+SRhEVkq3xsoKSgpSY8FG2WNRcThEoABiVOic9pg6XMz X-Received: by 2002:a17:902:ee44:b0:1b9:e8e4:620e with SMTP id 4-20020a170902ee4400b001b9e8e4620emr5690504plo.47.1692001034211; Mon, 14 Aug 2023 01:17:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692001034; cv=none; d=google.com; s=arc-20160816; b=YSH0rXV8kb9Si16k40xQ72XNwvHiV/QhTnG/dF6KqnM6r8PPBpS9L8R1UCFR/NyKnc tSyU7j1nhAEpqJoH4P4warmm8F3hZeKx2J7Px6hn3VHMDgGWBHp7CrB3i009AFc8HPTq roTf/cunApwOlmHEL0yz6uur9ZmpXwzxlAO/GVo/toJu5dDiA3DR0iXqdobBfQxdWpQN HPiP6zL4swCC3/vjO7kHdAf6022WvcT+VU8hoZ2j0DxofYtU/UYL2SsNukmsM8JRjSAu jNa4GMEvhOw12YqePyWgtD9aFA905KBVn02hCcW10WJp0E7J3/eTnTLJNClzIlmGTJEW Wv8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=sMTTRR25R89hKbOO/W0HzP5By9l6RSmOyGZbfso3dPE=; fh=ZRTzXC3TKBLW261LYU79lSMYIGjkoi0DT+NG8qeI5v0=; b=u912zIcoX36YGED7RWf8s9tHXSPYxa0rBqshPkfQfagE6sh89WKApOAEZlKgDnwMLa 9YtHZNbwgbjPxQKpBTMBqC50C5eUdN/Ft/K5eYIXONyeewpHCS3WvRwpBozhtfQUupdz eygB9TTyoIpIcgKbjB08jxbF9NBAZFTI7zSf2KL+ZusMmrSL3zkSnZ0zd0c6VjDIilP2 dEtH7RTPRG2oyg453a8NpzXdQYcarNekYDvBUKLnXmpGUoBJNvyAAj/zUsURNI6GHsKd ukRwv4uc0txZxaLKoDDIlX56uERU8CiBJ+xnL8jUfVzclcn/WWkOmeWbR+s7HruDnz7R Qr/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e14-20020a17090301ce00b001bdd0fe26cbsi3406256plh.644.2023.08.14.01.17.01; Mon, 14 Aug 2023 01:17:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234414AbjHNICR (ORCPT + 99 others); Mon, 14 Aug 2023 04:02:17 -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-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 X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774191676035676648 X-GMAIL-MSGID: 1774191676035676648 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