* [PATCH 1/1] arm64: dts: mt8183-kukui: Update Tboard sensor mapping table
@ 2021-11-03 3:30 ` Ben Tseng
0 siblings, 0 replies; 9+ messages in thread
From: Ben Tseng @ 2021-11-03 3:30 UTC (permalink / raw)
To: Fan Chen, Zhang Rui, Daniel Lezcano, linux-pm, srv_heupstream
Cc: Eduardo Valentin, Rob Herring, Mark Rutland, Matthias Brugger,
hsinyi, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, Project_Global_Chrome_Upstream_Group, Ben Tseng
According to auxadc change the readback value from raw data to Vsense.
Update the tboard table that temperature map to Vsense.
pull-up voltage: 1800 mv
pull-up resistor: 75K
Vsense = pull-up voltage * Rntc / ( pull-up resistor + Rntc )
Signed-off-by: Ben Tseng <ben.tseng@mediatek.com>
---
.../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 108 +++++++++---------
1 file changed, 54 insertions(+), 54 deletions(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
index 8e9cf36a9a41..65447de64f06 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
@@ -151,33 +151,33 @@
#thermal-sensor-cells = <0>;
io-channels = <&auxadc 0>;
io-channel-names = "sensor-channel";
- temperature-lookup-table = < (-5000) 4241
- 0 4063
- 5000 3856
- 10000 3621
- 15000 3364
- 20000 3091
- 25000 2810
- 30000 2526
- 35000 2247
- 40000 1982
- 45000 1734
- 50000 1507
- 55000 1305
- 60000 1122
- 65000 964
- 70000 827
- 75000 710
- 80000 606
- 85000 519
- 90000 445
- 95000 382
- 100000 330
- 105000 284
- 110000 245
- 115000 213
- 120000 183
- 125000 161>;
+ temperature-lookup-table = < (-5000) 1553
+ 0 1488
+ 5000 1412
+ 10000 1326
+ 15000 1232
+ 20000 1132
+ 25000 1029
+ 30000 925
+ 35000 823
+ 40000 726
+ 45000 635
+ 50000 552
+ 55000 478
+ 60000 411
+ 65000 353
+ 70000 303
+ 75000 260
+ 80000 222
+ 85000 190
+ 90000 163
+ 95000 140
+ 100000 121
+ 105000 104
+ 110000 90
+ 115000 78
+ 120000 67
+ 125000 59>;
};
tboard_thermistor2: thermal-sensor2 {
@@ -185,33 +185,33 @@
#thermal-sensor-cells = <0>;
io-channels = <&auxadc 1>;
io-channel-names = "sensor-channel";
- temperature-lookup-table = < (-5000) 4241
- 0 4063
- 5000 3856
- 10000 3621
- 15000 3364
- 20000 3091
- 25000 2810
- 30000 2526
- 35000 2247
- 40000 1982
- 45000 1734
- 50000 1507
- 55000 1305
- 60000 1122
- 65000 964
- 70000 827
- 75000 710
- 80000 606
- 85000 519
- 90000 445
- 95000 382
- 100000 330
- 105000 284
- 110000 245
- 115000 213
- 120000 183
- 125000 161>;
+ temperature-lookup-table = < (-5000) 1553
+ 0 1488
+ 5000 1412
+ 10000 1326
+ 15000 1232
+ 20000 1132
+ 25000 1029
+ 30000 925
+ 35000 823
+ 40000 726
+ 45000 635
+ 50000 552
+ 55000 478
+ 60000 411
+ 65000 353
+ 70000 303
+ 75000 260
+ 80000 222
+ 85000 190
+ 90000 163
+ 95000 140
+ 100000 121
+ 105000 104
+ 110000 90
+ 115000 78
+ 120000 67
+ 125000 59>;
};
};
--
2.18.0
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 1/1] arm64: dts: mt8183-kukui: Update Tboard sensor mapping table
@ 2021-11-03 3:30 ` Ben Tseng
0 siblings, 0 replies; 9+ messages in thread
From: Ben Tseng @ 2021-11-03 3:30 UTC (permalink / raw)
To: Fan Chen, Zhang Rui, Daniel Lezcano, linux-pm, srv_heupstream
Cc: Eduardo Valentin, Rob Herring, Mark Rutland, Matthias Brugger,
hsinyi, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, Project_Global_Chrome_Upstream_Group, Ben Tseng
According to auxadc change the readback value from raw data to Vsense.
Update the tboard table that temperature map to Vsense.
pull-up voltage: 1800 mv
pull-up resistor: 75K
Vsense = pull-up voltage * Rntc / ( pull-up resistor + Rntc )
Signed-off-by: Ben Tseng <ben.tseng@mediatek.com>
---
.../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 108 +++++++++---------
1 file changed, 54 insertions(+), 54 deletions(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
index 8e9cf36a9a41..65447de64f06 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
@@ -151,33 +151,33 @@
#thermal-sensor-cells = <0>;
io-channels = <&auxadc 0>;
io-channel-names = "sensor-channel";
- temperature-lookup-table = < (-5000) 4241
- 0 4063
- 5000 3856
- 10000 3621
- 15000 3364
- 20000 3091
- 25000 2810
- 30000 2526
- 35000 2247
- 40000 1982
- 45000 1734
- 50000 1507
- 55000 1305
- 60000 1122
- 65000 964
- 70000 827
- 75000 710
- 80000 606
- 85000 519
- 90000 445
- 95000 382
- 100000 330
- 105000 284
- 110000 245
- 115000 213
- 120000 183
- 125000 161>;
+ temperature-lookup-table = < (-5000) 1553
+ 0 1488
+ 5000 1412
+ 10000 1326
+ 15000 1232
+ 20000 1132
+ 25000 1029
+ 30000 925
+ 35000 823
+ 40000 726
+ 45000 635
+ 50000 552
+ 55000 478
+ 60000 411
+ 65000 353
+ 70000 303
+ 75000 260
+ 80000 222
+ 85000 190
+ 90000 163
+ 95000 140
+ 100000 121
+ 105000 104
+ 110000 90
+ 115000 78
+ 120000 67
+ 125000 59>;
};
tboard_thermistor2: thermal-sensor2 {
@@ -185,33 +185,33 @@
#thermal-sensor-cells = <0>;
io-channels = <&auxadc 1>;
io-channel-names = "sensor-channel";
- temperature-lookup-table = < (-5000) 4241
- 0 4063
- 5000 3856
- 10000 3621
- 15000 3364
- 20000 3091
- 25000 2810
- 30000 2526
- 35000 2247
- 40000 1982
- 45000 1734
- 50000 1507
- 55000 1305
- 60000 1122
- 65000 964
- 70000 827
- 75000 710
- 80000 606
- 85000 519
- 90000 445
- 95000 382
- 100000 330
- 105000 284
- 110000 245
- 115000 213
- 120000 183
- 125000 161>;
+ temperature-lookup-table = < (-5000) 1553
+ 0 1488
+ 5000 1412
+ 10000 1326
+ 15000 1232
+ 20000 1132
+ 25000 1029
+ 30000 925
+ 35000 823
+ 40000 726
+ 45000 635
+ 50000 552
+ 55000 478
+ 60000 411
+ 65000 353
+ 70000 303
+ 75000 260
+ 80000 222
+ 85000 190
+ 90000 163
+ 95000 140
+ 100000 121
+ 105000 104
+ 110000 90
+ 115000 78
+ 120000 67
+ 125000 59>;
};
};
--
2.18.0
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply related [flat|nested] 9+ messages in thread
* [PATCH 1/1] arm64: dts: mt8183-kukui: Update Tboard sensor mapping table
@ 2021-11-03 3:30 ` Ben Tseng
0 siblings, 0 replies; 9+ messages in thread
From: Ben Tseng @ 2021-11-03 3:30 UTC (permalink / raw)
To: Fan Chen, Zhang Rui, Daniel Lezcano, linux-pm, srv_heupstream
Cc: Eduardo Valentin, Rob Herring, Mark Rutland, Matthias Brugger,
hsinyi, devicetree, linux-kernel, linux-arm-kernel,
linux-mediatek, Project_Global_Chrome_Upstream_Group, Ben Tseng
According to auxadc change the readback value from raw data to Vsense.
Update the tboard table that temperature map to Vsense.
pull-up voltage: 1800 mv
pull-up resistor: 75K
Vsense = pull-up voltage * Rntc / ( pull-up resistor + Rntc )
Signed-off-by: Ben Tseng <ben.tseng@mediatek.com>
---
.../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 108 +++++++++---------
1 file changed, 54 insertions(+), 54 deletions(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
index 8e9cf36a9a41..65447de64f06 100644
--- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
+++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
@@ -151,33 +151,33 @@
#thermal-sensor-cells = <0>;
io-channels = <&auxadc 0>;
io-channel-names = "sensor-channel";
- temperature-lookup-table = < (-5000) 4241
- 0 4063
- 5000 3856
- 10000 3621
- 15000 3364
- 20000 3091
- 25000 2810
- 30000 2526
- 35000 2247
- 40000 1982
- 45000 1734
- 50000 1507
- 55000 1305
- 60000 1122
- 65000 964
- 70000 827
- 75000 710
- 80000 606
- 85000 519
- 90000 445
- 95000 382
- 100000 330
- 105000 284
- 110000 245
- 115000 213
- 120000 183
- 125000 161>;
+ temperature-lookup-table = < (-5000) 1553
+ 0 1488
+ 5000 1412
+ 10000 1326
+ 15000 1232
+ 20000 1132
+ 25000 1029
+ 30000 925
+ 35000 823
+ 40000 726
+ 45000 635
+ 50000 552
+ 55000 478
+ 60000 411
+ 65000 353
+ 70000 303
+ 75000 260
+ 80000 222
+ 85000 190
+ 90000 163
+ 95000 140
+ 100000 121
+ 105000 104
+ 110000 90
+ 115000 78
+ 120000 67
+ 125000 59>;
};
tboard_thermistor2: thermal-sensor2 {
@@ -185,33 +185,33 @@
#thermal-sensor-cells = <0>;
io-channels = <&auxadc 1>;
io-channel-names = "sensor-channel";
- temperature-lookup-table = < (-5000) 4241
- 0 4063
- 5000 3856
- 10000 3621
- 15000 3364
- 20000 3091
- 25000 2810
- 30000 2526
- 35000 2247
- 40000 1982
- 45000 1734
- 50000 1507
- 55000 1305
- 60000 1122
- 65000 964
- 70000 827
- 75000 710
- 80000 606
- 85000 519
- 90000 445
- 95000 382
- 100000 330
- 105000 284
- 110000 245
- 115000 213
- 120000 183
- 125000 161>;
+ temperature-lookup-table = < (-5000) 1553
+ 0 1488
+ 5000 1412
+ 10000 1326
+ 15000 1232
+ 20000 1132
+ 25000 1029
+ 30000 925
+ 35000 823
+ 40000 726
+ 45000 635
+ 50000 552
+ 55000 478
+ 60000 411
+ 65000 353
+ 70000 303
+ 75000 260
+ 80000 222
+ 85000 190
+ 90000 163
+ 95000 140
+ 100000 121
+ 105000 104
+ 110000 90
+ 115000 78
+ 120000 67
+ 125000 59>;
};
};
--
2.18.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH 1/1] arm64: dts: mt8183-kukui: Update Tboard sensor mapping table
2021-11-03 3:30 ` Ben Tseng
(?)
@ 2021-11-03 4:24 ` Hsin-Yi Wang
-1 siblings, 0 replies; 9+ messages in thread
From: Hsin-Yi Wang @ 2021-11-03 4:24 UTC (permalink / raw)
To: Ben Tseng
Cc: Fan Chen, Zhang Rui, Daniel Lezcano, linux-pm, srv_heupstream,
Eduardo Valentin, Rob Herring, Mark Rutland, Matthias Brugger,
devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
Project_Global_Chrome_Upstream_Group
On Wed, Nov 3, 2021 at 11:31 AM Ben Tseng <ben.tseng@mediatek.com> wrote:
>
> According to auxadc change the readback value from raw data to Vsense.
> Update the tboard table that temperature map to Vsense.
>
> pull-up voltage: 1800 mv
> pull-up resistor: 75K
>
> Vsense = pull-up voltage * Rntc / ( pull-up resistor + Rntc )
>
> Signed-off-by: Ben Tseng <ben.tseng@mediatek.com>
>
Tested-by: Hsin-Yi Wang <hsinyi@chromium.org>
> ---
> .../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 108 +++++++++---------
> 1 file changed, 54 insertions(+), 54 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
> index 8e9cf36a9a41..65447de64f06 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
> @@ -151,33 +151,33 @@
> #thermal-sensor-cells = <0>;
> io-channels = <&auxadc 0>;
> io-channel-names = "sensor-channel";
> - temperature-lookup-table = < (-5000) 4241
> - 0 4063
> - 5000 3856
> - 10000 3621
> - 15000 3364
> - 20000 3091
> - 25000 2810
> - 30000 2526
> - 35000 2247
> - 40000 1982
> - 45000 1734
> - 50000 1507
> - 55000 1305
> - 60000 1122
> - 65000 964
> - 70000 827
> - 75000 710
> - 80000 606
> - 85000 519
> - 90000 445
> - 95000 382
> - 100000 330
> - 105000 284
> - 110000 245
> - 115000 213
> - 120000 183
> - 125000 161>;
> + temperature-lookup-table = < (-5000) 1553
> + 0 1488
> + 5000 1412
> + 10000 1326
> + 15000 1232
> + 20000 1132
> + 25000 1029
> + 30000 925
> + 35000 823
> + 40000 726
> + 45000 635
> + 50000 552
> + 55000 478
> + 60000 411
> + 65000 353
> + 70000 303
> + 75000 260
> + 80000 222
> + 85000 190
> + 90000 163
> + 95000 140
> + 100000 121
> + 105000 104
> + 110000 90
> + 115000 78
> + 120000 67
> + 125000 59>;
> };
>
> tboard_thermistor2: thermal-sensor2 {
> @@ -185,33 +185,33 @@
> #thermal-sensor-cells = <0>;
> io-channels = <&auxadc 1>;
> io-channel-names = "sensor-channel";
> - temperature-lookup-table = < (-5000) 4241
> - 0 4063
> - 5000 3856
> - 10000 3621
> - 15000 3364
> - 20000 3091
> - 25000 2810
> - 30000 2526
> - 35000 2247
> - 40000 1982
> - 45000 1734
> - 50000 1507
> - 55000 1305
> - 60000 1122
> - 65000 964
> - 70000 827
> - 75000 710
> - 80000 606
> - 85000 519
> - 90000 445
> - 95000 382
> - 100000 330
> - 105000 284
> - 110000 245
> - 115000 213
> - 120000 183
> - 125000 161>;
> + temperature-lookup-table = < (-5000) 1553
> + 0 1488
> + 5000 1412
> + 10000 1326
> + 15000 1232
> + 20000 1132
> + 25000 1029
> + 30000 925
> + 35000 823
> + 40000 726
> + 45000 635
> + 50000 552
> + 55000 478
> + 60000 411
> + 65000 353
> + 70000 303
> + 75000 260
> + 80000 222
> + 85000 190
> + 90000 163
> + 95000 140
> + 100000 121
> + 105000 104
> + 110000 90
> + 115000 78
> + 120000 67
> + 125000 59>;
> };
> };
>
> --
> 2.18.0
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/1] arm64: dts: mt8183-kukui: Update Tboard sensor mapping table
@ 2021-11-03 4:24 ` Hsin-Yi Wang
0 siblings, 0 replies; 9+ messages in thread
From: Hsin-Yi Wang @ 2021-11-03 4:24 UTC (permalink / raw)
To: Ben Tseng
Cc: Fan Chen, Zhang Rui, Daniel Lezcano, linux-pm, srv_heupstream,
Eduardo Valentin, Rob Herring, Mark Rutland, Matthias Brugger,
devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
Project_Global_Chrome_Upstream_Group
On Wed, Nov 3, 2021 at 11:31 AM Ben Tseng <ben.tseng@mediatek.com> wrote:
>
> According to auxadc change the readback value from raw data to Vsense.
> Update the tboard table that temperature map to Vsense.
>
> pull-up voltage: 1800 mv
> pull-up resistor: 75K
>
> Vsense = pull-up voltage * Rntc / ( pull-up resistor + Rntc )
>
> Signed-off-by: Ben Tseng <ben.tseng@mediatek.com>
>
Tested-by: Hsin-Yi Wang <hsinyi@chromium.org>
> ---
> .../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 108 +++++++++---------
> 1 file changed, 54 insertions(+), 54 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
> index 8e9cf36a9a41..65447de64f06 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
> @@ -151,33 +151,33 @@
> #thermal-sensor-cells = <0>;
> io-channels = <&auxadc 0>;
> io-channel-names = "sensor-channel";
> - temperature-lookup-table = < (-5000) 4241
> - 0 4063
> - 5000 3856
> - 10000 3621
> - 15000 3364
> - 20000 3091
> - 25000 2810
> - 30000 2526
> - 35000 2247
> - 40000 1982
> - 45000 1734
> - 50000 1507
> - 55000 1305
> - 60000 1122
> - 65000 964
> - 70000 827
> - 75000 710
> - 80000 606
> - 85000 519
> - 90000 445
> - 95000 382
> - 100000 330
> - 105000 284
> - 110000 245
> - 115000 213
> - 120000 183
> - 125000 161>;
> + temperature-lookup-table = < (-5000) 1553
> + 0 1488
> + 5000 1412
> + 10000 1326
> + 15000 1232
> + 20000 1132
> + 25000 1029
> + 30000 925
> + 35000 823
> + 40000 726
> + 45000 635
> + 50000 552
> + 55000 478
> + 60000 411
> + 65000 353
> + 70000 303
> + 75000 260
> + 80000 222
> + 85000 190
> + 90000 163
> + 95000 140
> + 100000 121
> + 105000 104
> + 110000 90
> + 115000 78
> + 120000 67
> + 125000 59>;
> };
>
> tboard_thermistor2: thermal-sensor2 {
> @@ -185,33 +185,33 @@
> #thermal-sensor-cells = <0>;
> io-channels = <&auxadc 1>;
> io-channel-names = "sensor-channel";
> - temperature-lookup-table = < (-5000) 4241
> - 0 4063
> - 5000 3856
> - 10000 3621
> - 15000 3364
> - 20000 3091
> - 25000 2810
> - 30000 2526
> - 35000 2247
> - 40000 1982
> - 45000 1734
> - 50000 1507
> - 55000 1305
> - 60000 1122
> - 65000 964
> - 70000 827
> - 75000 710
> - 80000 606
> - 85000 519
> - 90000 445
> - 95000 382
> - 100000 330
> - 105000 284
> - 110000 245
> - 115000 213
> - 120000 183
> - 125000 161>;
> + temperature-lookup-table = < (-5000) 1553
> + 0 1488
> + 5000 1412
> + 10000 1326
> + 15000 1232
> + 20000 1132
> + 25000 1029
> + 30000 925
> + 35000 823
> + 40000 726
> + 45000 635
> + 50000 552
> + 55000 478
> + 60000 411
> + 65000 353
> + 70000 303
> + 75000 260
> + 80000 222
> + 85000 190
> + 90000 163
> + 95000 140
> + 100000 121
> + 105000 104
> + 110000 90
> + 115000 78
> + 120000 67
> + 125000 59>;
> };
> };
>
> --
> 2.18.0
>
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/1] arm64: dts: mt8183-kukui: Update Tboard sensor mapping table
@ 2021-11-03 4:24 ` Hsin-Yi Wang
0 siblings, 0 replies; 9+ messages in thread
From: Hsin-Yi Wang @ 2021-11-03 4:24 UTC (permalink / raw)
To: Ben Tseng
Cc: Fan Chen, Zhang Rui, Daniel Lezcano, linux-pm, srv_heupstream,
Eduardo Valentin, Rob Herring, Mark Rutland, Matthias Brugger,
devicetree, linux-kernel, linux-arm-kernel, linux-mediatek,
Project_Global_Chrome_Upstream_Group
On Wed, Nov 3, 2021 at 11:31 AM Ben Tseng <ben.tseng@mediatek.com> wrote:
>
> According to auxadc change the readback value from raw data to Vsense.
> Update the tboard table that temperature map to Vsense.
>
> pull-up voltage: 1800 mv
> pull-up resistor: 75K
>
> Vsense = pull-up voltage * Rntc / ( pull-up resistor + Rntc )
>
> Signed-off-by: Ben Tseng <ben.tseng@mediatek.com>
>
Tested-by: Hsin-Yi Wang <hsinyi@chromium.org>
> ---
> .../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 108 +++++++++---------
> 1 file changed, 54 insertions(+), 54 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
> index 8e9cf36a9a41..65447de64f06 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
> @@ -151,33 +151,33 @@
> #thermal-sensor-cells = <0>;
> io-channels = <&auxadc 0>;
> io-channel-names = "sensor-channel";
> - temperature-lookup-table = < (-5000) 4241
> - 0 4063
> - 5000 3856
> - 10000 3621
> - 15000 3364
> - 20000 3091
> - 25000 2810
> - 30000 2526
> - 35000 2247
> - 40000 1982
> - 45000 1734
> - 50000 1507
> - 55000 1305
> - 60000 1122
> - 65000 964
> - 70000 827
> - 75000 710
> - 80000 606
> - 85000 519
> - 90000 445
> - 95000 382
> - 100000 330
> - 105000 284
> - 110000 245
> - 115000 213
> - 120000 183
> - 125000 161>;
> + temperature-lookup-table = < (-5000) 1553
> + 0 1488
> + 5000 1412
> + 10000 1326
> + 15000 1232
> + 20000 1132
> + 25000 1029
> + 30000 925
> + 35000 823
> + 40000 726
> + 45000 635
> + 50000 552
> + 55000 478
> + 60000 411
> + 65000 353
> + 70000 303
> + 75000 260
> + 80000 222
> + 85000 190
> + 90000 163
> + 95000 140
> + 100000 121
> + 105000 104
> + 110000 90
> + 115000 78
> + 120000 67
> + 125000 59>;
> };
>
> tboard_thermistor2: thermal-sensor2 {
> @@ -185,33 +185,33 @@
> #thermal-sensor-cells = <0>;
> io-channels = <&auxadc 1>;
> io-channel-names = "sensor-channel";
> - temperature-lookup-table = < (-5000) 4241
> - 0 4063
> - 5000 3856
> - 10000 3621
> - 15000 3364
> - 20000 3091
> - 25000 2810
> - 30000 2526
> - 35000 2247
> - 40000 1982
> - 45000 1734
> - 50000 1507
> - 55000 1305
> - 60000 1122
> - 65000 964
> - 70000 827
> - 75000 710
> - 80000 606
> - 85000 519
> - 90000 445
> - 95000 382
> - 100000 330
> - 105000 284
> - 110000 245
> - 115000 213
> - 120000 183
> - 125000 161>;
> + temperature-lookup-table = < (-5000) 1553
> + 0 1488
> + 5000 1412
> + 10000 1326
> + 15000 1232
> + 20000 1132
> + 25000 1029
> + 30000 925
> + 35000 823
> + 40000 726
> + 45000 635
> + 50000 552
> + 55000 478
> + 60000 411
> + 65000 353
> + 70000 303
> + 75000 260
> + 80000 222
> + 85000 190
> + 90000 163
> + 95000 140
> + 100000 121
> + 105000 104
> + 110000 90
> + 115000 78
> + 120000 67
> + 125000 59>;
> };
> };
>
> --
> 2.18.0
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/1] arm64: dts: mt8183-kukui: Update Tboard sensor mapping table
2021-11-03 3:30 ` Ben Tseng
(?)
@ 2021-11-17 17:54 ` Matthias Brugger
-1 siblings, 0 replies; 9+ messages in thread
From: Matthias Brugger @ 2021-11-17 17:54 UTC (permalink / raw)
To: Ben Tseng, Fan Chen, Zhang Rui, Daniel Lezcano, linux-pm, srv_heupstream
Cc: Eduardo Valentin, Rob Herring, Mark Rutland, hsinyi, devicetree,
linux-kernel, linux-arm-kernel, linux-mediatek,
Project_Global_Chrome_Upstream_Group
On 03/11/2021 04:30, Ben Tseng wrote:
> According to auxadc change the readback value from raw data to Vsense.
> Update the tboard table that temperature map to Vsense.
>
> pull-up voltage: 1800 mv
> pull-up resistor: 75K
>
> Vsense = pull-up voltage * Rntc / ( pull-up resistor + Rntc )
>
> Signed-off-by: Ben Tseng <ben.tseng@mediatek.com>
>
Applied to v5.16-next/dts64
Thanks!
> ---
> .../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 108 +++++++++---------
> 1 file changed, 54 insertions(+), 54 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
> index 8e9cf36a9a41..65447de64f06 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
> @@ -151,33 +151,33 @@
> #thermal-sensor-cells = <0>;
> io-channels = <&auxadc 0>;
> io-channel-names = "sensor-channel";
> - temperature-lookup-table = < (-5000) 4241
> - 0 4063
> - 5000 3856
> - 10000 3621
> - 15000 3364
> - 20000 3091
> - 25000 2810
> - 30000 2526
> - 35000 2247
> - 40000 1982
> - 45000 1734
> - 50000 1507
> - 55000 1305
> - 60000 1122
> - 65000 964
> - 70000 827
> - 75000 710
> - 80000 606
> - 85000 519
> - 90000 445
> - 95000 382
> - 100000 330
> - 105000 284
> - 110000 245
> - 115000 213
> - 120000 183
> - 125000 161>;
> + temperature-lookup-table = < (-5000) 1553
> + 0 1488
> + 5000 1412
> + 10000 1326
> + 15000 1232
> + 20000 1132
> + 25000 1029
> + 30000 925
> + 35000 823
> + 40000 726
> + 45000 635
> + 50000 552
> + 55000 478
> + 60000 411
> + 65000 353
> + 70000 303
> + 75000 260
> + 80000 222
> + 85000 190
> + 90000 163
> + 95000 140
> + 100000 121
> + 105000 104
> + 110000 90
> + 115000 78
> + 120000 67
> + 125000 59>;
> };
>
> tboard_thermistor2: thermal-sensor2 {
> @@ -185,33 +185,33 @@
> #thermal-sensor-cells = <0>;
> io-channels = <&auxadc 1>;
> io-channel-names = "sensor-channel";
> - temperature-lookup-table = < (-5000) 4241
> - 0 4063
> - 5000 3856
> - 10000 3621
> - 15000 3364
> - 20000 3091
> - 25000 2810
> - 30000 2526
> - 35000 2247
> - 40000 1982
> - 45000 1734
> - 50000 1507
> - 55000 1305
> - 60000 1122
> - 65000 964
> - 70000 827
> - 75000 710
> - 80000 606
> - 85000 519
> - 90000 445
> - 95000 382
> - 100000 330
> - 105000 284
> - 110000 245
> - 115000 213
> - 120000 183
> - 125000 161>;
> + temperature-lookup-table = < (-5000) 1553
> + 0 1488
> + 5000 1412
> + 10000 1326
> + 15000 1232
> + 20000 1132
> + 25000 1029
> + 30000 925
> + 35000 823
> + 40000 726
> + 45000 635
> + 50000 552
> + 55000 478
> + 60000 411
> + 65000 353
> + 70000 303
> + 75000 260
> + 80000 222
> + 85000 190
> + 90000 163
> + 95000 140
> + 100000 121
> + 105000 104
> + 110000 90
> + 115000 78
> + 120000 67
> + 125000 59>;
> };
> };
>
>
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/1] arm64: dts: mt8183-kukui: Update Tboard sensor mapping table
@ 2021-11-17 17:54 ` Matthias Brugger
0 siblings, 0 replies; 9+ messages in thread
From: Matthias Brugger @ 2021-11-17 17:54 UTC (permalink / raw)
To: Ben Tseng, Fan Chen, Zhang Rui, Daniel Lezcano, linux-pm, srv_heupstream
Cc: Eduardo Valentin, Rob Herring, Mark Rutland, hsinyi, devicetree,
linux-kernel, linux-arm-kernel, linux-mediatek,
Project_Global_Chrome_Upstream_Group
On 03/11/2021 04:30, Ben Tseng wrote:
> According to auxadc change the readback value from raw data to Vsense.
> Update the tboard table that temperature map to Vsense.
>
> pull-up voltage: 1800 mv
> pull-up resistor: 75K
>
> Vsense = pull-up voltage * Rntc / ( pull-up resistor + Rntc )
>
> Signed-off-by: Ben Tseng <ben.tseng@mediatek.com>
>
Applied to v5.16-next/dts64
Thanks!
> ---
> .../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 108 +++++++++---------
> 1 file changed, 54 insertions(+), 54 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
> index 8e9cf36a9a41..65447de64f06 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
> @@ -151,33 +151,33 @@
> #thermal-sensor-cells = <0>;
> io-channels = <&auxadc 0>;
> io-channel-names = "sensor-channel";
> - temperature-lookup-table = < (-5000) 4241
> - 0 4063
> - 5000 3856
> - 10000 3621
> - 15000 3364
> - 20000 3091
> - 25000 2810
> - 30000 2526
> - 35000 2247
> - 40000 1982
> - 45000 1734
> - 50000 1507
> - 55000 1305
> - 60000 1122
> - 65000 964
> - 70000 827
> - 75000 710
> - 80000 606
> - 85000 519
> - 90000 445
> - 95000 382
> - 100000 330
> - 105000 284
> - 110000 245
> - 115000 213
> - 120000 183
> - 125000 161>;
> + temperature-lookup-table = < (-5000) 1553
> + 0 1488
> + 5000 1412
> + 10000 1326
> + 15000 1232
> + 20000 1132
> + 25000 1029
> + 30000 925
> + 35000 823
> + 40000 726
> + 45000 635
> + 50000 552
> + 55000 478
> + 60000 411
> + 65000 353
> + 70000 303
> + 75000 260
> + 80000 222
> + 85000 190
> + 90000 163
> + 95000 140
> + 100000 121
> + 105000 104
> + 110000 90
> + 115000 78
> + 120000 67
> + 125000 59>;
> };
>
> tboard_thermistor2: thermal-sensor2 {
> @@ -185,33 +185,33 @@
> #thermal-sensor-cells = <0>;
> io-channels = <&auxadc 1>;
> io-channel-names = "sensor-channel";
> - temperature-lookup-table = < (-5000) 4241
> - 0 4063
> - 5000 3856
> - 10000 3621
> - 15000 3364
> - 20000 3091
> - 25000 2810
> - 30000 2526
> - 35000 2247
> - 40000 1982
> - 45000 1734
> - 50000 1507
> - 55000 1305
> - 60000 1122
> - 65000 964
> - 70000 827
> - 75000 710
> - 80000 606
> - 85000 519
> - 90000 445
> - 95000 382
> - 100000 330
> - 105000 284
> - 110000 245
> - 115000 213
> - 120000 183
> - 125000 161>;
> + temperature-lookup-table = < (-5000) 1553
> + 0 1488
> + 5000 1412
> + 10000 1326
> + 15000 1232
> + 20000 1132
> + 25000 1029
> + 30000 925
> + 35000 823
> + 40000 726
> + 45000 635
> + 50000 552
> + 55000 478
> + 60000 411
> + 65000 353
> + 70000 303
> + 75000 260
> + 80000 222
> + 85000 190
> + 90000 163
> + 95000 140
> + 100000 121
> + 105000 104
> + 110000 90
> + 115000 78
> + 120000 67
> + 125000 59>;
> };
> };
>
>
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 1/1] arm64: dts: mt8183-kukui: Update Tboard sensor mapping table
@ 2021-11-17 17:54 ` Matthias Brugger
0 siblings, 0 replies; 9+ messages in thread
From: Matthias Brugger @ 2021-11-17 17:54 UTC (permalink / raw)
To: Ben Tseng, Fan Chen, Zhang Rui, Daniel Lezcano, linux-pm, srv_heupstream
Cc: Eduardo Valentin, Rob Herring, Mark Rutland, hsinyi, devicetree,
linux-kernel, linux-arm-kernel, linux-mediatek,
Project_Global_Chrome_Upstream_Group
On 03/11/2021 04:30, Ben Tseng wrote:
> According to auxadc change the readback value from raw data to Vsense.
> Update the tboard table that temperature map to Vsense.
>
> pull-up voltage: 1800 mv
> pull-up resistor: 75K
>
> Vsense = pull-up voltage * Rntc / ( pull-up resistor + Rntc )
>
> Signed-off-by: Ben Tseng <ben.tseng@mediatek.com>
>
Applied to v5.16-next/dts64
Thanks!
> ---
> .../arm64/boot/dts/mediatek/mt8183-kukui.dtsi | 108 +++++++++---------
> 1 file changed, 54 insertions(+), 54 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
> index 8e9cf36a9a41..65447de64f06 100644
> --- a/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
> +++ b/arch/arm64/boot/dts/mediatek/mt8183-kukui.dtsi
> @@ -151,33 +151,33 @@
> #thermal-sensor-cells = <0>;
> io-channels = <&auxadc 0>;
> io-channel-names = "sensor-channel";
> - temperature-lookup-table = < (-5000) 4241
> - 0 4063
> - 5000 3856
> - 10000 3621
> - 15000 3364
> - 20000 3091
> - 25000 2810
> - 30000 2526
> - 35000 2247
> - 40000 1982
> - 45000 1734
> - 50000 1507
> - 55000 1305
> - 60000 1122
> - 65000 964
> - 70000 827
> - 75000 710
> - 80000 606
> - 85000 519
> - 90000 445
> - 95000 382
> - 100000 330
> - 105000 284
> - 110000 245
> - 115000 213
> - 120000 183
> - 125000 161>;
> + temperature-lookup-table = < (-5000) 1553
> + 0 1488
> + 5000 1412
> + 10000 1326
> + 15000 1232
> + 20000 1132
> + 25000 1029
> + 30000 925
> + 35000 823
> + 40000 726
> + 45000 635
> + 50000 552
> + 55000 478
> + 60000 411
> + 65000 353
> + 70000 303
> + 75000 260
> + 80000 222
> + 85000 190
> + 90000 163
> + 95000 140
> + 100000 121
> + 105000 104
> + 110000 90
> + 115000 78
> + 120000 67
> + 125000 59>;
> };
>
> tboard_thermistor2: thermal-sensor2 {
> @@ -185,33 +185,33 @@
> #thermal-sensor-cells = <0>;
> io-channels = <&auxadc 1>;
> io-channel-names = "sensor-channel";
> - temperature-lookup-table = < (-5000) 4241
> - 0 4063
> - 5000 3856
> - 10000 3621
> - 15000 3364
> - 20000 3091
> - 25000 2810
> - 30000 2526
> - 35000 2247
> - 40000 1982
> - 45000 1734
> - 50000 1507
> - 55000 1305
> - 60000 1122
> - 65000 964
> - 70000 827
> - 75000 710
> - 80000 606
> - 85000 519
> - 90000 445
> - 95000 382
> - 100000 330
> - 105000 284
> - 110000 245
> - 115000 213
> - 120000 183
> - 125000 161>;
> + temperature-lookup-table = < (-5000) 1553
> + 0 1488
> + 5000 1412
> + 10000 1326
> + 15000 1232
> + 20000 1132
> + 25000 1029
> + 30000 925
> + 35000 823
> + 40000 726
> + 45000 635
> + 50000 552
> + 55000 478
> + 60000 411
> + 65000 353
> + 70000 303
> + 75000 260
> + 80000 222
> + 85000 190
> + 90000 163
> + 95000 140
> + 100000 121
> + 105000 104
> + 110000 90
> + 115000 78
> + 120000 67
> + 125000 59>;
> };
> };
>
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2021-11-17 18:02 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-03 3:30 [PATCH 1/1] arm64: dts: mt8183-kukui: Update Tboard sensor mapping table Ben Tseng
2021-11-03 3:30 ` Ben Tseng
2021-11-03 3:30 ` Ben Tseng
2021-11-03 4:24 ` Hsin-Yi Wang
2021-11-03 4:24 ` Hsin-Yi Wang
2021-11-03 4:24 ` Hsin-Yi Wang
2021-11-17 17:54 ` Matthias Brugger
2021-11-17 17:54 ` Matthias Brugger
2021-11-17 17:54 ` Matthias Brugger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.