linux/drivers/phy/amlogic/phy-meson-g12a-mipi-dphy-analog.c

// SPDX-License-Identifier: GPL-2.0
/*
 * Meson G12A MIPI DSI Analog PHY
 *
 * Copyright (C) 2018 Amlogic, Inc. All rights reserved
 * Copyright (C) 2022 BayLibre, SAS
 * Author: Neil Armstrong <[email protected]>
 */
#include <linux/bitfield.h>
#include <linux/bitops.h>
#include <linux/module.h>
#include <linux/phy/phy.h>
#include <linux/regmap.h>
#include <linux/delay.h>
#include <linux/mfd/syscon.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <dt-bindings/phy/phy.h>

#define HHI_MIPI_CNTL0
#define HHI_MIPI_CNTL0_DIF_REF_CTL1
#define HHI_MIPI_CNTL0_DIF_REF_CTL0

#define HHI_MIPI_CNTL1
#define HHI_MIPI_CNTL1_BANDGAP
#define HHI_MIPI_CNTL2_DIF_REF_CTL2

#define HHI_MIPI_CNTL2
#define HHI_MIPI_CNTL2_DIF_TX_CTL1
#define HHI_MIPI_CNTL2_CH_EN
#define HHI_MIPI_CNTL2_DIF_TX_CTL0

#define DSI_LANE_0
#define DSI_LANE_1
#define DSI_LANE_CLK
#define DSI_LANE_2
#define DSI_LANE_3

struct phy_g12a_mipi_dphy_analog_priv {};

static int phy_g12a_mipi_dphy_analog_configure(struct phy *phy,
					       union phy_configure_opts *opts)
{}

static int phy_g12a_mipi_dphy_analog_power_on(struct phy *phy)
{}

static int phy_g12a_mipi_dphy_analog_power_off(struct phy *phy)
{}

static const struct phy_ops phy_g12a_mipi_dphy_analog_ops =;

static int phy_g12a_mipi_dphy_analog_probe(struct platform_device *pdev)
{}

static const struct of_device_id phy_g12a_mipi_dphy_analog_of_match[] =;
MODULE_DEVICE_TABLE(of, phy_g12a_mipi_dphy_analog_of_match);

static struct platform_driver phy_g12a_mipi_dphy_analog_driver =;
module_platform_driver();

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();