drivers: cc13xx_cc26xx: pwm: Fix building blinky_pwm
- Add channel, flags to pwm-cells - Replace __ASSERT_UNREACHABLE with CODE_UNREACHABLE Signed-off-by: Ayush Singh <ayushdevel1325@gmail.com>
This commit is contained in:
parent
90986e7e22
commit
02d71a135c
3 changed files with 9 additions and 7 deletions
|
|
@ -140,7 +140,7 @@ static int get_timer_inst_number(const struct pwm_cc13xx_cc26xx_config *config)
|
||||||
case GPT3_BASE:
|
case GPT3_BASE:
|
||||||
return 3;
|
return 3;
|
||||||
default:
|
default:
|
||||||
__ASSERT_UNREACHABLE;
|
CODE_UNREACHABLE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
@ -156,7 +156,7 @@ static int get_timer_peripheral(const struct pwm_cc13xx_cc26xx_config *config)
|
||||||
case GPT3_BASE:
|
case GPT3_BASE:
|
||||||
return PRCM_PERIPH_TIMER3;
|
return PRCM_PERIPH_TIMER3;
|
||||||
default:
|
default:
|
||||||
__ASSERT_UNREACHABLE;
|
CODE_UNREACHABLE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_PM */
|
#endif /* CONFIG_PM */
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@
|
||||||
|
|
||||||
pwm0: pwm {
|
pwm0: pwm {
|
||||||
compatible = "ti,cc13xx-cc26xx-timer-pwm";
|
compatible = "ti,cc13xx-cc26xx-timer-pwm";
|
||||||
#pwm-cells = <1>;
|
#pwm-cells = <3>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -119,7 +119,7 @@
|
||||||
|
|
||||||
pwm1: pwm {
|
pwm1: pwm {
|
||||||
compatible = "ti,cc13xx-cc26xx-timer-pwm";
|
compatible = "ti,cc13xx-cc26xx-timer-pwm";
|
||||||
#pwm-cells = <1>;
|
#pwm-cells = <3>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -133,7 +133,7 @@
|
||||||
|
|
||||||
pwm2: pwm {
|
pwm2: pwm {
|
||||||
compatible = "ti,cc13xx-cc26xx-timer-pwm";
|
compatible = "ti,cc13xx-cc26xx-timer-pwm";
|
||||||
#pwm-cells = <1>;
|
#pwm-cells = <3>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -147,7 +147,7 @@
|
||||||
|
|
||||||
pwm3: pwm {
|
pwm3: pwm {
|
||||||
compatible = "ti,cc13xx-cc26xx-timer-pwm";
|
compatible = "ti,cc13xx-cc26xx-timer-pwm";
|
||||||
#pwm-cells = <1>;
|
#pwm-cells = <3>;
|
||||||
status = "disabled";
|
status = "disabled";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -69,4 +69,6 @@ properties:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
pwm-cells:
|
pwm-cells:
|
||||||
- period
|
- channel
|
||||||
|
- period
|
||||||
|
- flags
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue