Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5763241ioo; Wed, 1 Jun 2022 12:03:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwolCqsPs+QIu2RqbsY23GxvEmKLIGg1n57YEt5tyubuCMCexoYRf6jVNGA+/SiJlpbhnK X-Received: by 2002:a17:90b:3909:b0:1e0:49d7:ca85 with SMTP id ob9-20020a17090b390900b001e049d7ca85mr833187pjb.191.1654110231288; Wed, 01 Jun 2022 12:03:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654110231; cv=none; d=google.com; s=arc-20160816; b=JlF2BqoojlYOQMCb0UH7+/ILQMP1GKWnx0MvQAp//OEWItAlalnNMt5mYlBdnDpuFh CwQaXwyxMs72MkrkkYPk/sE3QRs/bl1vm6NTGvYrT1bojjpgW725oPMJol2lz648XvhJ E6DosIfLj9b4x7JeZ0zbINNzqsiskkisS6ztdbCIgtQQWnz8ZEdBCED+4h0IuJpi+Tr/ 5ovYYi/BwQEBGdEr7a9PyvF/UT6CAyzqlmGQjhhT/E5qadtKWGA1SijHfaCouWiiWS8/ RFfMXDdouRdfx3mV7Z9UpNx4dU4+IPBfcwOxBj64A3sh2NQCWQrNo3QDxXQdEMvJRyGl xz+g== 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:dkim-signature; bh=4x2Kj3Z37xHSZ+jDDGeFI/X64XLEfx8wXlDouARLtRk=; b=Llrji++oDVNEGoQjA1HzagXOIAZBrflCfnuJRR8oZomQv0k/L/2qL+jiRbqtWVR7kW QdZIMkla8r5vgMV/2O/Sk3tQliVkvOXbYVItUkPYWw87HLj01qRl7svqpg9pV3CD1IL+ O0L3H6We7oRpBVmcmPuwIpNKx/p2xq3A8UiGE//ZNmv6rQAJATq5Csk+S5M9H4hTMia8 M6GdE9UUeX02tyoVOxPPAGPhLslqIIgV9M8bnq7TurrVbJXdzdikuvwZ6yV2Qc2IYtNB uMT+/yvIQOFXzwZkCgbiERCWgbBPLI1lUy/aoqWvQun4tZrlT7goa6DXZ33bZUUK4Iq9 jdyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=Jzo+lZ9s; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id e18-20020a17090301d200b001639b9fb128si3585154plh.553.2022.06.01.12.03.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 12:03:51 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@marvell.com header.s=pfpt0220 header.b=Jzo+lZ9s; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=REJECT dis=NONE) header.from=marvell.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CC9276EB32; Wed, 1 Jun 2022 11:46:54 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236228AbiE3M5P (ORCPT + 99 others); Mon, 30 May 2022 08:57:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234641AbiE3M5N (ORCPT ); Mon, 30 May 2022 08:57:13 -0400 Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 622F5D127; Mon, 30 May 2022 05:57:12 -0700 (PDT) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24UBlFCt015426; Mon, 30 May 2022 05:56:50 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=pfpt0220; bh=4x2Kj3Z37xHSZ+jDDGeFI/X64XLEfx8wXlDouARLtRk=; b=Jzo+lZ9sWj303TkqsO0urTdP8N+I7SC3YJMGG/UuBnr4uNCrkpOsv3d2OIjg3bz9q0Jc 3KnJ28sjMsB/WLDdr/9W+jck/clfJTfEFLm0JfqpiozH+kynx6yGuyjBwg3ES0q0uL0O jE3SwcYTEWybIrf1mI47dKQKUv5ezgcToQuiBn2vwCJ8m2XRpk3lTR8sTA1ljmnEBhg5 Oh48GHg+e3IZXr/oqCtSwBsB9yEIZcN7gsYLEtcHOFd2DJhCKQSiQRO8baP2NaSsJOXH 7qJcFTjji73rPQJ5kheZIWEANoOsbddLIYIltsnIgMp/pY57MX7JlUgp5J4TIaIkP3GS +A== Received: from dc5-exch02.marvell.com ([199.233.59.182]) by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3gbk8n5fbf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 30 May 2022 05:56:50 -0700 Received: from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Mon, 30 May 2022 05:56:48 -0700 Received: from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend Transport; Mon, 30 May 2022 05:56:48 -0700 Received: from localhost.localdomain (unknown [10.110.150.250]) by maili.marvell.com (Postfix) with ESMTP id 25E1F3F7081; Mon, 30 May 2022 05:56:48 -0700 (PDT) From: Piyush Malgujar To: , CC: , , , , Piyush Malgujar , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , "Jakub Kicinski" , Paolo Abeni Subject: [PATCH v2 0/3] net: mdio: mdio-thunder: MDIO clock related changes for Marvell Octeon Family. Date: Mon, 30 May 2022 05:53:25 -0700 Message-ID: <20220530125329.30717-1-pmalgujar@marvell.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: 4sPBX4jc2_wi0qHvKbix-7Vi7MMFxA00 X-Proofpoint-GUID: 4sPBX4jc2_wi0qHvKbix-7Vi7MMFxA00 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.874,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-30_04,2022-05-30_01,2022-02-23_01 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 This patch series mdio changes are pertaining to Marvell Octeon family. 1) clock gating: The purpose of this change is to apply clock gating for MDIO clock when there is no transaction happening. This will stop the MDC clock toggling in idle scenario. 2) Marvell MDIO clock frequency attribute change: This MDIO change provides an option for user to have the bus speed set to their needs. The clock-freq for Marvell Octeon defaults to 3.125 MHz and not 2.5 MHz as standard. In case someone needs to use this attribute, they have to add an extra attribute "clock-frequency" in the mdio entry in their DTS and this driver will do the rest. The changes are made in a way that the clock will set to the nearest possible value based on the clock calculation and required frequency from DTS. These changes has been verified internally with Marvell Octeon series. Changes since V1: * Separated the logical changes in separate patches * Replaced macros with functions * Used proper property name for DTS * Updated DTS binding Piyush Malgujar (3): net: mdio: mdio-thunder: stop toggling SMI clock on idle dt-bindings: net: cavium-mdio.txt: add clock-frequency attribute net: mdio: mdio-thunder: support for clock-freq attribute .../devicetree/bindings/net/cavium-mdio.txt | 5 ++ drivers/net/mdio/mdio-cavium.h | 1 + drivers/net/mdio/mdio-thunder.c | 68 +++++++++++++++++++ 3 files changed, 74 insertions(+) -- 2.17.1