Add thermal sensors support for MT7981
Subsystems (3)
v4 cover Add thermal sensors support for MT7981
This patch adds support for the temperature sensor in the MT7981 SoC. This sensor is exactly the same as the one in the MT7986.
Changes in v4:
- sorted bindings by fallback names
- dropped accepted patch
Changes in v3:
- added fallback in bindings
Changes in v2:
- added fallback to an existing compatible string
- removed second patch as obsolete
Aleksander Jan Bajkowski (2):
dt-bindings: thermal: mediatek: add falback compatible string for
MT7981 and MT8516
arm64: dts: mediatek: add thermal sensor support on mt7981
.../bindings/thermal/mediatek,thermal.yaml | 27 ++++++++++------ arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 31 ++++++++++++++++++- 2 files changed, 47 insertions(+), 11 deletions(-)
Signature · 1 line
2.39.5
PATCH v4 1/2 dt-bindings: thermal: mediatek: add falback compatible string for MT7981 and MT8516
The ‘mediatek,mt7981-thermal’ and ‘mediatek,mt8516-thermal’ strings aren't definied in the driver. Both should have fallback compatible strings. This commit fixes this issue.
--- .../bindings/thermal/mediatek,thermal.yaml | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-)
Documentation/devicetree/bindings/thermal/mediatek,thermal.yaml +17 -10
@@ -20,16 +20,23 @@ allOf: properties: compatible: - enum: - - mediatek,mt2701-thermal - - mediatek,mt2712-thermal - - mediatek,mt7622-thermal - - mediatek,mt7981-thermal - - mediatek,mt7986-thermal - - mediatek,mt8173-thermal - - mediatek,mt8183-thermal - - mediatek,mt8365-thermal - - mediatek,mt8516-thermal + oneOf: + - enum: + - mediatek,mt2701-thermal + - mediatek,mt2712-thermal + - mediatek,mt7622-thermal + - mediatek,mt7986-thermal + - mediatek,mt8173-thermal + - mediatek,mt8183-thermal + - mediatek,mt8365-thermal + - items: + - enum: + - mediatek,mt8516-thermal + - const: mediatek,mt2701-thermal + - items: + - enum: + - mediatek,mt7981-thermal + - const: mediatek,mt7986-thermal reg: maxItems: 1
Signature · 1 line
2.39.5
Re: [PATCH v4 1/2] dt-bindings: thermal: mediatek: add falback compatible string for MT7981 and MT8516
Quoted 8 lines · Aleksander Jan Bajkowski
The ‘mediatek,mt7981-thermal’ and ‘mediatek,mt8516-thermal’ strings aren't definied in the driver. Both should have fallback compatible strings. This commit fixes this issue.
Fixes 788494ba0999 ("dt-bindings: thermal: convert Mediatek Thermalto the json-schema")
Signed-off-by Aleksander Jan Bajkowski <[email protected]>Reviewed-by Krzysztof Kozlowski <[email protected]>
I see my mistake I did while converting to JSON schema. Thanks for sorting it out.
Signature · 1 line
Rafał Miłecki
PATCH v4 2/2 arm64: dts: mediatek: add thermal sensor support on mt7981
In reply to Aleksander Jan BajkowskiThe temperature sensor in the MT7981 is same as in the MT7986.
--- arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 31 ++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/mediatek/mt7981b.dtsi +30 -1
@@ -76,7 +76,7 @@ watchdog: watchdog@1001c000 { #reset-cells = <1>; }; - clock-controller@1001e000 { + apmixedsys: clock-controller@1001e000 { compatible = "mediatek,mt7981-apmixedsys"; reg = <0 0x1001e000 0 0x1000>; #clock-cells = <1>;
@@ -184,6 +184,31 @@ spi@1100b000 { status = "disabled"; }; + thermal@1100c800 { + compatible = "mediatek,mt7981-thermal", + "mediatek,mt7986-thermal"; + reg = <0 0x1100c800 0 0x800>; + interrupts = <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&infracfg CLK_INFRA_THERM_CK>, + <&infracfg CLK_INFRA_ADC_26M_CK>; + clock-names = "therm", "auxadc"; + nvmem-cells = <&thermal_calibration>; + nvmem-cell-names = "calibration-data"; + #thermal-sensor-cells = <1>; + mediatek,auxadc = <&auxadc>; + mediatek,apmixedsys = <&apmixedsys>; + }; + + auxadc: adc@1100d000 { + compatible = "mediatek,mt7981-auxadc", + "mediatek,mt7986-auxadc"; + reg = <0 0x1100d000 0 0x1000>; + clocks = <&infracfg CLK_INFRA_ADC_26M_CK>; + clock-names = "main"; + #io-channel-cells = <1>; + status = "disabled"; + }; + pio: pinctrl@11d00000 { compatible = "mediatek,mt7981-pinctrl"; reg = <0 0x11d00000 0 0x1000>,
@@ -211,6 +236,10 @@ efuse@11f20000 { reg = <0 0x11f20000 0 0x1000>; #address-cells = <1>; #size-cells = <1>; + + thermal_calibration: thermal-calib@274 { + reg = <0x274 0xc>; + }; }; clock-controller@15000000 {
Signature · 1 line
2.39.5
Rob Herring (Arm)
maintainerQuoted 17 lines · Aleksander Jan Bajkowski
This patch adds support for the temperature sensor in the MT7981 SoC. This sensor is exactly the same as the one in the MT7986.
Changes in v4:
- sorted bindings by fallback names
- dropped accepted patchChanges in v3:
- added fallback in bindingsChanges in v2:
- added fallback to an existing compatible string
- removed second patch as obsoleteAleksander Jan Bajkowski (2):
dt-bindings: thermal: mediatek: add falback compatible string forMT7981 and MT8516
Quoted 11 lines
arm64: dts: mediatek: add thermal sensor support on mt7981
.../bindings/thermal/mediatek,thermal.yaml | 27 ++++++++++------ arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 31 ++++++++++++++++++- 2 files changed, 47 insertions(+), 11 deletions(-)--
2.39.5
My bot found new DTB warnings on the .dts files added or changed in this series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:
pip3 install dtschema --upgrade
This patch series was applied (using b4) to base:
Base: attempting to guess base-commit...
Base: tags/v6.16-rc1-8-g95a042a0c8ec (exact match)
If this is not the correct base, please add 'base-commit' tag (or use b4 which does this automatically)
New warnings running 'make CHECK_DTBS=y for arch/arm64/boot/dts/mediatek/' for [email protected]:
arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dtb: adc@1100d000 (mediatek,mt7981-auxadc): compatible: 'oneOf' conditional failed, one must be fixed:
['mediatek,mt7981-auxadc', 'mediatek,mt7986-auxadc'] is too long 'mediatek,mt7981-auxadc' is not one of ['mediatek,mt2701-auxadc', 'mediatek,mt2712-auxadc', 'mediatek,mt6765-auxadc', 'mediatek,mt7622-auxadc', 'mediatek,mt7986-auxadc', 'mediatek,mt8173-auxadc'] 'mediatek,mt7981-auxadc' is not one of ['mediatek,mt7623-auxadc'] 'mediatek,mt7981-auxadc' is not one of ['mediatek,mt6893-auxadc', 'mediatek,mt8183-auxadc', 'mediatek,mt8186-auxadc', 'mediatek,mt8188-auxadc', 'mediatek,mt8195-auxadc', 'mediatek,mt8516-auxadc'] 'mediatek,mt2701-auxadc' was expected 'mediatek,mt8173-auxadc' was expected from schema $id: http://devicetree.org/schemas/iio/adc/mediatek,mt2701-auxadc.yaml# arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dtb: /soc/adc@1100d000: failed to match any schema with compatible: ['mediatek,mt7981-auxadc', 'mediatek,mt7986-auxadc'] arch/arm64/boot/dts/mediatek/mt7981b-cudy-wr3000-v1.dtb: adc@1100d000 (mediatek,mt7981-auxadc): compatible: 'oneOf' conditional failed, one must be fixed: ['mediatek,mt7981-auxadc', 'mediatek,mt7986-auxadc'] is too long 'mediatek,mt7981-auxadc' is not one of ['mediatek,mt2701-auxadc', 'mediatek,mt2712-auxadc', 'mediatek,mt6765-auxadc', 'mediatek,mt7622-auxadc', 'mediatek,mt7986-auxadc', 'mediatek,mt8173-auxadc'] 'mediatek,mt7981-auxadc' is not one of ['mediatek,mt7623-auxadc'] 'mediatek,mt7981-auxadc' is not one of ['mediatek,mt6893-auxadc', 'mediatek,mt8183-auxadc', 'mediatek,mt8186-auxadc', 'mediatek,mt8188-auxadc', 'mediatek,mt8195-auxadc', 'mediatek,mt8516-auxadc'] 'mediatek,mt2701-auxadc' was expected 'mediatek,mt8173-auxadc' was expected from schema $id: http://devicetree.org/schemas/iio/adc/mediatek,mt2701-auxadc.yaml#
arch/arm64/boot/dts/mediatek/mt7981b-cudy-wr3000-v1.dtb: /soc/adc@1100d000: failed to match any schema with compatible: ['mediatek,mt7981-auxadc', 'mediatek,mt7986-auxadc'] arch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku6.dtb: clock-controller@15520000 (mediatek,mt8188-imgsys-wpe2): '#reset-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/clock/mediatek,mt8188-clock.yaml#arch/arm64/boot/dts/mediatek/mt7981b-xiaomi-ax3000t.dtb: adc@1100d000 (mediatek,mt7981-auxadc): compatible: 'oneOf' conditional failed, one must be fixed:
['mediatek,mt7981-auxadc', 'mediatek,mt7986-auxadc'] is too long 'mediatek,mt7981-auxadc' is not one of ['mediatek,mt2701-auxadc', 'mediatek,mt2712-auxadc', 'mediatek,mt6765-auxadc', 'mediatek,mt7622-auxadc', 'mediatek,mt7986-auxadc', 'mediatek,mt8173-auxadc'] 'mediatek,mt7981-auxadc' is not one of ['mediatek,mt7623-auxadc'] 'mediatek,mt7981-auxadc' is not one of ['mediatek,mt6893-auxadc', 'mediatek,mt8183-auxadc', 'mediatek,mt8186-auxadc', 'mediatek,mt8188-auxadc', 'mediatek,mt8195-auxadc', 'mediatek,mt8516-auxadc'] 'mediatek,mt2701-auxadc' was expected 'mediatek,mt8173-auxadc' was expected from schema $id: http://devicetree.org/schemas/iio/adc/mediatek,mt2701-auxadc.yaml#
arch/arm64/boot/dts/mediatek/mt7981b-xiaomi-ax3000t.dtb: /soc/adc@1100d000: failed to match any schema with compatible: ['mediatek,mt7981-auxadc', 'mediatek,mt7986-auxadc']
Hi,
this is a false positive. The binding patch [1] is already queued for 6.17 :)
Best regards,
Aleksander Bajkowski
Quoted 87 lines · Rob Herring (Arm)
Quoted 17 lines · Aleksander Jan Bajkowski
This patch adds support for the temperature sensor in the MT7981 SoC. This sensor is exactly the same as the one in the MT7986.
Changes in v4:
- sorted bindings by fallback names
- dropped accepted patchChanges in v3:
- added fallback in bindingsChanges in v2:
- added fallback to an existing compatible string
- removed second patch as obsoleteAleksander Jan Bajkowski (2):
dt-bindings: thermal: mediatek: add falback compatible string forMT7981 and MT8516Quoted 11 lines
arm64: dts: mediatek: add thermal sensor support on mt7981
.../bindings/thermal/mediatek,thermal.yaml | 27 ++++++++++------ arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 31 ++++++++++++++++++- 2 files changed, 47 insertions(+), 11 deletions(-)--
2.39.5My bot found new DTB warnings on the .dts files added or changed in this series.
Some warnings may be from an existing SoC .dtsi. Or perhaps the warnings are fixed by another series. Ultimately, it is up to the platform maintainer whether these warnings are acceptable or not. No need to reply unless the platform maintainer has comments.
If you already ran DT checks and didn't see these error(s), then make sure dt-schema is up to date:
pip3 install dtschema --upgradeThis patch series was applied (using b4) to base:
Base: attempting to guess base-commit...
Base: tags/v6.16-rc1-8-g95a042a0c8ec (exact match)If this is not the correct base, please add 'base-commit' tag (or use b4 which does this automatically)
New warnings running 'make CHECK_DTBS=y for
arch/arm64/boot/dts/mediatek/' for [email protected]:
arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dtb: adc@1100d000 (mediatek,mt7981-auxadc): compatible: 'oneOf' conditional failed, one must be fixed:['mediatek,mt7981-auxadc', 'mediatek,mt7986-auxadc'] is too long 'mediatek,mt7981-auxadc' is not one of ['mediatek,mt2701-auxadc', 'mediatek,mt2712-auxadc', 'mediatek,mt6765-auxadc', 'mediatek,mt7622-auxadc', 'mediatek,mt7986-auxadc', 'mediatek,mt8173-auxadc'] 'mediatek,mt7981-auxadc' is not one of ['mediatek,mt7623-auxadc'] 'mediatek,mt7981-auxadc' is not one of ['mediatek,mt6893-auxadc', 'mediatek,mt8183-auxadc', 'mediatek,mt8186-auxadc', 'mediatek,mt8188-auxadc', 'mediatek,mt8195-auxadc', 'mediatek,mt8516-auxadc'] 'mediatek,mt2701-auxadc' was expected 'mediatek,mt8173-auxadc' was expected from schema $id: http://devicetree.org/schemas/iio/adc/mediatek,mt2701-auxadc.yaml# arch/arm64/boot/dts/mediatek/mt7981b-openwrt-one.dtb: /soc/adc@1100d000: failed to match any schema with compatible: ['mediatek,mt7981-auxadc', 'mediatek,mt7986-auxadc'] arch/arm64/boot/dts/mediatek/mt7981b-cudy-wr3000-v1.dtb: adc@1100d000 (mediatek,mt7981-auxadc): compatible: 'oneOf' conditional failed, one must be fixed: ['mediatek,mt7981-auxadc', 'mediatek,mt7986-auxadc'] is too long 'mediatek,mt7981-auxadc' is not one of ['mediatek,mt2701-auxadc', 'mediatek,mt2712-auxadc', 'mediatek,mt6765-auxadc', 'mediatek,mt7622-auxadc', 'mediatek,mt7986-auxadc', 'mediatek,mt8173-auxadc'] 'mediatek,mt7981-auxadc' is not one of ['mediatek,mt7623-auxadc'] 'mediatek,mt7981-auxadc' is not one of ['mediatek,mt6893-auxadc', 'mediatek,mt8183-auxadc', 'mediatek,mt8186-auxadc', 'mediatek,mt8188-auxadc', 'mediatek,mt8195-auxadc', 'mediatek,mt8516-auxadc'] 'mediatek,mt2701-auxadc' was expected 'mediatek,mt8173-auxadc' was expected from schema $id: http://devicetree.org/schemas/iio/adc/mediatek,mt2701-auxadc.yaml#
arch/arm64/boot/dts/mediatek/mt7981b-cudy-wr3000-v1.dtb: /soc/adc@1100d000: failed to match any schema with compatible: ['mediatek,mt7981-auxadc', 'mediatek,mt7986-auxadc']arch/arm64/boot/dts/mediatek/mt8188-geralt-ciri-sku6.dtb: clock-controller@15520000 (mediatek,mt8188-imgsys-wpe2): '#reset-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
from schema $id: http://devicetree.org/schemas/clock/mediatek,mt8188-clock.yaml#arch/arm64/boot/dts/mediatek/mt7981b-xiaomi-ax3000t.dtb: adc@1100d000 (mediatek,mt7981-auxadc): compatible: 'oneOf' conditional failed, one must be fixed:['mediatek,mt7981-auxadc', 'mediatek,mt7986-auxadc'] is too long 'mediatek,mt7981-auxadc' is not one of ['mediatek,mt2701-auxadc', 'mediatek,mt2712-auxadc', 'mediatek,mt6765-auxadc', 'mediatek,mt7622-auxadc', 'mediatek,mt7986-auxadc', 'mediatek,mt8173-auxadc'] 'mediatek,mt7981-auxadc' is not one of ['mediatek,mt7623-auxadc'] 'mediatek,mt7981-auxadc' is not one of ['mediatek,mt6893-auxadc', 'mediatek,mt8183-auxadc', 'mediatek,mt8186-auxadc', 'mediatek,mt8188-auxadc', 'mediatek,mt8195-auxadc', 'mediatek,mt8516-auxadc'] 'mediatek,mt2701-auxadc' was expected 'mediatek,mt8173-auxadc' was expected from schema $id: http://devicetree.org/schemas/iio/adc/mediatek,mt2701-auxadc.yaml#
arch/arm64/boot/dts/mediatek/mt7981b-xiaomi-ax3000t.dtb: /soc/adc@1100d000: failed to match any schema with compatible: ['mediatek,mt7981-auxadc', 'mediatek,mt7986-auxadc']
Daniel Lezcano
AppliedQuoted 14 lines · Aleksander Jan Bajkowski
This patch adds support for the temperature sensor in the MT7981 SoC. This sensor is exactly the same as the one in the MT7986.
Changes in v4:
- sorted bindings by fallback names
- dropped accepted patchChanges in v3:
- added fallback in bindingsChanges in v2:
- added fallback to an existing compatible string
- removed second patch as obsolete
Quoted 8 lines
Aleksander Jan Bajkowski (2):
dt-bindings: thermal: mediatek: add falback compatible string forMT7981 and MT8516arm64: dts: mediatek: add thermal sensor support on mt7981
.../bindings/thermal/mediatek,thermal.yaml | 27 ++++++++++------ arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 31 ++++++++++++++++++- 2 files changed, 47 insertions(+), 11 deletions(-)
Applied, thanks
Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog
Quoted 20 lines · Daniel Lezcano
Quoted 19 lines · Aleksander Jan Bajkowski
This patch adds support for the temperature sensor in the MT7981 SoC. This sensor is exactly the same as the one in the MT7986.
Changes in v4:
- sorted bindings by fallback names
- dropped accepted patchChanges in v3:
- added fallback in bindingsChanges in v2:
- added fallback to an existing compatible string
- removed second patch as obsoleteAleksander Jan Bajkowski (2):
dt-bindings: thermal: mediatek: add falback compatible string for MT7981 and MT8516
arm64: dts: mediatek: add thermal sensor support on mt7981
Quoted 5 lines
Quoted 3 lines
.../bindings/thermal/mediatek,thermal.yaml | 27 ++++++++++------ arch/arm64/boot/dts/mediatek/mt7981b.dtsi | 31 ++++++++++++++++++-
2 files changed, 47 insertions(+), 11 deletions(-)Applied, thanks
Sorry, I meant applied patch 1/2
Thanks
Signature · 5 lines
<http://www.linaro.org/> Linaro.org │ Open source software for ARM SoCs Follow Linaro: <http://www.facebook.com/pages/Linaro> Facebook | <http://twitter.com/#!/linaroorg> Twitter | <http://www.linaro.org/linaro-blog/> Blog