Merge pull request #89 from rbaron/nrf52833-adc-fix

Fix ADC config for nRF52833
This commit is contained in:
rbaron 2022-12-24 09:48:12 +01:00 committed by GitHub
commit a34b1f8721
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 18 deletions

View file

@ -13,7 +13,7 @@
};
zephyr,user {
io-channels = <&adc 0>, <&adc 1>, <&adc 2>;
io-channels = <&adc 0>, <&adc 2>;
};
leds {
@ -43,7 +43,7 @@
compatible = "gpio-keys";
fast_disch: fast_disch {
// P0.25.
gpios = <&gpio1 10 GPIO_ACTIVE_HIGH>;
gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>;
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.
channel@2 {
reg = <2>;

View file

@ -12,7 +12,7 @@
ldr_enable: ldr_enable {
// P0.29.
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
label = "Fast discharge circuitry";
label = "LDR supply";
};
};
};

View file

@ -11,7 +11,7 @@
photo_transistor_enable: photo_transistor_enable {
// P0.29.
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
label = "Fast discharge circuitry";
label = "Phototransistor supply";
};
};
};

View file

@ -13,7 +13,7 @@
};
zephyr,user {
io-channels = <&adc 0>, <&adc 2>;
io-channels = <&adc 0>, <&adc 2>;
};
leds {

View file

@ -12,7 +12,7 @@
ldr_enable: ldr_enable {
// P0.29.
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
label = "Fast discharge circuitry";
label = "LDR supply";
};
};
};

View file

@ -11,7 +11,7 @@
photo_transistor_enable: photo_transistor_enable {
// P0.29.
gpios = <&gpio0 29 GPIO_ACTIVE_HIGH>;
label = "Fast discharge circuitry";
label = "Phototransistor supply";
};
};
};