1/* SPDX-License-Identifier: GPL-2.0 */ 2/* Driver for MMIO-Mapped MDIO devices. Some IPs expose internal PHYs or PCS 3 * within the MMIO-mapped area 4 * 5 * Copyright (C) 2023 Maxime Chevallier <maxime.chevallier@bootlin.com> 6 */ 7#ifndef MDIO_REGMAP_H 8#define MDIO_REGMAP_H 9 10#include <linux/phy.h> 11 12struct device; 13struct regmap; 14 15struct mdio_regmap_config { 16 struct device *parent; 17 struct regmap *regmap; 18 char name[MII_BUS_ID_SIZE]; 19 u8 valid_addr; 20 bool autoscan; 21}; 22 23struct mii_bus *devm_mdio_regmap_register(struct device *dev, 24 const struct mdio_regmap_config *config); 25 26#endif 27