From patchwork Wed Oct 18 09:24:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ante Knezic X-Patchwork-Id: 735315 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF2DE17983 for ; Wed, 18 Oct 2023 09:24:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=helmholz.de header.i=@helmholz.de header.b="cpuvk8Lv" Received: from mail.helmholz.de (mail.helmholz.de [217.6.86.34]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4ABA6FD for ; Wed, 18 Oct 2023 02:24:23 -0700 (PDT) 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=COTZi2+pIsvhsLnas8F04b4dPL7GGNJbI+nnp7h7Ba0=; b=cpuvk8Lv2ebeblAllpEt0pqQxY ePyrkhDvCBTxbB8vk+gP6pyF4WswJjNpNBRxyeXckuyVAJRc3pvYsEKq3aQ+wpA2uw0AfePsZ0bsH N/p/MbmNgR67nZ6si3RtYJMRfuofAeHunAu5T+615oaMhlhOa7OvJbJtOPLi6hgMajIpa4Y+PZkQ0 LuhvncEOpmTcrYWrGG6swGGvq/WgxWvVv5b0N+nN0t9UHM8T/ojITl1iDDdxgjf5OweEdcgXXS46A LiVrKARcUNS8ka6Ym1c6x6UGFpxEvExveMsTxjDX7uchpxsmrHBmgQvyLwRptsraHt+zs0yBJ2gii 1Le2pnOg==; Received: from [192.168.1.4] (port=59010 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 1qt2mn-0003EA-38; Wed, 18 Oct 2023 11:24:17 +0200 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; Wed, 18 Oct 2023 11:24:17 +0200 From: Ante Knezic To: CC: , , , , , , , , , , , , , , , Ante Knezic Subject: [PATCH net-next v3 0/2] net: dsa: microchip: enable setting rmii reference Date: Wed, 18 Oct 2023 11:24:12 +0200 Message-ID: X-Mailer: git-send-email 2.11.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Originating-IP: [192.168.6.7] 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-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 lindbergh.monkeyblade.net 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. --- 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 | 17 +++++++++++++++++ drivers/net/dsa/microchip/ksz8795.c | 10 +++++++++- drivers/net/dsa/microchip/ksz8795_reg.h | 3 +++ drivers/net/dsa/microchip/ksz_common.h | 1 + 4 files changed, 30 insertions(+), 1 deletion(-)