Define the blue sys LED from the device tree as the POWER LED for the
CyberTAN EWW631-B1 platform. This allows LED control through uCentral
Signed-off-by: Paul White <paul@shasta.cloud>
Fixes: WIFI-13435
Signed-off-by: John Crispin <john@phrozen.org>
6704b5b83e9d smp: fix minor spelling typos
a0c5a18fa2a5 zcbor: upgrade zcbor to 0.7.0
52aee9047ec2 zcbor/smp: replace auto-generated code with zcbor functions
09606bc8e449 smp: print {en,de}code error with 'zcbor_peek_error'
b91c19ef5106 umcumgr/smp: allow disabling 'confirm' and 'test' commands
5849f7a503cd smp: restore timeout value for select()
45d9523c0c13 umcumgr: use 'stderr' for 'usage' only if error occurred
28d0044ab5b3 umcumgr: introduce support for TI serial bootloader
db34a3645b21 umcumgr: add support for 'dump' in TI serial bootloader mode
df3f235bcb3c smp: fix images list print
bde8686bac61 zcbor: upgrade zcbor to 0.8.1
ed34b2816f2b smp: adapt to changes introduced in zcbor 0.8.0
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
This exports MCU/USB related pins in sysfs using 'gpio-export' on the
EdgeCore {E,O}AP102 boards as:
- mcu-enable
- usb-rear-power
- usb-side-power
- usb-hub-enable
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
This adds configuration for pins connected with nRF52840 MCU (reset and
one apparently used by device vendor for DTM enable) and related to USB
(GL850G HUB reset and rear/side ports power) on the EdgeCore {E,O}AP102.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
This change focuses on the I/O related cleanups for EdgeCore {E,O}AP102
DTS files. List of changes:
1. Remove 'usb_mux_sel' pinctrl mux
Defined label isn't used as reference in any other node and defined
GPIO isn't used as well.
2. Remove 'pci@20000000', related PHY and pinctrl mux nodes
{E,O}AP102 doesn't use of any of the IPQ8071A PCIe buses.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
This was lost during kernel v4.4 to v5.4 migration. Bring back correct
pin configuration (only 2-pin) and UART node used by the on-board MCU.
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
The bootcount wasn't getting reset to 0 upon a successful boot,
resulting in falling back to the previous firmware version after three
reboots of the AP.
Fixes: WIFI-13359
Signed-off-by: Paul White <paul@shasta.cloud>
This adds a workaround to fix an issue with 802.1x + DVLANs on platforms
where LAN ports are through an integrated switch (swconfig).
Netifd is tracking the wired ports as part of a bridge-vlan: either a
static one, or 4090 for the default untagged bridge. When hostapd
authorizes the wired port, netifd is automatically adding this bridge
vlan as PVID untagged to the port. The vlan_add event then adds the
dynamic VLAN as untagged to the same port. The result is that the
port is operating on the PVID bridge vlan, and not the dynamic VLAN.
Fixing this in netifd is going to be complex and take time, so this
change includes a workaround. When a wired client is authorized
using a dynamic VLAN, ucentral-event takes the following actions:
- Remove the bridge VLAN from the port
bridge vlan del dev <port> vid <bridge-vlan>
- Modify the dynamic VLAN to PVID
bridge vlan add dev <port> vid <dynamic-vlan> pvid untagged
Fixes: WIFI-13358
Signed-off-by: Paul White <paul@shasta.cloud>
There are use cases where it's helpful to know the vlan_id assigned to a
client (dynamic VLAN) when consuming the sta-authorized ubus event
Signed-off-by: Paul White <paul@shasta.cloud>
When an uplink interface is created for a DVLAN due to swconfig support,
add this new interface to dhcpsnoop
Signed-off-by: Paul White <paul@shasta.cloud>
Added the new ubus command 'add_devices' which takes the same devies
JSON schema data as the 'config' command does. This is needed, for
example, to add dynamic VLAN uplink devices once they are created
Signed-off-by: Paul White <paul@shasta.cloud>