DTS
-
[리눅스 커널] devicetree overlayLinux/kernel 2023. 8. 7. 19:22
글의 참고 - https://docs.kernel.org/devicetree/overlay-notes.html - https://github.com/raspberrypi/documentation/blob/develop/documentation/asciidoc/computers/configuration/device-tree.adoc - https://www.microchip.com/forums/m1212896.aspx - https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README - https://www.cnblogs.com/qiengo/p/5915508.html 글의 전제 - 밑줄로 작성된 글은 강조 표시를 의미한다. - 그림 출처는..
-
[커널][디바이스트리] 디바이스 트리에서 8, 16, 64 비트값 선언하고 읽기.Linux/kernel 2023. 8. 3. 02:25
디바이스 트리에서 특정 노드에 정수형 프로퍼티를 선언할 경우, 아래와 같이 선언할 수 있다. gpclk0_gpio4: gpclk0_gpio4 { brcm,pins = ; brcm,function = ; }; gpclk1_gpio5: gpclk1_gpio5 { brcm,pins = ; brcm,function = ; }; gpclk1_gpio42: gpclk1_gpio42 { brcm,pins = ; brcm,function = ; }; `brcm,pins` , `brcm,function`, `brcm,pull` 기본적으로 모두 unsigned int 로 선언된 프로퍼티들이다. 위에 값들을 불러올 때, 값이 작다고 of_read_property_u8(), of_read_property_u16() 함수를 호..