Fix ADC config for nRF52833
This commit is contained in:
parent
af3a9add74
commit
c76b8dc289
6 changed files with 7 additions and 18 deletions
|
|
@ -13,7 +13,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
zephyr,user {
|
zephyr,user {
|
||||||
io-channels = <&adc 0>, <&adc 1>, <&adc 2>;
|
io-channels = <&adc 0>, <&adc 2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
|
|
@ -43,7 +43,7 @@
|
||||||
compatible = "gpio-keys";
|
compatible = "gpio-keys";
|
||||||
fast_disch: fast_disch {
|
fast_disch: fast_disch {
|
||||||
// P0.25.
|
// P0.25.
|
||||||
gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
|
||||||
label = "Fast discharge circuitry";
|
label = "Fast discharge circuitry";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -108,17 +108,6 @@
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Photo.
|
|
||||||
channel@1 {
|
|
||||||
reg = <1>;
|
|
||||||
zephyr,gain = "ADC_GAIN_1_6";
|
|
||||||
zephyr,reference = "ADC_REF_INTERNAL";
|
|
||||||
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
|
|
||||||
// P0.02.
|
|
||||||
zephyr,input-positive = <NRF_SAADC_AIN0>;
|
|
||||||
zephyr,resolution = <10>;
|
|
||||||
};
|
|
||||||
|
|
||||||
// Battery.
|
// Battery.
|
||||||
channel@2 {
|
channel@2 {
|
||||||
reg = <2>;
|
reg = <2>;
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
ldr_enable: ldr_enable {
|
ldr_enable: ldr_enable {
|
||||||
// P0.29.
|
// P0.29.
|
||||||
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
|
||||||
label = "Fast discharge circuitry";
|
label = "LDR supply";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
photo_transistor_enable: photo_transistor_enable {
|
photo_transistor_enable: photo_transistor_enable {
|
||||||
// P0.29.
|
// P0.29.
|
||||||
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
|
||||||
label = "Fast discharge circuitry";
|
label = "Phototransistor supply";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
zephyr,user {
|
zephyr,user {
|
||||||
io-channels = <&adc 0>, <&adc 2>;
|
io-channels = <&adc 0>, <&adc 2>;
|
||||||
};
|
};
|
||||||
|
|
||||||
leds {
|
leds {
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
ldr_enable: ldr_enable {
|
ldr_enable: ldr_enable {
|
||||||
// P0.29.
|
// P0.29.
|
||||||
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
|
||||||
label = "Fast discharge circuitry";
|
label = "LDR supply";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
photo_transistor_enable: photo_transistor_enable {
|
photo_transistor_enable: photo_transistor_enable {
|
||||||
// P0.29.
|
// P0.29.
|
||||||
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
|
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
|
||||||
label = "Fast discharge circuitry";
|
label = "Phototransistor supply";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue