dt-bindings: hwmon: Add AST2700 compatible
Billy Tsai
reviewerPATCH 1/2 dt-bindings: hwmon: Add AST2700 compatible
Adds support for the AST2700 PWM/Tach controller by extending the compatible string enumeration in the device tree binding.
The AST2700 PWM/Tach hardware is compatible with the existing binding schema and requires no additional properties or modifications beyond the new compatible string.
--- Documentation/devicetree/bindings/hwmon/aspeed,g6-pwm-tach.yaml | 1 + 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/hwmon/aspeed,g6-pwm-tach.yaml +1 -0
@@ -20,6 +20,7 @@ properties: compatible: enum: - aspeed,ast2600-pwm-tach + - aspeed,ast2700-pwm-tach reg: maxItems: 1
Signature · 1 line
2.25.1
Billy Tsai
reviewerPATCH 2/2 hwmon: (aspeed-g6-pwm-tach): Add AST2700 compatible string
Extends device tree support to include the AST2700 chip variant by adding its compatible string to the device match table.
The AST2700 PWM/TACH hardware is compatible with the existing driver implementation used for AST2600.
--- drivers/hwmon/aspeed-g6-pwm-tach.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/hwmon/aspeed-g6-pwm-tach.c +3 -0
@@ -528,6 +528,9 @@ static const struct of_device_id aspeed_pwm_tach_match[] = { { .compatible = "aspeed,ast2600-pwm-tach", }, + { + .compatible = "aspeed,ast2700-pwm-tach", + }, {}, };MODULE_DEVICE_TABLE (of, aspeed_pwm_tach_match);
Signature · 1 line
2.25.1
Quoted 6 lines · Billy Tsai
Adds support for the AST2700 PWM/Tach controller by extending the compatible string enumeration in the device tree binding.
The AST2700 PWM/Tach hardware is compatible with the existing binding schema and requires no additional properties or modifications beyond the new compatible string.
With this commit message, I expected there to be a fallback compatible. Why isn't one used?
Quoted 21 lines
Signed-off-by Billy Tsai <[email protected]>--- Documentation/devicetree/bindings/hwmon/aspeed,g6-pwm-tach.yaml | 1 + 1 file changed, 1 insertion(+)Documentation/devicetree/bindings/hwmon/aspeed,g6-pwm-tach.yaml +1
-0@@ -20,6 +20,7 @@ properties: compatible: enum: - aspeed,ast2600-pwm-tach + - aspeed,ast2700-pwm-tach reg: maxItems: 1Signature · 1 line
2.25.1