| /linux/drivers/phy/rockchip/ |
| H A D | phy-rockchip-inno-usb2.c | 248 struct regmap *grf; member 266 return rphy->usbgrf == NULL ? rphy->grf : rphy->usbgrf; in get_reg_base() 474 ret = property_enable(rphy->grf, &rport->port_cfg->disfall_clr, true); in rockchip_usb2phy_enable_host_disc_irq() 478 ret = property_enable(rphy->grf, &rport->port_cfg->disfall_en, en); in rockchip_usb2phy_enable_host_disc_irq() 482 ret = property_enable(rphy->grf, &rport->port_cfg->disrise_clr, true); in rockchip_usb2phy_enable_host_disc_irq() 486 return property_enable(rphy->grf, &rport->port_cfg->disrise_en, en); in rockchip_usb2phy_enable_host_disc_irq() 501 ret = property_enable(rphy->grf, in rockchip_usb2phy_init() 507 ret = property_enable(rphy->grf, in rockchip_usb2phy_init() 514 ret = property_enable(rphy->grf, in rockchip_usb2phy_init() 520 ret = property_enable(rphy->grf, in rockchip_usb2phy_init() [all …]
|
| H A D | phy-rockchip-dp.c | 28 struct regmap *grf; member 38 ret = regmap_write(dp->grf, GRF_SOC_CON12, in rockchip_set_phy_state() 50 ret = regmap_write(dp->grf, GRF_SOC_CON12, in rockchip_set_phy_state() 107 dp->grf = syscon_node_to_regmap(dev->parent->of_node); in rockchip_dp_phy_probe() 108 if (IS_ERR(dp->grf)) { in rockchip_dp_phy_probe() 110 return PTR_ERR(dp->grf); in rockchip_dp_phy_probe() 113 ret = regmap_write(dp->grf, GRF_SOC_CON12, GRF_EDP_REF_CLK_SEL_INTER | in rockchip_dp_phy_probe()
|
| H A D | phy-rockchip-inno-csidphy.c | 148 struct regmap *grf; member 163 regmap_write(priv->grf, reg->offset, in write_grf_reg() 467 priv->grf = syscon_regmap_lookup_by_phandle(dev->of_node, in rockchip_inno_csidphy_probe() 469 if (IS_ERR(priv->grf)) { in rockchip_inno_csidphy_probe() 471 return PTR_ERR(priv->grf); in rockchip_inno_csidphy_probe()
|
| H A D | phy-rockchip-dphy-rx0.c | 150 struct regmap *grf; member 169 regmap_write(priv->grf, reg->offset, val); in rk_dphy_write_grf() 342 priv->grf = syscon_node_to_regmap(dev->parent->of_node); in rk_dphy_probe() 343 if (IS_ERR(priv->grf)) { in rk_dphy_probe()
|
| /linux/drivers/soc/rockchip/ |
| H A D | io-domain.c | 80 struct regmap *grf; member 102 regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL2, val0); in rk3568_iodomain_write() 103 regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL2, val1); in rk3568_iodomain_write() 117 regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL0, val0); in rk3568_iodomain_write() 118 regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL1, val1); in rk3568_iodomain_write() 141 ret = regmap_write(iod->grf, iod->soc_data->grf_offset, val); in rockchip_iodomain_write() 212 ret = regmap_write(iod->grf, PX30_IO_VSEL, val); in px30_iodomain_init() 231 ret = regmap_write(iod->grf, RK3288_SOC_CON2, val); in rk3288_iodomain_init() 250 ret = regmap_write(iod->grf, RK3308_SOC_CON0, val); in rk3308_iodomain_init() 269 ret = regmap_write(iod->grf, RK3328_SOC_CON4, val); in rk3328_iodomain_init() [all …]
|
| H A D | grf.c | 217 struct regmap *grf; in rockchip_grf_init() local 231 grf = syscon_node_to_regmap(np); in rockchip_grf_init() 232 if (IS_ERR(grf)) { in rockchip_grf_init() 235 return PTR_ERR(grf); in rockchip_grf_init() 243 ret = regmap_write(grf, val->reg, val->val); in rockchip_grf_init()
|
| H A D | Makefile | 5 obj-$(CONFIG_ROCKCHIP_GRF) += grf.o
|
| /linux/drivers/clk/rockchip/ |
| H A D | clk-mmc-phase.c | 18 struct regmap *grf; member 60 if (mmc_clock->grf) in rockchip_mmc_get_phase() 61 regmap_read(mmc_clock->grf, mmc_clock->grf_reg, &raw_value); in rockchip_mmc_get_phase() 147 if (mmc_clock->grf) in rockchip_mmc_set_phase() 148 regmap_write(mmc_clock->grf, mmc_clock->grf_reg, raw_value); in rockchip_mmc_set_phase() 205 struct regmap *grf, int grf_reg, in rockchip_clk_register_mmc() argument 225 mmc_clock->grf = grf; in rockchip_clk_register_mmc()
|
| H A D | clk.c | 387 ctx->grf = syscon_regmap_lookup_by_phandle(ctx->cru_node, in rockchip_clk_init_base() 501 struct regmap *grf = ctx->grf; in rockchip_clk_register_branches() local 518 grf = agrf->grf; in rockchip_clk_register_branches() 546 flags, grf, list->muxdiv_offset, in rockchip_clk_register_branches() 596 list->parent_names[0], flags, grf, in rockchip_clk_register_branches() 626 grf, list->muxdiv_offset, in rockchip_clk_register_branches()
|
| H A D | clk-pll.c | 93 struct regmap *grf = pll->ctx->grf; in rockchip_pll_wait_lock() local 97 ret = regmap_read_poll_timeout(grf, pll->lock_offset, val, in rockchip_pll_wait_lock() 1156 if (!pll->rate_table || IS_ERR(ctx->grf)) in rockchip_clk_register_pll()
|
| H A D | clk-rk3528.c | 1145 vo_grf_e->grf = vo_grf; in clk_rk3528_probe() 1158 vpu_grf_e->grf = vpu_grf; in clk_rk3528_probe()
|
| /linux/arch/arm/boot/dts/rockchip/ |
| H A D | rk3xxx.dtsi | 204 rockchip,grf = <&grf>; 273 grf: grf@20008000 { label 310 rockchip,grf = <&grf>; 325 rockchip,grf = <&grf>; 380 rockchip,grf = <&grf>; 395 rockchip,grf = <&grf>; 410 rockchip,grf = <&grf>;
|
| H A D | rv1108.dtsi | 150 rockchip,grf = <&grf>; 164 rockchip,grf = <&grf>; 178 rockchip,grf = <&grf>; 250 grf: syscon@10300000 { label 251 compatible = "rockchip,rv1108-grf", "syscon", "simple-mfd"; 377 rockchip,grf = <&grf>; 445 rockchip,grf = <&grf>; 564 rockchip,grf = <&grf>; 583 rockchip,grf = <&grf>;
|
| H A D | rv1126.dtsi | 106 grf: syscon@fe000000 { label 107 compatible = "rockchip,rv1126-grf", "syscon", "simple-mfd"; 232 rockchip,grf = <&pmugrf>; 246 rockchip,grf = <&pmugrf>; 363 rockchip,grf = <&grf>; 373 rockchip,grf = <&grf>; 397 rockchip,grf = <&pmugrf>; 576 rockchip,grf = <&grf>; 624 rockchip,grf = <&grf>; 719 rockchip,grf = <&grf>;
|
| H A D | rk3066a.dtsi | 146 rockchip,grf = <&grf>; 229 rockchip,grf = <&grf>; 293 rockchip,grf = <&grf>; 703 &grf { 704 compatible = "rockchip,rk3066-grf", "syscon", "simple-mfd";
|
| H A D | rk3188.dtsi | 199 rockchip,grf = <&grf>; 219 rockchip,grf = <&grf>; 640 &grf { 641 compatible = "rockchip,rk3188-grf", "syscon", "simple-mfd";
|
| H A D | rk322x.dtsi | 186 grf: syscon@11000000 { label 187 compatible = "rockchip,rk3228-grf", "syscon", "simple-mfd"; 492 rockchip,grf = <&grf>; 734 rockchip,grf = <&grf>; 891 rockchip,grf = <&grf>; 955 rockchip,grf = <&grf>;
|
| H A D | rk3128.dtsi | 329 rockchip,grf = <&grf>; 547 rockchip,grf = <&grf>; 554 grf: syscon@20008000 { label 555 compatible = "rockchip,rk3128-grf", "syscon", "simple-mfd"; 882 rockchip,grf = <&grf>; 896 rockchip,grf = <&grf>;
|
| /linux/sound/soc/codecs/ |
| H A D | rk3328_codec.c | 426 struct regmap *grf; in rk3328_platform_probe() local 434 grf = syscon_regmap_lookup_by_phandle(rk3328_np, in rk3328_platform_probe() 436 if (IS_ERR(grf)) { in rk3328_platform_probe() 438 return PTR_ERR(grf); in rk3328_platform_probe() 441 regmap_write(grf, RK3328_GRF_SOC_CON2, in rk3328_platform_probe() 461 regmap_write(grf, RK3328_GRF_SOC_CON10, BIT(17) | BIT(1)); in rk3328_platform_probe()
|
| H A D | inno_rk3036.c | 406 struct regmap *grf; in rk3036_codec_platform_probe() local 425 grf = syscon_regmap_lookup_by_phandle(of_node, "rockchip,grf"); in rk3036_codec_platform_probe() 426 if (IS_ERR(grf)) { in rk3036_codec_platform_probe() 428 return PTR_ERR(grf); in rk3036_codec_platform_probe() 430 ret = regmap_write(grf, GRF_SOC_CON0, GRF_ACODEC_SEL); in rk3036_codec_platform_probe()
|
| H A D | rk3308_codec.c | 42 struct regmap *grf; member 848 err = regmap_read(rk3308->grf, GRF_CHIP_ID, &chip_id); in rk3308_codec_get_version() 914 rk3308->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rk3308_codec_platform_probe() 915 if (IS_ERR(rk3308->grf)) in rk3308_codec_platform_probe() 916 return dev_err_probe(dev, PTR_ERR(rk3308->grf), "Error getting GRF\n"); in rk3308_codec_platform_probe()
|
| /linux/arch/arm64/boot/dts/rockchip/ |
| H A D | rk3308.dtsi | 172 grf: grf@ff000000 { label 173 compatible = "rockchip,rk3308-grf", "syscon", "simple-mfd"; 193 compatible = "rockchip,rk3308-usb2phy-grf", "syscon", "simple-mfd"; 229 compatible = "rockchip,rk3308-detect-grf", "syscon", "simple-mfd"; 236 compatible = "rockchip,rk3308-core-grf", "syscon", "simple-mfd"; 627 rockchip,grf = <&grf>; 648 rockchip,grf = <&grf>; 808 rockchip,grf = <&grf>; 828 rockchip,grf = <&grf>; 838 rockchip,grf = <&grf>; [all …]
|
| H A D | px30.dtsi | 394 rockchip,grf = <&grf>; 451 grf: syscon@ff140000 { label 452 compatible = "rockchip,px30-grf", "syscon", "simple-mfd"; 464 rockchip,grf = <&grf>; 779 rockchip,grf = <&grf>; 830 rockchip,grf = <&grf>; 850 rockchip,grf = <&grf>; 863 compatible = "rockchip,px30-usb2phy-grf", "syscon", 920 rockchip,grf = <&grf>; 976 rockchip,grf = <&grf>; [all …]
|
| H A D | rk3328.dtsi | 313 grf: syscon@ff100000 { label 314 compatible = "rockchip,rk3328-grf", "syscon", "simple-mfd"; 323 compatible = "rockchip,rk3328-grf-gpio"; 802 rockchip,grf = <&grf>; 829 rockchip,grf = <&grf>; 853 rockchip,grf = <&grf>; 903 compatible = "rockchip,rk3328-usb2phy-grf", "syscon", 996 rockchip,grf = <&grf>; 1006 rockchip,grf = <&grf>; 1139 rockchip,grf = <&grf>;
|
| /linux/sound/soc/rockchip/ |
| H A D | rockchip_i2s_tdm.c | 55 struct regmap *grf; member 529 if (IS_ERR_OR_NULL(i2s_tdm->grf)) { in rockchip_i2s_io_multiplex() 578 regmap_write(i2s_tdm->grf, i2s_tdm->soc_data->grf_reg_offset, val); in rockchip_i2s_io_multiplex() 949 if (IS_ERR_OR_NULL(i2s_tdm->grf)) { in common_soc_init() 965 regmap_write(i2s_tdm->grf, reg, val); in common_soc_init() 1265 i2s_tdm->grf = syscon_regmap_lookup_by_phandle(node, "rockchip,grf"); in rockchip_i2s_tdm_probe()
|