| /linux/arch/arm64/boot/dts/axiado/ |
| H A D | ax3000.dtsi | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Copyright (c) 2021-25 Axiado Corporation (or its affiliates). All rights reserved. 6 /dts-v1/; 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/interrupt-controller/arm-gic.h> 11 /memreserve/ 0x3c0013a0 0x00000008; /* cpu-release-addr */ 14 interrupt-parent = <&gic500>; 15 #address-cells = <2>; 16 #size-cells = <2>; 19 #address-cells = <2>; [all …]
|
| /linux/Documentation/devicetree/bindings/i3c/ |
| H A D | i3c.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Alexandre Belloni <alexandre.belloni@bootlin.com> 11 - Miquel Raynal <miquel.raynal@bootlin.com> 15 and a set of child nodes for each I2C or I3C slave on the bus. Each of them 20 pattern: "^i3c@[0-9a-f]+$" 22 "#address-cells": 25 Each I2C device connected to the bus should be described in a subnode. 35 this I3C device has a static I2C address and we want to assign it a [all …]
|
| H A D | cdns,i3c-master.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/i3c/cdns,i3c-master.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Boris Brezillon <bbrezillon@kernel.org> 13 - $ref: i3c.yaml# 18 - const: cdns,i3c-master 19 - items: 20 - enum: 21 - axiado,ax3000-i3c [all …]
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-acorn.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * ARM IOC/IOMD i2c driver. 7 * On Acorn machines, the following i2c devices are on the bus: 8 * - PCF8583 real time clock & static RAM 11 #include <linux/i2c.h> 12 #include <linux/i2c-algo-bit.h> 19 #define SCL 0x02 macro 23 * We must preserve all non-i2c output bits in IOC_CONTROL. 24 * Note also that we need to preserve the value of SCL and 32 u_int ioc_control = ioc_readb(IOC_CONTROL) & ~(SCL | SDA); in ioc_setscl() [all …]
|
| H A D | i2c-pxa.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * I2C adapter for the PXA I2C bus access. 8 * Copyright (C) 2004-2005 Deep Blue Solutions Ltd. 13 * Jan 2003: Fixed several bugs concerning interrupt handling [Kai-Uwe Bloem] 14 * Jan 2003: added limited signal handling [Kai-Uwe Bloem] 24 #include <linux/i2c.h> 34 #include <linux/platform_data/i2c-pxa.h> 38 /* I2C register field definitions */ 59 #define ICR_A3700_FM (1 << 16) /* fast mode for armada-3700 */ 60 #define ICR_A3700_HS (1 << 17) /* high speed mode for armada-3700 */ [all …]
|
| H A D | i2c-parport.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* ------------------------------------------------------------------------ * 3 * i2c-parport.c I2C bus over parallel port * 4 * ------------------------------------------------------------------------ * 5 Copyright (C) 2003-2011 Jean Delvare <jdelvare@suse.de> 7 Based on older i2c-philips-par.c driver 8 Copyright (C) 1995-2000 Simon G. Vogl 13 * ------------------------------------------------------------------------ */ 15 #define pr_fmt(fmt) "i2c-parport: " fmt 22 #include <linux/i2c.h> [all …]
|
| H A D | i2c-sh_mobile.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * SuperH Mobile I2C Controller 5 * Copyright (C) 2014-19 Wolfram Sang <wsa@sang-engineering.com> 8 * Portions of the code based on out-of-tree driver i2c-sh7343.c 15 #include <linux/dma-mapping.h> 17 #include <linux/i2c.h> 41 /* ICIC: -DTE */ 48 /* ICIC: -DTE */ 52 /* 3 bytes or more, +---------+ gets repeated */ 57 /* 0 byte receive - not supported since slave may hold SDA low */ [all …]
|
| H A D | i2c-designware-common.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Synopsys DesignWare I2C adapter driver. 5 * Based on the TI DAVINCI I2C adapter driver. 21 #include <linux/i2c.h> 35 #include "i2c-designware-core.h" 65 "incorrect slave-transmitter mode configuration", 72 *val = readl(dev->base + reg); in dw_reg_read() 81 writel(val, dev->base + reg); in dw_reg_write() 90 *val = swab32(readl(dev->base + reg)); in dw_reg_read_swab() 99 writel(swab32(val), dev->base + reg); in dw_reg_write_swab() [all …]
|
| H A D | i2c-npcm7xx.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Nuvoton NPCM7xx I2C Controller driver 11 #include <linux/i2c.h> 29 * External I2C Interface driver xfer indication values, which indicate status 58 /* I2C Bank (module had 2 banks of registers) */ 64 /* Internal I2C states values (for the I2C module state machine). */ 119 #define NPCM_I2CSCLLT 0x1C /* SCL Low Time */ 121 #define NPCM_I2CSCLHT 0x1E /* SCL High Time */ 125 #define NPCM_I2CTXF_CTL 0x12 /* Tx-FIFO Control */ 128 #define NPCM_I2CTXF_STS 0x1A /* Tx-FIFO Status */ [all …]
|
| /linux/Documentation/devicetree/bindings/i2c/ |
| H A D | st,stm32-i2c.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/i2c/st,stm32-i2c.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: I2C controller embedded in STMicroelectronics STM32 I2C platform 10 - Pierre-Yves MORDRET <pierre-yves.mordret@foss.st.com> 13 - $ref: /schemas/i2c/i2c-controller.yaml# 14 - if: 19 - st,stm32f7-i2c 20 - st,stm32mp13-i2c [all …]
|
| H A D | i2c-rk3x.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/i2c/i2c-rk3x.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Rockchip RK3xxx I2C controller 10 This driver interfaces with the native I2C controller present in Rockchip 14 - $ref: /schemas/i2c/i2c-controller.yaml# 17 - Heiko Stuebner <heiko@sntech.de> 23 - const: rockchip,rv1108-i2c 24 - const: rockchip,rk3066-i2c [all …]
|
| H A D | renesas,rcar-i2c.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/i2c/renesas,rcar-i2c.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Renesas R-Car I2C Controller 10 - Wolfram Sang <wsa+renesas@sang-engineering.com> 15 - items: 16 - enum: 17 - renesas,i2c-r8a7778 # R-Car M1A 18 - renesas,i2c-r8a7779 # R-Car H1 [all …]
|
| H A D | snps,designware-i2c.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only 3 --- 4 $id: http://devicetree.org/schemas/i2c/snps,designware-i2c.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Synopsys DesignWare APB I2C Controller 10 - Jarkko Nikula <jarkko.nikula@linux.intel.com> 13 - $ref: /schemas/i2c/i2c-controller.yaml# 14 - if: 19 const: mscc,ocelot-i2c 28 - description: Generic Synopsys DesignWare I2C controller [all …]
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3399-gru-chromebook.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Google Gru-Chromebook shared properties 8 #include "rk3399-gru.dtsi" 11 pp900_ap: regulator-pp900-ap { 12 compatible = "regulator-fixed"; 13 regulator-name = "pp900_ap"; 16 regulator-always-on; 17 regulator-boot-on; 18 regulator-min-microvolt = <900000>; 19 regulator-max-microvolt = <900000>; [all …]
|
| H A D | rk3399-gru.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 5 * Copyright 2016-2017 Google, Inc 8 #include <dt-bindings/input/input.h> 9 #include "rk3399-op1.dtsi" 18 stdout-path = "serial2:115200n8"; 27 * - Rails that only connect to the EC (or devices that the EC talks to) 29 * - Rails _are_ included if the rails go to the AP even if the AP 38 * - The EC controls the enable and the EC always enables a rail as 40 * - The rails are actually connected to each other by a jumper and 45 ppvar_sys: regulator-ppvar-sys { [all …]
|
| /linux/arch/arm64/boot/dts/renesas/ |
| H A D | r8a779f0.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 3 * Device Tree Source for the R-Car S4-8 (R8A779F0) SoC 8 #include <dt-bindings/clock/r8a779f0-cpg-mssr.h> 9 #include <dt-bindings/interrupt-controller/arm-gic.h> 10 #include <dt-bindings/power/r8a779f0-sysc.h> 14 #address-cells = <2>; 15 #size-cells = <2>; 17 cluster01_opp: opp-table-0 { 18 compatible = "operating-points-v2"; 19 opp-shared; [all …]
|
| /linux/include/linux/ |
| H A D | i2c.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * i2c.h - definitions for the Linux i2c bus interface 4 * Copyright (C) 1995-2000 Simon G. Vogl 5 * Copyright (C) 2013-2019 Wolfram Sang <wsa@kernel.org> 24 #include <uapi/linux/i2c.h> 30 /* --- General options ------------------------------------------------ */ 43 /* I2C Frequency Modes */ 69 * i2c_master_recv - issue a single I2C message in master receive mode 83 * i2c_master_recv_dmasafe - issue a single I2C message in master receive mode 99 * i2c_master_send - issue a single I2C message in master transmit mode [all …]
|
| /linux/arch/arm64/boot/dts/freescale/ |
| H A D | imx8mm-data-modul-edm-sbc.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 8 #include <dt-bindings/net/qca-ar803x.h> 9 #include <dt-bindings/phy/phy-imx8-pcie.h> 14 compatible = "dmo,imx8mm-data-modul-edm-sbc", "fsl,imx8mm"; 22 stdout-path = &uart3; 32 compatible = "pwm-backlight"; 33 pinctrl-names = "default"; 34 pinctrl-0 = <&pinctrl_panel_backlight>; 35 brightness-levels = <0 1 10 20 30 40 50 60 70 75 80 90 100>; [all …]
|
| H A D | imx8mm-verdin.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 6 #include <dt-bindings/phy/phy-imx8-pcie.h> 7 #include <dt-bindings/pwm/pwm.h> 9 #include "imx8mm-overdrive.dtsi" 13 stdout-path = &uart1; 23 compatible = "fixed-clock"; 24 #clock-cells = <0>; 25 clock-frequency = <40000000>; 28 gpio-keys { 29 compatible = "gpio-keys"; [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-i3c | 1 What: /sys/bus/i3c/devices/i3c-<bus-id> 3 Contact: linux-i3c@vger.kernel.org 5 An I3C bus. This directory will contain one sub-directory per 8 What: /sys/bus/i3c/devices/i3c-<bus-id>/current_master 10 Contact: linux-i3c@vger.kernel.org 12 Expose the master that owns the bus (<bus-id>-<master-pid>) at 17 What: /sys/bus/i3c/devices/i3c-<bus-id>/mode 19 Contact: linux-i3c@vger.kernel.org 21 I3C bus mode. Can be "pure", "mixed-fast" or "mixed-slow". See 25 What: /sys/bus/i3c/devices/i3c-<bus-id>/i3c_scl_frequency [all …]
|
| /linux/drivers/i2c/algos/ |
| H A D | i2c-algo-pca.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * i2c-algo-pca.c i2c driver algorithms for PCA9564 adapters 14 #include <linux/i2c.h> 15 #include <linux/i2c-algo-pca.h> 26 #define pca_outw(adap, reg, val) adap->write_byte(adap->data, reg, val) 27 #define pca_inw(adap, reg) adap->read_byte(adap->data, reg) 30 #define pca_clock(adap) adap->i2c_clock 33 #define pca_wait(adap) adap->wait_for_completion_cb(adap->data) 37 if (adap->chip == I2C_PCA_CHIP_9665) { in pca_reset() 46 * After a reset we need to re-apply any configuration in pca_reset() [all …]
|
| /linux/drivers/video/fbdev/i810/ |
| H A D | i810-i2c.c | 1 /*-*- linux-c -*- 2 * linux/drivers/video/i810-i2c.c -- Intel 810/815 I2C support 45 struct i810fb_par *par = chan->par; in i810i2c_setscl() 46 u8 __iomem *mmio = par->mmio_start_virtual; in i810i2c_setscl() 49 i810_writel(mmio, chan->ddc_base, SCL_DIR_MASK | SCL_VAL_MASK); in i810i2c_setscl() 51 i810_writel(mmio, chan->ddc_base, SCL_DIR | SCL_DIR_MASK | SCL_VAL_MASK); in i810i2c_setscl() 52 i810_readl(mmio, chan->ddc_base); /* flush posted write */ in i810i2c_setscl() 58 struct i810fb_par *par = chan->par; in i810i2c_setsda() 59 u8 __iomem *mmio = par->mmio_start_virtual; in i810i2c_setsda() 62 i810_writel(mmio, chan->ddc_base, SDA_DIR_MASK | SDA_VAL_MASK); in i810i2c_setsda() [all …]
|
| /linux/arch/arm/boot/dts/intel/ixp/ |
| H A D | intel-ixp42x-linksys-nslu2.dts | 1 // SPDX-License-Identifier: ISC 6 /dts-v1/; 8 #include "intel-ixp42x.dtsi" 9 #include <dt-bindings/input/input.h> 14 #address-cells = <1>; 15 #size-cells = <1>; 25 stdout-path = "uart0:115200n8"; 33 compatible = "gpio-leds"; 34 led-status { 37 default-state = "on"; [all …]
|
| /linux/drivers/leds/rgb/ |
| H A D | leds-ktd202x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Kinetic KTD2026/7 RGB/White LED driver with I2C interface 7 * Datasheet: https://www.kinet-ic.com/uploads/KTD2026-7-04h.pdf 10 #include <linux/i2c.h> 11 #include <linux/led-class-multicolor.h> 39 #define KTD202X_ENABLE_CTRL_WAKE 0x00 /* SCL High & SDA High */ 40 #define KTD202X_ENABLE_CTRL_SLEEP 0x08 /* SCL High & SDA Toggling */ 50 /* Register 2-3 */ 63 /* Register 6-9 */ 110 if (!chip->enabled) in ktd202x_chip_disable() [all …]
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | sdx75.dtsi | 1 // SPDX-License-Identifier: BSD-3-Clause 9 #include <dt-bindings/clock/qcom,rpmh.h> 10 #include <dt-bindings/clock/qcom,sdx75-gcc.h> 11 #include <dt-bindings/dma/qcom-gpi.h> 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/interconnect/qcom,icc.h> 14 #include <dt-bindings/interconnect/qcom,sdx75.h> 15 #include <dt-bindings/interrupt-controller/arm-gic.h> 16 #include <dt-bindings/mailbox/qcom-ipcc.h> 17 #include <dt-bindings/power/qcom,rpmhpd.h> [all …]
|