Hello all,

I trying patch file *am335x-boneblack.dts* 
(http://git.ti.com/ti-linux-kernel/ti-linux-kernel/blobs/ti-lsk-linux-4.4.y/arch/arm/boot/dts/am335x-boneblack.dts)
 
in yocto in order to using *pru* on my BBB. However I can't see any change 
in */sys/kernel/debug/pinctrl/44e10800.pinmux/pingroups. *Pin groups looks 
like (still same):
































*root@beaglebone:~# cat /sys/kernel/debug/pinctrl/44e10800.pinmux/pingroups 
registered    pin groups: group:    pinmux_clkout2_pinpin 109 
(44e109b4.0)group: pinmux_uart0_pinspin 92 (44e10970.0)    pin 93 
(44e10974.0)group: cpsw_defaultpin 68 (44e10910.0)    pin 69 
(44e10914.0)    pin 70 (44e10918.0)    pin 71 (44e1091c.0)    pin 72 
(44e10920.0)    pin 73 (44e10924.0)    pin 74 (44e10928.0)    pin 75 
(44e1092c.0)    pin 76 (44e10930.0)    pin 77 (44e10934.0)    pin 78 
(44e10938.0)    pin 79 (44e1093c.0)    pin 80 (44e10940.0)group: 
cpsw_sleeppin 68 (44e10910.0)    pin 69 (44e10914.0)    pin 70 
(44e10918.0)    pin 71 (44e1091c.0)    pin 72 (44e10920.0)    pin 73 
(44e10924.0)    pin 74 (44e10928.0)    pin 75 (44e1092c.0)    pin 76 
(44e10930.0)    pin 77 (44e10934.0)    pin 78 (44e10938.0)    pin 79 
(44e1093c.0)    pin 80 (44e10940.0)group: davinci_mdio_defaultpin 82 
(44e10948.0)    pin 83 (44e1094c.0)group: davinci_mdio_sleeppin 82 
(44e10948.0)pin 83 (44e1094c.0)group: pinmux_mmc1_pinspin 88 
(44e10960.0)group: pinmux_emmc_pinspin 32 (44e10880.0)    pin 33 
(44e10884.0)    pin 0 (44e10800.0)    pin 1 (44e10804.0)    pin 2 
(44e10808.0)    pin 3 (44e1080c.0)    pin 4 (44e10810.0)    pin 5 
(44e10814.0)    pin 6 (44e10818.0)    pin 7 (44e1081c.0)group: 
user_leds_defaultpin 21 (44e10854.0)    pin 22 (44e10858.0)    pin 23 
(44e1085c.0)    pin 24 (44e10860.0)group: user_leds_sleeppin 21 
(44e10854.0)    pin 22 (44e10858.0)    pin 23 (44e1085c.0)    pin 24 
(44e10860.0)group: mcasp0_pinspin 107 (44e109ac.0)    pin 103 
(44e1099c.0)    pin 101 (44e10994.0)    pin 100 (44e10990.0)    pin 27 
(44e1086c.0)group:    pinmux_i2c0_pinspin 98 (44e10988.0)    pin 99 
(44e1098c.0)group: nxp_hdmi_bonelt_pinspin 108 (44e109b0.0)    pin 40 
(44e108a0.0)    pin 41 (44e108a4.0)    pin 42 (44e108a8.0)    pin 43 
(44e108ac.0)    pin 44 (44e108b0.0)    pin 45 (44e108b4.0)    pin 46 
(44e108b8.0)    pin 47 (44e108bc.0)    pin 48 (44e108c0.0)    pin 49 
(44e108c4.0)    pin 50 (44e108c8.0)    pin 51 (44e108cc.0)    pin 52 
(44e108d0.0)    pin 53 (44e108d4.0)    pin 54 (44e108d8.0)    pin 55 
(44e108dc.0)    pin 56 (44e108e0.0)    pin 57 (44e108e4.0)    pin 58 
(44e108e8.0)    pin 59 (44e108ec.0) group: nxp_hdmi_bonelt_off_pinspin 108 
(44e109b0.0)group: pinmux_i2c2_pinspin 94 (44e10978.0)    pin 95 
(44e1097c.0)*

However tree in */sys/devices/platform/ocp/* looks as I expected (reflect 
patch):







*root@beaglebone:~# ls 
/sys/devices/platform/ocp/40300000.ocmcram               
47400000.usb                   4804c000.gpio                  
481d8000.mmc                   49a00000.tptc                  
driver_override                
ocp:l4_wkup@44c0000040302000.ocmcram_nocache       
48038000.mcasp                 48060000.mmc                   
48200000.interrupt-controller  4a100000.ethernet              
modalias                       of_node44e07000.gpio                  
48042000.timer                 480c8000.mailbox               
4830e000.lcdc                  4a300000.pruss                 
ocp:P9_24_pinmux               power44e09000.serial                
48044000.timer                 480ca000.spinlock              
48310000.rng                   4c000000.emif                  
ocp:P9_26_pinmux               subsystem44e0b000.i2c                   
48046000.timer                 4819c000.i2c                   
49000000.edma                  53100000.sham                  
ocp:P9_27_pinmux               uevent44e35000.wdt                   
48048000.timer                 481ac000.gpio                  
49800000.tptc                  53500000.aes                   
ocp:P9_30_pinmux44e3e000.rtc                   
4804a000.timer                 481ae000.gpio                  
49900000.tptc                  56000000.sgx                   
ocp:cape-universal*

My patch is currently following:












































































































*--- ./arch/arm/boot/dts/am33xx.dtsi+++ ./arch/arm/boot/dts/am33xx.dtsi@@ 
-165,7 +165,7 @@      * for the moment, just use a fake OCP bus entry to 
represent      * the whole bus hierarchy.      */-    ocp: ocp {+    ocp 
{         compatible = "simple-bus";         #address-cells = <1>;         
#size-cells = <1>;--- ./arch/arm/boot/dts/am335x-boneblack.dts+++ 
./arch/arm/boot/dts/am335x-boneblack.dts@@ -86,6 +86,83 @@             
AM33XX_IOPAD(0x86c, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a11.GPIO1_27 
*/         >;     };+    +    P9_24_default_pin: pinmux_P9_24_default_pin { 
pinctrl-single,pins = <+        AM33XX_IOPAD(0x0984, PIN_OUTPUT_PULLUP | 
SLEWCTRL_FAST | MUX_MODE5) >; };++    P9_26_default_pin: 
pinmux_P9_26_default_pin { pinctrl-single,pins = <+        
AM33XX_IOPAD(0x0980, PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE5) >; 
};++    P9_27_default_pin: pinmux_P9_27_default_pin { pinctrl-single,pins = 
<+        AM33XX_IOPAD(0x09a4, PIN_OUTPUT_PULLUP | SLEWCTRL_FAST | 
MUX_MODE5) >; };++    P9_30_default_pin: pinmux_P9_30_default_pin { 
pinctrl-single,pins = <+        AM33XX_IOPAD(0x0998, PIN_OUTPUT_PULLUP | 
SLEWCTRL_FAST | MUX_MODE5) >; };+};++&ocp {+    P9_24_pinmux {+        
compatible = "bone-pinmux-helper";+        status = "okay";+        
pinctrl-names = "default";+        pinctrl-0 = <&P9_24_default_pin>;+    
};++    P9_26_pinmux {+        compatible = "bone-pinmux-helper";+        
status = "okay";+        pinctrl-names = "default";+        pinctrl-0 = 
<&P9_26_default_pin>;+    };++    P9_27_pinmux {+        compatible = 
"bone-pinmux-helper";+        status = "okay";+        pinctrl-names = 
"default";+        pinctrl-0 = <&P9_27_default_pin>;+    };++    
P9_30_pinmux {+        compatible = "bone-pinmux-helper";+        status = 
"okay";+        pinctrl-names = "default";+        pinctrl-0 = 
<&P9_30_default_pin>;+    };+    +    cape-universal {+        compatible = 
"gpio-of-helper";+        status = "okay";+        pinctrl-names = 
"default";+        pinctrl-0 = <>;++        P9_24 {+            gpio-name = 
"P9_24";+            gpio = <&gpio0 15 0>;+            output;+            
dir-changeable;+        };++        P9_26 {+            gpio-name = 
"P9_26";+            gpio = <&gpio0 14 0>;+            input;+            
dir-changeable;+        };++        P9_27 {+            gpio-name = 
"P9_27";+            gpio = <&gpio3 19 0>;+            output;+            
dir-changeable;+        };++        P9_30 {+            gpio-name = 
"P9_30";+            gpio = <&gpio3 16 0>;+            output;+            
dir-changeable;+        };+    }; };  &lcdc {@@ -152,6 +229,10 @@     
status = "okay"; }; +&pruss {+    status = "okay";+};+ / {     
clk_mcasp0_fixed: clk_mcasp0_fixed {         #clock-cells = <0>;*

Unfortunately I don't know what I doing wrong. Please help :-)

Thanks
Adrian

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/97262386-fbd7-47c2-bb66-1ea69143c671%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to