/openbmc/linux/Documentation/devicetree/bindings/gpio/ |
H A D | mediatek,mt7621-gpio.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/gpio/mediatek,mt7621-gpio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Mediatek MT7621 SoC GPIO controller 10 - Sergio Paracuellos <sergio.paracuellos@gmail.com> 15 We load one GPIO controller instance per bank. Also the GPIO controller can receive 21 pattern: "^gpio@[0-9a-f]+$" 24 const: mediatek,mt7621-gpio 29 "#gpio-cells": [all …]
|
/openbmc/linux/arch/mips/boot/dts/ralink/ |
H A D | mt7621.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 #include <dt-bindings/interrupt-controller/mips-gic.h> 3 #include <dt-bindings/gpio/gpio.h> 4 #include <dt-bindings/clock/mt7621-clk.h> 5 #include <dt-bindings/reset/mt7621-reset.h> 8 #address-cells = <1>; 9 #size-cells = <1>; 10 compatible = "mediatek,mt7621-soc"; 13 #address-cells = <1>; 14 #size-cells = <0>; [all …]
|
H A D | mt7621-tplink-hc220-g5-v1.dts | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /dts-v1/; 4 #include "mt7621.dtsi" 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/input/input.h> 8 #include <dt-bindings/leds/common.h> 11 compatible = "tplink,hc220-g5-v1", "mediatek,mt7621-soc"; 12 model = "TP-Link HC220 G5 v1"; 23 gpio-keys { 24 compatible = "gpio-keys"; [all …]
|
H A D | mt7628a.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 4 #address-cells = <1>; 5 #size-cells = <1>; 6 compatible = "ralink,mt7628a-soc"; 9 #address-cells = <1>; 10 #size-cells = <0>; 19 resetc: reset-controller { 20 compatible = "ralink,rt2880-reset"; 21 #reset-cells = <1>; 24 cpuintc: interrupt-controller { [all …]
|
H A D | mt7621-gnubee-gb-pc1.dts | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /dts-v1/; 4 #include "mt7621.dtsi" 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/input/input.h> 10 compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc"; 11 model = "GB-PC1"; 23 gpio-keys { 24 compatible = "gpio-keys"; 26 key-reset { [all …]
|
H A D | mt7621-gnubee-gb-pc2.dts | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 /dts-v1/; 4 #include "mt7621.dtsi" 6 #include <dt-bindings/gpio/gpio.h> 7 #include <dt-bindings/input/input.h> 10 compatible = "gnubee,gb-pc2", "mediatek,mt7621-soc"; 11 model = "GB-PC2"; 23 gpio-keys { 24 compatible = "gpio-keys"; 26 key-reset { [all …]
|
/openbmc/u-boot/arch/mips/dts/ |
H A D | mt7628a.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 4 #address-cells = <1>; 5 #size-cells = <1>; 6 compatible = "ralink,mt7628a-soc"; 9 #address-cells = <1>; 10 #size-cells = <0>; 19 resetc: reset-controller { 20 compatible = "ralink,rt2880-reset"; 21 #reset-cells = <1>; 24 cpuintc: interrupt-controller { [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/dsa/ |
H A D | mediatek,mt7530.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Arınç ÜNAL <arinc.unal@arinc9.com> 11 - Landen Chao <Landen.Chao@mediatek.com> 12 - DENG Qingfang <dqfext@gmail.com> 13 - Sean Wang <sean.wang@mediatek.com> 14 - Daniel Golle <daniel@makrotopia.org> 17 There are three versions of MT7530, standalone, in a multi-chip module and 18 built-into a SoC. [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pci/ |
H A D | mediatek,mt7621-pcie.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/mediatek,mt7621-pcie.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: MediaTek MT7621 PCIe controller 10 - Sergio Paracuellos <sergio.paracuellos@gmail.com> 13 MediaTek MT7621 PCIe subsys supports a single Root Complex (RC) 14 with 3 Root Ports. Each Root Port supports a Gen1 1-lane Link 17 - $ref: /schemas/pci/pci-bus.yaml# 21 const: mediatek,mt7621-pci [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/pinctrl/ |
H A D | mediatek,mt7621-pinctrl.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/pinctrl/mediatek,mt7621-pinctrl.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: MediaTek MT7621 Pin Controller 10 - Arınç ÜNAL <arinc.unal@arinc9.com> 11 - Sergio Paracuellos <sergio.paracuellos@gmail.com> 14 MediaTek MT7621 pin controller for MT7621 SoC. 20 const: ralink,mt7621-pinctrl 23 '-pins$': [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/bus/ |
H A D | palmbus.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Sergio Paracuellos <sergio.paracuellos@gmail.com> 19 pattern: "^palmbus(@[0-9a-f]+)?$" 21 "#address-cells": 24 "#size-cells": 36 # All other properties should be child nodes with unit-address and 'reg' 37 "@[0-9a-f]+$": 45 - reg [all …]
|
/openbmc/u-boot/drivers/gpio/ |
H A D | Kconfig | 2 # GPIO infrastructure and drivers 5 menu "GPIO Support" 8 bool "Enable Driver Model for GPIO drivers" 11 Enable driver model for GPIO access. The standard GPIO 13 the GPIO uclass. Drivers provide methods to query the 15 is defined in include/asm-generic/gpio.h. 18 bool "Enable GPIO hog support" 22 Enable gpio hog support 23 The GPIO chip may contain GPIO hog definitions. GPIO hogging 24 is a mechanism providing automatic GPIO request and config- [all …]
|
H A D | mt7621_gpio.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 2009-2011 Gabor Juhos <juhosg@openwrt.org> 17 #include <asm/gpio.h> 18 #include <dm/device-internal.h> 19 #include <dt-bindings/gpio/gpio.h> 48 return (reg * 0x10) + (plat->bank * 0x4); in reg_offs() 119 uc_priv->gpio_count = plat->gpio_count; in gpio_mediatek_probe() 120 uc_priv->bank_name = plat->bank_name; in gpio_mediatek_probe() 127 * We have a top-level GPIO device with no actual GPIOs. It has a child 132 struct mediatek_gpio_platdata *plat = parent->platdata; in gpio_mediatek_bind() [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-mt7621.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2009-2011 Gabor Juhos <juhosg@openwrt.org> 8 #include <linux/gpio/driver.h> 43 * struct mtk - state container for 45 * separate gpio-chip each one with its 50 * @gc_map: array of the gpio chips 68 struct gpio_chip *gc = &rg->chip; in mtk_gpio_w32() 71 offset = (rg->bank * GPIO_BANK_STRIDE) + offset; in mtk_gpio_w32() 72 gc->write_reg(mtk->base + offset, val); in mtk_gpio_w32() 78 struct gpio_chip *gc = &rg->chip; in mtk_gpio_r32() [all …]
|
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 2 # generic gpio support: platform drivers, dedicated expander chips, etc 4 ccflags-$(CONFIG_DEBUG_GPIO) += -DDEBUG 6 obj-$(CONFIG_GPIOLIB) += gpiolib.o 7 obj-$(CONFIG_GPIOLIB) += gpiolib-devres.o 8 obj-$(CONFIG_GPIOLIB) += gpiolib-legacy.o 9 obj-$(CONFIG_OF_GPIO) += gpiolib-of.o 10 obj-$(CONFIG_GPIO_CDEV) += gpiolib-cdev.o 11 obj-$(CONFIG_GPIO_SYSFS) += gpiolib-sysfs.o 12 obj-$(CONFIG_GPIO_ACPI) += gpiolib-acpi.o [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # GPIO infrastructure and drivers 7 bool "GPIO Support" 9 This enables GPIO support through the generic GPIO library. 11 one or more of the GPIO drivers below. 47 this symbol, but new drivers should use the generic gpio-regmap 51 bool "Debug GPIO calls" 54 Say Y here to add some extra checks and diagnostics to GPIO calls. 57 non-sleeping contexts. They can make bitbanged serial protocols 62 bool "/sys/class/gpio/... (sysfs interface)" if EXPERT [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/net/ |
H A D | mediatek-bluetooth.txt | 1 MediaTek SoC built-in Bluetooth Devices 5 child node of the serial node with BTIF. The dt-bindings details for BTIF 10 - compatible: Must be 11 "mediatek,mt7622-bluetooth": for MT7622 SoC 12 - clocks: Should be the clock specifiers corresponding to the entry in 13 clock-names property. 14 - clock-names: Should contain "ref" entries. 15 - power-domains: Phandle to the power domain that the device is part of 20 compatible = "mediatek,mt7622-btif", 21 "mediatek,mtk-btif"; [all …]
|
/openbmc/linux/drivers/pinctrl/mediatek/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 58 bool "MediaTek MT7621 pin control" 150 Say yes here to support pin controller and gpio driver 152 In MTK platform, we support virtual gpio and use it to 153 map specific eint which doesn't have real gpio pin. 225 Say yes here to support pin controller and gpio driver 227 In MTK platform, we support virtual gpio and use it to 228 map specific eint which doesn't have real gpio pin.
|
/openbmc/linux/drivers/pci/controller/ |
H A D | pcie-mt7621.c | 1 // SPDX-License-Identifier: GPL-2.0+ 21 #include <linux/gpio/consumer.h> 35 /* MediaTek-specific configuration registers */ 40 /* Host-PCI bridge registers */ 67 * struct mt7621_pcie_port - PCIe port information 74 * @gpio_rst: gpio reset 91 * struct mt7621_pcie - PCIe host information 107 return readl_relaxed(pcie->base + reg); in pcie_read() 112 writel_relaxed(val, pcie->base + reg); in pcie_write() 117 return readl_relaxed(port->base + reg); in pcie_port_read() [all …]
|
/openbmc/u-boot/drivers/spi/ |
H A D | Kconfig | 16 typically use driver-private data instead of extending the 24 by providing an high-level interface to send memory-like commands. 65 please refer to doc/device-tree-bindings/spi/spi-ath79.txt. 94 Enable the Broadcom set-top box SPI driver. This driver can 101 Enable the Cadence Quad-SPI (QSPI) driver. This driver can be 150 bool "MediaTek MT7621 SPI driver" 153 Enable the MT7621 SPI driver. This driver can be used to access 155 SPI core, like MT7621/7628/7688. 178 to access the SPI NOR flash, MMC-over-SPI on platforms based on 215 for "sandbox,spi-flash", which is in drivers/mtd/spi/sandbox.c. [all …]
|
/openbmc/linux/drivers/net/dsa/ |
H A D | mt7530-mdio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 #include <linux/gpio/consumer.h> 6 #include <linux/pcs/pcs-mtk-lynxi.h> 31 ret = bus->write(bus, 0x1f, 0x1f, page); in mt7530_regmap_write() 35 ret = bus->write(bus, 0x1f, r, lo); in mt7530_regmap_write() 39 ret = bus->write(bus, 0x1f, 0x10, hi); in mt7530_regmap_write() 54 ret = bus->write(bus, 0x1f, 0x1f, page); in mt7530_regmap_read() 58 lo = bus->read(bus, 0x1f, r); in mt7530_regmap_read() 59 hi = bus->read(bus, 0x1f, 0x10); in mt7530_regmap_read() 95 mt7531_pcs_config[i] = devm_kzalloc(priv->dev, in mt7531_create_sgmii() [all …]
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 7 obj-$(CONFIG_I2C_SCMI) += i2c-scmi.o 10 obj-$(CONFIG_I2C_CCGX_UCSI) += i2c-ccgx-ucsi.o 13 obj-$(CONFIG_I2C_ALI1535) += i2c-ali1535.o 14 obj-$(CONFIG_I2C_ALI1563) += i2c-ali1563.o 15 obj-$(CONFIG_I2C_ALI15X3) += i2c-ali15x3.o 16 obj-$(CONFIG_I2C_AMD756) += i2c-amd756.o 17 obj-$(CONFIG_I2C_AMD756_S4882) += i2c-amd756-s4882.o 18 obj-$(CONFIG_I2C_AMD8111) += i2c-amd8111.o 19 obj-$(CONFIG_I2C_CHT_WC) += i2c-cht-wc.o [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 16 for Cypress CCGx Type-C controller. Individual bus drivers 25 controller is part of the 7101 device, which is an ACPI-compliant 29 will be called i2c-ali1535. 37 controller is part of the 7101 device, which is an ACPI-compliant 41 will be called i2c-ali1563. 51 will be called i2c-ali15x3. 63 will be called i2c-amd756. 70 S4882 motherboard. On this 4-CPU board, the SMBus is multiplexed 76 will be called i2c-amd756-s4882. [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 13 dynamic device discovery; some are even write-only or read-only. 17 chips, analog to digital (and d-to-a) converters, and more. 44 If your system has an master-capable SPI controller (which 56 by providing a high-level interface to send memory-like commands. 145 supports spi-mem interface. 221 With a few GPIO pins, your system can bitbang the SPI protocol. 222 Select this to get SPI support through I/O pins (GPIO, parallel 224 this code to manage the per-word or per-transfer accesses to the 254 Flash over 1/2/4-bit wide bus. Enable this option if you have a [all …]
|
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 6 ccflags-$(CONFIG_SPI_DEBUG) := -DDEBUG 8 # small core, mostly translating board-specific 10 obj-$(CONFIG_SPI_MASTER) += spi.o 11 obj-$(CONFIG_SPI_MEM) += spi-mem.o 12 obj-$(CONFIG_SPI_MUX) += spi-mux.o 13 obj-$(CONFIG_SPI_SPIDEV) += spidev.o 14 obj-$(CONFIG_SPI_LOOPBACK_TEST) += spi-loopback-test.o 17 obj-$(CONFIG_SPI_ALTERA) += spi-altera-platform.o 18 obj-$(CONFIG_SPI_ALTERA_CORE) += spi-altera-core.o [all …]
|