1 What: /sys/class/extcon/.../ 2 Date: February 2012 3 Contact: MyungJoo Ham <myungjoo.ham@sams 4 Description: 5 Provide a place in sysfs for t 6 This allows accessing extcon s 7 The name of extcon object deno 8 with extcon_dev_register. 9 10 One extcon device denotes a si 11 port. An external connector ma 12 attached simultaneously. Many 13 accessory cables have such cap 14 the 30-pin port of Nuri board 15 may have both HDMI and Charger 16 video, and USB cables attached 17 18 If there are cables mutually e 19 such binary relations may be e 20 mutually_exclusive array. 21 22 What: /sys/class/extcon/.../name 23 Date: February 2012 24 Contact: MyungJoo Ham <myungjoo.ham@sams 25 Description: 26 The /sys/class/extcon/.../name 27 object. If the extcon object h 28 "show_name" defined, the callb 29 this sysfs node. 30 31 What: /sys/class/extcon/.../state 32 Date: February 2012 33 Contact: MyungJoo Ham <myungjoo.ham@sams 34 Description: 35 The /sys/class/extcon/.../stat 36 attach/detach information of t 37 If the extcon object has an op 38 defined, the showing function 39 callback. 40 41 If the default callback for sh 42 format is like this:: 43 44 # cat state 45 USB_OTG=1 46 HDMI=0 47 TA=1 48 EAR_JACK=0 49 # 50 51 In this example, the extcon de 52 cables attached and HDMI and E 53 54 In order to update the state o 55 state number starting with 0x: 56 57 # echo 0xHEX > state 58 59 This updates the whole state o 60 Inputs of all the methods are 61 mutually_exclusive conditions 62 63 It is recommended to use this 64 you need to set the value atom 65 interface associated with each 66 multiple cable states of an ex 67 68 What: /sys/class/extcon/.../cable.X/ 69 Date: February 2012 70 Contact: MyungJoo Ham <myungjoo.ham@sams 71 Description: 72 The /sys/class/extcon/.../cabl 73 "X" (integer between 0 and 31) 74 75 What: /sys/class/extcon/.../cable.X/ 76 Date: February 2012 77 Contact: MyungJoo Ham <myungjoo.ham@sams 78 Description: 79 The /sys/class/extcon/.../cabl 80 state of cable "X" (integer be 81 device. The state value is eit 82 (attached). 83 84 What: /sys/class/extcon/.../mutually 85 Date: December 2011 86 Contact: MyungJoo Ham <myungjoo.ham@sams 87 Description: 88 Shows the relations of mutuall 89 if the mutually_exclusive arra 90 {0x3, 0x5, 0xC, 0x0}, then the 91 92 # ls mutually_exclusive/ 93 0x3 94 0x5 95 0xc 96 # 97 98 Note that mutually_exclusive i 99 device and the file names unde 100 directory show the mutually-ex 101 of the files.
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.