| /linux/drivers/phy/starfive/ | 
| H A D | phy-jh7110-dphy-rx.c | 1 // SPDX-License-Identifier: GPL-2.0+3  * StarFive JH7110 DPHY RX driver
 75 	struct stf_dphy *dphy = phy_get_drvdata(phy);  in stf_dphy_configure()  local
 76 	const struct stf_dphy_info *info = dphy->info;  in stf_dphy_configure()
 84 	       FIELD_PREP(STF_DPHY_LANE_SWAP_CLK, info->maps[0]) |  in stf_dphy_configure()
 85 	       FIELD_PREP(STF_DPHY_LANE_SWAP_CLK1, info->maps[5]) |  in stf_dphy_configure()
 86 	       FIELD_PREP(STF_DPHY_LANE_SWAP_LAN0, info->maps[1]) |  in stf_dphy_configure()
 87 	       FIELD_PREP(STF_DPHY_LANE_SWAP_LAN1, info->maps[2]),  in stf_dphy_configure()
 88 	       dphy->regs + STF_DPHY_APBCFGSAIF_SYSCFG(188));  in stf_dphy_configure()
 90 	writel(FIELD_PREP(STF_DPHY_LANE_SWAP_LAN2, info->maps[3]) |  in stf_dphy_configure()
 [all …]
 
 | 
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only9 	tristate "StarFive JH7110 D-PHY RX support"
 14 	  Choose this option if you have a StarFive D-PHY in your
 16 	  phy-jh7110-dphy-rx.ko.
 19 	tristate "StarFive JH7110 D-PHY TX Support"
 24 	  Choose this option if you have a StarFive D-PHY TX in your
 26 	  phy-jh7110-dphy-tx.ko.
 36 	  phy-jh7110-pcie.ko.
 46 	  phy-jh7110-usb.ko.
 
 | 
| H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.02 obj-$(CONFIG_PHY_STARFIVE_JH7110_DPHY_RX)	+= phy-jh7110-dphy-rx.o
 3 obj-$(CONFIG_PHY_STARFIVE_JH7110_DPHY_TX)	+= phy-jh7110-dphy-tx.o
 4 obj-$(CONFIG_PHY_STARFIVE_JH7110_PCIE)		+= phy-jh7110-pcie.o
 5 obj-$(CONFIG_PHY_STARFIVE_JH7110_USB)		+= phy-jh7110-usb.o
 
 | 
| /linux/drivers/phy/cadence/ | 
| H A D | cdns-dphy-rx.c | 1 // SPDX-License-Identifier: GPL-2.0-only3  * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/
 13 #include <linux/phy/phy-mipi-dphy.h>
 82 	struct cdns_dphy_rx *dphy = phy_get_drvdata(phy);  in cdns_dphy_rx_power_on()  local
 84 	/* Start RX state machine. */  in cdns_dphy_rx_power_on()
 88 	       dphy->regs + DPHY_CMN_SSM);  in cdns_dphy_rx_power_on()
 95 	struct cdns_dphy_rx *dphy = phy_get_drvdata(phy);  in cdns_dphy_rx_power_off()  local
 97 	writel(0, dphy->regs + DPHY_CMN_SSM);  in cdns_dphy_rx_power_off()
 107 	/* Since CSI-2 clock is DDR, the bit rate is twice the clock rate. */  in cdns_dphy_rx_get_band_ctrl()
 111 		return -EOPNOTSUPP;  in cdns_dphy_rx_get_band_ctrl()
 [all …]
 
 | 
| H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0-only2 obj-$(CONFIG_PHY_CADENCE_TORRENT)	+= phy-cadence-torrent.o
 3 obj-$(CONFIG_PHY_CADENCE_DPHY)	+= cdns-dphy.o
 4 obj-$(CONFIG_PHY_CADENCE_DPHY_RX)	+= cdns-dphy-rx.o
 5 obj-$(CONFIG_PHY_CADENCE_SIERRA)	+= phy-cadence-sierra.o
 6 obj-$(CONFIG_PHY_CADENCE_SALVO)	+= phy-cadence-salvo.o
 
 | 
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only16 	tristate "Cadence D-PHY Support"
 21 	  Choose this option if you have a Cadence D-PHY in your
 23 	  cdns-dphy.
 26 	tristate "Cadence D-PHY Rx Support"
 31 	  Support for Cadence D-PHY in Rx configuration.
 
 | 
| /linux/Documentation/devicetree/bindings/phy/ | 
| H A D | cdns,dphy-rx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)3 ---
 4 $id: http://devicetree.org/schemas/phy/cdns,dphy-rx.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: Cadence DPHY Rx
 10   - Pratyush Yadav <pratyush@kernel.org>
 15       - const: cdns,dphy-rx
 20   "#phy-cells":
 23   power-domains:
 27   - compatible
 [all …]
 
 | 
