/openbmc/linux/drivers/regulator/ |
H A D | pfuze100-regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // Copyright (C) 2011-2013 Freescale Semiconductor, Inc. All Rights Reserved. 16 #include <linux/regulator/pfuze100.h> 63 enum chips { PFUZE100, PFUZE200, PFUZE3000 = 3, PFUZE3001 = 0x31, }; enumerator 110 { .compatible = "fsl,pfuze100", .data = (void *)PFUZE100}, 120 struct pfuze_chip *pfuze100 = rdev_get_drvdata(rdev); in pfuze100_set_ramp_delay() local 126 switch (pfuze100->chip_id) { in pfuze100_set_ramp_delay() 137 case PFUZE100: in pfuze100_set_ramp_delay() 146 ramp_bits = (ramp_delay >> 1) - (ramp_delay >> 3); in pfuze100_set_ramp_delay() 149 ret = regmap_update_bits(pfuze100->regmap, in pfuze100_set_ramp_delay() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/regulator/ |
H A D | pfuze100.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/regulator/pfuze100.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: PFUZE100 family of regulators 10 - Robin Gong <yibin.gong@nxp.com> 14 --PFUZE100 16 --PFUZE200 18 --PFUZE3000 20 --PFUZE3001 [all …]
|
/openbmc/u-boot/board/freescale/common/ |
H A D | pfuze.c | 1 // SPDX-License-Identifier: GPL-2.0+ 29 return -EINVAL; in pfuze_mode_init() 38 for (i = 0; i < switch_num - 1; i++) { in pfuze_mode_init() 60 p = pmic_get("PFUZE100"); in pfuze_common_init() 66 printf("PMIC: PFUZE100 ID=0x%02x\n", reg); in pfuze_common_init() 112 return -EINVAL; in pfuze_mode_init() 121 for (i = 0; i < switch_num - 1; i++) { in pfuze_mode_init() 139 ret = pmic_get("pfuze100", &dev); in pfuze_common_init() 140 if (ret == -ENODEV) in pfuze_common_init() 145 printf("PMIC: PFUZE100! DEV_ID=0x%x REV_ID=0x%x\n", dev_id, rev_id); in pfuze_common_init()
|
/openbmc/u-boot/drivers/power/pmic/ |
H A D | pfuze100.c | 1 // SPDX-License-Identifier: GPL-2.0+ 27 return dev->driver_data == PFUZE3000 ? PFUZE3000_NUM_OF_REGS : PFUZE100_NUM_OF_REGS; in pfuze100_reg_count() 35 return -EIO; in pfuze100_write() 45 return -EIO; in pfuze100_read() 59 dev->name); in pfuze100_bind() 60 return -ENXIO; in pfuze100_bind() 63 debug("%s: '%s' - found regulators subnode\n", __func__, dev->name); in pfuze100_bind() 67 debug("%s: %s - no child found\n", __func__, dev->name); in pfuze100_bind() 80 { .compatible = "fsl,pfuze100", .data = PFUZE100, }, 87 .name = "pfuze100 pmic",
|
H A D | pmic_pfuze100.c | 1 // SPDX-License-Identifier: GPL-2.0+ 15 static const char name[] = "PFUZE100"; in power_pfuze100_init() 20 return -ENOMEM; in power_pfuze100_init() 23 p->name = name; in power_pfuze100_init() 24 p->interface = PMIC_I2C; in power_pfuze100_init() 25 p->number_of_regs = PFUZE100_NUM_OF_REGS; in power_pfuze100_init() 26 p->hw.i2c.addr = CONFIG_POWER_PFUZE100_I2C_ADDR; in power_pfuze100_init() 27 p->hw.i2c.tx_num = 1; in power_pfuze100_init() 28 p->bus = bus; in power_pfuze100_init()
|
H A D | Kconfig | 4 ---help--- 5 This config enables the driver-model PMIC support. 6 UCLASS_PMIC - designed to provide an I/O interface for PMIC devices. 7 For the multi-function PMIC devices, this can be used as parent I/O 10 - 'drivers/power/pmic/pmic-uclass.c' 11 - 'include/power/pmic.h' 17 ---help--- 21 U-Boot proper. 27 ---help--- 35 bool "Enable support for the active-semi 8846 PMIC" [all …]
|
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0+ 6 obj-$(CONFIG_DM_PMIC) += pmic-uclass.o 7 obj-$(CONFIG_DM_PMIC_FAN53555) += fan53555.o 8 obj-$(CONFIG_DM_PMIC_MAX77686) += max77686.o 9 obj-$(CONFIG_DM_PMIC_MAX8998) += max8998.o 10 obj-$(CONFIG_DM_PMIC_MC34708) += mc34708.o 11 obj-$(CONFIG_$(SPL_)DM_PMIC_PFUZE100) += pfuze100.o 12 obj-$(CONFIG_PMIC_S2MPS11) += s2mps11.o 13 obj-$(CONFIG_DM_PMIC_SANDBOX) += sandbox.o i2c_pmic_emul.o 14 obj-$(CONFIG_PMIC_ACT8846) += act8846.o [all …]
|
/openbmc/u-boot/board/freescale/mx6sllevk/ |
H A D | mx6sllevk.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 #include <asm/arch/imx-regs.h> 10 #include <asm/arch/mx6-pins.h> 13 #include <asm/mach-imx/iomux-v3.h> 14 #include <asm/mach-imx/boot_mode.h> 31 gd->ram_size = imx_ddr_size(); in dram_init() 59 ret = pmic_get("pfuze100", &dev); in power_init_board() 60 if (ret == -ENODEV) in power_init_board() 68 printf("PMIC: PFUZE100! DEV_ID=0x%x REV_ID=0x%x\n", dev_id, rev_id); in power_init_board() 74 for (i = 0; i < switch_num - 1; i++) in power_init_board() [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | imx6dl-mamoj.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 14 compatible = "bticino,imx6dl-mamoj", "fsl,imx6dl"; 18 pinctrl-names = "default"; 19 pinctrl-0 = <&pinctrl_enet>; 20 phy-mode = "mii"; 25 clock-frequency = <400000>; 26 pinctrl-names = "default"; 27 pinctrl-0 = <&pinctrl_i2c3>; [all …]
|
H A D | imx6-logicpd-som.dtsi | 3 * This file is adapted from imx6qdl-sabresd.dtsi. 11 * http://www.opensource.org/licenses/gpl-license.html 15 #include <dt-bindings/gpio/gpio.h> 16 #include <dt-bindings/input/input.h> 20 stdout-path = &uart1; 27 reg_wl18xx_vmmc: regulator-wl18xx { 28 compatible = "regulator-fixed"; 29 regulator-name = "vwl1837"; 30 regulator-min-microvolt = <3300000>; 31 regulator-max-microvolt = <3300000>; [all …]
|
H A D | fsl-imx8mq-evk.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 6 /dts-v1/; 11 #include "fsl-imx8mq.dtsi" 15 compatible = "fsl,imx8mq-evk", "fsl,imx8mq"; 22 compatible = "simple-bus"; 23 #address-cells = <1>; 24 #size-cells = <0>; 27 compatible = "regulator-fixed"; 28 regulator-name = "VSD_3V3"; 29 regulator-min-microvolt = <3300000>; [all …]
|
/openbmc/u-boot/include/power/ |
H A D | pfuze100_pmic.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 11 enum {PFUZE100 = 0x10, PFUZE200 = 0x11, PFUZE3000 = 0x30}; enumerator 15 /* PFUZE100 registers */ 75 #define PFUZE100_SW1ABC_SETP(x) ((x - 3000) / 250)
|
/openbmc/u-boot/drivers/power/regulator/ |
H A D | pfuze100.c | 1 // SPDX-License-Identifier: GPL-2.0+ 18 * struct pfuze100_regulator_desc - regulator descriptor 43 * struct pfuze100_regulator_platdata - platform data for pfuze100 45 * @desc: Points the description entry of one regulator of pfuze100 148 1000000, 1100000, 1200000, 1300000, 1500000, 1800000, 3000000, -1 152 -1, -1, -1, -1, -1, -1, 3000000, -1 159 /* PFUZE100 */ 252 if (!strcmp(desc->name, name)) in se_desc() 267 case PFUZE100: in pfuze100_regulator_probe() 270 dev->name); in pfuze100_regulator_probe() [all …]
|
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0+ 7 obj-$(CONFIG_$(SPL_)DM_REGULATOR) += regulator-uclass.o 8 obj-$(CONFIG_REGULATOR_ACT8846) += act8846.o 9 obj-$(CONFIG_REGULATOR_AS3722) += as3722_regulator.o 10 obj-$(CONFIG_DM_REGULATOR_MAX77686) += max77686.o 11 obj-$(CONFIG_$(SPL_)DM_PMIC_PFUZE100) += pfuze100.o 12 obj-$(CONFIG_$(SPL_)REGULATOR_PWM) += pwm_regulator.o 13 obj-$(CONFIG_$(SPL_)DM_REGULATOR_FAN53555) += fan53555.o 14 obj-$(CONFIG_$(SPL_)DM_REGULATOR_FIXED) += fixed.o 15 obj-$(CONFIG_$(SPL_)DM_REGULATOR_GPIO) += gpio-regulator.o [all …]
|
H A D | Kconfig | 4 ---help--- 6 UCLASS_REGULATOR - designed to provide a common API for basic regulator's 10 - 'include/power/pmic.h' 11 - 'include/power/regulator.h' 12 - 'drivers/power/pmic/pmic-uclass.c' 13 - 'drivers/power/pmic/regulator-uclass.c' 22 ---help--- 31 ---help--- 42 driver implements enable/disable for step-down bucks and LDOs, 47 bool "Enable Driver Model for REGULATOR PFUZE100" [all …]
|
/openbmc/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6qdl-tqma6b.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright 2013-2017 Markus Niebel <Markus.Niebel@tq-group.com> 7 #include <dt-bindings/gpio/gpio.h> 10 pinctrl-names = "default", "gpio"; 11 pinctrl-0 = <&pinctrl_i2c3>; 12 pinctrl-1 = <&pinctrl_i2c3_recovery>; 13 scl-gpios = <&gpio1 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 14 sda-gpios = <&gpio1 6 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; 15 clock-frequency = <100000>; 19 compatible = "fsl,pfuze100"; [all …]
|
H A D | imx6qdl-tqma6a.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright 2013-2017 Markus Niebel <Markus.Niebel@tq-group.com> 7 #include <dt-bindings/gpio/gpio.h> 10 /delete-property/ interrupts; 11 interrupts-extended = <&gpio1 6 IRQ_TYPE_LEVEL_HIGH>, 13 fsl,err006687-workaround-present; 17 pinctrl-names = "default", "gpio"; 18 pinctrl-0 = <&pinctrl_i2c1>; 19 pinctrl-1 = <&pinctrl_i2c1_recovery>; 20 scl-gpios = <&gpio5 27 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; [all …]
|
H A D | imx6-logicpd-som.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 5 #include <dt-bindings/gpio/gpio.h> 6 #include <dt-bindings/input/input.h> 10 stdout-path = &uart1; 18 reg_wl18xx_vmmc: regulator-wl18xx { 19 compatible = "regulator-fixed"; 20 regulator-name = "vwl1837"; 21 regulator-min-microvolt = <3300000>; 22 regulator-max-microvolt = <3300000>; 24 startup-delay-us = <70000>; [all …]
|
H A D | imx6qdl-ds.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 5 // Based on imx6qdl-sabresd.dtsi which is: 9 #include <dt-bindings/clock/imx6qdl-clock.h> 10 #include <dt-bindings/gpio/gpio.h> 11 #include <dt-bindings/input/input.h> 15 stdout-path = &uart4; 23 reg_usb_otg_vbus: regulator-usb-otg-vbus { 24 compatible = "regulator-fixed"; 25 regulator-name = "usb_otg_vbus"; 26 regulator-min-microvolt = <5000000>; [all …]
|
/openbmc/u-boot/board/kosagi/novena/ |
H A D | novena.c | 1 // SPDX-License-Identifier: GPL-2.0+ 14 #include <asm/arch/imx-regs.h> 18 #include <asm/mach-imx/boot_mode.h> 19 #include <asm/mach-imx/iomux-v3.h> 20 #include <asm/mach-imx/mxc_i2c.h> 21 #include <asm/mach-imx/sata.h> 22 #include <asm/mach-imx/video.h> 89 return -1; in drv_keyboard_init() 113 struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; in board_mmc_getcd() 116 if (cfg->esdhc_base == USDHC3_BASE_ADDR) in board_mmc_getcd() [all …]
|
/openbmc/u-boot/board/freescale/imx8mq_evk/ |
H A D | spl.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * SPDX-License-Identifier: GPL-2.0+ 16 #include <asm/mach-imx/iomux-v3.h> 17 #include <asm/mach-imx/gpio.h> 18 #include <asm/mach-imx/mxc_i2c.h> 60 struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; in board_mmc_getcd() 63 switch (cfg->esdhc_base) { in board_mmc_getcd() 114 * (U-Boot device node) (Physical Port) in board_mmc_init() 142 return -EINVAL; in board_mmc_init() 163 return -ENODEV; in power_init_board() [all …]
|
/openbmc/u-boot/board/tqc/tqma6/ |
H A D | tqma6.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Author: Markus Niebel <markus.niebel@tq-group.com> 11 #include <asm/arch/mx6-pins.h> 12 #include <asm/arch/imx-regs.h> 18 #include <asm/mach-imx/mxc_i2c.h> 19 #include <asm/mach-imx/spi.h> 54 gd->ram_size = imx_ddr_size(); in dram_init() 79 * (U-Boot device node) (Physical Port) 90 struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; in board_mmc_getcd() 93 if (cfg->esdhc_base == USDHC3_BASE_ADDR) in board_mmc_getcd() [all …]
|
/openbmc/u-boot/board/wandboard/ |
H A D | wandboard.c | 1 // SPDX-License-Identifier: GPL-2.0+ 12 #include <asm/arch/imx-regs.h> 13 #include <asm/arch/mx6-pins.h> 17 #include <asm/mach-imx/iomux-v3.h> 18 #include <asm/mach-imx/mxc_i2c.h> 19 #include <asm/mach-imx/boot_mode.h> 20 #include <asm/mach-imx/video.h> 21 #include <asm/mach-imx/sata.h> 61 gd->ram_size = imx_ddr_size(); in dram_init() 153 struct fsl_esdhc_cfg *cfg = (struct fsl_esdhc_cfg *)mmc->priv; in board_mmc_getcd() [all …]
|
/openbmc/u-boot/board/freescale/mx6sxsabreauto/ |
H A D | mx6sxsabreauto.c | 1 // SPDX-License-Identifier: GPL-2.0+ 11 #include <asm/arch/imx-regs.h> 12 #include <asm/arch/mx6-pins.h> 15 #include <asm/mach-imx/iomux-v3.h> 16 #include <asm/mach-imx/boot_mode.h> 27 #include <usb/ehci-ci.h> 53 gd->ram_size = imx_ddr_size(); in dram_init() 90 clrsetbits_le32(&iomuxc_regs->gpr[1], IOMUX_GPR1_FEC2_MASK, 0); in setup_fec() 123 if (phydev->drv->config) in board_phy_config() 124 phydev->drv->config(phydev); in board_phy_config() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mq-tqma8mq.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0-or-later OR MIT) 3 * Copyright 2019-2021 TQ-Systems GmbH 9 model = "TQ-Systems GmbH i.MX8MQ TQMa8MQ"; 10 compatible = "tq,imx8mq-tqma8mq", "fsl,imx8mq"; 18 /* e-MMC IO, needed for HS modes */ 19 reg_vcc1v8: regulator-vcc1v8 { 20 compatible = "regulator-fixed"; 21 regulator-name = "TQMA8MX_VCC1V8"; 22 regulator-min-microvolt = <1800000>; 23 regulator-max-microvolt = <1800000>; [all …]
|