Home
last modified time | relevance | path

Searched refs:adc (Results 1 – 25 of 129) sorted by relevance

123456

/u-boot/drivers/adc/
A Dstm32-adc.c70 struct stm32_adc *adc = dev_get_priv(dev); in stm32_adc_stop() local
76 adc->active_channel = -1; in stm32_adc_stop()
85 struct stm32_adc *adc = dev_get_priv(dev); in stm32_adc_start_channel() local
96 if (!adc->cfg->has_vregready) { in stm32_adc_start_channel()
110 writel(0, adc->regs + STM32H7_ADC_DIFSEL); in stm32_adc_start_channel()
135 adc->active_channel = channel; in stm32_adc_start_channel()
143 struct stm32_adc *adc = dev_get_priv(dev); in stm32_adc_channel_data() local
147 if (channel != adc->active_channel) { in stm32_adc_channel_data()
160 *data = readl(adc->regs + STM32H7_ADC_DR); in stm32_adc_channel_data()
168 struct stm32_adc *adc = dev_get_priv(dev); in stm32_adc_chan_of_init() local
[all …]
A DMakefile7 obj-$(CONFIG_ADC) += adc-uclass.o
8 obj-$(CONFIG_ADC_EXYNOS) += exynos-adc.o
12 obj-$(CONFIG_STM32_ADC) += stm32-adc.o stm32-adc-core.o
/u-boot/doc/device-tree-bindings/adc/
A Dst,stm32-adc.txt25 "st,stm32f4-adc-core"
26 "st,stm32h7-adc-core"
27 "st,stm32mp1-adc-core"
57 "st,stm32f4-adc"
58 "st,stm32h7-adc"
59 "st,stm32mp1-adc"
65 2 for adc@200).
97 adc: adc@40012000 {
112 adc@0 {
132 adc: adc@40022000 {
[all …]
A Dadc.txt24 adc@1000000 {
25 compatible = "some-adc";
55 adc@0 {
56 compatible = "sandbox,adc";
/u-boot/board/samsung/universal_c210/
A Duniversal.c53 struct s5p_adc *adc = (struct s5p_adc *)samsung_get_base_adc(); in get_adc_value() local
58 writel(channel & 0xF, &adc->adcmux); in get_adc_value()
59 writel((1 << 14) | (49 << 6), &adc->adccon); in get_adc_value()
60 writel(1000 & 0xffff, &adc->adcdly); in get_adc_value()
61 writel(readl(&adc->adccon) | (1 << 16), &adc->adccon); /* 12 bit */ in get_adc_value()
63 writel(readl(&adc->adccon) | (1 << 0), &adc->adccon); /* Enable */ in get_adc_value()
68 reg = readl(&adc->adccon); in get_adc_value()
71 ret = readl(&adc->adcdat0) & 0xFFF; in get_adc_value()
/u-boot/drivers/button/
A Dbutton-adc.c26 struct udevice *adc; member
38 ret = adc_start_channel(priv->adc, priv->channel); in button_adc_get_state()
42 ret = adc_channel_data(priv->adc, priv->channel, &val); in button_adc_get_state()
46 ret = adc_raw_to_uV(priv->adc, val, &uV); in button_adc_get_state()
71 ret = uclass_get_device_by_ofnode(UCLASS_ADC, args.node, &priv->adc); in button_adc_of_to_plat()
A DMakefile6 obj-$(CONFIG_BUTTON_ADC) += button-adc.o
/u-boot/doc/device-tree-bindings/input/
A Dadc-keys.txt5 - compatible: "adc-keys"
16 Each button (key) is represented as a sub-node of "adc-keys":
32 adc-keys {
33 compatible = "adc-keys";
/u-boot/arch/arm/dts/
A Dat91sam9x5dm.dtsi50 adc0: adc@f804c000 {
51 atmel,adc-ts-wires = <4>;
52 atmel,adc-ts-pressure-threshold = <10000>;
A Dsama5d3xdm.dtsi51 adc0: adc@f8018000 {
52 atmel,adc-ts-wires = <4>;
53 atmel,adc-ts-pressure-threshold = <10000>;
A Dstm32mp157c-odyssey.dts36 &adc {
43 adc1: adc@0 {
52 st,adc-channels = <0 1 6 13 18 19>;
55 adc2: adc@100 {
57 st,adc-channels = <0 1 2 6 18 19>;
A Dat91sam9g20.dtsi38 adc0: adc@fffe0000 {
39 atmel,adc-startup-time = <40>;
A Dstm32h743.dtsi249 adc_12: adc@40022000 {
250 compatible = "st,stm32h7-adc-core";
261 adc1: adc@0 {
262 compatible = "st,stm32h7-adc";
270 adc2: adc@100 {
271 compatible = "st,stm32h7-adc";
488 adc_3: adc@58026000 {
489 compatible = "st,stm32h7-adc-core";
500 adc3: adc@0 {
501 compatible = "st,stm32h7-adc";
A Dstm32f429.dtsi479 adc: adc@40012000 { label
484 clock-names = "adc";
491 adc1: adc@0 {
492 compatible = "st,stm32f4-adc";
496 interrupt-parent = <&adc>;
503 adc2: adc@100 {
504 compatible = "st,stm32f4-adc";
508 interrupt-parent = <&adc>;
515 adc3: adc@200 {
516 compatible = "st,stm32f4-adc";
[all …]
A Dat91sam9x5ek.dtsi74 adc0: adc@f804c000 {
75 atmel,adc-ts-wires = <4>;
76 atmel,adc-ts-pressure-threshold = <10000>;
A Daxp803.dtsi19 axp_adc: adc {
20 compatible = "x-powers,axp803-adc", "x-powers,axp813-adc";
A Dmeson-gxm-wetek-core2.dts33 adc-keys {
34 compatible = "adc-keys";
A Drk3308-evb.dts19 adc-keys0 {
20 compatible = "adc-keys";
33 adc-keys1 {
34 compatible = "adc-keys";
A Dk3-am65-mcu.dtsi95 adc {
97 compatible = "ti,am654-adc", "ti,am3359-adc";
113 adc {
115 compatible = "ti,am654-adc", "ti,am3359-adc";
A Drk3399-nanopc-t4.dts35 adc-keys {
36 compatible = "adc-keys";
A Dstm32429i-eval.dts124 &adc {
130 adc3: adc@200 {
131 st,adc-channels = <8>;
A Dstm32mp157c-odyssey-u-boot.dtsi27 &adc {
A Dsocfpga_arria10_socdk.dtsi138 adc@14 {
144 adc@16 {
/u-boot/arch/arm/lib/
A Dmuldi3.S40 adc xh, xh, yh, lsr #16
42 adc xh, xh, ip, lsr #16
/u-boot/board/st/stm32mp1/
A Dstm32mp1.c296 struct udevice *adc; in adc_measurement() local
310 &adc); in adc_measurement()
317 ret = adc_channel_single_shot(adc->name, adc_args.args[0], in adc_measurement()
321 adc->name, adc_args.args[0]); in adc_measurement()
325 if (!adc_raw_to_uV(adc, raw, &uV)) { in adc_measurement()
331 adc->name, adc_args.args[0], raw, uV); in adc_measurement()
334 adc->name, adc_args.args[0]); in adc_measurement()

Completed in 27 milliseconds

123456