/openbmc/linux/Documentation/devicetree/bindings/mmc/ |
H A D | mtk-sd.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/mmc/mtk-sd.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chaotian Jing <chaotian.jing@mediatek.com> 11 - Wenbin Mei <wenbin.mei@mediatek.com> 16 - enum: 17 - mediatek,mt2701-mmc 18 - mediatek,mt2712-mmc 19 - mediatek,mt6779-mmc [all …]
|
/openbmc/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt6795-sony-xperia-m5.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 7 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 14 compatible = "sony,xperia-m5", "mediatek,mt6795"; 15 chassis-type = "handset"; 30 reserved_memory: reserved-memory { 31 #address-cells = <2>; 32 #size-cells = <2>; 38 no-map; 42 preloader-region@44800000 { [all …]
|
H A D | mt8173-evb.dts | 1 // SPDX-License-Identifier: GPL-2.0-only 7 /dts-v1/; 8 #include <dt-bindings/gpio/gpio.h> 13 chassis-type = "embedded"; 14 compatible = "mediatek,mt8173-evb", "mediatek,mt8173"; 31 compatible = "hdmi-connector"; 37 remote-endpoint = <&hdmi0_out>; 43 compatible = "linux,extcon-usb-gpio"; 44 id-gpio = <&pio 16 GPIO_ACTIVE_HIGH>; 47 usb_p1_vbus: regulator-usb-p1 { [all …]
|
H A D | mt8173-elm.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include <dt-bindings/input/input.h> 7 #include <dt-bindings/input/linux-event-codes.h> 8 #include <dt-bindings/regulator/dlg,da9211-regulator.h> 9 #include <dt-bindings/gpio/gpio.h> 25 compatible = "pwm-backlight"; 27 power-supply = <&bl_fixed_reg>; 28 enable-gpios = <&pio 95 GPIO_ACTIVE_HIGH>; 30 pinctrl-names = "default"; 31 pinctrl-0 = <&panel_backlight_en_pins>; [all …]
|
H A D | mt8195-cherry.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/spmi/spmi.h> 25 backlight_lcd0: backlight-lcd0 { 26 compatible = "pwm-backlight"; 27 brightness-levels = <0 1023>; 28 default-brightness-level = <576>; 29 enable-gpios = <&pio 82 GPIO_ACTIVE_HIGH>; 30 num-interpolated-steps = <1023>; 32 power-supply = <&ppvar_sys>; [all …]
|
H A D | mt8183-kukui.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/input/input.h> 21 stdout-path = "serial0:115200n8"; 25 compatible = "pwm-backlight"; 27 power-supply = <&bl_pp5000>; 28 enable-gpios = <&pio 176 0>; 29 brightness-levels = <0 1023>; 30 num-interpolated-steps = <1023>; 31 default-brightness-level = <576>; [all …]
|
H A D | mt8192-asurada.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 6 /dts-v1/; 9 #include <dt-bindings/gpio/gpio.h> 10 #include <dt-bindings/spmi/spmi.h> 25 stdout-path = "serial0:115200n8"; 33 backlight_lcd0: backlight-lcd0 { 34 compatible = "pwm-backlight"; 36 power-supply = <&ppvar_sys>; 37 enable-gpios = <&pio 152 0>; 38 brightness-levels = <0 1023>; [all …]
|
/openbmc/linux/drivers/mmc/host/ |
H A D | sdhci_f_sdh30.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2013 - 2015 Fujitsu Semiconductor, Ltd 13 #include <linux/delay.h> 20 #include "sdhci-pltfm.h" 55 if (priv->vendor_hs200) { in sdhci_f_sdh30_soft_voltage_switch() 56 dev_info(priv->dev, "%s: setting hs200\n", __func__); in sdhci_f_sdh30_soft_voltage_switch() 58 ctrl |= priv->vendor_hs200; in sdhci_f_sdh30_soft_voltage_switch() 67 static unsigned int sdhci_f_sdh30_get_min_clock(struct sdhci_host *host) in sdhci_f_sdh30_get_min_clock() 82 if (priv->enable_cmd_dat_delay) { in sdhci_f_sdh30_reset() 88 if ((host->mmc->caps & MMC_CAP_NONREMOVABLE) && in sdhci_f_sdh30_reset() [all …]
|
H A D | sdhci-xenon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Date: 2016-8-24 15 #include <linux/delay.h> 22 #include "sdhci-pltfm.h" 23 #include "sdhci-xenon.h" 25 static int xenon_enable_internal_clk(struct sdhci_host *host) in xenon_enable_internal_clk() 42 dev_err(mmc_dev(host->mmc), "Internal clock never stabilised.\n"); in xenon_enable_internal_clk() 43 return -ETIMEDOUT; in xenon_enable_internal_clk() 51 /* Set SDCLK-off-while-idle */ 92 host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY; in xenon_enable_sdhc() [all …]
|
H A D | sdhci-xenon-phy.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Date: 2016-8-24 12 #include <linux/delay.h> 17 #include "sdhci-pltfm.h" 18 #include "sdhci-xenon.h" 203 static int xenon_alloc_emmc_phy(struct sdhci_host *host) in xenon_alloc_emmc_phy() 209 params = devm_kzalloc(mmc_dev(host->mmc), sizeof(*params), GFP_KERNEL); in xenon_alloc_emmc_phy() 211 return -ENOMEM; in xenon_alloc_emmc_phy() 213 priv->phy_params = params; in xenon_alloc_emmc_phy() 214 if (priv->phy_type == EMMC_5_0_PHY) in xenon_alloc_emmc_phy() [all …]
|
H A D | mtk-sd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2014-2015, 2022 MediaTek Inc. 10 #include <linux/delay.h> 11 #include <linux/dma-mapping.h> 34 #include <linux/mmc/slot-gpio.h> 41 /*--------------------------------------------------------------------------*/ 43 /*--------------------------------------------------------------------------*/ 50 /*--------------------------------------------------------------------------*/ 52 /*--------------------------------------------------------------------------*/ 89 /*--------------------------------------------------------------------------*/ [all …]
|
H A D | sdhci-of-dwcmshc.c | 1 // SPDX-License-Identifier: GPL-2.0 12 #include <linux/dma-mapping.h> 22 #include "sdhci-pltfm.h" 76 ((addr | (SZ_128M - 1)) == ((addr + len - 1) | (SZ_128M - 1))) 93 int vendor_specific_area1; /* P_VENDOR_SPECIFIC_AREA reg */ 102 dma_addr_t addr, int len, unsigned int cmd) in dwcmshc_adma_write_desc() argument 104 int tmplen, offset; in dwcmshc_adma_write_desc() 107 sdhci_adma_write_desc(host, desc, addr, len, cmd); in dwcmshc_adma_write_desc() 111 offset = addr & (SZ_128M - 1); in dwcmshc_adma_write_desc() 112 tmplen = SZ_128M - offset; in dwcmshc_adma_write_desc() [all …]
|
H A D | sdhci-pci-arasan.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * sdhci-pci-arasan.c - Driver for Arasan PCI Controller with 12 #include <linux/delay.h> 15 #include "sdhci-pci.h" 77 * Controller has no specific bits for HS200/HS. 93 static int arasan_phy_addr_poll(struct sdhci_host *host, u32 offset, u32 mask) in arasan_phy_addr_poll() 105 return -EBUSY; in arasan_phy_addr_poll() 109 static int arasan_phy_write(struct sdhci_host *host, u8 data, u8 offset) in arasan_phy_write() 116 static int arasan_phy_read(struct sdhci_host *host, u8 offset, u8 *data) in arasan_phy_read() 118 int ret; in arasan_phy_read() [all …]
|
H A D | sdhci.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * linux/drivers/mmc/host/sdhci.c - Secure Digital Host Controller Interface driver 5 * Copyright (C) 2005-2008 Pierre Ossman, All Rights Reserved. 9 * - JMicron (hardware and technical support) 13 #include <linux/delay.h> 19 #include <linux/dma-mapping.h> 33 #include <linux/mmc/slot-gpio.h> 40 pr_debug("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x) 43 pr_err("%s: " DRIVER_NAME ": " f, mmc_hostname(host->mmc), ## x) 47 static unsigned int debug_quirks = 0; [all …]
|
H A D | sdhci-msm.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/mmc/host/sdhci-msm.c - Qualcomm SDHCI Platform driver 5 * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved. 9 #include <linux/delay.h> 23 #include "sdhci-cqhci.h" 24 #include "sdhci-pltfm.h" 123 #define INVALID_TUNING_PHASE -1 140 /* Max load for eMMC Vdd-io supply */ 146 /* Max load for SD Vdd-io supply */ 150 msm_host->var_ops->msm_readl_relaxed(host, offset) [all …]
|
H A D | sdhci.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * linux/drivers/mmc/host/sdhci.h - Secure Digital Host Controller Interface driver 7 * Copyright (C) 2005-2008 Pierre Ossman, All Rights Reserved. 103 * VDD2 - UHS2 or PCIe/NVMe 174 #define SDHCI_INT_ALL_MASK ((unsigned int)-1) 196 #define SDHCI_CTRL_HS400 0x0005 /* Non-standard */ 243 #define SDHCI_SUPPORT_HS400 0x80000000 /* Non-standard */ 252 /* 4C-4F reserved for more max current */ 259 /* 55-57 reserved */ 264 /* 60-FB reserved */ [all …]
|
H A D | sdhci-esdhc-imx.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * derived from the OF-version. 14 #include <linux/delay.h> 23 #include <linux/mmc/slot-gpio.h> 28 #include "sdhci-cqhci.h" 29 #include "sdhci-pltfm.h" 30 #include "sdhci-esdhc.h" 82 #define ESDHC_TUNE_CTRL_MAX ((1 << 7) - 1) 127 * There is an INT DMA ERR mismatch between eSDHC and STD SDHC SPEC: 129 * but bit28 is used as the INT DMA ERR in fsl eSDHC design. [all …]
|
H A D | sdhci-of-at91.c | 1 // SPDX-License-Identifier: GPL-2.0-only 11 #include <linux/delay.h> 17 #include <linux/mmc/slot-gpio.h> 24 #include "sdhci-pltfm.h" 41 unsigned int divider_for_baseclk; 57 mc1r = readb(host->ioaddr + SDMMC_MC1R); in sdhci_at91_set_force_card_detect() 59 writeb(mc1r, host->ioaddr + SDMMC_MC1R); in sdhci_at91_set_force_card_detect() 62 static void sdhci_at91_set_clock(struct sdhci_host *host, unsigned int clock) in sdhci_at91_set_clock() 66 host->mmc->actual_clock = 0; in sdhci_at91_set_clock() 71 * internal clock, changing the configuration and re-enabling the in sdhci_at91_set_clock() [all …]
|
H A D | mmci_stm32_sdmmc.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) STMicroelectronics 2018 - All Rights Reserved 7 #include <linux/delay.h> 8 #include <linux/dma-mapping.h> 67 int (*dlyb_enable)(struct sdmmc_dlyb *dlyb); 69 int (*tuning_prepare)(struct mmci_host *host); 70 int (*set_cfg)(struct sdmmc_dlyb *dlyb, int unit __maybe_unused, 71 int phase, bool sampler __maybe_unused); 81 static int sdmmc_idma_validate_data(struct mmci_host *host, in sdmmc_idma_validate_data() 84 struct sdmmc_idma *idma = host->dma_priv; in sdmmc_idma_validate_data() [all …]
|
/openbmc/u-boot/drivers/mmc/ |
H A D | mtk-sd.c | 1 // SPDX-License-Identifier: GPL-2.0 268 /* whether to use gpio detection or built-in hw detection */ 290 setbits_le32(&host->base->msdc_cfg, MSDC_CFG_RST); in msdc_reset_hw() 292 readl_poll_timeout(&host->base->msdc_cfg, reg, in msdc_reset_hw() 300 setbits_le32(&host->base->msdc_fifocs, MSDC_FIFOCS_CLR); in msdc_fifo_clr() 302 readl_poll_timeout(&host->base->msdc_fifocs, reg, in msdc_fifo_clr() 308 return (readl(&host->base->msdc_fifocs) & in msdc_fifo_rx_bytes() 314 return (readl(&host->base->msdc_fifocs) & in msdc_fifo_tx_bytes() 318 static u32 msdc_cmd_find_resp(struct msdc_host *host, struct mmc_cmd *cmd) in msdc_cmd_find_resp() argument 322 switch (cmd->resp_type) { in msdc_cmd_find_resp() [all …]
|
H A D | mmc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 13 #include <dm/device-internal.h> 24 static int mmc_set_signal_voltage(struct mmc *mmc, uint signal_voltage); 25 static int mmc_power_cycle(struct mmc *mmc); 27 static int mmc_select_mode_and_width(struct mmc *mmc, uint card_caps); 33 static int mmc_wait_dat0(struct mmc *mmc, int state, int timeout) in mmc_wait_dat0() 35 return -ENOSYS; in mmc_wait_dat0() 39 __weak int board_mmc_getwp(struct mmc *mmc) in board_mmc_getwp() 41 return -1; in board_mmc_getwp() 44 int mmc_getwp(struct mmc *mmc) in mmc_getwp() [all …]
|
/openbmc/linux/arch/arm/boot/dts/rockchip/ |
H A D | rk3288-veyron.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 #include <dt-bindings/clock/rockchip,rk808.h> 9 #include <dt-bindings/input/input.h> 18 stdout-path = "serial2:115200n8"; 31 power_button: power-button { 32 compatible = "gpio-keys"; 33 pinctrl-names = "default"; 34 pinctrl-0 = <&pwr_key_l>; 36 key-power { 40 debounce-interval = <100>; [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | rk3288-veyron.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <dt-bindings/clock/rockchip,rk808.h> 9 #include <dt-bindings/input/input.h> 18 stdout-path = &uart2; 22 u-boot,dm-pre-reloc; 23 u-boot,boot0 = &spi_flash; 28 pinctrl-names = "default"; 29 pinctrl-0 = <&fw_wp_ap>; 30 write-protect-gpio = <&gpio7 6 GPIO_ACTIVE_LOW>; 35 compatible = "pwm-backlight"; [all …]
|
/openbmc/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3399-rock-4c-plus.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 8 /dts-v1/; 9 #include <dt-bindings/leds/common.h> 11 #include "rk3399-t-opp.dtsi" 15 compatible = "radxa,rock-4c-plus", "rockchip,rk3399"; 23 stdout-path = "serial2:1500000n8"; 26 clkin_gmac: external-gmac-clock { 27 compatible = "fixed-clock"; 28 clock-frequency = <125000000>; 29 clock-output-names = "clkin_gmac"; [all …]
|
H A D | rk3399-rock-pi-4.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 8 #include <dt-bindings/input/linux-event-codes.h> 9 #include <dt-bindings/leds/common.h> 10 #include <dt-bindings/pwm/pwm.h> 20 stdout-path = "serial2:1500000n8"; 23 clkin_gmac: external-gmac-clock { 24 compatible = "fixed-clock"; 25 clock-frequency = <125000000>; 26 clock-output-names = "clkin_gmac"; [all …]
|