Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3962261imu; Mon, 28 Jan 2019 14:13:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN5868vVH99yElo10mvu5cytJah1pj01efkCasXdfZExAgSJgQf3kJzGPVyN0qOVMgp3N2Hh X-Received: by 2002:a63:6b05:: with SMTP id g5mr20846566pgc.15.1548713631314; Mon, 28 Jan 2019 14:13:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548713631; cv=none; d=google.com; s=arc-20160816; b=LfkK3H1c33/yfzsngMyb0ZdwSNvDKpc/hD2oaBchY7kwSTOIDVXMPtjFsq+8H0rBYm WnYEMwK4Osp6l84pDlr+Pe0oFKMMKVTkS4JwwSrU+MK0dBex371MY5hH0j6HVcjtfcVI OsqdUltukSuY5qalP0HAs6RNZVjyWvWwLXZtvsB/nvpA4iI/1XaXiVIReXDluZIc837g /0OkdqXLCT9J/h/4kwvE8yQ9LQ/RVtjQNL3JkbgOsTXf+1TBK2iloBfLi2a0V2ZZajG/ jtnPF47cSOnbY+gg1lFaBGFk44k3U3ZmQNlmCN4WBslpRRabwTQjV3xGkQS8VrRblmsl XPZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=SX3y5qRO31ZKvEEIKo0MEZB6+bYb/6jT9yFgqOXja3Q=; b=Uge5tRsTVenNnQKLtlpB++mB8s2Mxv2gWJ2Di1ok1/VmcV+k3hcXJiv4NBFTU7DAk8 MnlWtVIRsqzLW5X1TJ6E0/NC4PHzb4a2o6J/Tbd5u1cPo9+l73x4/rpCV+rAzXkd8o35 d1ApUmqR8QpI/+CvccrlBkNBxO4K3HDt3UgMV1+pQmelePwwBVQu38jmei4ioDscrVw7 l9jXMuaBXkuzPR2n5rAyG8w2wrrmMiLuY3P8OS0cAyuzWWENp4taD8BoTWo/iECF4xco CWLMO5G34kesb05SuqrtZhH6ClpPqaZMA+TOanGw0e8uM8FapQOoyHK8e4eFNyHVKuP/ Zvmg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c20si34591709plz.391.2019.01.28.14.13.35; Mon, 28 Jan 2019 14:13:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728175AbfA1WMB (ORCPT + 99 others); Mon, 28 Jan 2019 17:12:01 -0500 Received: from mga17.intel.com ([192.55.52.151]:37504 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726766AbfA1WMB (ORCPT ); Mon, 28 Jan 2019 17:12:01 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jan 2019 14:12:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,534,1539673200"; d="scan'208";a="111810494" Received: from tthayer-hp-z620.an.intel.com ([10.122.105.146]) by orsmga006.jf.intel.com with ESMTP; 28 Jan 2019 14:11:58 -0800 From: thor.thayer@linux.intel.com To: lee.jones@linaro.org, arnd@arndb.de, dinguyen@kernel.org, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, peppe.cavallaro@st.com, alexandre.torgue@st.com, joabreu@synopsys.com Cc: davem@davemloft.net, mcoquelin.stm32@gmail.com, mchehab+samsung@kernel.org, mark.rutland@arm.com, bjorn.andersson@linaro.org, olof@lixom.net, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, netdev@vger.kernel.org, Thor Thayer Subject: [PATCHv3 0/6] Add SOCFPGA System Manager Date: Mon, 28 Jan 2019 16:14:09 -0600 Message-Id: <1548713655-25940-1-git-send-email-thor.thayer@linux.intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thor Thayer Add MFD driver for SOCFPGA System Manager to handle System Manager calls differently for ARM32 vs ARM64. The SOCFPGA System Manager includes registers from several SOC peripherals. On ARM32, syscon handles this aggregated register grouping. Implement System Manager calls as regmap_mmio similar to syscon for ARM32 SOCFPGA systems. The ARM64 System Manager can only be accessed from priority level EL3 so this new MFD driver handles the calls to EL3. v3 Changes: Create and register regmap in probe(). Lookup functions find registered regmap. Cleanup of header file. Fix copyright dates. Replace global pointer with traditional probe() methodology. Thor Thayer (6): mfd: altera-sysmgr: Add SOCFPGA System Manager Documentation: dt: socfpga: Add S10 System Manager binding ARM: socfpga_defconfig: Enable CONFIG_MTD_ALTERA_SYSMGR arm64: defconfig: Enable CONFIG_MTD_ALTERA_SYSMGR net: stmmac: socfpga: Use shared System Manager driver arm64: dts: stratix10: New System Manager compatible .../bindings/arm/altera/socfpga-system.txt | 12 ++ MAINTAINERS | 6 + arch/arm/configs/socfpga_defconfig | 1 + arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi | 2 +- arch/arm64/configs/defconfig | 1 + drivers/mfd/Kconfig | 10 + drivers/mfd/Makefile | 1 + drivers/mfd/altera-sysmgr.c | 210 +++++++++++++++++++++ .../net/ethernet/stmicro/stmmac/dwmac-socfpga.c | 5 +- include/linux/mfd/altera-sysmgr.h | 29 +++ 10 files changed, 274 insertions(+), 3 deletions(-) create mode 100644 drivers/mfd/altera-sysmgr.c create mode 100644 include/linux/mfd/altera-sysmgr.h -- 2.7.4