Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3594498imm; Mon, 4 Jun 2018 06:19:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLu+jhjaZLloyJhKV5/vwn6xdFn0oEw8XYjijDKNITYMNtB9qCgwULSu6+nQBNCkGNVipd2 X-Received: by 2002:a17:902:b60b:: with SMTP id b11-v6mr22301526pls.330.1528118386523; Mon, 04 Jun 2018 06:19:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528118386; cv=none; d=google.com; s=arc-20160816; b=ocN9fiFHV3UXN1/x8PFhwSLiywZt5bdBMUWZ4X3puOqvHHB44E/n9bOCcEJqPIFRGg Nwi524V/2TL+3slTCy0U6wtEmEHLvIO5rz+MGdVWk9bKlrByVgEY41eivT982pSk6Eyo XdXwdLJ8pS7glwPnrNtB9ivjtyRl6/AAe0bNFukUhrwzSdexhqOtZaPOSDquUE9zjnUE RfAQ4EtO5kArWAzkGEQJb6cOWUP2f1kU11Sr+rdx39KoNkQ61mclZojoO61C8RXN/cGI FV1eurqIQGfboc12uQNbe2FKxLTZdbphTju8EZKxqSqKGLjIiur+O+4v8zPAWJiFc2Cq GFNg== 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=PsqUyq75MUSK3FVJ5snt81/WkaPLKe54QEEaYkgdHo0=; b=MsxMl4ERYdHoP4UcwS0QJI8HOtL1OGoFk5vRrwAPG6g4Gjtt3wGpfghrOSwlo4Bufz W/MaigNqDPZ6SsZwySfLaG+Xe84leh6iBEOMplKXMVPU91e9vRrc4rPCRcnwr8jGFer8 oyPTO5OTir2EXQxKsv4rYc4Yyo3VJspgaMYmETzT8jwEpNAgj60EQncX98+2v7HB54xW 7AyCTCGWHd+4B/RIhN8f7nE6wqdNPEtxASzpTNthygY4pNZP3sNlbVCCYM+A3iB+ffda lZWzhvJpHDRzeiXdRtHOuJdXIY00uvopVbQwvhyiK5SJwRFCYW1GzP0Jl12N1nZpt0ka ScpQ== 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 f2-v6si1680211pgq.165.2018.06.04.06.19.31; Mon, 04 Jun 2018 06:19:46 -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 S1753140AbeFDNR4 (ORCPT + 99 others); Mon, 4 Jun 2018 09:17:56 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:43433 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752429AbeFDNRy (ORCPT ); Mon, 4 Jun 2018 09:17:54 -0400 Received: by mail-lf0-f65.google.com with SMTP id n15-v6so7869828lfn.10; Mon, 04 Jun 2018 06:17:53 -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=PsqUyq75MUSK3FVJ5snt81/WkaPLKe54QEEaYkgdHo0=; b=HsF/l/BNP/yzEZGn6Wt69H8eQznqavHwKs2FE23eumPG4UJitntECNwp0D8AoVoyRT 7OExk1+I04XwmV4KCVgTrH9DK0xB8RzgLC1mKfZPtgLGOZ61qBVB2S0J8lNw4cF1NxZf Kp/bMeeNkYCaXW2ZIh2RBVIWXWeNraVV4bWI5EoWK1pECa6Rzls2RZwsoBJ3asmJyqz1 gT/rC824gWWccgJvAx6JDlA1O21OPzB8FGa3AMvnXxU3TTo4sKopBoeT3mNwKxEMH4PI zPO1391MuuMMbxzirzZHbYAu4ZCJDmSzd20zBDbPV3no7DUI10X5OTtFtfFKuyqN7qv0 Ugdw== X-Gm-Message-State: APt69E0nEnAcaDtI2EZ/i6Ou2AyjJ2tU6nd2+bKoIOC/wGB3n6wa45M/ v/3QLGGHSfgOCDVn+qbwPGQ= X-Received: by 2002:a2e:120b:: with SMTP id t11-v6mr9072771lje.57.1528118272653; Mon, 04 Jun 2018 06:17:52 -0700 (PDT) Received: from localhost.localdomain ([213.255.186.34]) by smtp.gmail.com with ESMTPSA id w18-v6sm7714831lfk.26.2018.06.04.06.17.51 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 04 Jun 2018 06:17:52 -0700 (PDT) Date: Mon, 4 Jun 2018 16:17:44 +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 Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mikko.mutanen@fi.rohmeurope.com, heikki.haikola@fi.rohmeurope.com Subject: [PATCH v5 0/4] mfd/regulator/clk: 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. The driver aims to not limit the usage of PMIC. Thus the buck and LDO naming is generic and not tied to any specific purposes. However there is following limitations which make it mostly suitable for use cases where the processor where PMIC driver is running is powered by the PMIC: - The PMIC is not re-initialized if it resets. PMIC may reset as a result of voltage monitoring (over/under voltage) or due to reset request. Driver is only initializing PMIC at probe. This is not problem as long as processor controlling PMIC is powered by PMIC. - The PMIC internal state machine is ignored by driver. Driver assumes the PMIC is wired so that it is always in "run" state when controlled by the driver. 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. Patches 2 and 3 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: Devicetree bindings for ROHM BD71837 PMIC clk: bd71837: Add driver for BD71837 PMIC clock .../bindings/clock/rohm,bd71837-clock.txt | 38 +++ .../devicetree/bindings/mfd/rohm,bd71837-pmic.txt | 76 ++++++ drivers/clk/Kconfig | 7 + drivers/clk/Makefile | 1 + drivers/clk/clk-bd71837.c | 146 +++++++++++ drivers/mfd/Kconfig | 13 + drivers/mfd/Makefile | 1 + drivers/mfd/bd71837.c | 223 ++++++++++++++++ include/linux/mfd/bd71837.h | 288 +++++++++++++++++++++ 9 files changed, 793 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/rohm,bd71837-clock.txt create mode 100644 Documentation/devicetree/bindings/mfd/rohm,bd71837-pmic.txt create mode 100644 drivers/clk/clk-bd71837.c create mode 100644 drivers/mfd/bd71837.c create mode 100644 include/linux/mfd/bd71837.h -- 2.14.3