/Linux-v5.10/Documentation/devicetree/bindings/display/rockchip/ |
D | rockchip-vop.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/display/rockchip/rockchip-vop.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Rockchip SoC display controller (VOP) 10 VOP (Video Output Processor) is the display controller for the Rockchip 15 - Sandy Huang <hjc@rock-chips.com> 16 - Heiko Stuebner <heiko@sntech.de> 21 - rockchip,px30-vop-big 22 - rockchip,px30-vop-lit [all …]
|
D | rockchip-lvds.txt | 1 Rockchip RK3288 LVDS interface 5 - compatible: matching the soc type, one of 6 - "rockchip,rk3288-lvds"; 7 - "rockchip,px30-lvds"; 9 - reg: physical base address of the controller and length 11 - clocks: must include clock specifiers corresponding to entries in the 12 clock-names property. 13 - clock-names: must contain "pclk_lvds" 15 - avdd1v0-supply: regulator phandle for 1.0V analog power 16 - avdd1v8-supply: regulator phandle for 1.8V analog power [all …]
|
D | analogix_dp-rockchip.txt | 1 Rockchip RK3288 specific extensions to the Analogix Display Port 5 - compatible: "rockchip,rk3288-dp", 6 "rockchip,rk3399-edp"; 8 - reg: physical base address of the controller and length 10 - clocks: from common clock binding: handle to dp clock. 13 - clock-names: from common clock binding: 16 - resets: Must contain an entry for each entry in reset-names. 19 - pinctrl-names: Names corresponding to the chip hotplug pinctrl states. 20 - pinctrl-0: pin-control mode. should be <&edp_hpd> 22 - reset-names: Must include the name "dp" [all …]
|
D | dw_mipi_dsi_rockchip.txt | 5 - #address-cells: Should be <1>. 6 - #size-cells: Should be <0>. 7 - compatible: one of 8 "rockchip,px30-mipi-dsi", "snps,dw-mipi-dsi" 9 "rockchip,rk3288-mipi-dsi", "snps,dw-mipi-dsi" 10 "rockchip,rk3399-mipi-dsi", "snps,dw-mipi-dsi" 11 - reg: Represent the physical address range of the controller. 12 - interrupts: Represent the controller's interrupt to the CPU(s). 13 - clocks, clock-names: Phandles to the controller's pll reference 17 - rockchip,grf: this soc should set GRF regs to mux vopl/vopb. [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/pwm/ |
D | pwm-rockchip.txt | 4 - compatible: should be "rockchip,<name>-pwm" 5 "rockchip,rk2928-pwm": found on RK29XX,RK3066 and RK3188 SoCs 6 "rockchip,rk3288-pwm": found on RK3288 SOC 7 "rockchip,rv1108-pwm", "rockchip,rk3288-pwm": found on RV1108 SoC 8 "rockchip,vop-pwm": found integrated in VOP on RK3288 SoC 9 - reg: physical base address and length of the controller's registers 10 - clocks: See ../clock/clock-bindings.txt 11 - For older hardware (rk2928, rk3066, rk3188, rk3228, rk3288, rk3399): 12 - There is one clock that's used both to derive the functional clock 14 - For newer hardware (rk3328 and future socs): specified by name [all …]
|
/Linux-v5.10/Documentation/devicetree/bindings/power/ |
D | rockchip-io-domain.txt | 2 ------------------------------------- 8 A specific example using rk3288: 9 - If the regulator hooked up to a pin like SDMMC0_VDD is 3.3V then 18 - any logic for deciding what voltage we should set regulators to 19 - any logic for deciding whether regulators (or internal SoC blocks) 33 - compatible: should be one of: 34 - "rockchip,px30-io-voltage-domain" for px30 35 - "rockchip,px30-pmu-io-voltage-domain" for px30 pmu-domains 36 - "rockchip,rk3188-io-voltage-domain" for rk3188 37 - "rockchip,rk3228-io-voltage-domain" for rk3228 [all …]
|
/Linux-v5.10/arch/arm/boot/dts/ |
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 …]
|
D | rk3036.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/rk3036-cru.h> 8 #include <dt-bindings/soc/rockchip,boot-mode.h> 11 #address-cells = <1>; 12 #size-cells = <1>; 16 interrupt-parent = <&gic>; [all …]
|
D | rk3188.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 9 #include <dt-bindings/clock/rk3188-cru.h> 10 #include <dt-bindings/power/rk3188-power.h> 17 #address-cells = <1>; 18 #size-cells = <0>; 19 enable-method = "rockchip,rk3066-smp"; 23 compatible = "arm,cortex-a9"; 24 next-level-cache = <&L2>; [all …]
|
D | rk322x.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/rk3228-cru.h> 8 #include <dt-bindings/thermal/thermal.h> 11 #address-cells = <1>; 12 #size-cells = <1>; 14 interrupt-parent = <&gic>; [all …]
|
D | rk3066a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/pinctrl/rockchip.h> 9 #include <dt-bindings/clock/rk3066a-cru.h> 10 #include <dt-bindings/power/rk3066-power.h> 17 #address-cells = <1>; 18 #size-cells = <0>; 19 enable-method = "rockchip,rk3066-smp"; 23 compatible = "arm,cortex-a9"; 24 next-level-cache = <&L2>; [all …]
|
/Linux-v5.10/drivers/gpu/drm/rockchip/ |
D | rockchip_vop_reg.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Author:Mark Yao <mark.yao@rock-chips.com> 424 * hs_start interrupt fires at frame-start, so serves 520 * hs_start interrupt fires at frame-start, so serves 650 * Note: rk3288 has a dedicated 'cursor' window, however, that window requires 884 * rk3399 vop big windows register layout is same as rk3288, but we 1039 { .compatible = "rockchip,rk3036-vop", 1041 { .compatible = "rockchip,rk3126-vop", 1043 { .compatible = "rockchip,px30-vop-big", 1045 { .compatible = "rockchip,px30-vop-lit", [all …]
|
D | analogix_dp-rockchip.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 6 * Author: Andy Yan <andy.yan@rock-chips.com> 7 * Yakir Yang <ykk@rock-chips.com> 8 * Jeff Chen <jeff.chen@rock-chips.com> 46 * struct rockchip_dp_chip_data - splite the grf setting of kind of chips 48 * @lcdsel_big: reg value of selecting vop big for eDP 49 * @lcdsel_lit: reg value of selecting vop little for eDP 78 reset_control_assert(dp->rst); in rockchip_dp_pre_init() 80 reset_control_deassert(dp->rst); in rockchip_dp_pre_init() 90 ret = clk_prepare_enable(dp->pclk); in rockchip_dp_poweron_start() [all …]
|
D | rockchip_lvds.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Mark Yao <mark.yao@rock-chips.com> 6 * Sandy Huang <hjc@rock-chips.com> 45 * rockchip_lvds_soc_data - rockchip lvds Soc private data 74 writel_relaxed(val, lvds->regs + offset); in rk3288_writel() 75 if (lvds->output == DISPLAY_OUTPUT_LVDS) in rk3288_writel() 77 writel_relaxed(val, lvds->regs + offset + RK3288_LVDS_CH1_OFFSET); in rk3288_writel() 82 if (strncmp(s, "jeida-18", 8) == 0) in rockchip_lvds_name_to_format() 84 else if (strncmp(s, "jeida-24", 8) == 0) in rockchip_lvds_name_to_format() 86 else if (strncmp(s, "vesa-24", 7) == 0) in rockchip_lvds_name_to_format() [all …]
|
D | dw_hdmi-rockchip.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 56 * struct rockchip_hdmi_chip_data - splite the grf setting of kind of chips 58 * @lcdsel_big: reg value of selecting vop big for HDMI 59 * @lcdsel_lit: reg value of selecting vop little for HDMI 191 struct device_node *np = hdmi->dev->of_node; in rockchip_hdmi_parse_dt() 193 hdmi->regmap = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rockchip_hdmi_parse_dt() 194 if (IS_ERR(hdmi->regmap)) { in rockchip_hdmi_parse_dt() 195 DRM_DEV_ERROR(hdmi->dev, "Unable to get rockchip,grf\n"); in rockchip_hdmi_parse_dt() 196 return PTR_ERR(hdmi->regmap); in rockchip_hdmi_parse_dt() 199 hdmi->vpll_clk = devm_clk_get(hdmi->dev, "vpll"); in rockchip_hdmi_parse_dt() [all …]
|
/Linux-v5.10/drivers/pwm/ |
D | pwm-rockchip.c | 1 // SPDX-License-Identifier: GPL-2.0-only 65 u32 enable_conf = pc->data->enable_conf; in rockchip_pwm_get_state() 71 ret = clk_enable(pc->pclk); in rockchip_pwm_get_state() 75 clk_rate = clk_get_rate(pc->clk); in rockchip_pwm_get_state() 77 tmp = readl_relaxed(pc->base + pc->data->regs.period); in rockchip_pwm_get_state() 78 tmp *= pc->data->prescaler * NSEC_PER_SEC; in rockchip_pwm_get_state() 79 state->period = DIV_ROUND_CLOSEST_ULL(tmp, clk_rate); in rockchip_pwm_get_state() 81 tmp = readl_relaxed(pc->base + pc->data->regs.duty); in rockchip_pwm_get_state() 82 tmp *= pc->data->prescaler * NSEC_PER_SEC; in rockchip_pwm_get_state() 83 state->duty_cycle = DIV_ROUND_CLOSEST_ULL(tmp, clk_rate); in rockchip_pwm_get_state() [all …]
|
/Linux-v5.10/arch/arm64/boot/dts/rockchip/ |
D | px30.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/clock/px30-cru.h> 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/interrupt-controller/arm-gic.h> 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include <dt-bindings/pinctrl/rockchip.h> 11 #include <dt-bindings/power/px30-power.h> 12 #include <dt-bindings/soc/rockchip,boot-mode.h> 13 #include <dt-bindings/thermal/thermal.h> 18 interrupt-parent = <&gic>; [all …]
|
D | rk3399.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/clock/rk3399-cru.h> 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/interrupt-controller/arm-gic.h> 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include <dt-bindings/pinctrl/rockchip.h> 11 #include <dt-bindings/power/rk3399-power.h> 12 #include <dt-bindings/thermal/thermal.h> 17 interrupt-parent = <&gic>; 18 #address-cells = <2>; [all …]
|
D | rk3328.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 #include <dt-bindings/clock/rk3328-cru.h> 7 #include <dt-bindings/gpio/gpio.h> 8 #include <dt-bindings/interrupt-controller/arm-gic.h> 9 #include <dt-bindings/interrupt-controller/irq.h> 10 #include <dt-bindings/pinctrl/rockchip.h> 11 #include <dt-bindings/power/rk3328-power.h> 12 #include <dt-bindings/soc/rockchip,boot-mode.h> 13 #include <dt-bindings/thermal/thermal.h> 18 interrupt-parent = <&gic>; [all …]
|
/Linux-v5.10/drivers/soc/rockchip/ |
D | io-domain.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 * - If the voltage on a rail is above the "1.8" voltage (1.98V) we'll tell the 28 * - If the voltage on a rail is above the "3.3" voltage (3.6V) we'll consider 82 struct rockchip_iodomain *iod = supply->iod; in rockchip_iodomain_write() 88 val <<= supply->idx; in rockchip_iodomain_write() 90 /* apply hiword-mask */ in rockchip_iodomain_write() 91 val |= (BIT(supply->idx) << 16); in rockchip_iodomain_write() 93 ret = regmap_write(iod->grf, iod->soc_data->grf_offset, val); in rockchip_iodomain_write() 95 dev_err(iod->dev, "Couldn't write to GRF\n"); in rockchip_iodomain_write() 125 uV = max_t(unsigned long, pvc_data->old_uV, pvc_data->max_uV); in rockchip_iodomain_notify() [all …]
|