Lines Matching refs:tsadc
69 * struct rockchip_tsadc_chip - hold the private data of tsadc chip
71 * @chn_num: the channel number of tsadc chip
75 * @initialize: SoC special initialize tsadc controller method
77 * @control: enable/disable method for the tsadc controller
129 * @reset: the reset controller of tsadc
134 * @regs: the base address of tsadc controller
668 * @regs: the base address of tsadc controller
705 * @regs: the base address of tsadc controller
708 * (1) The tsadc control power sequence.
725 /* The tsadc control power sequence */
878 * rk_tsadcv3_control - the tsadc controller is enabled or disabled.
879 * @regs: the base address of tsadc controller
939 * set_trips will pass {-INT_MAX, INT_MAX} to trigger tsadc alarm
972 * set_trips will pass {-INT_MAX, INT_MAX} to trigger tsadc alarm
1066 .chn_num = 2, /* 2 channels for tsadc */
1090 .chn_num = 1, /* one channel for tsadc */
1115 .chn_num = 1, /* one channel for tsadc */
1140 .chn_num = 2, /* two channels for tsadc */
1165 .chn_num = 1, /* one channels for tsadc */
1189 .chn_num = 2, /* two channels for tsadc */
1214 .chn_num = 2, /* two channels for tsadc */
1239 .chn_num = 2, /* two channels for tsadc */
1264 .chn_num = 2, /* two channels for tsadc */
1289 .chn_num = 7, /* seven channels for tsadc */
1309 { .compatible = "rockchip,px30-tsadc",
1313 .compatible = "rockchip,rv1108-tsadc",
1317 .compatible = "rockchip,rk3228-tsadc",
1321 .compatible = "rockchip,rk3288-tsadc",
1325 .compatible = "rockchip,rk3328-tsadc",
1329 .compatible = "rockchip,rk3366-tsadc",
1333 .compatible = "rockchip,rk3368-tsadc",
1337 .compatible = "rockchip,rk3399-tsadc",
1341 .compatible = "rockchip,rk3568-tsadc",
1345 .compatible = "rockchip,rk3588-tsadc",
1383 const struct rockchip_tsadc_chip *tsadc = thermal->chip;
1388 return tsadc->set_alarm_temp(&tsadc->table,
1396 const struct rockchip_tsadc_chip *tsadc = sensor->thermal->chip;
1399 retval = tsadc->get_temp(&tsadc->table,
1462 /* The tsadc wont to handle the error in here since some SoCs didn't
1478 const struct rockchip_tsadc_chip *tsadc = thermal->chip;
1481 tsadc->set_tshut_mode(id, thermal->regs, thermal->tshut_mode);
1483 error = tsadc->set_tshut_temp(&tsadc->table, id, thermal->regs,
1504 * rockchip_thermal_reset_controller - Reset TSADC Controller, reset all tsadc registers.
1505 * @reset: the reset controller of tsadc
1549 "failed to get tsadc reset.\n");
1551 thermal->clk = devm_clk_get_enabled(&pdev->dev, "tsadc");
1554 "failed to get tsadc clock.\n");
1586 "failed to request tsadc irq.\n");