/Linux-v5.15/Documentation/devicetree/bindings/soc/rockchip/ |
D | grf.yaml | 4 $id: http://devicetree.org/schemas/soc/rockchip/grf.yaml# 7 title: Rockchip General Register Files (GRF) 22 - rockchip,px30-grf 24 - rockchip,px30-usb2phy-grf 25 - rockchip,rk3036-grf 26 - rockchip,rk3066-grf 27 - rockchip,rk3188-grf 28 - rockchip,rk3228-grf 29 - rockchip,rk3288-grf 30 - rockchip,rk3308-core-grf [all …]
|
/Linux-v5.15/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-rk.c | 67 struct regmap *grf; member 92 if (IS_ERR(bsp_priv->grf)) { in px30_set_to_rmii() 93 dev_err(dev, "%s: Missing rockchip,grf property\n", __func__); in px30_set_to_rmii() 97 regmap_write(bsp_priv->grf, PX30_GRF_GMAC_CON1, in px30_set_to_rmii() 112 regmap_write(bsp_priv->grf, PX30_GRF_GMAC_CON1, in px30_set_rmii_speed() 120 regmap_write(bsp_priv->grf, PX30_GRF_GMAC_CON1, in px30_set_rmii_speed() 171 if (IS_ERR(bsp_priv->grf)) { in rk3128_set_to_rgmii() 172 dev_err(dev, "Missing rockchip,grf property\n"); in rk3128_set_to_rgmii() 176 regmap_write(bsp_priv->grf, RK3128_GRF_MAC_CON1, in rk3128_set_to_rgmii() 179 regmap_write(bsp_priv->grf, RK3128_GRF_MAC_CON0, in rk3128_set_to_rgmii() [all …]
|
/Linux-v5.15/drivers/soc/rockchip/ |
D | grf.c | 113 .compatible = "rockchip,rk3036-grf", 116 .compatible = "rockchip,rk3128-grf", 119 .compatible = "rockchip,rk3228-grf", 122 .compatible = "rockchip,rk3288-grf", 125 .compatible = "rockchip,rk3328-grf", 128 .compatible = "rockchip,rk3368-grf", 131 .compatible = "rockchip,rk3399-grf", 142 struct regmap *grf; in rockchip_grf_init() local 150 pr_err("%s: missing grf data\n", __func__); in rockchip_grf_init() 156 grf = syscon_node_to_regmap(np); in rockchip_grf_init() [all …]
|
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() 139 dev_err(iod->dev, "Couldn't write to GRF\n"); 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() [all …]
|
/Linux-v5.15/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() 116 dev_err(dp->dev, "Could not config GRF edp ref clk: %d\n", ret); in rockchip_dp_phy_probe()
|
/Linux-v5.15/Documentation/devicetree/bindings/display/rockchip/ |
D | rockchip,dw-hdmi.yaml | 38 - description: Power for GRF IO 48 - grf 51 - grf 104 rockchip,grf: 107 phandle to the GRF to mux vopl/vopb. 117 - rockchip,grf 132 rockchip,grf = <&grf>;
|
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>;
|
D | analogix_dp-rockchip.txt | 24 - rockchip,grf: this soc should set GRF regs, so need get grf here. 35 Required elements: "grf" 55 rockchip,grf = <&grf>;
|
D | dw_mipi_dsi_rockchip.txt | 15 For RK3399, a phy config clock (phy_cfg) and a grf clock(grf) 17 - rockchip,grf: this soc should set GRF regs to mux vopl/vopb. 46 rockchip,grf = <&grf>;
|
D | rockchip,rk3066-hdmi.yaml | 40 rockchip,grf: 43 This soc uses GRF regs to switch the HDMI TX input between vop0 and vop1. 73 - rockchip,grf 93 rockchip,grf = <&grf>;
|
/Linux-v5.15/Documentation/devicetree/bindings/gpio/ |
D | rockchip,rk3328-grf-gpio.yaml | 4 $id: http://devicetree.org/schemas/gpio/rockchip,rk3328-grf-gpio.yaml# 10 The Rockchip RK3328 General Register File (GRF) outputs only the 14 The GPIO node should be declared as the child of the GRF node. 30 const: rockchip,rk3328-grf-gpio 47 compatible = "rockchip,rk3328-grf-gpio";
|
/Linux-v5.15/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() 57 pr_err("unable to apply speed %u to grf (%d)\n", speed, err); in emac_rockchip_set_mac_speed() 127 priv->grf = syscon_regmap_lookup_by_phandle(dev->of_node, in emac_rockchip_probe() 128 "rockchip,grf"); 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() 189 dev_err(dev, "unable to apply initial settings to grf (%d)\n", in emac_rockchip_probe()
|
/Linux-v5.15/Documentation/devicetree/bindings/sound/ |
D | rockchip,rk3328-codec.yaml | 29 rockchip,grf: 32 The phandle of the syscon node for the GRF register. 53 - rockchip,grf 67 rockchip,grf = <&grf>;
|
D | inno-rk3036.txt | 10 - rockchip,grf : The phandle of grf device node. 17 rockchip,grf = <&grf>;
|
/Linux-v5.15/Documentation/devicetree/bindings/phy/ |
D | rockchip-inno-csi-dphy.yaml | 48 rockchip,grf: 51 Some additional phy settings are access through GRF regs. 62 - rockchip,grf 78 rockchip,grf = <&grf>;
|
D | rockchip-mipi-dphy-rx0.yaml | 31 - const: grf 54 * should be a child of the GRF. 56 * grf: syscon@ff770000 { 57 * compatible = "rockchip,rk3399-grf", "syscon", "simple-mfd"; 70 clock-names = "dphy-ref", "dphy-cfg", "grf";
|
D | phy-rockchip-typec.txt | 7 - rockchip,grf : phandle to the syscon managing the "general 41 rockchip,grf = <&grf>; 65 rockchip,grf = <&grf>;
|
/Linux-v5.15/arch/arm/boot/dts/ |
D | rk3xxx.dtsi | 192 rockchip,grf = <&grf>; 267 grf: grf@20008000 { label 304 rockchip,grf = <&grf>; 319 rockchip,grf = <&grf>; 374 rockchip,grf = <&grf>; 389 rockchip,grf = <&grf>; 404 rockchip,grf = <&grf>;
|
/Linux-v5.15/Documentation/devicetree/bindings/i2c/ |
D | i2c-rk3x.yaml | 66 rockchip,grf: 70 the general register file (GRF) 72 (bit offset in the GRF) is also required. 119 - rockchip,grf 134 rockchip,grf = <&grf>;
|
/Linux-v5.15/drivers/gpu/drm/rockchip/ |
D | analogix_dp-rockchip.c | 46 * struct rockchip_dp_chip_data - splite the grf setting of kind of chips 47 * @lcdsel_grf_reg: grf register offset of lcdc select 67 struct regmap *grf; member 201 ret = regmap_write(dp->grf, dp->data->lcdsel_grf_reg, val); in rockchip_dp_drm_encoder_enable() 203 DRM_DEV_ERROR(dp->dev, "Could not write to GRF: %d\n", ret); in rockchip_dp_drm_encoder_enable() 267 dp->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rockchip_dp_of_probe() 268 if (IS_ERR(dp->grf)) { in rockchip_dp_of_probe() 269 DRM_DEV_ERROR(dev, "failed to get rockchip,grf property\n"); in rockchip_dp_of_probe() 270 return PTR_ERR(dp->grf); in rockchip_dp_of_probe() 273 dp->grfclk = devm_clk_get(dev, "grf"); in rockchip_dp_of_probe() [all …]
|
D | rockchip_lvds.c | 57 struct regmap *grf; member 226 ret = regmap_write(lvds->grf, RK3288_LVDS_GRF_SOC_CON7, val); in rk3288_lvds_poweroff() 228 DRM_DEV_ERROR(lvds->dev, "Could not write to GRF: %d\n", ret); in rk3288_lvds_poweroff() 259 ret = regmap_write(lvds->grf, RK3288_LVDS_GRF_SOC_CON7, val); in rk3288_lvds_grf_config() 261 DRM_DEV_ERROR(lvds->dev, "Could not write to GRF: %d\n", ret); in rk3288_lvds_grf_config() 280 ret = regmap_write(lvds->grf, RK3288_LVDS_GRF_SOC_CON6, val); in rk3288_lvds_set_vop_source() 339 return regmap_update_bits(lvds->grf, PX30_LVDS_GRF_PD_VO_CON1, in px30_lvds_poweron() 346 regmap_update_bits(lvds->grf, PX30_LVDS_GRF_PD_VO_CON1, in px30_lvds_poweroff() 365 return regmap_update_bits(lvds->grf, PX30_LVDS_GRF_PD_VO_CON1, in px30_lvds_grf_config() 379 return regmap_update_bits(lvds->grf, PX30_LVDS_GRF_PD_VO_CON1, in px30_lvds_set_vop_source() [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/net/ |
D | emac_rockchip.txt | 10 - rockchip,grf: phandle to the syscon grf used to control speed and mode 41 rockchip,grf = <&grf>;
|
/Linux-v5.15/drivers/thermal/ |
D | rockchip_thermal.c | 110 void (*initialize)(struct regmap *grf, 148 * @grf: the general register file will be used to do static set by software 164 struct regmap *grf; member 645 * @grf: the general register file will be used to do static set by software 661 static void rk_tsadcv2_initialize(struct regmap *grf, void __iomem *regs, in rk_tsadcv2_initialize() argument 682 * @grf: the general register file will be used to do static set by software 700 static void rk_tsadcv3_initialize(struct regmap *grf, void __iomem *regs, in rk_tsadcv3_initialize() argument 704 if (IS_ERR(grf)) { in rk_tsadcv3_initialize() 720 regmap_write(grf, GRF_TSADC_TESTBIT_L, GRF_TSADC_VCM_EN_L); in rk_tsadcv3_initialize() 721 regmap_write(grf, GRF_TSADC_TESTBIT_H, GRF_TSADC_VCM_EN_H); in rk_tsadcv3_initialize() [all …]
|
/Linux-v5.15/sound/soc/rockchip/ |
D | rockchip_spdif.c | 293 struct regmap *grf; in rk_spdif_probe() local 295 grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf"); in rk_spdif_probe() 296 if (IS_ERR(grf)) { in rk_spdif_probe() 298 "rockchip_spdif missing 'rockchip,grf'\n"); in rk_spdif_probe() 299 return PTR_ERR(grf); in rk_spdif_probe() 305 regmap_write(grf, RK3288_GRF_SOC_CON2, BIT(1) << 16); in rk_spdif_probe()
|