Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp309318imu; Thu, 8 Nov 2018 02:15:07 -0800 (PST) X-Google-Smtp-Source: AJdET5cAOu274q8PSRq8SSuyOWDx8oYfGcEnXGiaJ4TSMDTCceoR6qDkqLY3HSvE60rQ8pmu7qCr X-Received: by 2002:a63:4665:: with SMTP id v37mr3332663pgk.425.1541672107457; Thu, 08 Nov 2018 02:15:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541672107; cv=none; d=google.com; s=arc-20160816; b=nzuaBWEU67RSlbNYxhCsXIhyAXuvtvRUzuyNolhOACyonOtZQOrc9Pz5Q0/hiuc0Yd tAnIBKaKiHW96nm/rvxZ6TzmuR83gS9rufZFVOFXj6KSzM9cbqNYECslpVoEUnYMe/Kl +nTjxuUwklBAxDA98/ciMuN8w1nszGXXN/wDLHUyQ1wQzxhuOkjdegf/tHVpOSC6cPAE kOSVvKo7ClIo+4xfxxlzexM0D6f4Kq/diTozSf0LnEkk4Mg3o6+/0waIBKEv9Q5sP7Px 67++iDFG97hrSNQdd9NpZGyk+YyVU12591vFF5ok1GA3XGu2Pdwb6PhsHh2SgkkQCEBE g/YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=6jo/fbU2hR9XDOwzmIPBWK4CotWYSuJ6GizbIcxRjRI=; b=pxfrXNuUeO8IbB6xaiOS8Qj7JGlz9EJcCnqa/Lf+lPSfx2YrUAniM0v6Hk8NoHXkA9 5XutCNWqdP2tmDgC5noIHslC7Hv7iKpbkn0a9YTKV3tOyK302TrFnNg0X9YAnfuUPf7d nvFi5Ir5bPgNxwHuVzcNz+v5TnVqhdPcgxndzI5lIw8fv7i3G8LPclVeteKMPuPJBE4W 99lrl8e8LXQE9rGOolsbWphXUqVV8C/4tfUrQs+RTmNrE195Tj+Gqp/mWRt2cFAqJavL V3nAACxLe4ica3q9h0qsd5x5W8HA4NxdA5BCiYWL79zsb3WhB+lMPULokC37fuNIBah+ uo7Q== 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=cirrus.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f10-v6si4136278pln.436.2018.11.08.02.14.52; Thu, 08 Nov 2018 02:15:07 -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=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727238AbeKHTtJ (ORCPT + 99 others); Thu, 8 Nov 2018 14:49:09 -0500 Received: from mx0a-001ae601.pphosted.com ([67.231.149.25]:39346 "EHLO mx0b-001ae601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726963AbeKHTtG (ORCPT ); Thu, 8 Nov 2018 14:49:06 -0500 Received: from pps.filterd (m0077473.ppops.net [127.0.0.1]) by mx0a-001ae601.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id wA8A8TZM010849; Thu, 8 Nov 2018 04:14:15 -0600 Authentication-Results: ppops.net; spf=none smtp.mailfrom=ckeepax@opensource.cirrus.com Received: from mail1.cirrus.com (mail1.cirrus.com [141.131.3.20]) by mx0a-001ae601.pphosted.com with ESMTP id 2nm9308nah-1; Thu, 08 Nov 2018 04:14:15 -0600 Received: from EX17.ad.cirrus.com (unknown [172.20.9.81]) by mail1.cirrus.com (Postfix) with ESMTP id 9F164611C8B0; Thu, 8 Nov 2018 04:14:14 -0600 (CST) Received: from imbe.wolfsonmicro.main (198.61.95.81) by EX17.ad.cirrus.com (172.20.9.81) with Microsoft SMTP Server id 14.3.408.0; Thu, 8 Nov 2018 10:14:14 +0000 Received: from algalon.ad.cirrus.com (algalon.ad.cirrus.com [198.90.251.122]) by imbe.wolfsonmicro.main (8.14.4/8.14.4) with ESMTP id wA8AE55r028949; Thu, 8 Nov 2018 10:14:05 GMT From: Charles Keepax To: , , , , , CC: , , , , , , Subject: [PATCH v4 0/6] Lochnagar Driver Date: Thu, 8 Nov 2018 10:13:59 +0000 Message-ID: <20181108101405.14062-1-ckeepax@opensource.cirrus.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1811080089 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Version 4 of this series the big change here is splitting up the device tree into having a node for each of the MFD child drivers. More detailed change logs are given on each patch. Lee doesn't like the idea of having both mfd_add_devices and of_platform_populate in the MFD driver. Stephen had asked on a previous spin to move the fixed clocks out of the clock driver into device tree and there is a fixed regulator as well that is specified through device tree. Those require having the of_platform_populate there which left the only solution being to move the MFD children into device tree as well. I have moved the relevant DT settings to be attached to their respective nodes in DT although I guess another option would be to leave all the config on the parent node and just use the child nodes for binding in the drivers, but I decided that was less consistent with other DT usage. But could switch over to it if people prefer. Thanks, Charles Charles Keepax (6): regulator: lochnagar: Explicitly include register headers regulator: lochnagar: Move driver to binding from DT mfd: lochnagar: Add initial binding documentation mfd: lochnagar: Add support for the Cirrus Logic Lochnagar clk: lochnagar: Add support for the Cirrus Logic Lochnagar pinctrl: lochnagar: Add support for the Cirrus Logic Lochnagar .../devicetree/bindings/clock/cirrus,lochnagar.txt | 89 ++ .../devicetree/bindings/mfd/cirrus,lochnagar.txt | 70 ++ .../bindings/pinctrl/cirrus,lochnagar.txt | 141 +++ .../bindings/regulator/cirrus,lochnagar.txt | 80 ++ MAINTAINERS | 17 + drivers/clk/Kconfig | 7 + drivers/clk/Makefile | 1 + drivers/clk/clk-lochnagar.c | 360 ++++++ drivers/mfd/Kconfig | 8 + drivers/mfd/Makefile | 2 + drivers/mfd/lochnagar-i2c.c | 394 +++++++ drivers/pinctrl/cirrus/Kconfig | 10 + drivers/pinctrl/cirrus/Makefile | 2 + drivers/pinctrl/cirrus/pinctrl-lochnagar.c | 1145 ++++++++++++++++++++ drivers/pinctrl/cirrus/pinctrl-lochnagar.h | 112 ++ drivers/regulator/lochnagar-regulator.c | 10 +- include/dt-bindings/clk/lochnagar.h | 26 + include/dt-bindings/pinctrl/lochnagar.h | 132 +++ include/linux/mfd/lochnagar.h | 55 + include/linux/mfd/lochnagar1_regs.h | 157 +++ include/linux/mfd/lochnagar2_regs.h | 253 +++++ 21 files changed, 3070 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/clock/cirrus,lochnagar.txt create mode 100644 Documentation/devicetree/bindings/mfd/cirrus,lochnagar.txt create mode 100644 Documentation/devicetree/bindings/pinctrl/cirrus,lochnagar.txt create mode 100644 Documentation/devicetree/bindings/regulator/cirrus,lochnagar.txt create mode 100644 drivers/clk/clk-lochnagar.c create mode 100644 drivers/mfd/lochnagar-i2c.c create mode 100644 drivers/pinctrl/cirrus/pinctrl-lochnagar.c create mode 100644 drivers/pinctrl/cirrus/pinctrl-lochnagar.h create mode 100644 include/dt-bindings/clk/lochnagar.h create mode 100644 include/dt-bindings/pinctrl/lochnagar.h create mode 100644 include/linux/mfd/lochnagar.h create mode 100644 include/linux/mfd/lochnagar1_regs.h create mode 100644 include/linux/mfd/lochnagar2_regs.h -- 2.11.0