/Linux-v6.6/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-rk.c | 82 struct regmap *grf; member 108 if (IS_ERR(bsp_priv->grf)) { in px30_set_to_rmii() 113 regmap_write(bsp_priv->grf, PX30_GRF_GMAC_CON1, in px30_set_to_rmii() 129 regmap_write(bsp_priv->grf, PX30_GRF_GMAC_CON1, in px30_set_rmii_speed() 137 regmap_write(bsp_priv->grf, PX30_GRF_GMAC_CON1, in px30_set_rmii_speed() 188 if (IS_ERR(bsp_priv->grf)) { in rk3128_set_to_rgmii() 193 regmap_write(bsp_priv->grf, RK3128_GRF_MAC_CON1, in rk3128_set_to_rgmii() 196 regmap_write(bsp_priv->grf, RK3128_GRF_MAC_CON0, in rk3128_set_to_rgmii() 206 if (IS_ERR(bsp_priv->grf)) { in rk3128_set_to_rmii() 211 regmap_write(bsp_priv->grf, RK3128_GRF_MAC_CON1, in rk3128_set_to_rmii() [all …]
|
/Linux-v6.6/drivers/phy/rockchip/ |
D | phy-rockchip-usb.c | 56 int (*init_usb_uart)(struct regmap *grf, 324 static int __init rockchip_init_usb_uart_common(struct regmap *grf, in rockchip_init_usb_uart_common() argument 342 ret = regmap_write(grf, regoffs + UOC_CON0, val); in rockchip_init_usb_uart_common() 348 ret = regmap_write(grf, regoffs + UOC_CON2, val); in rockchip_init_usb_uart_common() 359 ret = regmap_write(grf, UOC_CON3, val); in rockchip_init_usb_uart_common() 374 static int __init rk3188_init_usb_uart(struct regmap *grf, in rk3188_init_usb_uart() argument 380 ret = rockchip_init_usb_uart_common(grf, pdata); in rk3188_init_usb_uart() 388 ret = regmap_write(grf, RK3188_UOC0_CON0, val); in rk3188_init_usb_uart() 424 static int __init rk3288_init_usb_uart(struct regmap *grf, in rk3288_init_usb_uart() argument 430 ret = rockchip_init_usb_uart_common(grf, pdata); in rk3288_init_usb_uart() [all …]
|
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()
|
D | phy-rockchip-inno-usb2.c | 243 struct regmap *grf; member 260 return rphy->usbgrf == NULL ? rphy->grf : rphy->usbgrf; in get_reg_base() 454 ret = property_enable(rphy->grf, &rport->port_cfg->disfall_clr, true); in rockchip_usb2phy_enable_host_disc_irq() 458 ret = property_enable(rphy->grf, &rport->port_cfg->disfall_en, en); in rockchip_usb2phy_enable_host_disc_irq() 462 ret = property_enable(rphy->grf, &rport->port_cfg->disrise_clr, true); in rockchip_usb2phy_enable_host_disc_irq() 466 return property_enable(rphy->grf, &rport->port_cfg->disrise_en, en); in rockchip_usb2phy_enable_host_disc_irq() 481 ret = property_enable(rphy->grf, in rockchip_usb2phy_init() 487 ret = property_enable(rphy->grf, in rockchip_usb2phy_init() 494 ret = property_enable(rphy->grf, in rockchip_usb2phy_init() 500 ret = property_enable(rphy->grf, in rockchip_usb2phy_init() [all …]
|
D | phy-rockchip-emmc.c | 353 struct regmap *grf; in rockchip_emmc_phy_probe() local 360 grf = syscon_node_to_regmap(dev->parent->of_node); in rockchip_emmc_phy_probe() 361 if (IS_ERR(grf)) { in rockchip_emmc_phy_probe() 363 return PTR_ERR(grf); in rockchip_emmc_phy_probe() 377 rk_phy->reg_base = grf; in rockchip_emmc_phy_probe()
|
D | phy-rockchip-pcie.c | 352 struct regmap *grf; in rockchip_pcie_phy_probe() local 357 grf = syscon_node_to_regmap(dev->parent->of_node); in rockchip_pcie_phy_probe() 358 if (IS_ERR(grf)) { in rockchip_pcie_phy_probe() 360 return PTR_ERR(grf); in rockchip_pcie_phy_probe() 372 rk_phy->reg_base = grf; in rockchip_pcie_phy_probe()
|
/Linux-v6.6/drivers/soc/rockchip/ |
D | io-domain.c | 76 struct regmap *grf; member 98 regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL2, val0); in rk3568_iodomain_write() 99 regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL2, val1); in rk3568_iodomain_write() 113 regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL0, val0); in rk3568_iodomain_write() 114 regmap_write(iod->grf, RK3568_PMU_GRF_IO_VSEL1, val1); in rk3568_iodomain_write() 137 ret = regmap_write(iod->grf, iod->soc_data->grf_offset, val); in rockchip_iodomain_write() 208 ret = regmap_write(iod->grf, PX30_IO_VSEL, val); in px30_iodomain_init() 227 ret = regmap_write(iod->grf, RK3288_SOC_CON2, val); in rk3288_iodomain_init() 246 ret = regmap_write(iod->grf, RK3328_SOC_CON4, val); in rk3328_iodomain_init() 265 ret = regmap_write(iod->grf, RK3368_SOC_CON15, val); in rk3368_iodomain_init() [all …]
|
D | grf.c | 173 struct regmap *grf; in rockchip_grf_init() local 188 grf = syscon_node_to_regmap(np); in rockchip_grf_init() 190 if (IS_ERR(grf)) { in rockchip_grf_init() 192 return PTR_ERR(grf); in rockchip_grf_init() 200 ret = regmap_write(grf, val->reg, val->val); in rockchip_grf_init()
|
/Linux-v6.6/Documentation/devicetree/bindings/sound/ |
D | inno-rk3036.txt | 10 - rockchip,grf : The phandle of grf device node. 17 rockchip,grf = <&grf>;
|
/Linux-v6.6/Documentation/devicetree/bindings/display/rockchip/ |
D | cdn-dp-rockchip.txt | 12 Required elements: "core-clk" "pclk" "spdif" "grf" 22 - rockchip,grf: this soc should set GRF regs, so need get grf here. 43 clock-names = "core-clk", "pclk", "spdif", "grf"; 51 rockchip,grf = <&grf>;
|
/Linux-v6.6/drivers/net/ethernet/arc/ |
D | emac_rockchip.c | 29 struct regmap *grf; member 55 err = regmap_write(emac->grf, emac->soc_data->grf_offset, data); in emac_rockchip_set_mac_speed() 127 priv->grf = syscon_regmap_lookup_by_phandle(dev->of_node, in emac_rockchip_probe() 129 if (IS_ERR(priv->grf)) { in emac_rockchip_probe() 131 PTR_ERR(priv->grf)); in emac_rockchip_probe() 132 err = PTR_ERR(priv->grf); in emac_rockchip_probe() 187 err = regmap_write(priv->grf, priv->soc_data->grf_offset, data); in emac_rockchip_probe()
|
/Linux-v6.6/drivers/thermal/ |
D | rockchip_thermal.c | 95 void (*initialize)(struct regmap *grf, 149 struct regmap *grf; member 683 static void rk_tsadcv2_initialize(struct regmap *grf, void __iomem *regs, in rk_tsadcv2_initialize() argument 722 static void rk_tsadcv3_initialize(struct regmap *grf, void __iomem *regs, in rk_tsadcv3_initialize() argument 726 if (IS_ERR(grf)) { in rk_tsadcv3_initialize() 742 regmap_write(grf, GRF_TSADC_TESTBIT_L, GRF_TSADC_VCM_EN_L); in rk_tsadcv3_initialize() 743 regmap_write(grf, GRF_TSADC_TESTBIT_H, GRF_TSADC_VCM_EN_H); in rk_tsadcv3_initialize() 746 regmap_write(grf, GRF_SARADC_TESTBIT, GRF_SARADC_TESTBIT_ON); in rk_tsadcv3_initialize() 747 regmap_write(grf, GRF_TSADC_TESTBIT_H, GRF_TSADC_TESTBIT_H_ON); in rk_tsadcv3_initialize() 768 static void rk_tsadcv4_initialize(struct regmap *grf, void __iomem *regs, in rk_tsadcv4_initialize() argument [all …]
|
/Linux-v6.6/arch/arm/boot/dts/rockchip/ |
D | rk3xxx.dtsi | 197 rockchip,grf = <&grf>; 272 grf: grf@20008000 { label 309 rockchip,grf = <&grf>; 324 rockchip,grf = <&grf>; 379 rockchip,grf = <&grf>; 394 rockchip,grf = <&grf>; 409 rockchip,grf = <&grf>;
|
D | rv1108.dtsi | 151 rockchip,grf = <&grf>; 165 rockchip,grf = <&grf>; 179 rockchip,grf = <&grf>; 255 grf: syscon@10300000 { label 256 compatible = "rockchip,rv1108-grf", "syscon", "simple-mfd"; 382 rockchip,grf = <&grf>; 454 rockchip,grf = <&grf>; 573 rockchip,grf = <&grf>; 592 rockchip,grf = <&grf>;
|
D | rv1126.dtsi | 98 grf: syscon@fe000000 { label 99 compatible = "rockchip,rv1126-grf", "syscon", "simple-mfd"; 224 rockchip,grf = <&pmugrf>; 253 rockchip,grf = <&grf>; 263 rockchip,grf = <&grf>; 422 rockchip,grf = <&grf>; 517 rockchip,grf = <&grf>;
|
/Linux-v6.6/Documentation/devicetree/bindings/phy/ |
D | phy-rockchip-typec.txt | 7 - rockchip,grf : phandle to the syscon managing the "general 41 rockchip,grf = <&grf>; 65 rockchip,grf = <&grf>;
|
D | rockchip-pcie-phy.txt | 21 grf: syscon@ff770000 { 22 compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd";
|
/Linux-v6.6/arch/arm64/boot/dts/rockchip/ |
D | rk3568.dtsi | 26 compatible = "rockchip,rk3568-pipe-phy-grf", "syscon"; 46 compatible = "rockchip,rk3568-pcie3-phy-grf", "syscon"; 59 rockchip,phy-grf = <&pcie30_phy_grf>; 185 rockchip,grf = <&grf>; 226 rockchip,pipe-grf = <&pipegrf>; 227 rockchip,pipe-phy-grf = <&pipe_phy_grf0>; 241 compatible = "rockchip,rk3568-pipe-grf", "syscon";
|
D | rk356x.dtsi | 386 grf: syscon@fdc60000 { label 387 compatible = "rockchip,rk3568-grf", "syscon", "simple-mfd"; 392 compatible = "rockchip,rk3568-pipe-phy-grf", "syscon"; 397 compatible = "rockchip,rk3568-pipe-phy-grf", "syscon"; 402 compatible = "rockchip,rk3568-usb2phy-grf", "syscon"; 407 compatible = "rockchip,rk3568-usb2phy-grf", "syscon"; 428 rockchip,grf = <&grf>; 677 rockchip,grf = <&grf>; 717 rockchip,grf = <&grf>; 765 rockchip,grf = <&grf>; [all …]
|
D | rk3588.dtsi | 11 compatible = "rockchip,rk3588-pcie3-phy-grf", "syscon"; 16 compatible = "rockchip,rk3588-pipe-phy-grf", "syscon"; 256 rockchip,grf = <&sys_grf>; 257 rockchip,php-grf = <&php_grf>; 324 rockchip,pipe-grf = <&php_grf>; 325 rockchip,pipe-phy-grf = <&pipe_phy1_grf>; 337 rockchip,pipe-grf = <&php_grf>; 338 rockchip,phy-grf = <&pcie30_phy_grf>;
|
/Linux-v6.6/drivers/gpu/drm/rockchip/ |
D | rockchip_lvds.c | 52 struct regmap *grf; member 233 ret = regmap_write(lvds->grf, RK3288_LVDS_GRF_SOC_CON7, val); in rk3288_lvds_poweroff() 266 ret = regmap_write(lvds->grf, RK3288_LVDS_GRF_SOC_CON7, val); in rk3288_lvds_grf_config() 287 ret = regmap_write(lvds->grf, RK3288_LVDS_GRF_SOC_CON6, val); in rk3288_lvds_set_vop_source() 346 ret = regmap_update_bits(lvds->grf, PX30_LVDS_GRF_PD_VO_CON1, in px30_lvds_poweron() 357 regmap_update_bits(lvds->grf, PX30_LVDS_GRF_PD_VO_CON1, in px30_lvds_poweroff() 376 return regmap_update_bits(lvds->grf, PX30_LVDS_GRF_PD_VO_CON1, in px30_lvds_grf_config() 390 return regmap_update_bits(lvds->grf, PX30_LVDS_GRF_PD_VO_CON1, in px30_lvds_set_vop_source() 500 ret = regmap_update_bits(lvds->grf, PX30_LVDS_GRF_PD_VO_CON1, in px30_lvds_probe() 718 lvds->grf = syscon_regmap_lookup_by_phandle(dev->of_node, in rockchip_lvds_probe() [all …]
|
/Linux-v6.6/sound/soc/rockchip/ |
D | rockchip_spdif.c | 295 struct regmap *grf; in rk_spdif_probe() local 297 grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rk_spdif_probe() 298 if (IS_ERR(grf)) { in rk_spdif_probe() 301 return PTR_ERR(grf); in rk_spdif_probe() 307 regmap_write(grf, RK3288_GRF_SOC_CON2, BIT(1) << 16); in rk_spdif_probe()
|
/Linux-v6.6/Documentation/devicetree/bindings/clock/ |
D | rockchip,rk3328-cru.txt | 17 - rockchip,grf: phandle to the syscon managing the "general register files" 42 rockchip,grf = <&grf>;
|
/Linux-v6.6/sound/soc/codecs/ |
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()
|
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()
|