Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp796962imm; Fri, 15 Jun 2018 06:28:52 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKHbWY67VPHxh3NJ/MmQc+Wk3j58Xtng3gtiNCOrImk2WGcKBURDNvUJV+JOCzYfUkvSq9R X-Received: by 2002:a63:6105:: with SMTP id v5-v6mr1575536pgb.299.1529069332614; Fri, 15 Jun 2018 06:28:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529069332; cv=none; d=google.com; s=arc-20160816; b=tWfKEgtZVqXCdHek25hLbTCl1OSe8RZ+FB7wR9Xg4ruxtUMePmUQNyGPlwlYOgPzZh mPgGJEV14farYSXFzGHEC5TQWbNlXRDiSKsd2wVi0q24WJ2Jt85Wgy3OkQyBGIBBuFk7 jQ6jxQ6OxI7voH0bIdOlgd0OG9VN44FgcpEGXXHzaI0b2LeanTbICfPLMiXbYpldfQT7 DCz4NAXAy/i+9qNKUAA2fyIcTAimBIUJ+1iJcoH78qJyU5Fc3R9qJg70WwfnyBspAOsM 065pNCXLKdNwkoDpjyjoD6C1WTN17pPoCXVHDnw0GDIX/pB0BEx4drdw8xbcedi3Xz+q aEbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=8v3iiBIfazu7RygOJKYjPqvSR3V1dwLZAuD2Tt/2OWU=; b=EeMsC4LY6dWiXspAnJZ0DqAB1gCZ5dXgdyviP0JgJ/m4yAsu5oyzhz4h1/f3rHsfuX 2yL+AKwkydZ2wh42/PUh6KEKw8sv0btGjC5F2ciaFTxhSbYzj9a99PSZHJ5bXAGRtOcl 4q4gNApnduQZ4C8eAUbdKOniLx9B2lZ93+hLpKDmLaIrkADI3jzW1J7WLQ+Yezg547Gi Ml2sLwwSkzx8iOO5qKsSualXSwazDYqi5HTOrIAoM3QoKBsx2GdD8n1FFYV87OcQlnQZ VqdzMYN/R7gBjOfS8KZSSD549nwDN1HFWihPQayy5OoHkOK4E2n/Lnve5OQ/CtgJrquI bBTg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w5-v6si7446068pfn.109.2018.06.15.06.28.37; Fri, 15 Jun 2018 06:28:52 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936306AbeFON14 (ORCPT + 99 others); Fri, 15 Jun 2018 09:27:56 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:33789 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933771AbeFON1y (ORCPT ); Fri, 15 Jun 2018 09:27:54 -0400 Received: by mail-lf0-f66.google.com with SMTP id y20-v6so14675904lfy.0; Fri, 15 Jun 2018 06:27:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=8v3iiBIfazu7RygOJKYjPqvSR3V1dwLZAuD2Tt/2OWU=; b=ILbFmX/EU0Rjqa0nBM1TjS/2j/4aGIdH5CVehmlFz0mZDM1kUNbhF6QPOsX3HpNIlT +z56JYv5zjUUrQFOdmlgBjCGY3wMTVPaFvXeeIxLGx4RpmvE9umKA/jHg/aRETrL0ciG y1yDhEVNWW5i5qq+x++pbXUy57ESW5RFlXLCZ8E+42V41D0LZ8ZuzpxEpK2XCl5qmCt2 5eRZXQolssqdEVQzHNNfrFLVNB6Vx2q1xAVv9Y41snw+gvtmmOA5cDB5J4hlckqRMfpi 3lLWMhn2Q44SDfNTpaZupqR16tIP9A4UrVXF2gBjfClEn5E5AlFhzOzTDrHEyUwRIKjP kbFQ== X-Gm-Message-State: APt69E3N4tsn3dGxFEdaZA5dmaoHlf4LQcI6l3puD4/zbWRp604gp33k WCMkEEOEs/iBnFrOnyzKkyY= X-Received: by 2002:a2e:6a07:: with SMTP id f7-v6mr1338035ljc.109.1529069272219; Fri, 15 Jun 2018 06:27:52 -0700 (PDT) Received: from localhost.localdomain ([213.255.186.34]) by smtp.gmail.com with ESMTPSA id q2-v6sm1457935ljg.90.2018.06.15.06.27.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Jun 2018 06:27:51 -0700 (PDT) Date: Fri, 15 Jun 2018 16:27:43 +0300 From: Matti Vaittinen To: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, lee.jones@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, mazziesaccount@gmail.com, arnd@arndb.de, dmitry.torokhov@gmail.com, sre@kernel.org, chenjh@rock-chips.com, andrew.smirnov@gmail.com, linus.walleij@linaro.org, kstewart@linuxfoundation.org, heiko@sntech.de, gregkh@linuxfoundation.org Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, mikko.mutanen@fi.rohmeurope.com, heikki.haikola@fi.rohmeurope.com Subject: [PATCH v6 0/4] mfd/regulator/clk/input: bd71837: ROHM BD71837 PMIC driver Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patch series adding support for ROHM BD71837 PMIC. BD71837 is a programmable Power Management IC for powering single-core, dual-core, and quad-core SoC’s such as NXP-i.MX 8M. It is optimized for low BOM cost and compact solution footprint. It integrates 8 buck regulators and 7 LDO’s to provide all the power rails required by the SoC and the commonly used peripherals. Rewgulator part is already applied. This is reduced set of patches containing the MFD part, clock gate for 32.768 KHz clock buffer, input driver for power button and device-tree bindings for MFD. Changelog v6 - Added power-key input driver Based on feedback from Rob Herring and Stephen Boyd - Added link to datasheet - Removed interrupt-controller from DT and fixed binding document - clk styling fixes - remove clkdev usage - add clk bindings to MFD documentation - removed clk binding document Changelog v5 - dropped regulator patches which are already applied to Mark's tree Based on feedback from Rob Herring and Stephen Boyd - mfd bindings: explain why this can be interrupt-controller - mfd bindings: describe interrupts better - mfd bindings: require one cell interrupt specifier - mfd bindings: use generic node names in example - mfd driver: ack masked interrupt once at init - clk bindings: use generic node names in example - clk driver: use devm - clk driver: use of_clk_add_hw_provider - clk driver: change severity of print and how prints are emitted at probe error path. - clk driver: dropped forward declared functions - clk configs: drop unnecessary dependencies - clk driver: other styling issues - mfd/clk DT: drop clk node. Changelog v4 - remove mutex from regulator state check as core prevents simultaneous accesses - allow voltage change for bucks 1 to 4 when regulator is enabled - fix indentiation problems - properly correct SPDX comments Changelog v3 - kill unused variable - kill unused definitions - use REGMAP_IRQ_REG Changelog v2 Based on feedback from Mark Brown - Squashed code and buildfile changes to same patch - Fixed some styling issues - Changed SPDX comments to CPP style - Error out if voltage is changed when regulator is enabled instead of Disabling the regulator for duration of change - Use devm_regulator_register - Remove compatible usage from regulators - use parent dev for config - Add a note about using regulator-boot-on for BUCK6 and 7 - fixed warnings from kbuild test robot patch 1: MFD driver and definitions bringing interrupt support and enabling clk and regulator subsystems. patch 2: MFD driver DT bindings patch 3: clock driver for BD71837 clock output patch 4: power button driver for power button connected to BD71837 This patch series is based on for-mfd-next --- Matti Vaittinen (4): mfd: bd71837: mfd driver for ROHM BD71837 PMIC mfd: bd71837: Devicetree bindings for ROHM BD71837 PMIC clk: bd71837: Add driver for BD71837 PMIC clock input/power: Add driver for BD71837/BD71847 PMIC power button .../devicetree/bindings/mfd/rohm,bd71837-pmic.txt | 67 ++++ drivers/clk/Kconfig | 6 + drivers/clk/Makefile | 1 + drivers/clk/clk-bd71837.c | 145 ++++++++ drivers/input/misc/Kconfig | 10 + drivers/input/misc/Makefile | 1 + drivers/input/misc/bd718xx-pwrkey.c | 90 +++++ drivers/mfd/Kconfig | 13 + drivers/mfd/Makefile | 1 + drivers/mfd/bd71837.c | 249 ++++++++++++++ include/linux/mfd/bd71837.h | 370 +++++++++++++++++++++ 11 files changed, 953 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/rohm,bd71837-pmic.txt create mode 100644 drivers/clk/clk-bd71837.c create mode 100644 drivers/input/misc/bd718xx-pwrkey.c create mode 100644 drivers/mfd/bd71837.c create mode 100644 include/linux/mfd/bd71837.h -- 2.14.3