Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4495259rwb; Tue, 6 Sep 2022 08:16:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR4h8ju0sv8uubpbRpFuJrZ25NQaH3JkKCyh4TBsC/+9L19t8Q6MTVuXSCdxeNWGQi0k6E1a X-Received: by 2002:a17:906:5d0a:b0:770:23b7:ba9 with SMTP id g10-20020a1709065d0a00b0077023b70ba9mr744972ejt.404.1662477409987; Tue, 06 Sep 2022 08:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662477409; cv=none; d=google.com; s=arc-20160816; b=gIUyizlLLq9Js8okIVAY/Wzo5b3XXrhqs+DFKMFPGn1VuapGZafK+9jUxxPbdocYZm ggrSgWbH+hWzbshq161hGBNLDFQm3DsuBEyksvnJJPZrt9Ddde5d/cj7XR6u1HBohMyb Ef0v4Y8HxIfCcZFUJCIvgibXzCtETeCkJX3+svTRbmd06fNvAzJg2J6zGE8bcGTQVaF6 DuRVzDEZ6MVlNMjl/LaQGQhchy7GXrTrmJsEPBelqlGvpoGUWIrtwndoduWtIB9vQ9IX dR/rxxQ8zpz6ZcZWAqCz3PG4630HaL58OZzxNt8eNU3cgoyyHFz3IkbfXEE6CfjyJzWT +M6A== 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=Nqs5Bx6iqH+ZJIRRx3G45hn9NzW4mvtfMv2w85+vNmg=; b=JVY2FEWkdpfCvuM/PDWytr0fzjjSLlEo6MIeOx8YlKbUfWzVMmd8wR3X5Wp5n8Sihx 9DzE+LpbcOVg9zIraicTqZ72kCBRHlloOUIZXU3diySu1A0VB2YjUB9wQK7ZzTsR30S1 yZuvQLTQ3zdaMRzNNvTWqp0rXsIIOClrvADWxi7YmqaG9+LCtWSc/OWXNLok33mHE7K4 B3A0k6KNyjSLTu/CXNR755BVsQ5xK1Vudjxjcq4Onzt25s1ApR6UK5gktZ8/JIxwnZIQ oZirx6TygGw7byqhekF1jS5NQrCx9HW02FuP1j386BZ0VY3QV03pA6JItov04y4hWhD1 b0hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microchip.com header.s=mchp header.b=K3i+MMVc; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne3-20020a1709077b8300b007312789a037si10944354ejc.144.2022.09.06.08.16.24; Tue, 06 Sep 2022 08:16:49 -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; dkim=pass header.i=@microchip.com header.s=mchp header.b=K3i+MMVc; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242163AbiIFOju (ORCPT + 99 others); Tue, 6 Sep 2022 10:39:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242301AbiIFOjD (ORCPT ); Tue, 6 Sep 2022 10:39:03 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.154.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C64A9A95D; Tue, 6 Sep 2022 07:01:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1662472866; x=1694008866; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=0iBvNvc6oWFi2GwjYfyBen8v+JZc1cmnAG1OVejo090=; b=K3i+MMVc8YRojr/yv9RWxH/1vtnnZx7zQxf5eq6GC13ho3RGPDK3iokr wIZ9FbzfNwR3XKZMvAuXPZRuH2L1Ymcw6ygxiKARUU3uusDbFwWZ7qAgf MNMf7mgtURagmb/WEyMZzic0fH5/nGBAUR3cGCW9+u9fpg/VukNePGcXb wf2VPHeC9eXsJ6p/OKF4O15JTIgJYarpQ7YUn7JjnnFAgxgJVj6fuqKYZ jS7wA3aDZgWbzvybzTZD7gvay8zZz5FjOuDfD/5hghmesrV/wrEREzRAu CuDZ2YrBhYnnKx0h7naGbgSiNQ3Hv9X0sWhUrVVIh7dgQgHH43Ua21735 w==; X-IronPort-AV: E=Sophos;i="5.93,294,1654585200"; d="scan'208";a="175830176" Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 06 Sep 2022 06:57:33 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.12; Tue, 6 Sep 2022 06:57:31 -0700 Received: from ROB-ULT-M68701.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.2507.12 via Frontend Transport; Tue, 6 Sep 2022 06:57:26 -0700 From: Sergiu Moga To: , , , , , , , , , , , , , , , , CC: , , , , , Subject: [PATCH v2 11/13] clk: at91: sama5d2: Add Generic Clocks for UART/USART Date: Tue, 6 Sep 2022 16:55:10 +0300 Message-ID: <20220906135511.144725-12-sergiu.moga@microchip.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220906135511.144725-1-sergiu.moga@microchip.com> References: <20220906135511.144725-1-sergiu.moga@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Add the generic clocks for UART/USART in the sama5d2 driver to allow them to be registered in the Common Clock Framework. Signed-off-by: Sergiu Moga Reviewed-by: Claudiu Beznea --- v1 -> v2: - Added R-b tag drivers/clk/at91/sama5d2.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/clk/at91/sama5d2.c b/drivers/clk/at91/sama5d2.c index cfd0f5e23b99..84156dc52bff 100644 --- a/drivers/clk/at91/sama5d2.c +++ b/drivers/clk/at91/sama5d2.c @@ -120,6 +120,16 @@ static const struct { struct clk_range r; int chg_pid; } sama5d2_gck[] = { + { .n = "flx0_gclk", .id = 19, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, }, + { .n = "flx1_gclk", .id = 20, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, }, + { .n = "flx2_gclk", .id = 21, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, }, + { .n = "flx3_gclk", .id = 22, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, }, + { .n = "flx4_gclk", .id = 23, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, }, + { .n = "uart0_gclk", .id = 24, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, }, + { .n = "uart1_gclk", .id = 25, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, }, + { .n = "uart2_gclk", .id = 26, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, }, + { .n = "uart3_gclk", .id = 27, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, }, + { .n = "uart4_gclk", .id = 28, .chg_pid = INT_MIN, .r = { .min = 0, .max = 27666666 }, }, { .n = "sdmmc0_gclk", .id = 31, .chg_pid = INT_MIN, }, { .n = "sdmmc1_gclk", .id = 32, .chg_pid = INT_MIN, }, { .n = "tcb0_gclk", .id = 35, .chg_pid = INT_MIN, .r = { .min = 0, .max = 83000000 }, }, -- 2.25.1