2014-05-10 4 views
0

최근에 BeagleBone Black에서 작업을 시작했으며 일부 gpios를 사용하기 위해 장치 트리 오버레이를 적용하여 pinmux를 수정하는 데 몇 가지 문제가 있습니다. 장치 트리 오버레이에 관한 많은 자습서를 찾았지만 구성을 적용하는 데 어려움을 겪고 있습니다. 나는 도움이 필요해. 이미 다른 오버레이에서 사용되는 사용하고 핀의BeagleBone Black 장치 트리 오버레이가 pinmux를 변경하지 않습니다.

/dts-v1/; 
/plugin/; 

/{ 

compatible = "ti,beaglebone", "ti,beaglebone-black"; 

/* identification */ 
part-number = "BB-CAM"; 
version = "00A0"; 

exclusive-use = 
/* the pin header uses */ 
     "P8.07", 
     "P8.08", 
     "P8.09", 
     "P8.10", 
     "P8.11", 
     "P8.12", 
     "P8.13", 
     "P8.14", 
     "P8.15", 
     "P8.16", 
     "P8.17", 
     "P8.18", 
     "P8.19", 
     "P9.11", 
     "P9.12", 
     "P9.13", 
     "P9.14"; 

[email protected] { 
     target = <&am33xx_pinmux>; 
     __overlay__ { 
       pinctrl_test: pinctrl_test_0_pins { 
         pinctrl-single,pins = < 
           0x090 0x07 
           0x094 0x07 
           0x09c 0x07 
           0x098 0x07 
           0x034 0x07 
           0x030 0x07 
           0x024 0x07 
           0x028 0x07 
           0x03c 0x07 
           0x038 0x07 
           0x02c 0x07 
           0x08c 0x07 
           0x020 0x07 
           0x070 0x07 
           0x078 0x07 
           0x074 0x07 
           0x048 0x07 
         >; 
       }; 
     }; 
}; 

[email protected] { 
     target = <&ocp>; 
     __overlay__ { 
         test_helper: helper { 
           status = "okay"; 
           pinctrl-names = "default"; 
           pinctrl-0 = <&pinctrl_test>; 
         }; 
       }; 
     }; 
}; 

없음, 모든 핀이없는 (BBB-CAM-00A0.dts) : 여기

은 내가 사용하고있어 DTS 파일입니다

pin xx (44e10xxx): (MUX UNCLAIMED) (GPIO UNCLAIMED) 

내가 사용하여 DTS를 컴파일 : 다음

dtc -O dtb -o BBB-CAM-00A0.dtbo -b O [email protected] BBB-CAM-00A0.dts 

:

012 3,516,
cp BBB-CAM-00A0.dtbo /lib/firmware/ 

는이 시점에서

echo BBB-CAM > /sys/devices/bone_capemgr.*/slots 

오버레이 허용 할 것 같다

0: 54:PF--- 
1: 55:PF--- 
2: 56:PF--- 
3: 57:PF--- 
4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G 
5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI 
7: ff:P-O-L Override Board Name,00A0,Override Manuf,BBB-CAM 

그러나 pinmux에는 변경 보인다 :

[email protected]:~/Desktop# cat $PINS |grep 890 
pin 36 (44e10890) 00000037 pinctrl-single 
[email protected]:~/Desktop# cat $PINS |grep 894 
pin 37 (44e10894) 00000037 pinctrl-single 
[email protected]:~/Desktop# cat $PINS |grep 89c 
pin 39 (44e1089c) 00000037 pinctrl-single 
[email protected]:~/Desktop# cat $PINS |grep 898 
pin 38 (44e10898) 00000037 pinctrl-single 
[email protected]:~/Desktop# cat $PINS |grep 834 
pin 13 (44e10834) 00000027 pinctrl-single 
[email protected]:~/Desktop# cat $PINS |grep 830 
pin 12 (44e10830) 00000027 pinctrl-single 
[email protected]:~/Desktop# cat $PINS |grep 824 
pin 9 (44e10824) 00000027 pinctrl-single 
[email protected]:~/Desktop# cat $PINS |grep 828 
pin 10 (44e10828) 00000027 pinctrl-single 
[email protected]:~/Desktop# cat $PINS |grep 83c 
pin 15 (44e1083c) 00000027 pinctrl-single 

dmesg 반환 아무 관련을 정보. 자세한 내용은

이 내 변경 커널 :

Linux beaglebone 3.8.13 #1 SMP Wed Sep 4 09:09:32 CEST 2013 armv7l GNU/Linux 

난 정말이 문제를 어떤 제안을 처리하는 방법을 몰라?

고마워요.

+0

* "dmesg는 관련 정보를 반환하지 않습니다."* - menuconfig를 사용하여'pinctrl' 디버그 (예 : CONFIG_DEBUG_PINCTRL)를 활성화 할 수 있음을 시정하십시오. 매직 넘버가 아닌 핀의 심볼 이름을 제공하는 헤더 파일을 찾아야합니다. – sawdust

답변

0

좋습니다. 문제 해결, Angstrom을 다시 설치했습니다.