From patchwork Fri Nov 24 16:01:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ante Knezic X-Patchwork-Id: 13467829 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=helmholz.de header.i=@helmholz.de header.b="dOHb1B6c" Received: from mail.helmholz.de (mail.helmholz.de [217.6.86.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60A41D53 for ; Fri, 24 Nov 2023 08:02:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=helmholz.de ; s=dkim1; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From: Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=qlLZRfRX0Q+01FG3L88wQD/YsWqULUTai5ZfTYrNj0w=; b=dOHb1B6cY+Gt59IvJMyz4owAQp InFsYe0Gxr9NMllL4LHecGdkXMskISw5oNrmrmt/BlFbsiiMhya0hehRogl0NgDlcVM00oSmVpEVF ypbJXKAH/tj+L6oGFQXp+aPB2ez/dho6/XLxpKoDkXRemC9DFaTMVZYE6higE0n4OSWf+wMKASDHr /KtUDkHDPfDWzC6E2/OUnb4Y2H6yiu3c6t5L9+26EmK2CZ/xqRiBwBI5GdYqR8tOt/uhNAQf2f12B lHXo0WEQqANjqgLMgSiu+o0XO26yDGFM95NlRTXSVjneAa+TLOHOPaYfkMufqrSTk3aTPmx1L2vPO ZiyIDatw==; Received: from [192.168.1.4] (port=8294 helo=SH-EX2013.helmholz.local) by mail.helmholz.de with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 (Exim 4.96) (envelope-from ) id 1r6Ycv-0004bX-1m; Fri, 24 Nov 2023 17:01:57 +0100 Received: from linuxdev.helmholz.local (192.168.6.7) by SH-EX2013.helmholz.local (192.168.1.4) with Microsoft SMTP Server (TLS) id 15.0.1497.48; Fri, 24 Nov 2023 17:01:56 +0100 From: Ante Knezic To: CC: , , , , , , , , , , , , , , Ante Knezic Subject: [PATCH net-next v5 0/2] net: dsa: microchip: enable setting rmii reference Date: Fri, 24 Nov 2023 17:01:46 +0100 Message-ID: X-Mailer: git-send-email 2.11.0 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: SH-EX2013.helmholz.local (192.168.1.4) To SH-EX2013.helmholz.local (192.168.1.4) X-EXCLAIMER-MD-CONFIG: 2ae5875c-d7e5-4d7e-baa3-654d37918933 X-Patchwork-Delegate: kuba@kernel.org KSZ88X3 devices can select between internal and external RMII reference clock. This patch series introduces new device tree property for setting reference clock to internal. --- V5: - move rmii-clk-internal to be a port device tree property. V4: - remove rmii_clk_internal from ksz_device, as its not needed any more - move rmii clk config as well as ksz8795_cpu_interface_select to ksz8_config_cpu_port V3: - move ksz_cfg from global switch config to port config as suggested by Vladimir Oltean - reverse patch order as suggested by Vladimir Oltean - adapt dt schema as suggested by Conor Dooley V2: - don't rely on default register settings - enforce set/clear property as suggested by Andrew Lunn - enforce dt schema as suggested by Conor Dooley Ante Knezic (2): dt-bindings: net: microchip,ksz: document microchip,rmii-clk-internal net: dsa: microchip: add property to select internal RMII reference clock .../devicetree/bindings/net/dsa/microchip,ksz.yaml | 38 ++++++++++++++- drivers/net/dsa/microchip/ksz8795.c | 56 +++++++++++++++++++--- drivers/net/dsa/microchip/ksz8795_reg.h | 3 ++ 3 files changed, 90 insertions(+), 7 deletions(-)