Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1491338rdb; Wed, 20 Sep 2023 10:31:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQ3VB1prbVrh1jZg7xiQR6vA1/o5/3iHHP5b/q3AYC4PfAgt3MYb4oQ5HA4EO90t8GxXGu X-Received: by 2002:a17:902:ab54:b0:1c4:21f3:4be9 with SMTP id ij20-20020a170902ab5400b001c421f34be9mr2857917plb.62.1695231076984; Wed, 20 Sep 2023 10:31:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695231076; cv=none; d=google.com; s=arc-20160816; b=sV/ewjpiR9CvKeB7ooLsHzLTqSnQjiVJTAWMsPJWV/8rWp4woIYPts5iwo+di8vltc OWh0JlXXKeqlayAjjcRqhGPwe9KT8Gftn/ij/V8jaiB15FVADY7dJCBeaPwXBssS9w45 NMciLeKZK6YA5J2ku8/qrUUkm6R/SK1CAK0CFgh0pFEat/GkHW9ruIFM5xeI7uUpPzam 4V3bwaMSiNWLj+Mt7a8ZUW9YjG3/6nzcUKrVpRo9ur9z02TmnsyCaBbt/obbz3B/y/XK fyppK+CI/uRn2PO3UhUTd0gbmYjTWKcQvWLndjiKnl8jq0alMqBO3k6NccHxVEYq3qBg kThA== 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 :dkim-signature; bh=HvjyR1db7d2pAH1Oe6CLGqKy2lWY6VTA87peNvZDQh4=; fh=bQJKLQMHSx8zRMKVWETn2inbFK2Baz+k7BY3gTlhRws=; b=fsXK17bokWqgbuWaPA1Q+okazVXhPldy+Wrd/Hb7abbbPUWEG3iqmZwc2bLzIv+PhR ptCxzmZIFhBXWU7Yt0RLRK8/fq6kp/rDgxzMhe2Dvjetzk25yhQIoFv+tlTFGWi+s50/ aKgJaa21lCjmggofkBDU8FqFw+QiWMtkpwvqOf0WwBK75wUqtZtWy1sZElWRlBzosFFs FzThnLVt3D/wEJA0GNKb+bm7gzt2qDsd/zVZMG+9txlzDEbRZmlQcro0fdQY8eqwEuFl wJT1yKV4uu9hY7qWPJdP3/V4OEqOGn3+J5zk7ky5USNdDG+/aR1/aPCdYhsVrUtJdoc5 I0GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bKTSTe3D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id b13-20020a170902d50d00b001bbc138af0dsi9946288plg.163.2023.09.20.10.31.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 10:31:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bKTSTe3D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 7F9F580907A3; Tue, 19 Sep 2023 23:40:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233390AbjITGkc (ORCPT + 99 others); Wed, 20 Sep 2023 02:40:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233350AbjITGk3 (ORCPT ); Wed, 20 Sep 2023 02:40:29 -0400 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49F0DC6; Tue, 19 Sep 2023 23:40:23 -0700 (PDT) Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-6bee392fe9dso4081302a34.1; Tue, 19 Sep 2023 23:40:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695192022; x=1695796822; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HvjyR1db7d2pAH1Oe6CLGqKy2lWY6VTA87peNvZDQh4=; b=bKTSTe3DNPtEnSrDeJP1uNJMb1pGo081102nKwOy+DQ7/DPNoEMtE8F0pY1iii4kXF QaZ2ipnv0Wjgi/j+4jHpmojHCMSw4jt2RBVbpK+LBJPesboo+SYbtxFK2T2sZsjO8DJx kwz+UTRZ0gdJHLBc3N6ZzjMJXfv2mr5h54wj4jbmNwL2L4JwlgTXXWyL+aBkTkC3RXkD RaaN3VZtNM3jrnOn/jKhRnw+pVehLir2Vv8JzcZqfKIkt8fL99lyas6cFgbqFtIZVR88 jdAaqgvUqr9xac+grx4Th9grmDNYYCI5auZnNgOv8ArywbHQAaCBG9Ecq9fa9AyvZVib MYQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695192022; x=1695796822; 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=HvjyR1db7d2pAH1Oe6CLGqKy2lWY6VTA87peNvZDQh4=; b=b80oXV6/Jox4Ds4ku2YNsw8XUSCcuoniAwGcW053NN5UnTyuCRkB2KxDrHq03SlNMu VC151rYc+Ob/YdM+k6mOasZhrwFI13QG2yZk0rGdkBflj3L+kyjR1grqgbIp370S+NgC HbkVb5i6bITJMClvKvKWBj8h83pJlyBWDmkNZuGI0hkFGhIeD20zktbxwkEkejjN9z6V OcZztsKLoadSUn88bWpDouDVZOBmNUDbUqI1fEemLrsrtAM4xBnWA2qsnH1106AEsctn 8a4dbOvrn0MHSjRsET1V7YC3zoEnJfAh6g4VHvjSPAjkdlOY/j1c4xViB9EjRZYoS8vV InJg== X-Gm-Message-State: AOJu0YxAn9NMbA32MjBRFlzx9LVzQfKeROFDpOnxhfvqKHD+s4j0TkGN cV+aZcdn97WhCtyanOIFklW1+VRAmzyLa6G9 X-Received: by 2002:a05:6830:4a6:b0:6b9:a926:4a12 with SMTP id l6-20020a05683004a600b006b9a9264a12mr1762757otd.28.1695192022495; Tue, 19 Sep 2023 23:40:22 -0700 (PDT) Received: from localhost.localdomain ([122.8.183.87]) by smtp.gmail.com with ESMTPSA id r10-20020a05683001ca00b006b8c6eb962esm5769619ota.52.2023.09.19.23.40.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 23:40:22 -0700 (PDT) From: Chen Wang X-Google-Original-From: Chen Wang To: aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org, devicetree@vger.kernel.org, emil.renner.berthing@canonical.com, guoren@kernel.org, jszhang@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, palmer@dabbelt.com, paul.walmsley@sifive.com, robh+dt@kernel.org, xiaoguang.xing@sophgo.com Cc: Chen Wang Subject: [PATCH v2 08/11] serial: 8250_dw: Add Sophgo SG2042 support Date: Wed, 20 Sep 2023 14:40:15 +0800 Message-Id: <888d57a2d5e62affb8e29e0098402e428facd969.1695189879.git.wangchen20@iscas.ac.cn> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Tue, 19 Sep 2023 23:40:36 -0700 (PDT) From: Emil Renner Berthing Add quirk to skip setting the input clock rate for the uarts on the Sophgo SG2042 SoC similar to the StarFive JH7100. Signed-off-by: Emil Renner Berthing Signed-off-by: Chen Wang --- drivers/tty/serial/8250/8250_dw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c index f4cafca1a7da..6c344877a07f 100644 --- a/drivers/tty/serial/8250/8250_dw.c +++ b/drivers/tty/serial/8250/8250_dw.c @@ -770,7 +770,7 @@ static const struct dw8250_platform_data dw8250_renesas_rzn1_data = { .quirks = DW_UART_QUIRK_IS_DMA_FC, }; -static const struct dw8250_platform_data dw8250_starfive_jh7100_data = { +static const struct dw8250_platform_data dw8250_skip_set_rate_data = { .usr_reg = DW_UART_USR, .quirks = DW_UART_QUIRK_SKIP_SET_RATE, }; @@ -780,7 +780,8 @@ static const struct of_device_id dw8250_of_match[] = { { .compatible = "cavium,octeon-3860-uart", .data = &dw8250_octeon_3860_data }, { .compatible = "marvell,armada-38x-uart", .data = &dw8250_armada_38x_data }, { .compatible = "renesas,rzn1-uart", .data = &dw8250_renesas_rzn1_data }, - { .compatible = "starfive,jh7100-uart", .data = &dw8250_starfive_jh7100_data }, + { .compatible = "sophgo,sg2042-uart", .data = &dw8250_skip_set_rate_data }, + { .compatible = "starfive,jh7100-uart", .data = &dw8250_skip_set_rate_data }, { /* Sentinel */ } }; MODULE_DEVICE_TABLE(of, dw8250_of_match); -- 2.25.1