Compile Time Issues with creating a custom driver for SIM7070G, using zephyr and nrf connect SDK v2.6.0

Hi, I am using zephyr and have created a custom DTS for nrf52840 soc. I am using SIM7070G and have created a custom driver for it which is located in (zephyr/drivers/modem/simcom-sim7070g.h). The issue I am facing now is that the main file cannot seem to be getting path for SIM7070G. I have the corrected CONFIGs enabled in prj.conf, have already modified the CMakeLists.txt for modem, alongside modifications in Kconfig and Kconfig for simcom as well, also have added .yaml file in bindings as well. But for some reason it doesn't seem to be working as well either. The file cannot seem to be getting the path for it. 

CMakeLists.txt present in modem folder

# SPDX-License-Identifier: Apache-2.0

zephyr_library()

zephyr_library_sources_ifdef(CONFIG_MODEM_RECEIVER modem_receiver.c)
zephyr_library_sources_ifdef(CONFIG_MODEM_SHELL modem_shell.c)

zephyr_library_sources_ifdef(CONFIG_MODEM_CONTEXT modem_context.c)

zephyr_library_sources_ifdef(CONFIG_MODEM_IFACE_UART_INTERRUPT modem_iface_uart_interrupt.c)
zephyr_library_sources_ifdef(CONFIG_MODEM_IFACE_UART_ASYNC modem_iface_uart_async.c)
zephyr_library_sources_ifdef(CONFIG_MODEM_CMD_HANDLER modem_cmd_handler.c)
zephyr_library_sources_ifdef(CONFIG_MODEM_SOCKET modem_socket.c)

zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/lib/sockets)

if(CONFIG_MODEM_UBLOX_SARA)
	zephyr_library_sources(ublox-sara-r4.c)
endif()

if(CONFIG_MODEM_QUECTEL_BG9X)
	zephyr_library_sources(quectel-bg9x.c)
endif()

if(CONFIG_MODEM_WNCM14A2A)
	zephyr_library_sources(wncm14a2a.c)
endif()

if(CONFIG_MODEM_GSM_PPP)
	zephyr_library_sources(gsm_ppp.c)
endif()

if (CONFIG_MODEM_HL7800)
  zephyr_library_sources(hl7800.c)
endif()

if (CONFIG_MODEM_SIM7080)
	zephyr_library_sources(simcom-sim7080.c)
endif()

if (CONFIG_MODEM_SIM7070G)
	zephyr_library_sources(simcom-sim7070g.c)
endif()

zephyr_library_sources_ifdef(CONFIG_MODEM_CELLULAR modem_cellular.c)


Kconfig:
# Modem configuration options

# Copyright (c) 2018 Foundries.io
# SPDX-License-Identifier: Apache-2.0

menuconfig MODEM
	bool "Modem drivers"
	help
	  Enable config options for modem drivers.

if MODEM

module = MODEM
module-str = modem
source "subsys/logging/Kconfig.template.log_config"

config MODEM_RECEIVER
	bool "Modem receiver helper driver"
	depends on SERIAL_SUPPORT_INTERRUPT
	select UART_INTERRUPT_DRIVEN
	select RING_BUFFER
	help
	  This driver allows modem drivers to communicate over UART with custom
	  defined protocols. Driver doesn't inspect received data and all
	  aspects of received protocol data are handled by application via
	  work method provided.  This driver differs from the pipe UART driver
	  in that callbacks are executed in a different work queue and data is
	  passed around in k_pipe structures.

config MODEM_RECEIVER_MAX_CONTEXTS
	int "Maximum number of modem receiver contexts"
	depends on MODEM_RECEIVER
	range 1 10
	default 1
	help
	  Maximum number of modem receiver contexts to handle.  For most
	  purposes this should stay at 1.

