Skip to content

Commit 1cb2dce

Browse files
galaknashif
authored andcommitted
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 <[email protected]>
1 parent c48bc9a commit 1cb2dce

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

boards/xtensa/intel_s1000_crb/pinmux.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ static int intel_s1000_pinmux_init(const struct device *dev)
2525
{
2626
const struct device *pinmux;
2727

28-
pinmux = device_get_binding(DT_LABEL(DT_INST(0, intel_s1000_pinmux)));
28+
pinmux = DEVICE_DT_GET(DT_INST(0, intel_s1000_pinmux));
29+
30+
__ASSERT_NO_MSG(device_is_ready(pinmux));
2931

3032
if (pinmux == NULL) {
3133
return -ENXIO;

dts/bindings/pinctrl/intel,s1000-pinmux.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ properties:
99
reg:
1010
required: true
1111

12-
label:
13-
required: true
14-
1512
pinmux-cells:
1613
- pin
1714
- function

dts/xtensa/intel/intel_s1000.dtsi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@
123123
pinmux: pinmux@81c30 {
124124
compatible = "intel,s1000-pinmux";
125125
reg = <0x00081c30 0xC>;
126-
label = "PINMUX";
127126
};
128127

129128
uart0: uart@80800 {

0 commit comments

Comments
 (0)