/* * Copyright (c) 2022 Nordic Semiconductor ASA * * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause */ /* * nRF5340 DK (App Core) Overlay for ADS1256 * 仅保留 SPI 和 GPIO 定义 */ &spi1 { compatible = "nordic,nrf-spim"; status = "okay"; pinctrl-0 = <&spi1_default>; pinctrl-1 = <&spi1_sleep>; pinctrl-names = "default", "sleep"; /* CS 引脚配置 */ cs-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; ads1256: ads1256@0 { compatible = "ti,ads1256"; reg = <0>; spi-max-frequency = <1000000>; }; }; &pinctrl { spi1_default: spi1_default { group1 { psels = , , ; }; }; spi1_sleep: spi1_sleep { group1 { psels = , , ; low-power-enable; }; }; }; / { aliases { ads-cs = &ads_cs_pin; ads-drdy = &ads_drdy_pin; ads-reset = &ads_reset_pin; }; ads1256_control { compatible = "gpio-keys"; ads_cs_pin: ads_cs { gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; }; ads_drdy_pin: ads_drdy { gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; }; ads_reset_pin: ads_reset { gpios = <&gpio1 10 GPIO_ACTIVE_LOW>; }; }; };