config MODEM_CONTEXT
	bool "Modem context helper driver [EXPERIMENTAL]"
	select EXPERIMENTAL
	help
	  This driver allows modem drivers to communicate with an interface
	  using custom defined protocols. Driver doesn't inspect received data
	  and all aspects of received protocol data are handled by application
	  work method provided.  This driver combines abstractions for:
	  modem interface, command handler, pin config and socket handling each
	  of which will need to be configured.

if MODEM_CONTEXT

config MODEM_CONTEXT_MAX_NUM
	int "Maximum number of modem contexts"
	default 1
	help
	  Maximum number of modem contexts to handle.  For most
	  purposes this should stay at 1.

config MODEM_CONTEXT_VERBOSE_DEBUG
	bool "Verbose debug output in the modem context"
	help
	  Enabling this setting will turn on VERY heavy debugging from the
	  modem context helper.  Do NOT leave on for production.

config MODEM_IFACE_UART
	bool "UART-based modem interface"
	select RING_BUFFER
	help
	  To configure this layer for use, create a modem_iface_uart_data
	  object and pass it's reference to modem_iface_uart_init()
	  along with the modem_iface reference from your modem_context object
	  and the UART device name.

if MODEM_IFACE_UART

choice MODEM_IFACE_UART_BACKEND
	prompt "UART backend to use for modem interface"
	default MODEM_IFACE_UART_INTERRUPT

config MODEM_IFACE_UART_INTERRUPT
	bool "UART-based modem interface using interrupt API"
	depends on SERIAL_SUPPORT_INTERRUPT
	select UART_INTERRUPT_DRIVEN

config MODEM_IFACE_UART_ASYNC
	bool "UART-based modem interface using async API"
	depends on SERIAL_SUPPORT_ASYNC
	select UART_ASYNC_API

endchoice

if MODEM_IFACE_UART_ASYNC

config MODEM_IFACE_UART_ASYNC_RX_BUFFER_SIZE
	int "Size in bytes of the RX buffers provided to UART driver"
	default 64
	help
	  Increasing this value decreases the number of UART interrupts needed
	  to receive large packets.

config MODEM_IFACE_UART_ASYNC_RX_NUM_BUFFERS
	int "Number of RX buffers available to the UART driver"
	default 2
	help
	  This value needs to be twice the number of UART modems using the
	  driver to avoid buffer starvation.

config MODEM_IFACE_UART_ASYNC_RX_TIMEOUT_US
	int "Timeout for flushing RX buffers after receiving no additional data"
	default 278
	help
	  Decreasing this value can help increase data throughput when high
	  baudrates are used. 278us is 4 bytes at 115200 baud. Decreasing this
	  value too much can result in spurious interrupts. Leaving it too
	  high can reduce data throughput.

endif # MODEM_IFACE_UART_ASYNC

endif # MODEM_IFACE_UART

config MODEM_CMD_HANDLER
	bool "Generic modem command handler"
	select NET_BUF
	help
	  This generic command handler uses a modem interface to process
	  incoming data and hand it back to the modem driver via callbacks
	  defined for:
	  - modem responses
	  - unsolicited messages
	  - specified handlers for current operation
	  To configure this layer for use, create a modem_cmd_handler_data
	  object and pass it's reference to modem_cmd_handler_init() along with
	  the modem_cmd_handler reference from your modem_context object.

config MODEM_CMD_HANDLER_MAX_PARAM_COUNT
	int "Maximum number of params parsed per command"
	depends on MODEM_CMD_HANDLER
	default 6
	help
	  This option sets the maximum number of parameters which may be
	  parsed by the command handler.  This is also limited by the length
	  of the match_buf (match_buf_len) field as it needs to be large
	  enough to hold a single line of data (ending with /r).

endif # MODEM_CONTEXT

