Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3544225pxb; Sat, 26 Mar 2022 22:57:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy6wSiQ9O+amlO74vol0ixKLp9r6NPVwbY47qGR0y8SKqi1zUEmRY39C83JreraCrrXPlSh X-Received: by 2002:a05:6402:458:b0:418:78a4:ac3f with SMTP id p24-20020a056402045800b0041878a4ac3fmr8739180edw.196.1648360626388; Sat, 26 Mar 2022 22:57:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648360626; cv=none; d=google.com; s=arc-20160816; b=U0TRBlIA1LBlwUS95UEPlBoX0k0i8T8+FdHe1GeuXewO+Z0M4jVcLayzpBXkkNVK6I U0eyhdY2WamFhpKEMamXWTLJJaee5OlYXWr5xHLlocaRvVPH1vJCMjO+TvkhNuPsHdgy rrFqsoRRdFCHPelakIodOmCXwaMCBeiUURVqaZJfEuEos1ZGrCFl+SG2UJfct4kxIMxU GuOGYtxYGgInmkp67UGS4MUf++EyYnOITK30/2HO6H7U4v5/wbyuIVzCBOYra3U6VU9F ZnuXZ0gJqAQVetSIPIfLWWBEOqPDw0xXT5PQqz9ORkO/jyvcSieYnOZo64OkCp3RbMn6 3Wzw== 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=U94WA8eKsXInUB3TJN954cA6WVXXv7tn5AqxFp37h28=; b=BkVoQqj/M/znYbryw03ofrUKHkZ4Sbg4Z6y1fWmEMTVAXrEhlgiY6UODEexD/gR8wX SnbXHiv6plnJMIj9z+kJDUSL6fu3t3kbR59pEuxvn40yqJ5QKo2cK+6rHOvGs4LRb89P vO62O71dp2Dr7siLgRudXS5ZyaoD3KGZoT2ZZNKuw3SIZXZzAQ/dMIzHkeF6Cb82H3IS 4nAWHENlHEAOTHo3NpuAE4zDs8rULbaBE5qtDwUyXR1lktnyON/wRpN0tIv25IJEPUl5 d1pY1SC4Dv+5yOL9J9CIsBIfhqqXrsgBzNE36PKbOo37Rb/SYOwrU7lv8eqP4iIIHhQ8 hDLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=QqCCw5dN; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dm7-20020a05640222c700b00418c2b5bf77si8659925edb.601.2022.03.26.22.56.42; Sat, 26 Mar 2022 22:57:06 -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=@walle.cc header.s=mail2016061301 header.b=QqCCw5dN; 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 S234734AbiCZTas (ORCPT + 99 others); Sat, 26 Mar 2022 15:30:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234725AbiCZTap (ORCPT ); Sat, 26 Mar 2022 15:30:45 -0400 Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC42B329BB; Sat, 26 Mar 2022 12:29:08 -0700 (PDT) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 56B56223EA; Sat, 26 Mar 2022 20:29:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1648322943; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=U94WA8eKsXInUB3TJN954cA6WVXXv7tn5AqxFp37h28=; b=QqCCw5dN3veUi4VkeuGsKoMGWWqqi/ZcU/7WgYJhTKFNzAPpICY4OKUiGAjK7qaG1u60Y6 hovy2Dr6kjLBX3N3Aytn5TXNANT+WGEl5sxhDxY20bmgiSL89tvdjLx8mETbRADOWrifUO z8Diao0MF1bQ1bV/HsF/KXPLvfkM+yk= From: Michael Walle To: Linus Walleij Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Walle Subject: [PATCH v1 2/2] pinctrl: ocelot: add clock monitor option for LAN966x Date: Sat, 26 Mar 2022 20:28:48 +0100 Message-Id: <20220326192848.2944519-2-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220326192848.2944519-1-michael@walle.cc> References: <20220326192848.2944519-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, 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 The SoC supports a debug clock output of its internal clocks. Depending on the clk_sel input (GPIO_31) clk_mon (GPIO_30) will output either cpu_clk/64 or sys_clk/64. This is very useful for debugging and is missing in the pinmux table. Add it. Signed-off-by: Michael Walle --- drivers/pinctrl/pinctrl-ocelot.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-ocelot.c b/drivers/pinctrl/pinctrl-ocelot.c index 3f998a8fad8b..b25eb04e4e1d 100644 --- a/drivers/pinctrl/pinctrl-ocelot.c +++ b/drivers/pinctrl/pinctrl-ocelot.c @@ -61,6 +61,7 @@ enum { FUNC_CAN0_a, FUNC_CAN0_b, FUNC_CAN1, + FUNC_CLKMON, FUNC_NONE, FUNC_FC0_a, FUNC_FC0_b, @@ -186,6 +187,7 @@ static const char *const ocelot_function_names[] = { [FUNC_CAN0_a] = "can0_a", [FUNC_CAN0_b] = "can0_b", [FUNC_CAN1] = "can1", + [FUNC_CLKMON] = "clkmon", [FUNC_NONE] = "none", [FUNC_FC0_a] = "fc0_a", [FUNC_FC0_b] = "fc0_b", @@ -983,8 +985,8 @@ LAN966X_P(26, GPIO, FC0_b, IB_TRG_a, USB_S_c, OB_TRG_a, CAN0_a, SFP_S LAN966X_P(27, GPIO, NONE, NONE, NONE, OB_TRG_a, CAN0_a, PWM_a, R); LAN966X_P(28, GPIO, MIIM_a, NONE, NONE, OB_TRG_a, IRQ_OUT_c, SFP_SD, R); LAN966X_P(29, GPIO, MIIM_a, NONE, NONE, OB_TRG_a, NONE, NONE, R); -LAN966X_P(30, GPIO, FC3_c, CAN1, NONE, OB_TRG, RECO_b, NONE, R); -LAN966X_P(31, GPIO, FC3_c, CAN1, NONE, OB_TRG, RECO_b, NONE, R); +LAN966X_P(30, GPIO, FC3_c, CAN1, CLKMON, OB_TRG, RECO_b, NONE, R); +LAN966X_P(31, GPIO, FC3_c, CAN1, CLKMON, OB_TRG, RECO_b, NONE, R); LAN966X_P(32, GPIO, FC3_c, NONE, SGPIO_a, NONE, MIIM_Sa, NONE, R); LAN966X_P(33, GPIO, FC1_b, NONE, SGPIO_a, NONE, MIIM_Sa, MIIM_b, R); LAN966X_P(34, GPIO, FC1_b, NONE, SGPIO_a, NONE, MIIM_Sa, MIIM_b, R); -- 2.30.2