/openbmc/linux/Documentation/devicetree/bindings/regulator/ |
H A D | anatop-regulator.yaml | 4 $id: http://devicetree.org/schemas/regulator/anatop-regulator.yaml# 7 title: Freescale Anatop Voltage Regulators 17 const: fsl,anatop-regulator 21 anatop-reg-offset: 23 description: u32 value representing the anatop MFD register offset. 25 anatop-vol-bit-shift: 29 anatop-vol-bit-width: 33 anatop-min-bit-val: 37 anatop-min-voltage: 41 anatop-max-voltage: [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/clock/ |
H A D | fsl,imx8m-anatop.yaml | 4 $id: http://devicetree.org/schemas/clock/fsl,imx8m-anatop.yaml# 7 title: NXP i.MX8M Family Anatop Module 13 NXP i.MX8M Family anatop PLL module which generates PLL to CCM root. 19 - fsl,imx8mm-anatop 20 - fsl,imx8mq-anatop 23 - fsl,imx8mn-anatop 24 - fsl,imx8mp-anatop 25 - const: fsl,imx8mm-anatop 45 anatop: clock-controller@30360000 { 46 compatible = "fsl,imx8mn-anatop", "fsl,imx8mm-anatop";
|
/openbmc/linux/arch/arm/mach-imx/ |
H A D | anatop.c | 35 static struct regmap *anatop; variable 41 regmap_read(anatop, ANADIG_ANA_MISC0, &val); in imx_anatop_enable_weak2p5() 47 regmap_write(anatop, reg, BM_ANADIG_REG_2P5_ENABLE_WEAK_LINREG); in imx_anatop_enable_weak2p5() 52 regmap_write(anatop, ANADIG_REG_CORE + (enable ? REG_SET : REG_CLR), in imx_anatop_enable_fet_odrive() 58 regmap_write(anatop, ANADIG_REG_2P5 + (enable ? REG_SET : REG_CLR), in imx_anatop_enable_2p5_pulldown() 64 regmap_write(anatop, ANADIG_ANA_MISC0 + (enable ? REG_SET : REG_CLR), in imx_anatop_disconnect_high_snvs() 103 np = of_find_compatible_node(NULL, NULL, "fsl,imx6q-anatop"); in imx_init_revision_from_anatop() 106 if (of_device_is_compatible(np, "fsl,imx6sl-anatop")) in imx_init_revision_from_anatop() 108 if (of_device_is_compatible(np, "fsl,imx7d-anatop")) in imx_init_revision_from_anatop() 117 if (of_device_is_compatible(np, "fsl,imx7d-anatop")) { in imx_init_revision_from_anatop() [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | imx6sl.dtsi | 512 anatop: anatop@020c8000 { label 513 compatible = "fsl,imx6sl-anatop", 514 "fsl,imx6q-anatop", 522 compatible = "fsl,anatop-regulator"; 527 anatop-reg-offset = <0x110>; 528 anatop-vol-bit-shift = <8>; 529 anatop-vol-bit-width = <5>; 530 anatop-min-bit-val = <4>; 531 anatop-min-voltage = <800000>; 532 anatop-max-voltage = <1375000>; [all …]
|
H A D | imx6sx.dtsi | 561 anatop: anatop@020c8000 { label 562 compatible = "fsl,imx6sx-anatop", "fsl,imx6q-anatop", 570 compatible = "fsl,anatop-regulator"; 575 anatop-reg-offset = <0x110>; 576 anatop-vol-bit-shift = <8>; 577 anatop-vol-bit-width = <5>; 578 anatop-min-bit-val = <4>; 579 anatop-min-voltage = <800000>; 580 anatop-max-voltage = <1375000>; 584 compatible = "fsl,anatop-regulator"; [all …]
|
H A D | imx6qdl.dtsi | 77 fsl,tempmon = <&anatop>; 682 anatop: anatop@20c8000 { label 683 compatible = "fsl,imx6q-anatop", "syscon", "simple-bus"; 690 compatible = "fsl,anatop-regulator"; 695 anatop-reg-offset = <0x110>; 696 anatop-vol-bit-shift = <8>; 697 anatop-vol-bit-width = <5>; 698 anatop-min-bit-val = <4>; 699 anatop-min-voltage = <800000>; 700 anatop-max-voltage = <1375000>; [all …]
|
H A D | imx6ul.dtsi | 520 anatop: anatop@020c8000 { label 521 compatible = "fsl,imx6ul-anatop", "fsl,imx6q-anatop", 529 compatible = "fsl,anatop-regulator"; 533 anatop-reg-offset = <0x120>; 534 anatop-vol-bit-shift = <8>; 535 anatop-vol-bit-width = <5>; 536 anatop-min-bit-val = <0>; 537 anatop-min-voltage = <2625000>; 538 anatop-max-voltage = <3400000>; 539 anatop-enable-bit = <0>; [all …]
|
H A D | imx6ull.dtsi | 612 anatop: anatop@020c8000 { label 613 compatible = "fsl,imx6ul-anatop", "fsl,imx6q-anatop", 621 compatible = "fsl,anatop-regulator"; 625 anatop-reg-offset = <0x120>; 626 anatop-vol-bit-shift = <8>; 627 anatop-vol-bit-width = <5>; 628 anatop-min-bit-val = <0>; 629 anatop-min-voltage = <2625000>; 630 anatop-max-voltage = <3400000>; 631 anatop-enable-bit = <0>; [all …]
|
H A D | imx6sll.dtsi | 501 anatop: anatop@020c8000 { label 502 compatible = "fsl,imx6sll-anatop", 503 "fsl,imx6q-anatop", 511 compatible = "fsl,anatop-regulator"; 515 anatop-reg-offset = <0x120>; 516 anatop-vol-bit-shift = <8>; 517 anatop-vol-bit-width = <5>; 518 anatop-min-bit-val = <0>; 519 anatop-min-voltage = <2625000>; 520 anatop-max-voltage = <3400000>; [all …]
|
H A D | imx7s.dtsi | 547 fsl,tempmon =<&anatop>; 554 anatop: anatop@30360000 { label 555 compatible = "fsl,imx7d-anatop", "fsl,imx6q-anatop", 565 compatible = "fsl,anatop-regulator"; 569 anatop-reg-offset = <0x210>; 570 anatop-vol-bit-shift = <8>; 571 anatop-vol-bit-width = <5>; 572 anatop-min-bit-val = <8>; 573 anatop-min-voltage = <800000>; 574 anatop-max-voltage = <1200000>; [all …]
|
/openbmc/linux/arch/arm/boot/dts/nxp/imx/ |
H A D | imx6sl.dtsi | 522 anatop: anatop@20c8000 { label 523 compatible = "fsl,imx6sl-anatop", 524 "fsl,imx6q-anatop", 532 compatible = "fsl,anatop-regulator"; 537 anatop-reg-offset = <0x110>; 538 anatop-vol-bit-shift = <8>; 539 anatop-vol-bit-width = <5>; 540 anatop-min-bit-val = <4>; 541 anatop-min-voltage = <800000>; 542 anatop-max-voltage = <1375000>; [all …]
|
H A D | imx6qdl.dtsi | 690 anatop: anatop@20c8000 { label 691 compatible = "fsl,imx6q-anatop", "syscon", "simple-mfd"; 698 compatible = "fsl,anatop-regulator"; 703 anatop-reg-offset = <0x110>; 704 anatop-vol-bit-shift = <8>; 705 anatop-vol-bit-width = <5>; 706 anatop-min-bit-val = <4>; 707 anatop-min-voltage = <800000>; 708 anatop-max-voltage = <1375000>; 709 anatop-enable-bit = <0>; [all …]
|
H A D | imx6sx.dtsi | 615 anatop: anatop@20c8000 { label 616 compatible = "fsl,imx6sx-anatop", "fsl,imx6q-anatop", 624 compatible = "fsl,anatop-regulator"; 629 anatop-reg-offset = <0x110>; 630 anatop-vol-bit-shift = <8>; 631 anatop-vol-bit-width = <5>; 632 anatop-min-bit-val = <4>; 633 anatop-min-voltage = <800000>; 634 anatop-max-voltage = <1375000>; 635 anatop-enable-bit = <0>; [all …]
|
H A D | imx6ul.dtsi | 577 anatop: anatop@20c8000 { label 578 compatible = "fsl,imx6ul-anatop", "fsl,imx6q-anatop", 586 compatible = "fsl,anatop-regulator"; 590 anatop-reg-offset = <0x120>; 591 anatop-vol-bit-shift = <8>; 592 anatop-vol-bit-width = <5>; 593 anatop-min-bit-val = <0>; 594 anatop-min-voltage = <2625000>; 595 anatop-max-voltage = <3400000>; 596 anatop-enable-bit = <0>; [all …]
|
H A D | imx6sll.dtsi | 502 anatop: anatop@20c8000 { label 503 compatible = "fsl,imx6sll-anatop", 504 "fsl,imx6q-anatop", 514 compatible = "fsl,anatop-regulator"; 519 anatop-reg-offset = <0x120>; 520 anatop-vol-bit-shift = <8>; 521 anatop-vol-bit-width = <5>; 522 anatop-min-bit-val = <0>; 523 anatop-min-voltage = <2625000>; 524 anatop-max-voltage = <3400000>; [all …]
|
H A D | imx7s.dtsi | 569 anatop: anatop@30360000 { label 570 compatible = "fsl,imx7d-anatop", "fsl,imx6q-anatop", 577 compatible = "fsl,anatop-regulator"; 581 anatop-reg-offset = <0x210>; 582 anatop-vol-bit-shift = <8>; 583 anatop-vol-bit-width = <5>; 584 anatop-min-bit-val = <8>; 585 anatop-min-voltage = <800000>; 586 anatop-max-voltage = <1200000>; 587 anatop-enable-bit = <0>; [all …]
|
H A D | imxrt1050.dtsi | 46 anatop: anatop@400d8000 { label 47 compatible = "fsl,imxrt-anatop";
|
/openbmc/linux/drivers/regulator/ |
H A D | anatop-regulator.c | 203 ret = of_property_read_u32(np, "anatop-reg-offset", &control_reg); in anatop_regulator_probe() 205 dev_err(dev, "no anatop-reg-offset property set\n"); in anatop_regulator_probe() 208 ret = of_property_read_u32(np, "anatop-vol-bit-width", &vol_bit_width); in anatop_regulator_probe() 210 dev_err(dev, "no anatop-vol-bit-width property set\n"); in anatop_regulator_probe() 213 ret = of_property_read_u32(np, "anatop-vol-bit-shift", &vol_bit_shift); in anatop_regulator_probe() 215 dev_err(dev, "no anatop-vol-bit-shift property set\n"); in anatop_regulator_probe() 218 ret = of_property_read_u32(np, "anatop-min-bit-val", &min_bit_val); in anatop_regulator_probe() 220 dev_err(dev, "no anatop-min-bit-val property set\n"); in anatop_regulator_probe() 223 ret = of_property_read_u32(np, "anatop-min-voltage", &min_voltage); in anatop_regulator_probe() 225 dev_err(dev, "no anatop-min-voltage property set\n"); in anatop_regulator_probe() [all …]
|
/openbmc/u-boot/drivers/thermal/ |
H A D | imx_thermal.c | 54 struct anatop_regs *anatop = (struct anatop_regs *)pdata->regs; in read_cpu_temperature() local 101 writel(TEMPSENSE0_POWER_DOWN, &anatop->tempsense0_clr); in read_cpu_temperature() 102 writel(MISC0_REFTOP_SELBIASOFF, &anatop->ana_misc0_set); in read_cpu_temperature() 105 reg = readl(&anatop->tempsense1); in read_cpu_temperature() 108 writel(reg, &anatop->tempsense1); in read_cpu_temperature() 111 writel(TEMPSENSE0_MEASURE_TEMP, &anatop->tempsense0_clr); in read_cpu_temperature() 112 writel(TEMPSENSE0_FINISHED, &anatop->tempsense0_clr); in read_cpu_temperature() 113 writel(TEMPSENSE0_MEASURE_TEMP, &anatop->tempsense0_set); in read_cpu_temperature() 116 while ((readl(&anatop->tempsense0) & in read_cpu_temperature() 121 reg = readl(&anatop->tempsense0); in read_cpu_temperature() [all …]
|
/openbmc/u-boot/arch/arm/mach-imx/mx6/ |
H A D | soc.c | 68 struct anatop_regs *anatop = (struct anatop_regs *)ANATOP_BASE_ADDR; in get_cpu_rev() local 69 u32 reg = readl(&anatop->digprog_sololite); in get_cpu_rev() 74 reg = readl(&anatop->digprog); in get_cpu_rev() 229 struct anatop_regs *anatop = (struct anatop_regs *)ANATOP_BASE_ADDR; in clear_ldo_ramp() local 236 reg = readl(&anatop->ana_misc2); in clear_ldo_ramp() 238 writel(reg, &anatop->ana_misc2); in clear_ldo_ramp() 250 struct anatop_regs *anatop = (struct anatop_regs *)ANATOP_BASE_ADDR; in set_ldo_voltage() local 251 u32 val, step, old, reg = readl(&anatop->reg_core); in set_ldo_voltage() 287 writel(reg, &anatop->reg_core); in set_ldo_voltage() 328 struct anatop_regs *anatop = (struct anatop_regs *)ANATOP_BASE_ADDR; in init_bandgap() local [all …]
|
H A D | clock.c | 910 struct anatop_regs __iomem *anatop = in enable_fec_anatop_clock() local 916 reg = readl(&anatop->pll_enet); in enable_fec_anatop_clock() 934 writel(reg, &anatop->pll_enet); in enable_fec_anatop_clock() 936 if (readl(&anatop->pll_enet) & BM_ANADIG_PLL_ENET_LOCK) in enable_fec_anatop_clock() 949 writel(reg, &anatop->pll_enet); in enable_fec_anatop_clock() 1117 * MX6RM. The register that is mapped in the ANATOP space and in enable_pcie_clock() 1194 struct anatop_regs __iomem *anatop = in enable_pll3() local 1198 if ((readl(&anatop->usb1_pll_480_ctrl) & in enable_pll3() 1202 &anatop->usb1_pll_480_ctrl_set); in enable_pll3() 1203 writel(0x80, &anatop->ana_misc2_clr); in enable_pll3() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/phy/ |
H A D | fsl,mxs-usbphy.yaml | 53 fsl,anatop: 55 phandle for anatop register, it is only for imx6 SoC series. 111 - fsl,anatop 125 fsl,anatop = <&anatop>;
|
/openbmc/linux/Documentation/devicetree/bindings/thermal/ |
H A D | imx-thermal.yaml | 50 description: Phandle to anatop system controller node. 93 anatop@20c8000 { 94 compatible = "fsl,imx6q-anatop", "syscon", "simple-mfd"; 103 fsl,tempmon = <&anatop>;
|
/openbmc/u-boot/drivers/usb/host/ |
H A D | ehci-mx6.c | 86 struct anatop_regs __iomem *anatop = in usb_power_config() local 94 chrg_detect = &anatop->usb1_chrg_detect; in usb_power_config() 95 pll_480_ctrl_clr = &anatop->usb1_pll_480_ctrl_clr; in usb_power_config() 96 pll_480_ctrl_set = &anatop->usb1_pll_480_ctrl_set; in usb_power_config() 99 chrg_detect = &anatop->usb2_chrg_detect; in usb_power_config() 100 pll_480_ctrl_clr = &anatop->usb2_pll_480_ctrl_clr; in usb_power_config() 101 pll_480_ctrl_set = &anatop->usb2_pll_480_ctrl_set; in usb_power_config()
|
/openbmc/linux/drivers/usb/phy/ |
H A D | phy-mxs-usb.c | 72 /* Anatop Registers */ 403 /* If the SoCs don't have anatop, quit */ in mxs_phy_disconnect_line() 462 /* If the SoCs don't have anatop, quit */ in mxs_phy_is_low_speed_connection() 730 /* Some SoCs don't have anatop registers */ in mxs_phy_probe() 731 if (of_property_present(np, "fsl,anatop")) { in mxs_phy_probe() 733 (np, "fsl,anatop"); in mxs_phy_probe() 736 "failed to find regmap for anatop\n"); in mxs_phy_probe() 811 /* If the SoCs don't have anatop, quit */ in mxs_phy_enable_ldo_in_suspend()
|