| /kernel/linux/linux-6.6/drivers/char/tpm/ |
| D | tpm_tis_i2c.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2014-2021 Nuvoton Technology corporation 4 * Copyright (C) 2019-2022 Infineon Technologies AG 13 #include <linux/i2c.h> 14 #include <linux/crc-ccitt.h> 27 /* TIS-compatible register address to avoid clash with TPM_ACCESS (0x00) */ 30 /* Mask to extract the I2C register from TIS register addresses */ 37 /* Guard Time of 250µs after I2C slave NACK */ 77 * those addresses need to mapped to the registers defined for I2C TPMs in 78 * Table 51 "I2C-TPM Register Overview". [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_phy.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 29 * ixgbe_out_i2c_byte_ack - Send I2C byte with ack 46 * ixgbe_in_i2c_byte_ack - Receive an I2C byte and send ack 64 * ixgbe_ones_comp_byte_add - Perform one's complement addition 68 * Returns one's complement 8-bit sum. 79 * ixgbe_read_i2c_combined_generic_int - Perform I2C read combined operation 81 * @addr: I2C bus address to read from 82 * @reg: I2C device register to read from 91 u32 swfw_mask = hw->phy.phy_semaphore_mask; in ixgbe_read_i2c_combined_generic_int() [all …]
|
| /kernel/linux/linux-6.6/drivers/char/tpm/st33zp24/ |
| D | i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * STMicroelectronics TPM I2C Linux driver for TPM ST33ZP24 4 * Copyright (C) 2009 - 2016 STMicroelectronics 8 #include <linux/i2c.h> 25 * Send byte to the TIS register according to the ST33ZP24 I2C protocol. 33 struct st33zp24_i2c_phy *phy = phy_id; in write8_reg() local 35 phy->buf[0] = tpm_register; in write8_reg() 36 memcpy(phy->buf + 1, tpm_data, tpm_size); in write8_reg() 37 return i2c_master_send(phy->client, phy->buf, tpm_size + 1); in write8_reg() 42 * Recv byte from the TIS register according to the ST33ZP24 I2C protocol. [all …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
| D | ixgbe_phy.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 1999 - 2018 Intel Corporation. */ 29 * ixgbe_out_i2c_byte_ack - Send I2C byte with ack 46 * ixgbe_in_i2c_byte_ack - Receive an I2C byte and send ack 64 * ixgbe_ones_comp_byte_add - Perform one's complement addition 68 * Returns one's complement 8-bit sum. 79 * ixgbe_read_i2c_combined_generic_int - Perform I2C read combined operation 81 * @addr: I2C bus address to read from 82 * @reg: I2C device register to read from 91 u32 swfw_mask = hw->phy.phy_semaphore_mask; in ixgbe_read_i2c_combined_generic_int() [all …]
|
| /kernel/linux/linux-5.10/drivers/char/tpm/st33zp24/ |
| D | i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * STMicroelectronics TPM I2C Linux driver for TPM ST33ZP24 4 * Copyright (C) 2009 - 2016 STMicroelectronics 8 #include <linux/i2c.h> 30 * Send byte to the TIS register according to the ST33ZP24 I2C protocol. 38 struct st33zp24_i2c_phy *phy = phy_id; in write8_reg() local 40 phy->buf[0] = tpm_register; in write8_reg() 41 memcpy(phy->buf + 1, tpm_data, tpm_size); in write8_reg() 42 return i2c_master_send(phy->client, phy->buf, tpm_size + 1); in write8_reg() 47 * Recv byte from the TIS register according to the ST33ZP24 I2C protocol. [all …]
|
| /kernel/linux/linux-6.6/drivers/nfc/pn533/ |
| D | i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Driver for NXP PN533 NFC Chip - I2C transport layer 6 * Copyright (C) 2012-2013 Tieto Poland 14 #include <linux/i2c.h> 32 * < 0 if hardware error occurred (e.g. i2c err) 39 struct pn533_i2c_phy *phy = dev->phy; in pn533_i2c_send_ack() local 40 struct i2c_client *client = phy->i2c_dev; in pn533_i2c_send_ack() 50 struct pn533_i2c_phy *phy = dev->phy; in pn533_i2c_send_frame() local 51 struct i2c_client *client = phy->i2c_dev; in pn533_i2c_send_frame() 54 if (phy->hard_fault != 0) in pn533_i2c_send_frame() [all …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/st/ |
| D | spear1310.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 15 compatible = "st,spear-spics-gpio"; 17 st-spics,peripcfg-reg = <0x3b0>; 18 st-spics,sw-enable-bit = <12>; 19 st-spics,cs-value-bit = <11>; 20 st-spics,cs-enable-mask = <3>; 21 st-spics,cs-enable-shift = <8>; 22 gpio-controller; 23 #gpio-cells = <2>; 27 compatible = "st,spear1310-miphy"; [all …]
|
| /kernel/linux/linux-6.6/arch/arm64/boot/dts/freescale/ |
| D | fsl-lx2160a-bluebox3.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 5 // Copyright 2020-2021 NXP 7 /dts-v1/; 9 #include "fsl-lx2160a.dtsi" 13 compatible = "fsl,lx2160a-bluebox3", "fsl,lx2160a"; 23 stdout-path = "serial0:115200n8"; 26 sb_3v3: regulator-sb3v3 { 27 compatible = "regulator-fixed"; 28 regulator-name = "MC34717-3.3VSB"; 29 regulator-min-microvolt = <3300000>; [all …]
|
| /kernel/linux/linux-5.10/drivers/nfc/st21nfca/ |
| D | i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * I2C Link Layer for ST21NFCA HCI based Driver 9 #include <linux/crc-ccitt.h> 11 #include <linux/i2c.h> 35 * - insert ST21NFCA_ESCAPE_BYTE_STUFFING (escape byte) 36 * - xor byte with ST21NFCA_BYTE_STUFFING_MASK 63 * crc might have fail because i2c macro 72 * < 0 if hardware error occured (e.g. i2c err) 85 print_hex_dump(KERN_DEBUG, "i2c: ", DUMP_PREFIX_OFFSET, \ 86 16, 1, (skb)->data, (skb)->len, 0); \ [all …]
|
| /kernel/linux/linux-6.6/drivers/nfc/st21nfca/ |
| D | i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * I2C Link Layer for ST21NFCA HCI based Driver 9 #include <linux/crc-ccitt.h> 11 #include <linux/i2c.h> 33 * - insert ST21NFCA_ESCAPE_BYTE_STUFFING (escape byte) 34 * - xor byte with ST21NFCA_BYTE_STUFFING_MASK 61 * crc might have fail because i2c macro 70 * < 0 if hardware error occured (e.g. i2c err) 83 print_hex_dump(KERN_DEBUG, "i2c: ", DUMP_PREFIX_OFFSET, \ 84 16, 1, (skb)->data, (skb)->len, 0); \ [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/phy/ |
| D | samsung-phy.txt | 2 ------------------------------------------------- 5 - compatible : should be one of the listed compatibles: 6 - "samsung,s5pv210-mipi-video-phy" 7 - "samsung,exynos5420-mipi-video-phy" 8 - "samsung,exynos5433-mipi-video-phy" 9 - #phy-cells : from the generic phy bindings, must be 1; 12 - syscon - phandle to the PMU system controller 14 In case of exynos5433 compatible PHY: 15 - samsung,pmu-syscon - phandle to the PMU system controller 16 - samsung,disp-sysreg - phandle to the DISP system registers controller [all …]
|
| /kernel/linux/linux-5.10/arch/arm/boot/dts/ |
| D | spear1310.dtsi | 1 // SPDX-License-Identifier: GPL-2.0-or-later 15 compatible = "st,spear-spics-gpio"; 17 st-spics,peripcfg-reg = <0x3b0>; 18 st-spics,sw-enable-bit = <12>; 19 st-spics,cs-value-bit = <11>; 20 st-spics,cs-enable-mask = <3>; 21 st-spics,cs-enable-shift = <8>; 22 gpio-controller; 23 #gpio-cells = <2>; 27 compatible = "st,spear1310-miphy"; [all …]
|
| /kernel/linux/linux-5.10/drivers/nfc/pn533/ |
| D | i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Driver for NXP PN533 NFC Chip - I2C transport layer 6 * Copyright (C) 2012-2013 Tieto Poland 14 #include <linux/i2c.h> 32 * < 0 if hardware error occurred (e.g. i2c err) 39 struct pn533_i2c_phy *phy = dev->phy; in pn533_i2c_send_ack() local 40 struct i2c_client *client = phy->i2c_dev; in pn533_i2c_send_ack() 53 struct pn533_i2c_phy *phy = dev->phy; in pn533_i2c_send_frame() local 54 struct i2c_client *client = phy->i2c_dev; in pn533_i2c_send_frame() 57 if (phy->hard_fault != 0) in pn533_i2c_send_frame() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/i2c/ |
| D | samsung,s3c2410-i2c.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/i2c/samsung,s3c2410-i2c.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Samsung S3C/S5P/Exynos SoC I2C Controller 10 - Krzysztof Kozlowski <krzk@kernel.org> 15 - samsung,s3c2410-i2c 16 - samsung,s3c2440-i2c 17 # For s3c2440-like I2C used inside HDMIPHY block found on several SoCs: 18 - samsung,s3c2440-hdmiphy-i2c [all …]
|
| /kernel/linux/linux-6.6/arch/arm/boot/dts/microchip/ |
| D | lan966x-pcb8309.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * lan966x_pcb8309.dts - Device Tree file for PCB8309 5 /dts-v1/; 7 #include "dt-bindings/phy/phy-lan966x-serdes.h" 10 model = "Microchip EVB - LAN9662"; 11 compatible = "microchip,lan9662-pcb8309", "microchip,lan9662", "microchip,lan966"; 20 stdout-path = "serial0:115200n8"; 23 gpio-restart { 24 compatible = "gpio-restart"; 29 i2c-mux { [all …]
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/display/mediatek/ |
| D | mediatek,hdmi.txt | 8 - compatible: Should be "mediatek,<chip>-hdmi". 9 - the supported chips are mt2701, mt7623 and mt8173 10 - reg: Physical base address and length of the controller's registers 11 - interrupts: The interrupt signal from the function block. 12 - clocks: device clocks 13 See Documentation/devicetree/bindings/clock/clock-bindings.txt for details. 14 - clock-names: must contain "pixel", "pll", "bclk", and "spdif". 15 - phys: phandle link to the HDMI PHY node. 16 See Documentation/devicetree/bindings/phy/phy-bindings.txt for details. 17 - phy-names: must contain "hdmi" [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/phy/ |
| D | samsung,exynos5250-sata-phy.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/phy/samsung,exynos5250-sata-phy.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Samsung Exynos5250 SoC SATA PHY 10 - Krzysztof Kozlowski <krzk@kernel.org> 11 - Marek Szyprowski <m.szyprowski@samsung.com> 12 - Sylwester Nawrocki <s.nawrocki@samsung.com> 16 const: samsung,exynos5250-sata-phy 21 clock-names: [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/bridge/ |
| D | tc358775.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include <linux/i2c.h> 35 /* DSI D-PHY Layer Registers */ 51 #define PPI_STARTPPI 0x0104 /* START control bit of PPI-TX function. */ 72 #define CLS_PRE 0x0180 /* Digital Counter inside of PHY IO */ 73 #define D0S_PRE 0x0184 /* Digital Counter inside of PHY IO */ 74 #define D1S_PRE 0x0188 /* Digital Counter inside of PHY IO */ 75 #define D2S_PRE 0x018C /* Digital Counter inside of PHY IO */ 76 #define D3S_PRE 0x0190 /* Digital Counter inside of PHY IO */ 77 #define CLS_PREP 0x01A0 /* Digital Counter inside of PHY IO */ [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/bridge/ |
| D | tc358775.c | 1 // SPDX-License-Identifier: GPL-2.0 14 #include <linux/i2c.h> 16 #include <linux/media-bus-format.h> 35 /* DSI D-PHY Layer Registers */ 51 #define PPI_STARTPPI 0x0104 /* START control bit of PPI-TX function. */ 72 #define CLS_PRE 0x0180 /* Digital Counter inside of PHY IO */ 73 #define D0S_PRE 0x0184 /* Digital Counter inside of PHY IO */ 74 #define D1S_PRE 0x0188 /* Digital Counter inside of PHY IO */ 75 #define D2S_PRE 0x018C /* Digital Counter inside of PHY IO */ 76 #define D3S_PRE 0x0190 /* Digital Counter inside of PHY IO */ [all …]
|
| /kernel/linux/linux-6.6/drivers/nfc/st-nci/ |
| D | i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * I2C Link Layer for ST NCI NFC controller familly based Driver 4 * Copyright (C) 2014-2015 STMicroelectronics SAS. All rights reserved. 10 #include <linux/i2c.h> 18 #include "st-nci.h" 45 struct st_nci_i2c_phy *phy = phy_id; in st_nci_i2c_enable() local 47 gpiod_set_value(phy->gpiod_reset, 0); in st_nci_i2c_enable() 49 gpiod_set_value(phy->gpiod_reset, 1); in st_nci_i2c_enable() 52 if (phy->ndlc->powered == 0 && phy->irq_active == 0) { in st_nci_i2c_enable() 53 enable_irq(phy->i2c_dev->irq); in st_nci_i2c_enable() [all …]
|
| /kernel/linux/linux-5.10/drivers/net/mdio/ |
| D | mdio-i2c.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * MDIO I2C bridge 5 * Copyright (C) 2015-2016 Russell King 7 * Network PHYs can appear on I2C buses when they are part of SFP module. 8 * This driver exposes these PHYs to the networking PHY code, allowing 9 * our PHY drivers access to these PHYs, and so allowing configuration 12 #include <linux/i2c.h> 13 #include <linux/mdio/mdio-i2c.h> 14 #include <linux/phy.h> 17 * I2C bus addresses 0x50 and 0x51 are normally an EEPROM, which is [all …]
|
| /kernel/linux/linux-5.10/drivers/nfc/nxp-nci/ |
| D | i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * I2C link layer for the NXP NCI driver 6 * Copyright (C) 2012-2015 Intel Corporation. All rights reserved. 17 #include <linux/i2c.h> 26 #include "nxp-nci.h" 28 #define NXP_NCI_I2C_DRIVER_NAME "nxp-nci_i2c" 40 * < 0 if hardware error occurred (e.g. i2c err) 48 struct nxp_nci_i2c_phy *phy = (struct nxp_nci_i2c_phy *) phy_id; in nxp_nci_i2c_set_mode() local 50 gpiod_set_value(phy->gpiod_fw, (mode == NXP_NCI_MODE_FW) ? 1 : 0); in nxp_nci_i2c_set_mode() 51 gpiod_set_value(phy->gpiod_en, (mode != NXP_NCI_MODE_COLD) ? 1 : 0); in nxp_nci_i2c_set_mode() [all …]
|
| /kernel/linux/linux-6.6/drivers/nfc/nxp-nci/ |
| D | i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * I2C link layer for the NXP NCI driver 6 * Copyright (C) 2012-2015 Intel Corporation. All rights reserved. 17 #include <linux/i2c.h> 26 #include "nxp-nci.h" 28 #define NXP_NCI_I2C_DRIVER_NAME "nxp-nci_i2c" 40 * < 0 if hardware error occurred (e.g. i2c err) 48 struct nxp_nci_i2c_phy *phy = (struct nxp_nci_i2c_phy *) phy_id; in nxp_nci_i2c_set_mode() local 50 gpiod_set_value(phy->gpiod_fw, (mode == NXP_NCI_MODE_FW) ? 1 : 0); in nxp_nci_i2c_set_mode() 51 gpiod_set_value(phy->gpiod_en, (mode != NXP_NCI_MODE_COLD) ? 1 : 0); in nxp_nci_i2c_set_mode() [all …]
|
| /kernel/linux/linux-5.10/drivers/nfc/microread/ |
| D | i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * HCI based Driver for Inside Secure microread NFC Chip - i2c layer 11 #include <linux/i2c.h> 43 * < 0 if hardware error occured (e.g. i2c err) 51 print_hex_dump(KERN_DEBUG, "i2c: ", DUMP_PREFIX_OFFSET, \ 52 16, 1, (skb)->data, (skb)->len, 0); \ 61 len = skb->len; in microread_i2c_add_len_crc() 64 for (i = 0; i < skb->len; i++) in microread_i2c_add_len_crc() 65 crc = crc ^ skb->data[i]; in microread_i2c_add_len_crc() 81 for (i = 0; i < skb->len - 1; i++) in check_crc() [all …]
|
| /kernel/linux/linux-6.6/drivers/nfc/microread/ |
| D | i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * HCI based Driver for Inside Secure microread NFC Chip - i2c layer 11 #include <linux/i2c.h> 43 * < 0 if hardware error occured (e.g. i2c err) 51 print_hex_dump(KERN_DEBUG, "i2c: ", DUMP_PREFIX_OFFSET, \ 52 16, 1, (skb)->data, (skb)->len, 0); \ 61 len = skb->len; in microread_i2c_add_len_crc() 64 for (i = 0; i < skb->len; i++) in microread_i2c_add_len_crc() 65 crc = crc ^ skb->data[i]; in microread_i2c_add_len_crc() 81 for (i = 0; i < skb->len - 1; i++) in check_crc() [all …]
|