I was follow Lab4 the PRU Training, but get a problem in PRU Cape
5. Modify to SDK provided DTS (devicetree source) files to account for the PRU cape.
- a. Copy the am437x-gp-evm-prucape.dtsi from the <PRU_SW_PATH>/pru_cape directory to arch/arm/boot/dts.
- b. In your kernel source tree, open arch/arm/boot/dts/am437x-gp-evm.dts for editing.
- c. Add the below line to include the PRU Cape DTS file to the bottomof the am437x-gp-evm.dts file.
- #include "am437x-gp-evm-prucape.dtsi"
- d. Save the file.
Beacase my EVM board is am437x-gp-evm board. so I was change from AM335x to AM437x and Modify am335x-boneblack-prucape.dtsi to AM437x-gp-evm-prucape.dtsi, below as
1. 0x190 0x00050005 /* mcasp0_aclkx, OMAP_MUX_MODE5 | AM437X_PIN_OUTPUT, PRU CAPE Blue LED, pr0_pru0_gpo0 */
2. 0x194 0x00050005 /* mcasp0_fsx, OMAP_MUX_MODE5 | AM437X_PIN_OUTPUT, PRU CAPE Green LED, pr0_pru0_gpo1 */
3. 0x198 0x00050005 /* mcasp0_axr0, OMAP_MUX_MODE5 | AM437X_PIN_OUTPUT, PRU CAPE Orange LED, pr0_pru0_gpo2 */
4. 0x19c 0x00050005 /* mcasp0_ahclkr, OMAP_MUX_MODE5 | AM437X_PIN_OUTPUT, PRU CAPE Red LED, pr0_pru0_gpo3 */
/* &am43xx_pinmux { &mcasp1 { &sound0 { &pruss { |
And then Compile the DTS file:
- make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- am437x-gp-evm.dtb
Get the error message
"Error: arch/arm/boot/dts/am437x-gp-evm-prucape.dtsi:9.1-15 syntax error"
note: Would you provide the AM437x dtsi example code,