-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add example manifest for a mikrobus add-on board(ENC28J60 SPI Ethernet Controller) The manifest was tested with the mikroBUS driver on a PocketBeagle Target.
- Loading branch information
1 parent
bf3c37d
commit aff9b2c
Showing
1 changed file
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
; | ||
; mikroBUS Add-on Board Manifest | ||
; for enc28j60 ethernet controller | ||
; | ||
; Copyright 2020 BeagleBoard.org Foundation | ||
; | ||
|
||
[manifest-header] | ||
version-major = 0 | ||
version-minor = 1 | ||
|
||
[interface-descriptor] | ||
vendor-string-id = 1 | ||
product-string-id = 2 | ||
|
||
; Interface vendor string (id can't be 0) | ||
[string-descriptor 1] | ||
string = MikroElektronika | ||
|
||
; Interface product string (id can't be 0) | ||
[string-descriptor 2] | ||
string = ENC28J60 Ethernet Controller | ||
|
||
; mikrobus-descriptor describes the setup of | ||
; mikroBUS GPIOs and the number of devices | ||
; present in the add-on board. The GPIO positions | ||
; are relative to the mikrobus and the following | ||
; values can be used to refer to different GPIOs | ||
; on the mikrobus port. | ||
; MIKROBUS_GPIO_INT = 0x01 | ||
; MIKROBUS_GPIO_RST = 0x02 | ||
; MIKROBUS_GPIO_PWM = 0x03 | ||
[mikrobus-descriptor] | ||
num-devices = 1 | ||
int-gpio = 1 | ||
rst-gpio = 2 | ||
pwm-gpio = 0 | ||
|
||
; gbphy protocol Bundle 0 | ||
[bundle-descriptor 1] | ||
class = 0xa | ||
|
||
; GPIO protocol on CPort 1 | ||
[cport-descriptor 1] | ||
bundle = 1 | ||
protocol = 0x2 | ||
|
||
; SPI protocol on CPort 1 | ||
[cport-descriptor 2] | ||
bundle = 1 | ||
protocol = 0xb | ||
|
||
; device-descriptor describes each device | ||
; present on the add-on board and other details | ||
; required by the device driver. The device-descriptor | ||
; has the following fields, | ||
; driver-string-id : device driver string id | ||
; protocol : type of bus the device uses , can be | ||
; one of the following: | ||
; MIKROBUS_PROTOCOL_SPI = 0x01 | ||
; MIKROBUS_PROTOCOL_I2C = 0x02 | ||
; MIKROBUS_PROTOCOL_UART = 0x03 | ||
; mode : SPI Device Mode | ||
; irq : IRQ GPIO used by the device | ||
; irq_type : Type of IRQ used by the | ||
; device, same values as described | ||
; in linux/irq.h | ||
[device-descriptor 1] | ||
driver-string-id = 3 | ||
protocol = 0x1 | ||
mode = 0x0 | ||
max-speed-hz = 16000000 | ||
irq = 1 | ||
irq-type = 0x2 | ||
|
||
; device driver string (id can't be 0) | ||
[string-descriptor 3] | ||
string = enc28j60 | ||
|