@@ -606,6 +606,18 @@ static const struct ths_thermal_chip sun50i_h6_ths = {
606
606
.calc_temp = sun8i_ths_calc_temp ,
607
607
};
608
608
609
+ static const struct ths_thermal_chip sun20i_d1_ths = {
610
+ .sensor_num = 1 ,
611
+ .has_bus_clk_reset = true,
612
+ .offset = 188552 ,
613
+ .scale = 673 ,
614
+ .temp_data_base = SUN50I_H6_THS_TEMP_DATA ,
615
+ .calibrate = sun50i_h6_ths_calibrate ,
616
+ .init = sun50i_h6_thermal_init ,
617
+ .irq_ack = sun50i_h6_irq_ack ,
618
+ .calc_temp = sun8i_ths_calc_temp ,
619
+ };
620
+
609
621
static const struct of_device_id of_ths_match [] = {
610
622
{ .compatible = "allwinner,sun8i-a83t-ths" , .data = & sun8i_a83t_ths },
611
623
{ .compatible = "allwinner,sun8i-h3-ths" , .data = & sun8i_h3_ths },
@@ -614,6 +626,7 @@ static const struct of_device_id of_ths_match[] = {
614
626
{ .compatible = "allwinner,sun50i-a100-ths" , .data = & sun50i_a100_ths },
615
627
{ .compatible = "allwinner,sun50i-h5-ths" , .data = & sun50i_h5_ths },
616
628
{ .compatible = "allwinner,sun50i-h6-ths" , .data = & sun50i_h6_ths },
629
+ { .compatible = "allwinner,sun20i-d1-ths" , .data = & sun20i_d1_ths },
617
630
{ /* sentinel */ },
618
631
};
619
632
MODULE_DEVICE_TABLE (of , of_ths_match );
0 commit comments