Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp803587pxb; Fri, 22 Apr 2022 11:28:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyBWMUAnPuIQ427qfxMbVHMQ+OvpITHRnxzWuxxZEjxZK0Ei1pQziTLtktSQxD3TFkLAyH0 X-Received: by 2002:a17:902:d2c5:b0:158:f839:4d8a with SMTP id n5-20020a170902d2c500b00158f8394d8amr5869607plc.108.1650652123482; Fri, 22 Apr 2022 11:28:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650652123; cv=none; d=google.com; s=arc-20160816; b=JDYCClVnVqZZt1qt9WY4DgMLgHAJWkoYJBBCBipkn//9q25bSCEEd5sAUh+23o7wAl rHmfYIdaZH62FVY2WY5DQ61RcDyESshsfcumf/8gh1SSV0PmSwn7t6DwcIwcosPIupi7 b0+WFog5BFqMX9eq25/suNzY2gyBI/dZ9tnn3i8F38KMySY37N5RhBL6aclXRDNhKyCY oMPyXkmpe7GyiSYqEoAp9aTOmA4VTeKbX5/HwsA1GHASgXzp+5KoVT/Cye7qNoSs/YG7 iQ955ib/IHqoaM3rWtwK7Y68dlL2bFo8Rym4OgpMPQ1AH1JkkMUGTj8zqE+x5CWRSOTs 8PhQ== 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=PoA9YGQdyVBTalOE5vyG4Kd9OOSELTgaQUYfbY6z9X4=; b=pAlT7AEwjVpclUGAPVxpNiD8/mLF6La6ayEN9EHhXTV/aQUsUeeATLxDyQ/S4rr8k3 w4hPuNE7t/UjuZxN9OQhbc2dAUA8R1/rvOrlIGFhn/epvui8whWoGdYz7LrVgX2rxSdj aJyCmXKNutdJn6gNp1Zm3iee6yWJ61IDFLd14jBavYCu8J06B3vhbl3SIHeKSm6/Rqcn Ne6eN94AcHz4EmplxkIYLK9WtxWpGgyscYxo+Y54cDv/hHPhiGR2Wcbxh9R7xtzDDP0v gHkN+mikUXBgPjo7OJ7llIpfSqx2BCXmGktiFBvTXuVPE3qgkRCZOE9VPVsCsBnr+3Q0 ACAw== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w2-20020a170902d10200b00158d1f2d451si7638683plw.45.2022.04.22.11.28.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 11:28:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2DB9414B65F; Fri, 22 Apr 2022 10:58:22 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1447037AbiDVLRr (ORCPT + 99 others); Fri, 22 Apr 2022 07:17:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1447052AbiDVLRl (ORCPT ); Fri, 22 Apr 2022 07:17:41 -0400 Received: from mail-sh.amlogic.com (mail-sh.amlogic.com [58.32.228.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C1275523B; Fri, 22 Apr 2022 04:14:47 -0700 (PDT) Received: from droid06.amlogic.com (10.18.11.248) by mail-sh.amlogic.com (10.18.11.5) with Microsoft SMTP Server id 15.1.2176.14; Fri, 22 Apr 2022 19:14:42 +0800 From: Yu Tu To: , , , , Greg Kroah-Hartman , Neil Armstrong , Kevin Hilman , Jerome Brunet CC: Jiri Slaby , Martin Blumenstingl , Yu Tu Subject: [PATCH V3 2/2] tty: serial: meson: Added S4 SOC compatibility Date: Fri, 22 Apr 2022 19:13:20 +0800 Message-ID: <20220422111320.19234-3-yu.tu@amlogic.com> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20220422111320.19234-1-yu.tu@amlogic.com> References: <20220422111320.19234-1-yu.tu@amlogic.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.18.11.248] X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE 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 Make UART driver compatible with S4 SOC UART. Meanwhile, the S4 SOC UART uses 12MHz as the clock source for baud rate calculations. Signed-off-by: Yu Tu --- drivers/tty/serial/meson_uart.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/tty/serial/meson_uart.c b/drivers/tty/serial/meson_uart.c index 58bd2723c004..c748e5dd5348 100644 --- a/drivers/tty/serial/meson_uart.c +++ b/drivers/tty/serial/meson_uart.c @@ -790,11 +790,19 @@ static int meson_uart_remove(struct platform_device *pdev) return 0; } +static struct meson_uart_data s4_uart_data = { + .has_xtal_div2 = true, +}; + static const struct of_device_id meson_uart_dt_match[] = { { .compatible = "amlogic,meson6-uart" }, { .compatible = "amlogic,meson8-uart" }, { .compatible = "amlogic,meson8b-uart" }, { .compatible = "amlogic,meson-gx-uart" }, + { + .compatible = "amlogic,meson-s4-uart", + .data = (void *)&s4_uart_data, + }, { /* sentinel */ }, }; MODULE_DEVICE_TABLE(of, meson_uart_dt_match); -- 2.33.1