Lines Matching refs:tsadc

84  * struct rockchip_tsadc_chip - hold the private data of tsadc chip
86 * @chn_num: the channel number of tsadc chip
90 * @initialize: SoC special initialize tsadc controller method
92 * @control: enable/disable method for the tsadc controller
144 * @reset: the reset controller of tsadc
149 * @regs: the base address of tsadc controller
597 * @regs: the base address of tsadc controller
634 * @regs: the base address of tsadc controller
637 * (1) The tsadc control power sequence.
654 /* The tsadc control power sequence */
734 * rk_tsadcv3_control - the tsadc controller is enabled or disabled.
735 * @regs: the base address of tsadc controller
773 * set_trips will pass {-INT_MAX, INT_MAX} to trigger tsadc alarm
838 .chn_num = 2, /* 2 channels for tsadc */
861 .chn_num = 1, /* one channel for tsadc */
885 .chn_num = 1, /* one channel for tsadc */
910 .chn_num = 2, /* two channels for tsadc */
934 .chn_num = 1, /* one channels for tsadc */
958 .chn_num = 2, /* two channels for tsadc */
983 .chn_num = 2, /* two channels for tsadc */
1008 .chn_num = 2, /* two channels for tsadc */
1031 { .compatible = "rockchip,px30-tsadc",
1035 .compatible = "rockchip,rv1108-tsadc",
1039 .compatible = "rockchip,rk3228-tsadc",
1043 .compatible = "rockchip,rk3288-tsadc",
1047 .compatible = "rockchip,rk3328-tsadc",
1051 .compatible = "rockchip,rk3366-tsadc",
1055 .compatible = "rockchip,rk3368-tsadc",
1059 .compatible = "rockchip,rk3399-tsadc",
1097 const struct rockchip_tsadc_chip *tsadc = thermal->chip;
1102 return tsadc->set_alarm_temp(&tsadc->table,
1110 const struct rockchip_tsadc_chip *tsadc = sensor->thermal->chip;
1113 retval = tsadc->get_temp(&tsadc->table,
1179 /* The tsadc wont to handle the error in here since some SoCs didn't
1195 const struct rockchip_tsadc_chip *tsadc = thermal->chip;
1198 tsadc->set_tshut_mode(id, thermal->regs, thermal->tshut_mode);
1200 error = tsadc->set_tshut_temp(&tsadc->table, id, thermal->regs,
1221 * Reset TSADC Controller, reset all tsadc registers.
1222 * @reset: the reset controller of tsadc
1265 thermal->reset = devm_reset_control_get(&pdev->dev, "tsadc-apb");
1268 dev_err(&pdev->dev, "failed to get tsadc reset: %d\n", error);
1272 thermal->clk = devm_clk_get(&pdev->dev, "tsadc");
1275 dev_err(&pdev->dev, "failed to get tsadc clock: %d\n", error);
1330 "failed to request tsadc irq: %d\n", error);