Searched +full:dsa +full:- +full:slave +full:- +full:ports (Results 1 – 6 of 6) sorted by relevance
2 # SPDX-License-Identifier: Apache-2.05 DSA Device7 include: [spi-device.yaml]9 dsa-master-port:12 dsa-slave-ports:14 description: Number of slave ports on the switch15 reset-gpios:16 type: phandle-array20 child-binding:21 description: Properties of slave port[all …]
4 * SPDX-License-Identifier: Apache-2.08 * @brief DSA definitions and handlers18 * @brief DSA definitions and helpers19 * @defgroup DSA Distributed Switch Architecture definitions and helpers32 * Size of the DSA TAG:33 * - KSZ8794 - 1 byte48 * @brief DSA generic transmit function50 * This is a generic function for passing packets from slave DSA interface to57 * - 0 if ok (packet sent via master iface), < 0 if error62 * @brief DSA (MGMT) Receive packet callback[all …]
4 * SPDX-License-Identifier: Apache-2.010 #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() local30 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 …]
2 * @brief DSA related functions8 * SPDX-License-Identifier: Apache-2.020 #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 …]
4 * SPDX-License-Identifier: Apache-2.07 /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 …]
4 * SPDX-License-Identifier: Apache-2.07 #define LOG_MODULE_NAME dsa45 #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 …]