Re: Adding new DTS binding for SAM0 I2C
Léonard Bise <leonard.bise@...>
toggle quoted messageShow quoted text
Thanks for your help.
Well the thing is that is one of my problem, I don't have much to go by.
All I get is a syntax error message from dtc when running cmake:
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.5", minimum required is "3.4")
-- Selected BOARD sodaq_one_v3
Zephyr version: 1.12.99
Parsing Kconfig tree in /home/leonard/gitrepo/zephyr_fork/Kconfig
Using /home/leonard/gitrepo/TravailBachelor/src/Zephyr_sodaq_one_v3/boards/arm/sodaq_one_v3/sodaq_one_v3_defconfig as base
-- Generating zephyr/include/generated/generated_dts_board.h
Error: sodaq_one_v3.dts.pre.tmp:164.21-22 syntax error
FATAL ERROR: Unable to parse input tree
CMake Error at /home/leonard/gitrepo/zephyr_fork/cmake/dts.cmake:83 (message):
command failed with return code: 1
Call Stack (most recent call first):
As soon as I comment the following block in my dts file it works again. So I assume that it is related to the new atmel,sam0-i2c binding I added.
I added the atmel,sam0-i2c.yaml file in dts/bindings/i2c but I'm not sure if I missed something elsewhere?
status = "ok";
compatible = "atmel,sam0-i2c";
clock-frequency = <I2C_BITRATE_FAST>;
#address-cells = <1>;
#size-cells = <0>;
On 2 July 2018 at 09:13, Erwan Gouriou <erwan.gouriou@...> wrote: