{"action":"created","issue":{"url":"https://api.github.com/repos/beagleboard/bb.org-overlays/issues/99","repository_url":"https://api.github.com/repos/beagleboard/bb.org-overlays","labels_url":"https://api.github.com/repos/beagleboard/bb.org-overlays/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/beagleboard/bb.org-overlays/issues/99/comments","events_url":"https://api.github.com/repos/beagleboard/bb.org-overlays/issues/99/events","html_url":"https://github.com/beagleboard/bb.org-overlays/issues/99","id":389572113,"node_id":"MDU6SXNzdWUzODk1NzIxMTM=","number":99,"title":"device tree overlay for skywire bbb cape not loading properly?!","user":{"login":"cuca94","id":40240701,"node_id":"MDQ6VXNlcjQwMjQwNzAx","avatar_url":"https://avatars0.githubusercontent.com/u/40240701?v=4","gravatar_id":"","url":"https://api.github.com/users/cuca94","html_url":"https://github.com/cuca94","followers_url":"https://api.github.com/users/cuca94/followers","following_url":"https://api.github.com/users/cuca94/following{/other_user}","gists_url":"https://api.github.com/users/cuca94/gists{/gist_id}","starred_url":"https://api.github.com/users/cuca94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuca94/subscriptions","organizations_url":"https://api.github.com/users/cuca94/orgs","repos_url":"https://api.github.com/users/cuca94/repos","events_url":"https://api.github.com/users/cuca94/events{/privacy}","received_events_url":"https://api.github.com/users/cuca94/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-12-11T02:39:02Z","updated_at":"2018-12-12T12:30:56Z","closed_at":null,"author_association":"NONE","body":"after installing the latest Debian version my Skywires bbb cape device tree overlay is not loading correctly anymore. i want to use the can transceiver of the board, but can0 is obviously not reachable.\r\non the old kernel the capes device tree overlay is loaded automatically.\r\n\r\nthe cape seems to be detected, but not loaded. running kernel 4.4.x works without problems. the difference which i figured out with the new kernel is the missing \"L\" for \"loaded\" in the status message of the capemgr.\r\n\r\n```\r\ndebian@beaglebone:~$ cat /sys/devices/platform/bone_capemgr/slots\r\n 0: PF----  -1 \r\n 1: PF----  -1 \r\n 2: PF----  -1 \r\n 3: P-----  -1 Skywire Beaglebone Cape,00D0,Nimbelink,NL-AB-BBBC\r\n```\r\n\r\nis there a way to fix this problem? \r\nmay the .dts file is compiled with an outdated compliler?\r\n\r\nhere is the .dts file which should be read from capes EEPROM:\r\n\r\n```\r\n* Copyright (C) 2014 Nimbelink, Corp <product.support@nimbelink.com>\r\n*\r\n* This program is free software; you can redistribute it and/or modify\r\n* it under the terms of the GNU General Public License version 2 as\r\n* published by the Free Software Foundation.\r\n*\r\n* This is a device tree overlay file for Nimbelinks Skywire Beaglebone Black Cape. \r\n* This code initializes CAN1, UART2, UART4, and GPIOs P8.8 and P8.9 for use with the capes default operating mode.\r\n* This overlay file was developed from referencing the projectM device tree files (https://github.com/gntoni/projectM/tree/master/devTree)\r\n* and from the embedded things.com CANBUS tutorial (http://www.embedded-things.com/bbb/enable-canbus-on-the-beaglebone-black/) \r\n* \r\n*/\r\n\r\n/dts-v1/;\r\n/plugin/;\r\n\r\n/{\r\n\tcompatible = \"ti,beaglebone\", \"ti,beaglebone-black\";\r\n\tpart-number = \"NL-AB-BBBC\";\r\n\tversion = \"00D0\";\r\n\r\n\t/* State resources this cape uses */\r\n\texclusive-use = \r\n\t\t/* the pin header and pins used */\r\n\t\t\"P9.13\", /* UART4 TXD */\r\n\t\t\"P9.11\", /* UART4 RXD */\r\n\t\t\"P9.21\", /* UART2 TXD */\r\n\t\t\"P9.22\", /* UART2 RXD */\r\n\t\t\"P9.24\", /* CAN1 RXD */\r\n\t\t\"P9.26\", /* CAN1 TXD */\r\n\t\t\"P8.8\", /*SKYWIRE ON-OFF*/\r\n\t\t\"P8.9\", /*SKYWIRE DTR*/\r\n\t\t\r\n\t\t /* the hardware IP use */\r\n\t\t\"uart4_txd_mux2\",\r\n\t\t\"uart4_rxd_mux2\",\r\n\t\t\"uart2_txd\",\r\n\t\t\"uart2_rxd\",\r\n\t\t\"CAN1_rxd\",\r\n\t\t\"CAN1_txd\",\r\n\t\t\"gpio2_3\",\r\n\t\t\"gpio2_5\";\r\n\r\n\t/*Mux the Pins */\r\n\r\n\tfragment@0 {\r\n\t\ttarget = <&am33xx_pinmux>;\r\n\t\t__overlay__ {\r\n\t\t\t/*CONFIGURE CAN1*/\r\n\t\t\tcan1_pins: pinmux_can1_pins {\r\n\t\t\t\tpinctrl-single,pins = <\r\n\t\t\t\t\t0x180 0x12  /* d_can1_tx, SLEWCTRL_FAST | INPUT_PULLUP | MODE2 */\r\n\t\t\t\t\t0x184 0x32  /* d_can1_rx, SLEWCTRL_FAST | RECV_ENABLE | INPUT_PULLUP | MODE2 */\r\n\t\t\t\t\t>;\r\n\t\t\t};\r\n\t\t\t/*CONFIGURE UART2*/\r\n\t\t\tuart2_pins: pinmux_uart2_pins {\r\n\t\t\t\tpinctrl-single,pins = <\r\n\t\t\t\t\t0x154 0x01 /* P9_24 = GPIO0_15 = spi0_d0.uart2_txd, OUTPUT */\r\n\t\t\t\t\t0x150 0x21 /* P9_26 = GPIO0_14 = spi0_sclk.uart2_rxd, INPUT */\r\n\t\t\t\t\t>;\r\n\t\t\t};\r\n\t\t\t/*CONFIGRE UART4*/\r\n\t\t\tuart4_pins: pinmux_uart4_pins {\r\n\t\t\t\tpinctrl-single,pins = <\r\n\t\t\t\t\t0x074 0x06 /* P9_13 = GPIO0_31 = gpmc_wpn.uart4_txd_mux2, OUTPUT */\r\n\t\t\t\t\t0x070 0x26 /* P9_11 = GPIO0_30 = gpmc_wait0.uart4_rxd_mux2, INPUT */\r\n\t\t\t\t\t>;\r\n\t\t\t/*CONFIGURE GPIO*/\r\n\t\t\t};\r\n\t\t\tgpio_pins: pinmux_gpio_pins{\r\n\t\t\t\tpinctrl-single,pins = <\r\n\t\t\t\t\t0x094 0xf\t\t/* P8.8, gpio2_3, SLEWCTRL_FAST | PULLUP_DISABLED | MODE7*/\r\n\t\t\t\t\t0x09c 0xf\t\t/* P9.9, gpio2_5, SLEWCTRL_FAST | PULLUP_DISABLED | MODE7*/\r\n\t\t\t\t\t>;\r\n\t\t\t};\r\n\t\t};\r\n\t};\r\n\r\n/*=============Enable the device ==================*/\r\n\r\n/*============Connect the device to user interface driver ==============*/\r\n/*To connect the device with a user interface, \r\n/*specify the “compatible” field in the “ocp” section. \r\n/*ocp stand for On Chip Peripherals, \r\n/*BTW. The compatible field should match the driver you want to use.*/\r\n\r\n\r\n\t/*Turn on CAN1*/\r\n\tfragment@1 {\r\n\t\ttarget = <&dcan1>;\r\n\t\t__overlay__ {\r\n\t\t\t#address-cells = <1>;\r\n\t\t\t#size-cells = <0>;\r\n\r\n\t\t\tstatus = \"okay\";\r\n\t\t\tpinctrl-names = \"default\";\r\n\t\t\tpinctrl-0 = <&can1_pins>;\r\n\t\t};\r\n\t};\r\n\r\n\t/*Turn on UART2*/\r\n\tfragment@2 {\r\n\t\ttarget = <&uart3>; /* really uart2 */\r\n\t\t__overlay__ {\r\n\t\t\tpinctrl-names = \"default\";\r\n\t\t\tpinctrl-0 = <&uart2_pins>;\r\n\t\t\tstatus = \"okay\";\r\n\t\t};\r\n\t};\r\n\r\n\t/*Turn on UART4*/\r\n\tfragment@3 {\r\n\t\ttarget = <&uart5>; /* really uart4 */\r\n\t\t__overlay__ {\r\n\t\t\tpinctrl-names = \"default\";\r\n\t\t\tpinctrl-0 = <&uart4_pins>;\r\n\t\t\tstatus = \"okay\";\r\n\t\t};\r\n\t};\r\n\r\n\t/*Turn on GPIO*/\r\n\tfragment@4 {\r\n\t\ttarget = <&ocp>;\r\n\t\t__overlay__ {\r\n\t\t\t#address-cells = <1>;\r\n\t\t\t#size-cells = <1>;\r\n\t\t\tgpio {\r\n\t\t\t\tcompatible = \"skywire-gpio\";\r\n\t\t\t\tstatus \t= \"okay\";\r\n\t\t\t\tpinctrl-names   = \"default\";\r\n\t\t\t\tpinctrl-0       = <&gpio_pins>;\r\n\r\n\t\t\t\t/*declare the gpios*/\r\n\t\t\t\tSKYWIREDTR {\r\n\t\t\t\t\tgpio-name = \"SKYDTR\";\r\n\t\t\t\t\tgpio = <&gpio3 5 0x00>; /*GPIO3 is GPIO2*/\r\n\t\t\t\t\toutput;\r\n\t\t\t\t\tinit-low;\r\n\t\t\t\t};\r\n\r\n\t\t\t\tSKYWIREONOFF {\r\n\t\t\t\t\tgpio-name = \"SKYONOFF\";\r\n\t\t\t\t\tGPIO = <&gpio3 3 0x00>;\r\n\t\t\t\t\toutput;\r\n\t\t\t\t\tinit-high;\r\n\t\t\t\t};\r\n\t\t\t};\r\n\t\t}; \r\n\t};\r\n};\r\n```"},"comment":{"url":"https://api.github.com/repos/beagleboard/bb.org-overlays/issues/comments/446571648","html_url":"https://github.com/beagleboard/bb.org-overlays/issues/99#issuecomment-446571648","issue_url":"https://api.github.com/repos/beagleboard/bb.org-overlays/issues/99","id":446571648,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjU3MTY0OA==","user":{"login":"cuca94","id":40240701,"node_id":"MDQ6VXNlcjQwMjQwNzAx","avatar_url":"https://avatars0.githubusercontent.com/u/40240701?v=4","gravatar_id":"","url":"https://api.github.com/users/cuca94","html_url":"https://github.com/cuca94","followers_url":"https://api.github.com/users/cuca94/followers","following_url":"https://api.github.com/users/cuca94/following{/other_user}","gists_url":"https://api.github.com/users/cuca94/gists{/gist_id}","starred_url":"https://api.github.com/users/cuca94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuca94/subscriptions","organizations_url":"https://api.github.com/users/cuca94/orgs","repos_url":"https://api.github.com/users/cuca94/repos","events_url":"https://api.github.com/users/cuca94/events{/privacy}","received_events_url":"https://api.github.com/users/cuca94/received_events","type":"User","site_admin":false},"created_at":"2018-12-12T12:30:56Z","updated_at":"2018-12-12T12:30:56Z","author_association":"NONE","body":"`git:/opt/scripts/:[e9bcff232834702c1c810710706ee815d77b080b]\r\neeprom:[A335BNLT00C00916BBBK0CEC]\r\nmodel:[TI_AM335x_BeagleBone_Black]\r\ndogtag:[BeagleBoard.org Debian Image 2018-11-25]\r\nbootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2018.09-00002-gd5b4c4b656]:[location: dd MBR]\r\nbootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2015.10-00001-g143c9ee]:[location: dd MBR]\r\nkernel:[4.14.79-ti-r84]\r\nnodejs:[v6.14.4]\r\nuboot_overlay_options:[enable_uboot_overlays=1]\r\nuboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo]\r\nuboot_overlay_options:[enable_uboot_cape_universal=1]\r\npkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]\r\npkg:[bb-cape-overlays]:[4.4.20181120.0-0rcnee0~stretch+20181120]\r\npkg:[bb-wl18xx-firmware]:[1.20180517-0rcnee0~stretch+20180517]\r\npkg:[kmod]:[23-2rcnee1~stretch+20171005]\r\npkg:[librobotcontrol]:[1.0.4-git20181123.0-0rcnee0~stretch+20181124]\r\npkg:[firmware-ti-connectivity]:[20170823-1rcnee1~stretch+20180328]\r\ngroups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal i2c bluetooth netdev cloud9ide gpio pwm eqep admin spi tisdk weston-launch xenomai]\r\ncmdline:[console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet]\r\ndmesg | grep pinctrl-single\r\n[    1.045325] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568\r\ndmesg | grep gpio-of-helper\r\n[    1.046499] gpio-of-helper ocp:cape-universal: ready\r\nEND`"}}
{"actor":{"display_login":"cuca94"}}