| H A D | allwinner,sun6i-a31-mipi-dphy.yaml | 1 # SPDX-License-Identifier: GPL-2.03 ---
 4 $id: http://devicetree.org/schemas/phy/allwinner,sun6i-a31-mipi-dphy.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: Allwinner A31 MIPI D-PHY Controller
 10   - Chen-Yu Tsai <wens@csie.org>
 11   - Maxime Ripard <mripard@kernel.org>
 14   "#phy-cells":
 19       - const: allwinner,sun6i-a31-mipi-dphy
 20       - const: allwinner,sun50i-a100-mipi-dphy
 [all …]
 
 | 
| H A D | starfive,jh7110-dphy-rx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)3 ---
 4 $id: http://devicetree.org/schemas/phy/starfive,jh7110-dphy-rx.yaml#
 5 $schema: http://devicetree.org/meta-schemas/core.yaml#
 7 title: StarFive SoC JH7110 MIPI D-PHY Rx Controller
 10   - Jack Zhu <jack.zhu@starfivetech.com>
 11   - Changhuang Liang <changhuang.liang@starfivetech.com>
 14   StarFive SoCs contain a MIPI CSI D-PHY based on M31 IP, used to
 19     const: starfive,jh7110-dphy-rx
 26       - description: config clock
 [all …]
 
 | 
| /linux/drivers/phy/allwinner/ | 
| H A D | phy-sun6i-mipi-dphy.c | 1 // SPDX-License-Identifier: GPL-2.0+4  * Copyright (C) 2017-2018 Bootlin
 6  * Maxime Ripard <maxime.ripard@free-electrons.com>
 18 #include <linux/phy/phy-mipi-dphy.h>
 21 #define SUN6I_DPHY_GCTL_LANE_NUM(n)		((((n) - 1) & 3) << 4)
 183 	void	(*tx_power_on)(struct sun6i_dphy *dphy);
 202 	struct sun6i_dphy *dphy = phy_get_drvdata(phy);  in sun6i_dphy_init()  local
 204 	reset_control_deassert(dphy->reset);  in sun6i_dphy_init()
 205 	clk_prepare_enable(dphy->mod_clk);  in sun6i_dphy_init()
 206 	clk_set_rate_exclusive(dphy->mod_clk, 150000000);  in sun6i_dphy_init()
 [all …]
 
 | 
| /linux/drivers/phy/rockchip/ | 
| H A D | phy-rockchip-dphy-rx0.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)3  * Rockchip MIPI Synopsys DPHY RX0 driver
 11  * chromeos-4.4 branch.
 14  *   Jacob Chen <jacob2.chen@rock-chips.com>
 15  *   Shunqian Zheng <zhengsq@rock-chips.com>
 25 #include <linux/phy/phy-mipi-dphy.h>
 64 	"dphy-ref",
 65 	"dphy-cfg",
 110 	{ .offset = _offset, .mask = BIT(_width) - 1, .shift = _shift, }
 162 	const struct dphy_reg *reg = &priv->drv_data->regs[index];  in rk_dphy_write_grf()
 [all …]
 
 | 
