Lines Matching +full:video +full:- +full:mux
1 // SPDX-License-Identifier: GPL-2.0-only
19 #include <linux/nvmem-provider.h>
23 #include <linux/v4l2-dv-timings.h>
24 #include <linux/platform_data/ti-aemif.h>
28 #include <asm/mach-types.h>
31 #include <linux/platform_data/i2c-davinci.h>
32 #include <linux/platform_data/mmc-davinci.h>
33 #include <linux/platform_data/mtd-davinci.h>
34 #include <linux/platform_data/keyscan-davinci.h>
39 #include "mux.h"
56 #define DM365_EVM_PHY_ID "davinci_mdio-0:01"
58 * A MAX-II CPLD is used for various board control functions.
106 /* UBL (a few copies) plus U-Boot */
110 .mask_flags = MTD_WRITEABLE, /* force read-only */
112 /* U-Boot environment */
149 .end = DM365_ASYNC_EMIF_DATA_CE0_BASE + SZ_32M - 1,
153 .end = DM365_ASYNC_EMIF_CONTROL_BASE + SZ_4K - 1,
173 .end = DM365_ASYNC_EMIF_CONTROL_BASE + SZ_4K - 1,
192 .name = "ti-aemif",
193 .id = -1,
210 .nvmem_name = "1-00500",
216 .nvmem_name = "1-00500",
219 .con_id = "mac-address",
248 /* Baseboard 3.3V: 5V -> TPS767D301 -> 3.3V */
249 REGULATOR_SUPPLY("AVDD", "1-0018"),
250 REGULATOR_SUPPLY("DRVDD", "1-0018"),
251 REGULATOR_SUPPLY("IOVDD", "1-0018"),
255 /* Baseboard 1.8V: 5V -> TPS767D301 -> 1.8V */
256 REGULATOR_SUPPLY("DVDD", "1-0018"),
298 return -ENXIO; in cpld_mmc_get_cd()
307 return -ENXIO; in cpld_mmc_get_ro()
326 * Subsystem Users Guide(sprufg5.pdf) pages 125 - 127 in dm365evm_emac_configure()
349 * Subsystem Users Guide(sprufg5.pdf) pages 133 - 134 in dm365evm_emac_configure()
362 * Subsystem Users Guide(sprufg5.pdf) pages 118, 128 - 131 in dm365evm_mmc_configure()
389 .name = "S-Video",
585 .module_name = "dm365-vpbe-display",
626 { "dm365evm::ds6", "nand-disk", },
638 reg &= ~led->mask; in cpld_led_set()
640 reg |= led->mask; in cpld_led_set()
649 return (reg & led->mask) ? LED_OFF : LED_FULL; in cpld_led_get()
668 led->cdev.name = cpld_leds[i].name; in cpld_leds_init()
669 led->cdev.brightness_set = cpld_led_set; in cpld_leds_init()
670 led->cdev.brightness_get = cpld_led_get; in cpld_leds_init()
671 led->cdev.default_trigger = cpld_leds[i].trigger; in cpld_leds_init()
672 led->mask = BIT(i); in cpld_leds_init()
674 if (led_classdev_register(NULL, &led->cdev) < 0) { in cpld_leds_init()
688 u8 mux, resets; in evm_init_cpld() local
715 mux = 0; in evm_init_cpld()
721 /* external keypad mux */ in evm_init_cpld()
722 mux |= BIT(7); in evm_init_cpld()
735 /* Static video input config with SN74CBT16214 1-of-3 mux: in evm_init_cpld()
736 * - port b1 == tvp7002 (mux lowbits == 1 or 6) in evm_init_cpld()
737 * - port b2 == imager (mux lowbits == 2 or 7) in evm_init_cpld()
738 * - port b3 == tvp5146 (mux lowbits == 5) in evm_init_cpld()
744 mux |= 2; in evm_init_cpld()
746 /* externally mux MMC1/ENET/AIC33 to imager */ in evm_init_cpld()
747 mux |= BIT(6) | BIT(5) | BIT(3); in evm_init_cpld()
757 soc_info->emac_pdata->phy_id = DM365_EVM_PHY_ID; in evm_init_cpld()
764 mux |= 1; in evm_init_cpld()
769 mux |= 5; in evm_init_cpld()
774 __raw_writeb(mux, cpld + CPLD_MUX); in evm_init_cpld()
776 pr_info("EVM: %s video input\n", label); in evm_init_cpld()
814 regulator_register_always_on(0, "fixed-dummy", fixed_supplies_1_8v, in dm365_evm_init()
816 regulator_register_always_on(1, "fixed-dummy", fixed_supplies_3_3v, in dm365_evm_init()