/linux/Documentation/devicetree/bindings/soc/tegra/ |
H A D | nvidia,nvec.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Thierry Reding <thierry.reding@gmail.com> 11 - Jon Hunter <jonathanh@nvidia.com> 26 - description: divider clock 27 - description: fast clock 29 clock-names: 32 - const: div-clk 33 - const: fast-clk [all …]
|
/linux/Documentation/devicetree/bindings/i2c/ |
H A D | nvidia,tegra20-i2c.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/i2c/nvidia,tegra20-i2c.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 - Thierry Reding <thierry.reding@gmail.com> 9 - Jon Hunter <jonathanh@nvidia.com> 16 - description: Tegra20 has 4 generic I2C controller. This can support 17 master and slave mode of I2C communication. The i2c-tegra driver 19 controller is only compatible with "nvidia,tegra20-i2c". 20 const: nvidia,tegra20-i2c [all …]
|
/linux/arch/arm64/boot/dts/exynos/ |
H A D | exynos7885-pinctrl.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 3 * Samsung Exynos7885 SoC pin-mux and pin-config device tree source 8 * Samsung's Exynos7885 SoC pin-mux and pin-config options are listed as 12 #include <dt-bindings/interrupt-controller/arm-gic.h> 13 #include "exynos-pinctrl.h" 16 etc0: etc0-gpio-bank { 17 gpio-controller; 18 #gpio-cells = <2>; 20 interrupt-controller; 21 #interrupt-cells = <2>; [all …]
|
/linux/drivers/bus/ |
H A D | qcom-ebi2.c | 1 // SPDX-License-Identifier: GPL-2.0-only 15 #include <linux/clk.h> 41 * Bits 31-28: RECOVERY recovery cycles (0 = 1, 1 = 2 etc) this is the time the 42 * memory continues to drive the data bus after OE is de-asserted. 45 * Bits 27-24: WR_HOLD write hold cycles, these are extra cycles inserted after 49 * Bits 23-16: WR_DELTA initial latency for write cycles inserted for the first 51 * Bits 15-8: RD_DELTA initial latency for read cycles inserted for the first 53 * Bits 7-4: WR_WAIT number of wait cycles for every write access, 0=1 cycle 55 * Bits 3-0: RD_WAIT number of wait cycles for every read access, 0=1 cycle 73 * FAST CSn CFG [all …]
|
/linux/drivers/i2c/busses/ |
H A D | i2c-designware-core.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 187 struct clk; 192 * struct dw_i2c_dev - private i2c-designware data 199 * @clk: input reference clock 225 * @rx_outstanding: current master-rx elements in tx fifo 230 * @fs_hcnt: fast speed HCNT value 231 * @fs_lcnt: fast speed LCNT value 232 * @fp_hcnt: fast plus HCNT value 233 * @fp_lcnt: fast plus LCNT value 239 * -1 if there is no semaphore. [all …]
|
H A D | i2c-tegra.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * drivers/i2c/busses/i2c-tegra.c 11 #include <linux/clk.h> 14 #include <linux/dma-mapping.h> 51 #define I2C_FIFO_CONTROL_TX_TRIG(x) (((x) - 1) << 5) 52 #define I2C_FIFO_CONTROL_RX_TRIG(x) (((x) - 1) << 2) 130 #define I2C_MST_FIFO_CONTROL_RX_TRIG(x) (((x) - 1) << 4) 131 #define I2C_MST_FIFO_CONTROL_TX_TRIG(x) (((x) - 1) << 16) 154 * @MSG_END_REPEAT_START: Send repeat-start. 155 * @MSG_END_CONTINUE: Don't send stop or repeat-start. [all …]
|
H A D | i2c-synquacer.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <linux/clk.h> 70 DIV_ROUND_UP(DIV_ROUND_UP((rate), I2C_MAX_STANDARD_MODE_FREQ) - 2, 2) 71 /* FAST MODE frequency */ 73 DIV_ROUND_UP((DIV_ROUND_UP((rate), I2C_MAX_FAST_MODE_FREQ) - 2) * 2, 3) 78 ((SYNQUACER_I2C_CLK_MASTER_STD(rate) - 65) \ 84 /* calculate the value of CS bits in CCR register on fast mode */ 86 ((SYNQUACER_I2C_CLK_MASTER_FAST(rate) - 1) \ 89 /* calculate the value of CS bits in CSR register on fast mode */ 95 ((SYNQUACER_I2C_CLK_MASTER_STD(rate) - 1) \ [all …]
|
H A D | i2c-jz4780.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 2006 - 2009 Ingenic Semiconductor Inc. 11 #include <linux/clk.h> 113 #define JZ4780_I2CSHCNT_ADJUST(n) (((n) - 8) < 6 ? 6 : ((n) - 8)) 114 #define JZ4780_I2CSLCNT_ADJUST(n) (((n) - 1) < 8 ? 8 : ((n) - 1)) 115 #define JZ4780_I2CFHCNT_ADJUST(n) (((n) - 8) < 6 ? 6 : ((n) - 8)) 116 #define JZ4780_I2CFLCNT_ADJUST(n) (((n) - 1) < 8 ? 8 : ((n) - 1)) 143 struct clk *clk; member 174 return readw(i2c->iomem + offset); in jz4780_i2c_readw() 180 writew(val, i2c->iomem + offset); in jz4780_i2c_writew() [all …]
|
H A D | i2c-nomadik.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2009 ST-Ericsson SA 11 * - The memory bus only supports 32-bit accesses. 12 * - (only EyeQ5) A register must be configured for the I2C speed mode; 20 #include <linux/clk.h> 35 #define DRIVER_NAME "nmk-i2c" 74 #define I2C_MCR_A7 GENMASK(7, 1) /* 7-bit address */ 75 #define I2C_MCR_EA10 GENMASK(10, 8) /* 10-bit Extended address */ 88 /* Baud-rate counter register (BRCR) */ 89 #define I2C_BRCR_BRCNT1 GENMASK(31, 16) /* Baud-rate counter 1 */ [all …]
|
/linux/drivers/gpu/drm/panthor/ |
H A D | panthor_device.h | 1 /* SPDX-License-Identifier: GPL-2.0 or MIT */ 10 #include <linux/io-pgtable.h> 35 * enum panthor_device_pm_state - PM state 52 * struct panthor_irq - IRQ data 71 * enum panthor_device_profiling_mode - Profiling state 90 * struct panthor_device - Panthor device 105 struct clk *core; 108 struct clk *stacks; 111 struct clk *coregroup; 162 * @fast: True if the post_reset logic can proceed with a fast reset. [all …]
|
/linux/drivers/spi/ |
H A D | spi-dw-bt1.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 // Baikal-T1 DW APB SPI and System Boot SPI driver 12 #include <linux/clk.h> 24 #include <linux/spi/spi-mem.h> 27 #include "spi-dw.h" 34 struct clk *clk; member 52 struct dw_spi_bt1 *dwsbt1 = to_dw_spi_bt1(desc->mem->spi->controller); in dw_spi_bt1_dirmap_create() 54 if (!dwsbt1->map || in dw_spi_bt1_dirmap_create() 55 !dwsbt1->dws.mem_ops.supports_op(desc->mem, &desc->info.op_tmpl)) in dw_spi_bt1_dirmap_create() 56 return -EOPNOTSUPP; in dw_spi_bt1_dirmap_create() [all …]
|
H A D | spi-wpcm-fiu.c | 1 // SPDX-License-Identifier: GPL-2.0 4 #include <linux/clk.h> 10 #include <linux/spi/spi-mem.h> 53 /* The memory-mapped view of flash is 16 MiB long */ 59 struct clk *clk; member 68 writeb(opcode, fiu->regs + FIU_UMA_CODE); in wpcm_fiu_set_opcode() 73 writeb((addr >> 0) & 0xff, fiu->regs + FIU_UMA_AB0); in wpcm_fiu_set_addr() 74 writeb((addr >> 8) & 0xff, fiu->regs + FIU_UMA_AB1); in wpcm_fiu_set_addr() 75 writeb((addr >> 16) & 0xff, fiu->regs + FIU_UMA_AB2); in wpcm_fiu_set_addr() 83 writeb(data[i], fiu->regs + FIU_UMA_DB0 + i); in wpcm_fiu_set_data() [all …]
|
/linux/arch/arm/boot/dts/qcom/ |
H A D | qcom-apq8026-lg-lenok.dts | 1 // SPDX-License-Identifier: BSD-3-Clause 6 /dts-v1/; 8 #include "qcom-msm8226.dtsi" 10 #include <dt-bindings/clock/qcom,mmcc-msm8974.h> 12 /delete-node/ &adsp_region; 17 chassis-type = "watch"; 18 qcom,board-id = <132 0x0a>; 19 qcom,msm-id = <199 0x20000>; 27 stdout-path = "serial0:115200n8"; 30 reserved-memory { [all …]
|
H A D | qcom-msm8974-sony-xperia-rhine.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 2 #include "qcom-msm8974.dtsi" 5 #include <dt-bindings/input/input.h> 6 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 15 stdout-path = "serial0:115200n8"; 18 gpio-keys { 19 compatible = "gpio-keys"; 21 pinctrl-names = "default"; 22 pinctrl-0 = <&gpio_keys_pin_a>; [all …]
|
H A D | qcom-msm8974pro-fairphone-fp2.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 #include "qcom-msm8974pro.dtsi" 5 #include <dt-bindings/input/input.h> 6 #include <dt-bindings/leds/common.h> 7 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 12 chassis-type = "handset"; 21 stdout-path = "serial0:115200n8"; 24 gpio-keys { 25 compatible = "gpio-keys"; 27 pinctrl-names = "default"; [all …]
|
/linux/drivers/clk/at91/ |
H A D | clk-h32mx.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * clk-h32mx.c 7 * Alexandre Belloni <alexandre.belloni@free-electrons.com> 10 #include <linux/clk-provider.h> 12 #include <linux/clk/at91_pmc.h> 34 regmap_read(h32mxclk->regmap, AT91_PMC_MCKR, &mckr); in clk_sama5d4_h32mx_recalc_rate() 39 pr_warn("H32MX clock is too fast\n"); in clk_sama5d4_h32mx_recalc_rate() 54 if (rate - div < *parent_rate - rate) in clk_sama5d4_h32mx_round_rate() 67 return -EINVAL; in clk_sama5d4_h32mx_set_rate() 72 regmap_update_bits(h32mxclk->regmap, AT91_PMC_MCKR, in clk_sama5d4_h32mx_set_rate() [all …]
|
/linux/drivers/clocksource/ |
H A D | timer-fttmr010.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * Based on a rewrite of arch/arm/mach-gemini/timer.c: 7 * Copyright (C) 2001-2006 Storlink, Corp. 8 * Copyright (C) 2008-2009 Paulius Zaleckas <paulius.zaleckas@teltonika.lt> 18 #include <linux/clk.h> 81 * - aspeed timer overflow interrupt is controlled by bits in Control 83 * - aspeed timers always generate interrupt when either one of the 113 * fast and stateless 124 return readl(local_fttmr->base + TIMER2_COUNT); in fttmr010_read_current_timer_up() 129 return ~readl(local_fttmr->base + TIMER2_COUNT); in fttmr010_read_current_timer_down() [all …]
|
H A D | timer-pistachio.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Pistachio clocksource based on general-purpose timers 10 #include <linux/clk.h> 80 raw_spin_lock_irqsave(&pcs->lock, flags); in pistachio_clocksource_read_cycles() 81 overflow = gpt_readl(pcs->base, TIMER_CURRENT_OVERFLOW_VALUE, 0); in pistachio_clocksource_read_cycles() 82 counter = gpt_readl(pcs->base, TIMER_CURRENT_VALUE, 0); in pistachio_clocksource_read_cycles() 83 raw_spin_unlock_irqrestore(&pcs->lock, flags); in pistachio_clocksource_read_cycles() 99 val = gpt_readl(pcs->base, TIMER_CFG, timeridx); in pistachio_clksrc_set_mode() 105 gpt_writel(pcs->base, val, TIMER_CFG, timeridx); in pistachio_clksrc_set_mode() 114 gpt_writel(pcs->base, RELOAD_VALUE, TIMER_RELOAD_VALUE, timeridx); in pistachio_clksrc_enable() [all …]
|
/linux/arch/arm/boot/dts/aspeed/ |
H A D | aspeed-ast2600-evb.dts | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 /dts-v1/; 6 #include "aspeed-g6.dtsi" 7 #include <dt-bindings/gpio/aspeed-gpio.h> 11 compatible = "aspeed,ast2600-evb", "aspeed,ast2600"; 26 reserved-memory { 27 #address-cells = <1>; 28 #size-cells = <1>; 34 compatible = "shared-dma-pool"; 41 compatible = "shared-dma-pool"; [all …]
|
/linux/drivers/input/misc/ |
H A D | adxl34x-spi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * ADLX345/346 Three-Axis Digital Accelerometers (SPI Interface) 72 /* don't exceed max specified SPI CLK frequency */ in adxl34x_spi_probe() 73 if (spi->max_speed_hz > MAX_SPI_FREQ_HZ) { in adxl34x_spi_probe() 74 dev_err(&spi->dev, "SPI CLK %d Hz too fast\n", spi->max_speed_hz); in adxl34x_spi_probe() 75 return -EINVAL; in adxl34x_spi_probe() 78 ac = adxl34x_probe(&spi->dev, spi->irq, in adxl34x_spi_probe() 79 spi->max_speed_hz > MAX_FREQ_NO_FIFODELAY, in adxl34x_spi_probe() 102 MODULE_DESCRIPTION("ADXL345/346 Three-Axis Digital Accelerometer SPI Bus Driver");
|
/linux/drivers/rtc/ |
H A D | rtc-ti-k3.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2021-2022 Texas Instruments Incorporated - https://www.ti.com/ 8 #include <linux/clk.h> 46 #define K3RTC_MIN_OFFSET (-277761) 50 .name = "peripheral-registers", 107 * struct ti_k3_rtc - Private data for ti-k3-rtc 129 ret = regmap_field_read(priv->r_fields[f], &val); in k3rtc_field_read() 141 regmap_field_write(priv->r_fields[f], val); in k3rtc_field_write() 145 * k3rtc_fence - Ensure a register sync took place between the two domains 148 * Return: 0 if the sync took place, else returns -ETIMEDOUT [all …]
|
/linux/drivers/gpu/drm/pl111/ |
H A D | pl111_display.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * (C) COPYRIGHT 2012-2013 ARM Limited. All rights reserved. 7 * Copyright (c) 2006-2008 Intel Corporation 12 #include <linux/clk.h> 14 #include <linux/dma-buf.h> 15 #include <linux/media-bus-format.h> 33 irq_stat = readl(priv->regs + CLCD_PL111_MIS); in pl111_irq() 39 drm_crtc_handle_vblank(&priv->pipe.crtc); in pl111_irq() 45 writel(irq_stat, priv->regs + CLCD_PL111_ICR); in pl111_irq() 54 struct drm_device *drm = pipe->crtc.dev; in pl111_mode_valid() [all …]
|
/linux/drivers/mtd/devices/ |
H A D | spear_smi.c | 16 #include <linux/clk.h> 62 #define FAST_MODE (0x1 << 15) /* Fast Mode */ 157 * struct spear_smi - Structure for SMI Device 159 * @clk: functional clock 165 * @cmd_complete: queue to wait for command completion of NOR-flash. 167 * @flash: separate structure for each Serial NOR-flash attached to SMI. 170 struct clk *clk; member 182 * struct spear_snor_flash - Structure for Serial NOR Flash 184 * @bank: Bank number(0, 1, 2, 3) for each NOR-flash. 185 * @dev_id: Device ID of NOR-flash. [all …]
|
/linux/include/linux/mtd/ |
H A D | spear_smi.h | 19 /* max possible slots for serial-nor flash chip in the SMI controller */ 31 * struct spear_smi_flash_info - platform structure for passing flash 39 * fast_mode: whether flash supports fast mode 52 * struct spear_smi_plat_data - platform structure for configuring smi 54 * clk_rate: clk rate at which SMI must operate
|
/linux/arch/arm/boot/dts/nvidia/ |
H A D | tegra30.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 2 #include <dt-bindings/clock/tegra30-car.h> 3 #include <dt-bindings/gpio/tegra-gpio.h> 4 #include <dt-bindings/memory/tegra30-mc.h> 5 #include <dt-bindings/pinctrl/pinctrl-tegra.h> 6 #include <dt-bindings/interrupt-controller/arm-gic.h> 7 #include <dt-bindings/soc/tegra-pmc.h> 8 #include <dt-bindings/thermal/thermal.h> 10 #include "tegra30-peripherals-opp.dtsi" 14 interrupt-parent = <&lic>; [all …]
|