summaryrefslogtreecommitdiffstats
path: root/include/mfd
Commit message (Collapse)AuthorAgeFilesLines
* ARM i.MX6Q: fix network configuration for Protonic PRTI6G boardOleksij Rempel2020-12-071-0/+18
| | | | | | | | | By default the iMX6UL is configured to output clock on the ENET1_TX_CLK pin. Since on the Protonic PRTI6G board the PHY is actual refclock provider, we should change the clock source to the external clock. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: Add pca9440 register mapSascha Hauer2020-07-141-0/+55
| | | | | | | The pca9440 is a PMIC found on the i.MX8MP-EVK board. This adds the register map for it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide: remove references to CREDITSUwe Kleine-König2020-04-271-3/+0
| | | | | | | | The CREDITS file was removed from barebox in 2015 by commit 6570288f2d97 ("Remove the CREDITS file"). Remove references to it from several files. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: syscon: implement device_node_to_regmapAhmad Fatoum2020-04-151-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend our syscon API with a device_node_to_regmap function that has the same semantics as upstream: __________________________________________________________________________ | Linux commit 39233b7c611248c0d05209b4854bc63e26485655 | CommitDate: Thu Aug 8 15:30:07 2019 -0700 | | mfd/syscon: Add device_node_to_regmap() | | device_node_to_regmap() is exactly like syscon_node_to_regmap(), but it | does not check that the node is compatible with "syscon", and won't | attach the first clock it finds to the regmap. | | The rationale behind this, is that one device node with a standard | compatible string "foo,bar" can be covered by multiple drivers sharing a | regmap, or by a single driver doing all the job without a regmap, but | these are implementation details which shouldn't reflect on the | devicetree. | | Signed-off-by: Paul Cercueil <paul@crapouillou.net> | Acked-by: Arnd Bergmann <arnd@arndb.de> | Signed-off-by: Paul Burton <paul.burton@mips.com> |__________________________________________________________________________ Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: Add Rohm bd71837 header fileSascha Hauer2020-02-191-0/+103
| | | | | | | The Rohm bd71837 is a PMIC used on the NXP i.MX8MM EVK eval board. For now only add the register definitions to be used by the lowlevel code. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* regulator: pfuze: add support to other architecturesMichael Grzeschik2020-02-031-0/+16
| | | | | | | | | Currently the pfuze driver is build dependent to ARCH_IMX6. To make it possible to work with ARCH_IMX8 we move the imx6_poweroff call to an own poweroff handler. Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: syscon: add syscon_regmap_lookup_by_phandle()Marcin Niestroj2019-07-021-0/+9
| | | | | | | | This function is handy when syscon is passed as phandle to device_node property. Signed-off-by: Marcin Niestroj <m.niestroj@grinn-global.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: twl-core: Add missing prototype for twlcore_get()Sascha Hauer2019-03-181-3/+4
| | | | | | twlcore_get() has no prototype provided in header file. Add it. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* regmap: Implement syscon_regmap_lookup_by_compatible()Ahmad Fatoum2019-02-251-0/+5
| | | | | | | | | Implement syscon_regmap_lookup_by_compatible() to simplify porting kernel code. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Tested-by: Ladislav Michl <ladis@linux-mips.org> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: mc13892: MC13892_POWER_MISC bits revisionAlexander Shiyan2019-01-031-11/+12
| | | | | | | | | | | This patch revises the bits for register MC13892_POWER_MISC. - Added definition for one missing bit (0). - Changed the name for bit 21 for accordance with the datasheet. - Updated affected board that uses these definitions. - Replaced spaces with tabs for the remaining bits. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* aiodev: mc13xxx: add adc supportAndrey Gusakov2018-04-101-0/+9
| | | | | Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: mc13xxx: add function returning mc13xxx typeAndrey Gusakov2018-04-101-0/+10
| | | | | Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* rename file_operations -> cdev_operationsSascha Hauer2018-04-061-1/+1
| | | | | | | | Linux also has struct file_operations which are something different. Rename our file_operations to cdev_operations which better matches what we have. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: i.MX: Import imx7-iomuxc-gpr.h from Linux kernelAndrey Smirnov2017-07-301-0/+51
| | | | | | Acked-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
* regmap: Implement syscon_node_to_regmap()Andrey Smirnov2017-03-091-0/+8
| | | | | | | Implement syscon_node_to_regmap() to simplify porting kernel code. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* regulator: Add pfuze driverSascha Hauer2017-01-201-0/+6
| | | | | | | | This is not yet a regulator driver, only the register map is exported as /dev/pfuze* so the registers can be accessed for debugging purposes. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: mc13892: more descriptive charger register definesAlexander Kurz2016-11-071-9/+31
| | | | | | | | Make access to the mc13892 charger parameter voltage, current and max power dissipation readable in terms of millivolts, milliamps and milliwatts. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd mc13xxx: add MC13892_REVISION_2_4Alexander Kurz2016-08-181-6/+7
| | | | | | | | An MC13892CJ having REV[4:0]=0x14 can be found in the kindle-d01100. Add the revision to the list to support this device. Signed-off-by: Alexander Kurz <akurz@blala.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: mc13xxx: VGEN1 and VGEN2 voltage bits positioned in "Regulator Setting ↵Alexander Shiyan2016-07-071-14/+14
| | | | | | | | | | | 0" register The bits VGEN10-11 and VGEN20-22 is positioned in the Regulator Setting 0 register. This patch fixes these definitions and board (Efika MX), which uses this voltages. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* syscon: Do not return NULL when driver is not selectedAndrey Smirnov2016-05-181-2/+2
| | | | | | | | | | | Both syscon_base_lookup_by_pdevname() and syscon_base_lookup_by_phandle(), when implemented, do not return NULL, so none of the code using those function is written to check for that. Change returns to ERR_PTR(-ENOSYS), to avoid having that problem. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* PCI: imx6: Add proper i.MX6+ reset sequenceAndrey Smirnov2016-04-281-0/+1
| | | | | | | | | | | | | | | | | I.MX6+ version of the silicon exposed PCIe core's reset signal as a bit in one of the control registers. As a result using old, pre-i.MX6+, reset sequence on i.MX6+ leads to Barebox hanging during startup. Using exposed reset bit instead solves the problem. This commit is based on portions of commit c34068d48273e24d392d9a49a38be807954420ed in http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Acked-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* pci: Add i.MX6 pcie supportSascha Hauer2015-03-171-0/+8
| | | | | | | Based on the corresponding kernel driver with changes to make it work on barebox. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/imx'Sascha Hauer2014-06-041-0/+6
|\ | | | | | | | | Conflicts: arch/arm/configs/tx25stk5_defconfig
| * mfd: mc13xxx: Allow to set callback for mc13xxxSascha Hauer2014-05-191-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | Some boards have to initialize the PMIC before other devices can be initialized. This requires three levels of initcalls: one level in which the PMIC is probed, one in which the board can call mc13xxx_get() and the third one to initialize the PMIC dependent devices. Allow to register a callback which is called once the PMIC is initialized. This way mc13xxx_get() is no longer necessary and the number of required initcalls levels is reduced to two. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | syscon: fix prototype compile errorSteffen Trumtrar2014-05-161-2/+2
|/ | | | | | | | | | | | | gcc 4.8.3 throws the following error include/mfd/syscon.h: In function 'syscon_base_lookup_by_pdevname': include/mfd/syscon.h:22:1: error: parameter name omitted static inline void __iomem *syscon_base_lookup_by_pdevname(const char *) Fix it by adding the name to the function prototype. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: add act8846 driverBeniamino Galvani2014-04-291-0/+56
| | | | | Signed-off-by: Beniamino Galvani <b.galvani@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6q: Mark VPU and IPU AXI transfers as cacheable, increase IPU prioritySascha Hauer2014-03-291-0/+18
| | | | | | | | | | This is needed so that the IPU framebuffer scanout cannot be starved by VPU or GPU activity. Some boards like the SabreLite and SabreSD seem to set this in the DCD already, but the documented register reset values do not contain the necessary settings. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM i.MX6Q: Fix IOMUXC GPR1 defines for ENET_CLK_SEL and IPU1/2_MUXPhilipp Zabel2014-03-191-8/+8
| | | | | Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* ARM: mx53-qsrb: fix USBEric Bénard2014-02-101-0/+11
| | | | | | | | | - configure the MC34708 properly so that USB can work (the sequence is taken from u-boot) - add the required defines to the mc13xxx include file Signed-off-by: Eric Bénard <eric@eukrea.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: syscon: Introduce syscon_base_lookup_by_phandle() functionAlexander Shiyan2014-01-241-0/+8
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: mc13xxx: Add support for MC34708Alexander Shiyan2013-07-151-109/+0
| | | | | | | This patch moves support for MC34708 PMIC into mc13xxx driver. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: mc34708: provide static inline wrapperSascha Hauer2013-06-261-1/+8
| | | | | | | If the driver is disabled provide a static inline wrapper for mc34708_get() to prevent linker errors. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* treewide include/: Add missing includesSascha Hauer2013-05-311-0/+2
| | | | | | | This adds several missing includes to files under include/ which we relied on being included implicitly. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add system controller register driver (SYSCON)Alexander Shiyan2013-03-111-0/+26
| | | | | | | | This patch adds support for system controller register driver (SYSCON). Code taken from Linux Kernel and adapted for using in barebox. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: Using MFD_xx prefix for symbolsAlexander Shiyan2013-02-184-12/+12
| | | | | | | | This patch provides rename MFD-related symbols for using MFD-prefix. Additionally, sorting mfd/Kconfig and mfd/Makefile records. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd mc13893: Add register definesSascha Hauer2012-12-171-0/+217
| | | | | | Add register defines for the mc13892. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mfd: Add i.MX6 iomux gpr header fileSascha Hauer2012-12-071-0/+320
| | | | Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* twl6030: add debug infoVicente2012-10-081-0/+8
| | | | | Signed-off-by: Vicente <vicencb@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Merge branch 'for-next/mc13xxx'Sascha Hauer2012-09-051-12/+7
|\
| * mc13xxx: Hide private struct mc13xxx from other unitsAlexander Shiyan2012-09-041-12/+1
| | | | | | | | | | | | | | Board support units must use only the provided functions. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
| * mc13xxx: Added mc13xxx_revision() function.Alexander Shiyan2012-08-101-0/+6
| | | | | | | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* | mfd: add stmpe-i2c driverSteffen Trumtrar2012-09-051-0/+53
|/ | | | | | | | | | The stmpe mfds can be connected via i2c and spi. This driver provides the basic infrastructure for the i2c kind. It can be added as a normal i2c-device in the board code. To enable functions a platform_data struct has to be provided, that describes what parts of the chip are to be used. Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* mc13xxx: Added dummy definitions if CONFIG_MFD_MC13XXX is not setAlexander Shiyan2012-07-241-1/+22
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add MC13783 SWx definitionsAlexander Shiyan2012-04-111-0/+18
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Add MC13783 register definitionsAlexander Shiyan2012-04-111-0/+41
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Rename definition MC13892_REG_IDENTIFICATION to MC13XXX_Alexander Shiyan2012-04-111-1/+2
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Remove unneded mc13xxx_get_revision functionAlexander Shiyan2012-04-111-5/+0
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Rename remainings structs and functions from mc13892_ to mc13xxx_Alexander Shiyan2012-04-111-7/+7
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Make mc13892_revision enum as defineAlexander Shiyan2012-04-111-16/+14
| | | | | Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* Rename mc13892_mode enum to mc13xxx_modeAlexander Shiyan2012-04-111-4/+4
| | | | | | | Also renamed enum values. Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>