All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] enable LEDS on mini-pci type III connector.
@ 2009-05-15  8:55 Karl Hiramoto
  2009-05-18 10:56 ` Karl Hiramoto
  0 siblings, 1 reply; 2+ messages in thread
From: Karl Hiramoto @ 2009-05-15  8:55 UTC (permalink / raw)
  To: ath9k-devel

Hi,

I'd like to enable the two LEDs on pins 11-14 of the mini pci connector. 
I'm using wireless-testing from git.    Is this supported?

The pins:
http://www.interfacebus.com/MiniPCI_Pinout_124Pin.html

I have a SparkLan WMIA-207GN.  
http://www.sparklan.com/product_details.php?prod_id=148

I assume the pins are routed on the board to the correct pins on the 
mini-pci connector.

lspci shows:

00:02.0 Network controller: Atheros Communications Inc. AR5416 
802.11abgn Wireless PCI Adapter (rev 01)
        Subsystem: Atheros Communications Inc. Unknown device 
2071                                    
        Flags: bus master, 66MHz, medium devsel, latency 168, IRQ 
27                                  
        Memory at 48020000 (32-bit, non-prefetchable) [size=64K]
        Capabilities: [40] #80 [0000]
        Capabilities: [80] #00 [0000]
        Kernel driver in use: ath9k
        Kernel modules: ath9k


find /sys/class/leds/
/sys/class/leds/
/sys/class/leds/ath9k-phy0::radio
/sys/class/leds/ath9k-phy0::radio/uevent
/sys/class/leds/ath9k-phy0::radio/subsystem
/sys/class/leds/ath9k-phy0::radio/device
/sys/class/leds/ath9k-phy0::radio/brightness
/sys/class/leds/ath9k-phy0::radio/max_brightness
/sys/class/leds/ath9k-phy0::radio/trigger
/sys/class/leds/ath9k-phy0::assoc
/sys/class/leds/ath9k-phy0::assoc/uevent
/sys/class/leds/ath9k-phy0::assoc/subsystem
/sys/class/leds/ath9k-phy0::assoc/device
/sys/class/leds/ath9k-phy0::assoc/brightness
/sys/class/leds/ath9k-phy0::assoc/max_brightness
/sys/class/leds/ath9k-phy0::assoc/trigger
/sys/class/leds/ath9k-phy0::tx
/sys/class/leds/ath9k-phy0::tx/uevent
/sys/class/leds/ath9k-phy0::tx/subsystem
/sys/class/leds/ath9k-phy0::tx/device
/sys/class/leds/ath9k-phy0::tx/brightness
/sys/class/leds/ath9k-phy0::tx/max_brightness
/sys/class/leds/ath9k-phy0::tx/trigger
/sys/class/leds/ath9k-phy0::rx
/sys/class/leds/ath9k-phy0::rx/uevent
/sys/class/leds/ath9k-phy0::rx/subsystem
/sys/class/leds/ath9k-phy0::rx/device
/sys/class/leds/ath9k-phy0::rx/brightness
/sys/class/leds/ath9k-phy0::rx/max_brightness
/sys/class/leds/ath9k-phy0::rx/trigger
#



# find /sys/devices/pci0000:00/0000:00:02.0/
/sys/devices/pci0000:00/0000:00:02.0/
/sys/devices/pci0000:00/0000:00:02.0/pools
/sys/devices/pci0000:00/0000:00:02.0/uevent
/sys/devices/pci0000:00/0000:00:02.0/resource
/sys/devices/pci0000:00/0000:00:02.0/vendor
/sys/devices/pci0000:00/0000:00:02.0/device
/sys/devices/pci0000:00/0000:00:02.0/subsystem_vendor
/sys/devices/pci0000:00/0000:00:02.0/subsystem_device
/sys/devices/pci0000:00/0000:00:02.0/class
/sys/devices/pci0000:00/0000:00:02.0/irq
/sys/devices/pci0000:00/0000:00:02.0/local_cpus
/sys/devices/pci0000:00/0000:00:02.0/local_cpulist
/sys/devices/pci0000:00/0000:00:02.0/modalias
/sys/devices/pci0000:00/0000:00:02.0/enable
/sys/devices/pci0000:00/0000:00:02.0/broken_parity_status
/sys/devices/pci0000:00/0000:00:02.0/msi_bus
/sys/devices/pci0000:00/0000:00:02.0/remove
/sys/devices/pci0000:00/0000:00:02.0/rescan
/sys/devices/pci0000:00/0000:00:02.0/subsystem
/sys/devices/pci0000:00/0000:00:02.0/bus
/sys/devices/pci0000:00/0000:00:02.0/config
/sys/devices/pci0000:00/0000:00:02.0/resource0
/sys/devices/pci0000:00/0000:00:02.0/driver
/sys/devices/pci0000:00/0000:00:02.0/ieee80211:phy0
/sys/devices/pci0000:00/0000:00:02.0/net:wmaster0
/sys/devices/pci0000:00/0000:00:02.0/leds:ath9k-phy0::radio
/sys/devices/pci0000:00/0000:00:02.0/leds:ath9k-phy0::assoc
/sys/devices/pci0000:00/0000:00:02.0/leds:ath9k-phy0::tx
/sys/devices/pci0000:00/0000:00:02.0/leds:ath9k-phy0::rx
/sys/devices/pci0000:00/0000:00:02.0/net:wlan0_0
/sys/devices/pci0000:00/0000:00:02.0/net:mon.wlan0_0
/sys/devices/pci0000:00/0000:00:02.0/net:wlan0_1



Thanks,

--
Karl

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ath9k-devel] enable LEDS on mini-pci type III connector.
  2009-05-15  8:55 [ath9k-devel] enable LEDS on mini-pci type III connector Karl Hiramoto
@ 2009-05-18 10:56 ` Karl Hiramoto
  0 siblings, 0 replies; 2+ messages in thread
From: Karl Hiramoto @ 2009-05-18 10:56 UTC (permalink / raw)
  To: ath9k-devel

Karl Hiramoto wrote:
> Hi,
>
> I'd like to enable the two LEDs on pins 11-14 of the mini pci connector. 
> I'm using wireless-testing from git.    Is this supported?
>
> The pins:
> http://www.interfacebus.com/MiniPCI_Pinout_124Pin.html
>
> I have a SparkLan WMIA-207GN.  
> http://www.sparklan.com/product_details.php?prod_id=148
>   
Just by trying the different combinations i found the GPIOs on this 
card  are on GPIO0  and GPIO4

#define ATH_LED_PIN    4

or

#define ATH_LED_PIN    0


--
karl

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-05-18 10:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-15  8:55 [ath9k-devel] enable LEDS on mini-pci type III connector Karl Hiramoto
2009-05-18 10:56 ` Karl Hiramoto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.