I'm trying to build a new device that I bit, bang the I/O Also others to just have simple signal controls.
Below is the portion of my dts file. The example here is the onewire device with two I/O pins being used. And a dbg-tx-sel-pin being defined. I see the onewire defined in the output ...unfix.h file, but the pins never show up there. What am I doing incorrectly?
/*
* Copyright (c) 2020 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
/dts-v1/;
#include <nordic/nrf5340_cpuapp_qkaa.dtsi>
#include "nrf5340_cpuapp_common.dts"
/ {
compatible = "OneDrop";
/delete-property/ arduino_header;
/delete-property/ connector;
/delete-property/ arduino_adc;
/delete-property/ analog-connector;
chosen {
zephyr,sram = &sram0_image;
zephyr,flash = &flash0;
zephyr,code-partition = &slot0_partition;
zephyr,sram-secure-partition = &sram0_s;
zephyr,sram-non-secure-partition = &sram0_ns;
};
//-------------------------
onewire {
nrf-pin = < &gpio0 3 GPIO_ACTIVE_LOW >;
out-pin = < &gpio0 2 GPIO_ACTIVE_LOW >;
};
dbg-tx-sel-pin = < &gpio1 23 GPIO_ACTIVE_LOW >;
//-------------------------
leds {
compatible = "gpio-leds";
led0: led_0 {
gpios = < &gpio0 29 GPIO_ACTIVE_LOW >;
label = "Green LED 0";
};
};