Lines Matching full: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
158 * TSADC Sensor Register description:
668 * @regs: the base address of tsadc controller
673 * TSADC in normal operation.
677 * TSADC after the temperature is higher than COM_SHUT or COM_INT.
681 * "debounce" times, TSADC controller will generate interrupt or TSHUT.
705 * @regs: the base address of tsadc controller
708 * (1) The tsadc control power sequence.
712 * TSADC in normal operation.
716 * TSADC after the temperature is higher than COM_SHUT or COM_INT.
720 * "debounce" times, TSADC controller will generate interrupt or TSHUT.
725 /* The tsadc control power sequence */ in rk_tsadcv3_initialize()
878 * rk_tsadcv3_control - the tsadc controller is enabled or disabled.
879 * @regs: the base address of tsadc controller
882 * NOTE: TSADC controller works at auto mode, and some SoCs need set the
939 * set_trips will pass {-INT_MAX, INT_MAX} to trigger tsadc alarm in rk_tsadcv2_alarm_temp()
972 * set_trips will pass {-INT_MAX, INT_MAX} to trigger tsadc alarm in rk_tsadcv3_alarm_temp()
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; in rockchip_thermal_set_trips() local
1388 return tsadc->set_alarm_temp(&tsadc->table, in rockchip_thermal_set_trips()
1396 const struct rockchip_tsadc_chip *tsadc = sensor->thermal->chip; in rockchip_thermal_get_temp() local
1399 retval = tsadc->get_temp(&tsadc->table, in rockchip_thermal_get_temp()
1462 /* The tsadc wont to handle the error in here since some SoCs didn't in rockchip_configure_from_dt()
1478 const struct rockchip_tsadc_chip *tsadc = thermal->chip; in rockchip_thermal_register_sensor() local
1481 tsadc->set_tshut_mode(id, thermal->regs, thermal->tshut_mode); in rockchip_thermal_register_sensor()
1483 error = tsadc->set_tshut_temp(&tsadc->table, id, thermal->regs, in rockchip_thermal_register_sensor()
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"); in rockchip_thermal_probe()
1551 thermal->clk = devm_clk_get_enabled(&pdev->dev, "tsadc"); in rockchip_thermal_probe()
1554 "failed to get tsadc clock.\n"); in rockchip_thermal_probe()
1586 "failed to request tsadc irq.\n"); in rockchip_thermal_probe()