Home
last modified time | relevance | path

Searched +full:dsa +full:- +full:slave +full:- +full:ports (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/dts/bindings/dsa/
Dmicrochip_dsa.yaml2 # SPDX-License-Identifier: Apache-2.0
5 DSA Device
7 include: [spi-device.yaml]
9 dsa-master-port:
12 dsa-slave-ports:
14 description: Number of slave ports on the switch
15 reset-gpios:
16 type: phandle-array
20 child-binding:
21 description: Properties of slave port
[all …]
/Zephyr-latest/include/zephyr/net/
Ddsa.h4 * SPDX-License-Identifier: Apache-2.0
8 * @brief DSA definitions and handlers
18 * @brief DSA definitions and helpers
19 * @defgroup DSA Distributed Switch Architecture definitions and helpers
32 * Size of the DSA TAG:
33 * - KSZ8794 - 1 byte
48 * @brief DSA generic transmit function
50 * This is a generic function for passing packets from slave DSA interface to
57 * - 0 if ok (packet sent via master iface), < 0 if error
62 * @brief DSA (MGMT) Receive packet callback
[all …]
/Zephyr-latest/samples/net/dsa/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
10 #include <zephyr/net/dsa.h>
23 if (ifaces->master == NULL) { in iface_cb()
24 ifaces->master = iface; in iface_cb()
26 /* Get slave interfaces */ in iface_cb()
27 for (int i = 0; i < ARRAY_SIZE(ifaces->lan); i++) { in iface_cb()
28 struct net_if *slave = dsa_get_slave_port(iface, i); in iface_cb() local
30 if (slave == NULL) { in iface_cb()
31 LOG_ERR("Slave interface %d not found.", i); in iface_cb()
35 ifaces->lan[i] = slave; in iface_cb()
[all …]
/Zephyr-latest/subsys/net/l2/ethernet/dsa/
Ddsa.c2 * @brief DSA related functions
8 * SPDX-License-Identifier: Apache-2.0
20 #include <zephyr/net/dsa.h>
30 ctx->dsa_send = fn; in dsa_register_master_tx()
56 * RECEIVE HANDLING CODE - ingress (ETH -> DSA slave ports)
62 return -ENOENT; in dsa_check_iface()
67 return -ESRCH; in dsa_check_iface()
86 ctx->dsa_recv_cb = cb; in dsa_register_recv_callback()
104 ctx = c->dsa_ctx; in dsa_net_recv()
106 if (ctx == NULL || ctx->dapi == NULL) { in dsa_net_recv()
[all …]
/Zephyr-latest/boards/segger/ip_k66f/
Dip_k66f.dts4 * SPDX-License-Identifier: Apache-2.0
7 /dts-v1/;
11 #include "ip_k66f-pinctrl.dtsi"
20 dsa-spi = &spi1;
26 zephyr,code-partition = &slot0_partition;
30 compatible = "gpio-leds";
44 clock-frequency = <120000000>;
48 pllfll-select = <KINETIS_SIM_PLLFLLSEL_MCGPLLCLK>;
49 er32k-select = <KINETIS_SIM_ER32KSEL_RTC>;
52 clock-div = <3>;
[all …]
/Zephyr-latest/drivers/ethernet/
Ddsa_ksz8xxx.c4 * SPDX-License-Identifier: Apache-2.0
7 #define LOG_MODULE_NAME dsa
45 #define PRV_DATA(ctx) ((struct ksz8xxx_data *const)(ctx)->prv_data)
66 spi_write_dt(&pdev->spi, &tx); in dsa_ksz8xxx_write_reg()
98 if (!spi_transceive_dt(&pdev->spi, &tx, &rx)) { in dsa_ksz8xxx_read_reg()
139 * Wait for SPI of KSZ8794 being fully operational - up to 10 ms in dsa_ksz8xxx_probe()
142 tmp != KSZ8XXX_CHIP_ID0_ID_DEFAULT && timeout > 0; timeout--) { in dsa_ksz8xxx_probe()
149 return -ENODEV; in dsa_ksz8xxx_probe()
163 return -ENODEV; in dsa_ksz8xxx_probe()
176 * According to KSZ8794 manual - write to static mac address table in dsa_ksz8xxx_write_static_mac_table()
[all …]