| H A D | phy-rockchip-inno-csidphy.c | 1 // SPDX-License-Identifier: GPL-2.03  * Rockchip MIPI RX Innosilicon DPHY driver
 17 #include <linux/phy/phy-mipi-dphy.h>
 62 /* Configure the count time of the THS-SETTLE by protocol. */
 75  * The higher 16-bit of this register is used for write protection
 98 	{ .offset = _offset, .mask = BIT(_width) - 1, .shift = _shift, .valid = 1, }
 159 	const struct dphy_drv_data *drv_data = priv->drv_data;  in write_grf_reg()
 160 	const struct dphy_reg *reg = &drv_data->grf_regs[index];  in write_grf_reg()
 162 	if (reg->valid)  in write_grf_reg()
 163 		regmap_write(priv->grf, reg->offset,  in write_grf_reg()
 [all …]
 
 | 
| /linux/drivers/phy/mediatek/ | 
| H A D | phy-mtk-mipi-csi-0-5.c | 1 // SPDX-License-Identifier: GPL-2.09 #include <dt-bindings/phy/phy.h>
 19 #include "phy-mtk-io.h"
 20 #include "phy-mtk-mipi-csi-0-5-rx-reg.h"
 34 	DPHY = 0,  enumerator
 76 	void __iomem *base = port->base;  in mtk_mipi_phy_power_on()
 79 	 * The driver currently supports DPHY and CD-PHY phys,  in mtk_mipi_phy_power_on()
 80 	 * but the only mode supported is DPHY,  in mtk_mipi_phy_power_on()
 81 	 * so CD-PHY capable phys must be configured in DPHY mode  in mtk_mipi_phy_power_on()
 83 	if (port->type == CDPHY) {  in mtk_mipi_phy_power_on()
 [all …]
 
 | 
| /linux/drivers/video/fbdev/mmp/hw/ | 
| H A D | mmp_ctrl.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */16 /* ------------< LCD register >------------ */
 150 #define LCD_SCLK(path) ((PATH_PN == path->id) ? LCD_CFG_SCLK_DIV :\
 151 	((PATH_TV == path->id) ? LCD_TCLK_DIV : LCD_PN2_SCLK_DIV))
 386 #define	 CFG_RXBITS(rx)				(((rx) - 1)<<16) /* 0x1F~0x1 */  argument
 388 #define	 CFG_TXBITS(tx)				(((tx) - 1)<<8) /* 0x1F~0x1 */
 394 #define	 CFG_RXBITSTO0(rx)			((rx)<<5)  argument
 411    1. Smart Pannel 8-bit Bus Control Register.
 685 /* FIXME - JUST GUESS */
 811 /* read-only */
 [all …]
 
 | 
| /linux/drivers/phy/amlogic/ | 
| H A D | phy-meson-axg-mipi-dphy.c | 1 // SPDX-License-Identifier: GPL-2.03  * Meson AXG MIPI DPHY driver
 48  * [0]  enalbe the MIPI DPHY TxDDRClk.
 97 /* [24]   rx turn watch dog triggered.
 98  * [23]   rx esc watchdog  triggered.
 144 /* Watchdog for RX low power state no finished. */
 188 	ret = phy_init(priv->analog);  in phy_meson_axg_mipi_dphy_init()
 192 	ret = reset_control_reset(priv->reset);  in phy_meson_axg_mipi_dphy_init()
 205 	ret = phy_mipi_dphy_config_validate(&opts->mipi_dphy);  in phy_meson_axg_mipi_dphy_configure()
 209 	ret = phy_configure(priv->analog, opts);  in phy_meson_axg_mipi_dphy_configure()
 [all …]
 
 | 
| /linux/arch/arm/boot/dts/allwinner/ | 
| H A D | sun8i-a33.dtsi | 2  * Copyright 2014 Chen-Yu Tsai4  * Chen-Yu Tsai <wens@csie.org>
 6  * This file is dual-licensed: you can use it either under the terms
 45 #include "sun8i-a23-a33.dtsi"
 46 #include <dt-bindings/thermal/thermal.h>
 49 	cpu0_opp_table: opp-table-cpu {
 50 		compatible = "operating-points-v2";
 51 		opp-shared;
 53 		opp-120000000 {
 54 			opp-hz = /bits/ 64 <120000000>;
 [all …]
 
 | 
| /linux/arch/arm/boot/dts/rockchip/ | 
| H A D | rk3128.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+6 #include <dt-bindings/clock/rk3128-cru.h>
 7 #include <dt-bindings/gpio/gpio.h>
 8 #include <dt-bindings/interrupt-controller/arm-gic.h>
 9 #include <dt-bindings/interrupt-controller/irq.h>
 10 #include <dt-bindings/pinctrl/rockchip.h>
 11 #include <dt-bindings/power/rk3128-power.h>
 15 	interrupt-parent = <&gic>;
 16 	#address-cells = <1>;
 17 	#size-cells = <1>;
 [all …]
 
 | 
| /linux/arch/arm64/boot/dts/rockchip/ | 
| H A D | rk356x-base.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)6 #include <dt-bindings/clock/rk3568-cru.h>
 7 #include <dt-bindings/interrupt-controller/arm-gic.h>
 8 #include <dt-bindings/interrupt-controller/irq.h>
 9 #include <dt-bindings/phy/phy.h>
 10 #include <dt-bindings/pinctrl/rockchip.h>
 11 #include <dt-bindings/power/rk3568-power.h>
 12 #include <dt-bindings/soc/rockchip,boot-mode.h>
 13 #include <dt-bindings/thermal/thermal.h>
 16 	interrupt-parent = <&gic>;
 [all …]
 
 | 
| H A D | px30.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)6 #include <dt-bindings/clock/px30-cru.h>
 7 #include <dt-bindings/gpio/gpio.h>
 8 #include <dt-bindings/interrupt-controller/arm-gic.h>
 9 #include <dt-bindings/interrupt-controller/irq.h>
 10 #include <dt-bindings/pinctrl/rockchip.h>
 11 #include <dt-bindings/power/px30-power.h>
 12 #include <dt-bindings/soc/rockchip,boot-mode.h>
 13 #include <dt-bindings/thermal/thermal.h>
 18 	interrupt-parent = <&gic>;
 [all …]
 
 | 
| H A D | rk3399-base.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)6 #include <dt-bindings/clock/rk3399-cru.h>
 7 #include <dt-bindings/gpio/gpio.h>
 8 #include <dt-bindings/interrupt-controller/arm-gic.h>
 9 #include <dt-bindings/interrupt-controller/irq.h>
 10 #include <dt-bindings/pinctrl/rockchip.h>
 11 #include <dt-bindings/power/rk3399-power.h>
 12 #include <dt-bindings/thermal/thermal.h>
 17 	interrupt-parent = <&gic>;
 18 	#address-cells = <2>;
 [all …]
 
 | 