config MODEM_SOCKET
	bool "Generic modem socket support layer"
	help
	  This layer provides much of the groundwork for keeping track of
	  modem "sockets" throughout their lifecycle (from the initial offload
	  API calls through the command handler call back layers).
	  To configure this layer for use, create a modem_socket_config
	  object with your socket data and pass it's reference to
	  modem_socket_init().
	  Note that the modem socket uses runtime allocated file descriptors
	  reserved from the fdtable, for which the max count is set using the
	  Kconfig option POSIX_MAX_FDS. Make sure to update this value as both
	  the modem sockets and the POSIX_API, if used, share them.

config MODEM_SOCKET_PACKET_COUNT
	int "Maximum number of stored packet sizes per socket"
	depends on MODEM_SOCKET
	default 6
	help
	  As the modem indicates more data is available to be received,
	  these values are organized into "packets".  This setting limits
	  the maximum number of packet sizes the socket can keep track of.

config MODEM_SHELL
	bool "Modem shell utilities"
	select SHELL
	help
	  Activate shell module that provides modem utilities like
	  sending a command to the modem UART.

config MODEM_SIM_NUMBERS
	bool "Query the SIM for IMSI and ICCID"
	default y
	help
	  Query the SIM card for the IMSI and ICCID identifiers. This
	  can be disabled if the application does not use a SIM.

config MODEM_CELL_INFO
	bool "Query for operator and cell info"
	help
	  Query for numerical operator id, location area code and cell id.

source "drivers/modem/Kconfig.ublox-sara-r4"
source "drivers/modem/Kconfig.quectel-bg9x"
source "drivers/modem/Kconfig.wncm14a2a"
source "drivers/modem/Kconfig.gsm"
source "drivers/modem/Kconfig.cellular"

source "drivers/modem/Kconfig.hl7800"
source "drivers/modem/Kconfig.simcom-sim7080"
source "drivers/modem/Kconfig.simcom-sim7070g"

endif # MODEM


Kconfig.simcom-sim7070g:
config MODEM_SIM7070G
	bool "SIM7070G Driver"
	select MODEM_CONTEXT
	select MODEM_CMD_HANDLER
	select MODEM_IFACE_UART
	select MODEM_SOCKET
	select NET_OFFLOAD
	select NET_SOCKETS_OFFLOAD
	select MODEM_CELLULAR
	imply GPIO
	help
	  Enables the driver for the Sim7070G modem.

if MODEM_SIM7070G

config MODEM_SIMCOM_SIM7070G_RX_STACK_SIZE
	int "Stack size for the simcom sim7070G modem driver rx thread"
	default 1028
	help
	  This stack is used by the simcom SIM7070G RX thread.

config MODEM_SIMCOM_SIM7070G_RX_WORKQ_STACK_SIZE
	int "Stack size for the simcom sim7070G modem driver work queue"
	default 2048
	help
		This stack is used by the work queue.

config MODEM_SIMCOM_SIM7070G_INIT_PRIORITY
	int "simcom sim7070g driver init priority"
	default 80
	help
	  simcom sim7070g driver initialization priority.

config MODEM_SIMCOM_SIM7070G_LTE_BANDS
	string "LTE bands the driver can use"
	default "8,20,28"
	help
		Comma separated list of usable lte bands.

config MODEM_SIMCOM_SIM7070G_APN
	string "APN for establishing a network connection"
	default "internet"
	help
	  This setting is used to set the APN name for the network connection
	  context. This value is specific to the network provider and may
	  need to be changed.

choice MODEM_SIMCOM_SIM7070G_RAT
	bool "Radio Access Technology Mode"
	default MODEM_SIMCOM_SIM7070G_RAT_NB1

config MODEM_SIMCOM_SIM7070G_RAT_NB1
	bool "NB-IoT"
	help
		Enable LTE NB-IoT mode.

config MODEM_SIMCOM_SIM7070G_RAT_M1
	bool "Cat-M1"
	help
		Enable Cat-M1 mode.

config MODEM_SIMCOM_SIM7070G_RAT_GSM
	bool "GSM"
	help
	  Enable GSM mode.

endchoice

endif # MODEM_SIM7070G


Related