From patchwork Fri Jul 27 21:23:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arun Parameswaran X-Patchwork-Id: 10547743 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0AA8314BC for ; Fri, 27 Jul 2018 21:23:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E79392B3D9 for ; Fri, 27 Jul 2018 21:23:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DB3BC2C659; Fri, 27 Jul 2018 21:23:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7BD8A2B3D9 for ; Fri, 27 Jul 2018 21:23:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=fbktu/UrM7HTJyLsjagNwalf/7f30qwYHDf7ZiFKVj0=; b=cOc 1mZolD3yMR/O25wCvFwZ2hqChNAIPbUDCl6411c4GYzsMBEkHIBbaXFEttyYlIaJ9b3hxcuMwljLb dHriricYecB+d7AJYq1qvEPGF0AWtwfUksC/8te6YKrzlfECT5NjT3FyDrsCbBEwGgFMa42CPqzti sxKaYHA1BoiFmHOy7zVU1HEI4UywrUXeWXq5NSIu26MWtubASm8yWUSo58viv06eh2Uf9D0q92u02 TV/LEJ7OBWxtzzf+fhVMzZkfUY58+fysYZ2+koBW8VkTWx8srAjHXQI9zkQrvoYIulyOQgynRjG8d 3X9J79wPwXcPLNZmn7XBkgMmaGaqfyg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fjAD3-0006yi-Qn; Fri, 27 Jul 2018 21:23:37 +0000 Received: from mail-qt0-x242.google.com ([2607:f8b0:400d:c0d::242]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fjACz-0006up-Os for linux-arm-kernel@lists.infradead.org; Fri, 27 Jul 2018 21:23:35 +0000 Received: by mail-qt0-x242.google.com with SMTP id q12-v6so6511713qtp.6 for ; Fri, 27 Jul 2018 14:23:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=bkDf9H/lCzyN8r7W365Wx28B9L8S1jVg+xhMsFMvT7Y=; b=WltTNsqe0pSQeTHTYNDXGNcMPYCPWuvguNqsCDCdpUaZiNOfc3DZ6U/b/aoIHGrwi6 DJkIrw4kfFaDvqt6QinWsv0Guc4ypROxWawAmonHGIKw9sZE/jP/uuOVxIWu8X1XKPuE 0GA2Df1vhLAEdmYzzWc2v8A3QCAOdfbL+A2FM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bkDf9H/lCzyN8r7W365Wx28B9L8S1jVg+xhMsFMvT7Y=; b=k/9Sd08+cjJEYcKfB5bNj29oGavALWccbIvxJE7atWVC4mpL8VoieZW+chzN1as87w mszbrntraGw4i7kHe7z9GKckqkWqOu73GGlbkXbstud2+6WCwuPskBedQeuKVaRh/0Vi o+AsvCG4eXZ2/76KtqclNeHLkO5aU1vb3oBagU9MTrUpVQSx0M8v3+8guS89lqG0b4x3 mkH13ox4b1VdD8B078d7d7Gch6Jw3VZHsCbOALoMoNYKsmZTZLRyA/Z2mMmv4kUnLR0d 10gq8Lr1+7gfFSzvEGhy8NZsDGjtqWVzF8N92C6q6+/H93xVesZIX+hR8nScu3+RMsao VDUw== X-Gm-Message-State: AOUpUlFw/Vc4B/2Y4EDwBh04qFdjRzjjD3e7enT+lNIcxYH3sfyR+7Lk pXn1FF+gpS0x6mecCuafkFtIWg== X-Google-Smtp-Source: AAOMgpc2VCv3e+6Im30SOH5hB36Fq8vCEcYsIxWlQWtpyQIjahRKeQSlab09GDqmqaX42LBUXZ2Hcw== X-Received: by 2002:aed:35f8:: with SMTP id d53-v6mr7856400qte.239.1532726601637; Fri, 27 Jul 2018 14:23:21 -0700 (PDT) Received: from lbrmn-lnxub86.ric.broadcom.com ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id e21-v6sm3416622qtc.67.2018.07.27.14.23.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Jul 2018 14:23:20 -0700 (PDT) From: Arun Parameswaran To: "David S. Miller" , Florian Fainelli , Andrew Lunn , Rob Herring , Mark Rutland , Ray Jui , Scott Branden , Catalin Marinas , Will Deacon Subject: [PATCH v2 0/7] Add clock config and pm support to bcm iProc mdio mux Date: Fri, 27 Jul 2018 14:23:26 -0700 Message-Id: <1532726613-6483-1-git-send-email-arun.parameswaran@broadcom.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180727_142333_804354_B831A0E6 X-CRM114-Status: GOOD ( 18.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, netdev@vger.kernel.org, Arun Parameswaran , linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Hi, The patchset is based on David Miller's "net-next" repo. The patchset extends the Broadcom iProc mdio mux to add support for suspend/resume and the ability to configure the internal clock divider. The patchset also sets the scan control register to disable external master access. The base address of the mdio-mux-bcm-iproc is modified to point to the start of the mdio block's address space, to be able to access all the mdio's registers. The missing registers are required to configure the internal clock divider registers in some of the Broadcom SoC's. Changes from v1: - Addressed Andrew's comments. - Reworked the patches to be based on 'net-next' - Removed 'fixes' from the commit messages, the changes are related to the new features being added. - Maintained backward compatibility to older dt-blob's specifying base addresse with an offset. The correction is applied in the driver and a message is printed to update the dt-blob. - Re-worked and re-ordered the last four patches (4-7). - Added setting of the scan control register as a new patch - Added a call to 'clk_prepare_enable()' in the patch that adds the clock config support, removed the debug message when clock is not passed. - Simplified the pm support patch (removed the array used for the save/restore logic). Thanks Arun Arun Parameswaran (7): dt-bindings: net: Fix Broadcom iProc mdio mux driver base address net: phy: Fix the register offsets in Broadcom iProc mdio mux driver arm64: dts: Fix the base address of the Broadcom iProc mdio mux net: phy: Disable external master access in bcm mdio mux driver dt-bindings: net: Add clock handle to Broadcom iProc mdio mux net: phy: Add support to configure clock in Broadcom iProc mdio mux net: phy: Add pm support to Broadcom iProc mdio mux driver .../bindings/net/brcm,mdio-mux-iproc.txt | 7 +- arch/arm64/boot/dts/broadcom/northstar2/ns2.dtsi | 4 +- .../arm64/boot/dts/broadcom/stingray/stingray.dtsi | 4 +- drivers/net/phy/mdio-mux-bcm-iproc.c | 109 +++++++++++++++++++-- 4 files changed, 109 insertions(+), 15 deletions(-)