| /linux/drivers/pmdomain/starfive/ | 
| H A D | jh71xx-pmu.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later5  * Copyright (C) 2022-2023 StarFive Technology Co., Ltd.
 15 #include <dt-bindings/power/starfive,jh7110-pmu.h>
 87 	struct jh71xx_pmu *pmu = pmd->pmu;  in jh71xx_pmu_get_state()
 90 		return -EINVAL;  in jh71xx_pmu_get_state()
 92 	*is_on = readl(pmu->base + pmu->match_data->pmu_status) & mask;  in jh71xx_pmu_get_state()
 99 	struct jh71xx_pmu *pmu = pmd->pmu;  in jh7110_pmu_set_state()
 107 	spin_lock_irqsave(&pmu->lock, flags);  in jh7110_pmu_set_state()
 129 	writel(mask, pmu->base + mode);  in jh7110_pmu_set_state()
 139 	writel(JH71XX_PMU_SW_ENCOURAGE_ON, pmu->base + JH71XX_PMU_SW_ENCOURAGE);  in jh7110_pmu_set_state()
 [all …]
 
 | 
| /linux/drivers/media/i2c/adv748x/ | 
| H A D | adv748x-core.c | 1 // SPDX-License-Identifier: GPL-2.0+21 #include <linux/v4l2-dv-timings.h>
 23 #include <media/v4l2-ctrls.h>
 24 #include <media/v4l2-device.h>
 25 #include <media/v4l2-dv-timings.h>
 26 #include <media/v4l2-fwnode.h>
 27 #include <media/v4l2-ioctl.h>
 31 /* -----------------------------------------------------------------------------
 63 	if (!state->i2c_clients[region])  in adv748x_configure_regmap()
 64 		return -ENODEV;  in adv748x_configure_regmap()
 [all …]
 
 | 
| /linux/arch/arm64/boot/dts/amlogic/ | 
| H A D | meson-g12-common.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)6 #include <dt-bindings/phy/phy.h>
 7 #include <dt-bindings/gpio/gpio.h>
 8 #include <dt-bindings/clock/g12a-clkc.h>
 9 #include <dt-bindings/clock/g12a-aoclkc.h>
 10 #include <dt-bindings/interrupt-controller/irq.h>
 11 #include <dt-bindings/interrupt-controller/arm-gic.h>
 12 #include <dt-bindings/interrupt-controller/amlogic,meson-g12a-gpio-intc.h>
 13 #include <dt-bindings/reset/amlogic,meson-g12a-reset.h>
 14 #include <dt-bindings/thermal/thermal.h>
 [all …]
 
 | 
| /linux/arch/arm64/boot/dts/freescale/ | 
| H A D | imx8mq-librem5-devkit.dts | 1 // SPDX-License-Identifier: GPL-2.0+3  * Copyright 2018-2019 Purism SPC
 6 /dts-v1/;
 8 #include "dt-bindings/input/input.h"
 9 #include <dt-bindings/interrupt-controller/irq.h>
 10 #include <dt-bindings/leds/common.h>
 11 #include "dt-bindings/pwm/pwm.h"
 12 #include "dt-bindings/usb/pd.h"
 17 	compatible = "purism,librem5-devkit", "fsl,imx8mq";
 19 	backlight_dsi: backlight-dsi {
 [all …]
 
 | 
| /linux/arch/arm64/boot/dts/mediatek/ | 
| H A D | mt8365.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)10 #include <dt-bindings/clock/mediatek,mt8365-clk.h>
 11 #include <dt-bindings/interrupt-controller/arm-gic.h>
 12 #include <dt-bindings/interrupt-controller/irq.h>
 13 #include <dt-bindings/memory/mediatek,mt8365-larb-port.h>
 14 #include <dt-bindings/phy/phy.h>
 15 #include <dt-bindings/power/mediatek,mt8365-power.h>
 19 	interrupt-parent = <&sysirq>;
 20 	#address-cells = <2>;
 21 	#size-cells = <2>;
 [all …]
 
 |