/linux/drivers/pci/controller/ |
H A D | pcie-rockchip-host.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Rockchip AXI PCIe host controller driver 5 * Copyright (c) 2016 Rockchip, Inc. 7 * Author: Shawn Lin <shawn.lin@rock-chips.com> 8 * Wenrui Li <wenrui.li@rock-chips.com> 37 #include "pcie-rockchip.h" 39 static void rockchip_pcie_enable_bw_int(struct rockchip_pcie *rockchip) in rockchip_pcie_enable_bw_int() argument 43 status = rockchip_pcie_read(rockchip, PCIE_RC_CONFIG_LCS); in rockchip_pcie_enable_bw_int() 45 rockchip_pcie_write(rockchip, status, PCIE_RC_CONFIG_LCS); in rockchip_pcie_enable_bw_int() 48 static void rockchip_pcie_clr_bw_int(struct rockchip_pcie *rockchip) in rockchip_pcie_clr_bw_int() argument [all …]
|
H A D | pcie-rockchip-ep.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Rockchip AXI PCIe endpoint controller driver 5 * Copyright (c) 2018 Rockchip, Inc. 7 * Author: Shawn Lin <shawn.lin@rock-chips.com> 8 * Simon Xue <xxm@rock-chips.com> 18 #include <linux/pci-epc.h> 20 #include <linux/pci-epf.h> 24 #include "pcie-rockchip.h" 27 * struct rockchip_pcie_ep - private data for PCIe endpoint controller driver 28 * @rockchip: Rockchip PCIe controller [all …]
|
/linux/drivers/pci/controller/dwc/ |
H A D | pcie-dw-rockchip.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * PCIe host controller driver for Rockchip SoCs. 5 * Copyright (C) 2021 Rockchip Electronics Co., Ltd. 6 * http://www.rock-chips.com 8 * Author: Simon Xue <xxm@rock-chips.com> 26 #include "pcie-designware.h" 36 #define to_rockchip_pcie(x) dev_get_drvdata((x)->dev) 87 static int rockchip_pcie_readl_apb(struct rockchip_pcie *rockchip, u32 reg) in rockchip_pcie_readl_apb() argument 89 return readl_relaxed(rockchip->apb_base + reg); in rockchip_pcie_readl_apb() 92 static void rockchip_pcie_writel_apb(struct rockchip_pcie *rockchip, u32 val, in rockchip_pcie_writel_apb() argument [all …]
|
/linux/sound/soc/rockchip/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 tristate "ASoC support for Rockchip" 7 the Rockchip SoCs' Audio interfaces. You will also need to 11 tristate "Rockchip I2S Device Driver" 16 Rockchip I2S device. The device supports up to maximum of 20 tristate "Rockchip I2S/TDM Device Driver" 25 Rockchip I2S/TDM devices, found in Rockchip SoCs. These devices 31 tristate "Rockchip PDM Controller Driver" 37 Rockchip PDM Controller. The Controller supports up to maximum of 41 tristate "Rockchip SAI Controller Driver" [all …]
|
/linux/Documentation/devicetree/bindings/display/rockchip/ |
H A D | rockchip-drm.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only) 3 --- 4 $id: http://devicetree.org/schemas/display/rockchip/rockchip-drm.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Rockchip DRM master device 10 - Sandy Huang <hjc@rock-chips.com> 11 - Heiko Stuebner <heiko@sntech.de> 14 The Rockchip DRM master device is a virtual device needed to list all 20 const: rockchip,display-subsystem 23 $ref: /schemas/types.yaml#/definitions/phandle-array [all …]
|
H A D | rockchip,rk3399-cdn-dp.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/display/rockchip/rockchip,rk3399-cdn-dp.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Rockchip RK3399 specific extensions to the CDN Display Port 10 - Andy Yan <andy.yan@rock-chip.com> 11 - Heiko Stuebner <heiko@sntech.de> 12 - Sandy Huang <hjc@rock-chips.com> 15 - $ref: /schemas/sound/dai-common.yaml# 20 - const: rockchip,rk3399-cdn-dp [all …]
|
/linux/arch/arm/mach-rockchip/ |
H A D | rockchip.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Device Tree support for Rockchip SoCs 24 if (of_machine_is_compatible("rockchip,rk3288")) { in rockchip_timer_init() 41 pr_err("rockchip: could not map timer7 registers\n"); in rockchip_timer_init() 55 "rockchip,rk2928", 56 "rockchip,rk3066a", 57 "rockchip,rk3066b", 58 "rockchip,rk3188", 59 "rockchip,rk3228", 60 "rockchip,rk3288", [all …]
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | rockchip-max98090.txt | 1 ROCKCHIP with MAX98090 CODEC 4 - compatible: "rockchip,rockchip-audio-max98090" 5 - rockchip,model: The user-visible name of this sound complex 6 - rockchip,i2s-controller: The phandle of the Rockchip I2S controller that's 10 - rockchip,audio-codec: The phandle of the MAX98090 audio codec. 11 - rockchip,headset-codec: The phandle of Ext chip for jack detection. This is 12 required if there is rockchip,audio-codec. 13 - rockchip,hdmi-codec: The phandle of HDMI device for HDMI codec. 17 /* For max98090-only board. */ 19 compatible = "rockchip,rockchip-audio-max98090"; [all …]
|
/linux/drivers/devfreq/ |
H A D | rk3399_dmc.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2016, Fuzhou Rockchip Electronics Co., Ltd. 4 * Author: Lin Huang <hl@rock-chips.com> 7 #include <linux/arm-smccc.h> 12 #include <linux/devfreq-event.h> 24 #include <soc/rockchip/pm_domains.h> 25 #include <soc/rockchip/rockchip_grf.h> 26 #include <soc/rockchip/rk3399_grf.h> 27 #include <soc/rockchip/rockchip_sip.h> 41 struct device *dev; [all …]
|
/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3368.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/clock/rk3368-cru.h> 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/interrupt-controller/irq.h> 9 #include <dt-bindings/interrupt-controller/arm-gic.h> 10 #include <dt-bindings/pinctrl/rockchip.h> 11 #include <dt-bindings/power/rk3368-power.h> 12 #include <dt-bindings/soc/rockchip,boot-mode.h> 13 #include <dt-bindings/thermal/thermal.h> 16 compatible = "rockchip,rk3368"; [all …]
|
H A D | rk3399-khadas-edge.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 /dts-v1/; 8 #include <dt-bindings/input/linux-event-codes.h> 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include <dt-bindings/pwm/pwm.h> 21 stdout-path = "serial2:1500000n8"; 24 clkin_gmac: external-gmac-clock { 25 compatible = "fixed-clock"; 26 clock-frequency = <125000000>; 27 clock-output-names = "clkin_gmac"; [all …]
|
H A D | rk3588-turing-rk1.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device tree definitions for the Turing RK1 SoM. 7 * Based on RK3588-EVB1 devicetree 8 * Copyright (c) 2021 Rockchip Electronics Co., Ltd. 11 /dts-v1/; 12 #include <dt-bindings/gpio/gpio.h> 13 #include <dt-bindings/pinctrl/rockchip.h> 17 compatible = "turing,rk1", "rockchip,rk3588"; 24 fan: pwm-fan { 25 compatible = "pwm-fan"; [all …]
|
/linux/drivers/mfd/ |
H A D | rk8xx-i2c.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Rockchip RK805/RK808/RK816/RK817/RK818 Core (I2C) driver 5 * Copyright (c) 2014, Fuzhou Rockchip Electronics Co., Ltd 8 * Author: Chris Zhong <zyw@rock-chips.com> 9 * Author: Zhang Qing <zhangqing@rock-chips.com> 24 static bool rk806_is_volatile_reg(struct device *dev, unsigned int reg) in rk806_is_volatile_reg() 35 static bool rk808_is_volatile_reg(struct device *dev, unsigned int reg) in rk808_is_volatile_reg() 39 * - Technically the ROUND_30s bit makes RTC_CTRL_REG volatile, but in rk808_is_volatile_reg() 41 * - It's unlikely we care that RK808_DEVCTRL_REG is volatile since in rk808_is_volatile_reg() 63 static bool rk816_is_volatile_reg(struct device *dev, unsigned int reg) in rk816_is_volatile_reg() [all …]
|
/linux/Documentation/devicetree/bindings/i2c/ |
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 …]
|
/linux/drivers/nvmem/ |
H A D | rockchip-efuse.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Rockchip eFuse Driver 5 * Copyright (c) 2015 Rockchip Electronics Co. Ltd. 6 * Author: Caesar Wang <wxt@rock-chips.com> 11 #include <linux/device.h> 14 #include <linux/nvmem-provider.h> 50 struct device *dev; 62 ret = clk_prepare_enable(efuse->clk); in rockchip_rk3288_efuse_read() 64 dev_err(efuse->dev, "failed to prepare/enable efuse clk\n"); in rockchip_rk3288_efuse_read() 68 writel(RK3288_LOAD | RK3288_PGENB, efuse->base + REG_EFUSE_CTRL); in rockchip_rk3288_efuse_read() [all …]
|
/linux/Documentation/devicetree/bindings/phy/ |
H A D | rockchip,inno-usb2phy.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/phy/rockchip,inno-usb2phy.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Rockchip USB2.0 phy with inno IP block 10 - Heiko Stuebner <heiko@sntech.de> 15 - rockchip,px30-usb2phy 16 - rockchip,rk3036-usb2phy 17 - rockchip,rk3128-usb2phy 18 - rockchip,rk3228-usb2phy [all …]
|
/linux/Documentation/devicetree/bindings/mfd/ |
H A D | rockchip,rk817.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/mfd/rockchip,rk817.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Chris Zhong <zyw@rock-chips.com> 11 - Zhang Qing <zhangqing@rock-chips.com> 14 Rockchip RK809/RK817 series PMIC. This device consists of an i2c controlled 21 - rockchip,rk809 22 - rockchip,rk817 30 '#clock-cells': [all …]
|
/linux/Documentation/devicetree/bindings/clock/ |
H A D | rockchip,px30-cru.yaml | 1 # SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 --- 4 $id: http://devicetree.org/schemas/clock/rockchip,px30-cru.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Rockchip PX30 Clock and Reset Unit (CRU) 10 - Elaine Zhang <zhangqing@rock-chips.com> 11 - Heiko Stuebner <heiko@sntech.de> 19 preprocessor macros in the dt-bindings/clock/px30-cru.h headers and can be 20 used in device tree sources. Similar macros exist for the reset sources in 24 clock-output-names: [all …]
|
H A D | rockchip,rk3188-cru.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/clock/rockchip,rk3188-cru.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Rockchip RK3188/RK3066 Clock and Reset Unit (CRU) 10 - Elaine Zhang <zhangqing@rock-chips.com> 11 - Heiko Stuebner <heiko@sntech.de> 19 preprocessor macros in the dt-bindings/clock/rk3188-cru.h and 20 dt-bindings/clock/rk3066-cru.h headers and can be used in device tree sources. 24 clock-output-names: [all …]
|
H A D | rockchip,rk3568-cru.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/clock/rockchip,rk3568-cru.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: ROCKCHIP rk3568 Family Clock Control Module 10 - Elaine Zhang <zhangqing@rock-chips.com> 11 - Heiko Stuebner <heiko@sntech.de> 19 preprocessor macros in the dt-bindings/clock/rk3568-cru.h headers and can be 20 used in device tree sources. 25 - rockchip,rk3568-cru [all …]
|
H A D | rockchip,rk3128-cru.yaml | 1 # SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 --- 4 $id: http://devicetree.org/schemas/clock/rockchip,rk3128-cru.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Rockchip RK3126/RK3128 Clock and Reset Unit (CRU) 10 - Elaine Zhang <zhangqing@rock-chips.com> 11 - Heiko Stuebner <heiko@sntech.de> 19 preprocessor macros in the dt-bindings/clock/rk3128-cru.h headers and can be 20 used in device tree sources. Similar macros exist for the reset sources in 26 - rockchip,rk3126-cru [all …]
|
H A D | rockchip,rk3399-cru.yaml | 1 # SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 --- 4 $id: http://devicetree.org/schemas/clock/rockchip,rk3399-cru.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Rockchip RK3399 Clock and Reset Unit 10 - Elaine Zhang <zhangqing@rock-chips.com> 11 - Heiko Stuebner <heiko@sntech.de> 19 preprocessor macros in the dt-bindings/clock/rk3399-cru.h headers and can be 20 used in device tree sources. Similar macros exist for the reset sources in 24 clock-output-names: [all …]
|
/linux/arch/arm/boot/dts/rockchip/ |
H A D | rk3288.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 #include <dt-bindings/gpio/gpio.h> 4 #include <dt-bindings/interrupt-controller/irq.h> 5 #include <dt-bindings/interrupt-controller/arm-gic.h> 6 #include <dt-bindings/pinctrl/rockchip.h> 7 #include <dt-bindings/clock/rk3288-cru.h> 8 #include <dt-bindings/power/rk3288-power.h> 9 #include <dt-bindings/thermal/thermal.h> 10 #include <dt-bindings/soc/rockchip,boot-mode.h> 13 #address-cells = <2>; [all …]
|
/linux/Documentation/devicetree/bindings/mailbox/ |
H A D | rockchip-mailbox.txt | 1 Rockchip mailbox 3 The Rockchip mailbox is used by the Rockchip CPU cores to communicate 6 Refer to ./mailbox.txt for generic information about mailbox device-tree 11 - compatible: should be one of the following. 12 - "rockchip,rk3368-mbox" for rk3368 13 - reg: physical base address of the controller and length of memory mapped 15 - interrupts: The interrupt number to the cpu. The interrupt specifier format 17 - #mbox-cells: Common mailbox binding property to identify the number 21 -------- 25 compatible = "rockchip,rk3368-mailbox"; [all …]
|
/linux/Documentation/devicetree/bindings/ufs/ |
H A D | rockchip,rk3576-ufshc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/ufs/rockchip,rk3576-ufshc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Rockchip UFS Host Controller 10 - Shawn Lin <shawn.lin@rock-chips.com> 13 - $ref: ufs-common.yaml 17 const: rockchip,rk3576-ufshc 22 reg-names: 24 - const: hci [all …]
|