xtensa: intel_s1000: Rework device_get_binding for pinmux
Switch to use DEVICE_DT_GET instead of device_get_binding for pinmux device. As part of this change drop the "label" property from the pinmux devicetree node and update the binding and dts files to reflect that. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
c48bc9a9b6
commit
1cb2dceeb4
3 changed files with 3 additions and 5 deletions
|
@ -25,7 +25,9 @@ static int intel_s1000_pinmux_init(const struct device *dev)
|
||||||
{
|
{
|
||||||
const struct device *pinmux;
|
const struct device *pinmux;
|
||||||
|
|
||||||
pinmux = device_get_binding(DT_LABEL(DT_INST(0, intel_s1000_pinmux)));
|
pinmux = DEVICE_DT_GET(DT_INST(0, intel_s1000_pinmux));
|
||||||
|
|
||||||
|
__ASSERT_NO_MSG(device_is_ready(pinmux));
|
||||||
|
|
||||||
if (pinmux == NULL) {
|
if (pinmux == NULL) {
|
||||||
return -ENXIO;
|
return -ENXIO;
|
||||||
|
|
|
@ -9,9 +9,6 @@ properties:
|
||||||
reg:
|
reg:
|
||||||
required: true
|
required: true
|
||||||
|
|
||||||
label:
|
|
||||||
required: true
|
|
||||||
|
|
||||||
pinmux-cells:
|
pinmux-cells:
|
||||||
- pin
|
- pin
|
||||||
- function
|
- function
|
||||||
|
|
|
@ -123,7 +123,6 @@
|
||||||
pinmux: pinmux@81c30 {
|
pinmux: pinmux@81c30 {
|
||||||
compatible = "intel,s1000-pinmux";
|
compatible = "intel,s1000-pinmux";
|
||||||
reg = <0x00081c30 0xC>;
|
reg = <0x00081c30 0xC>;
|
||||||
label = "PINMUX";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
uart0: uart@80800 {
|
uart0: uart@80800 {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue