Skip to content

Commit 62b4e3e

Browse files
decsnynashif
authored andcommitted
dts: ke1xz: Fix ranges warning on GPIO
Fix simple bus reg / ranges warning from GPIO nodes by giving the parent nodes addresses and describing a ranges other than empty. Signed-off-by: Declan Snyder <declan.snyder@nxp.com>
1 parent 5971867 commit 62b4e3e

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

dts/arm/nxp/nxp_ke1xz.dtsi

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -167,17 +167,18 @@
167167
clocks = <&pcc 0x134 KINETIS_PCC_SRC_NONE_OR_EXT>;
168168
};
169169

170-
gpios0: gpios0 {
170+
gpios0: gpios0@400ff000 {
171171
compatible = "nxp,gpio-cluster";
172172
interrupts = <7 2>;
173-
173+
reg = <0x400ff000 0x200>;
174+
ranges = <0x0 0x400ff000 0x200>;
174175
#address-cells = <1>;
175176
#size-cells = <1>;
176177

177178
gpioa: gpio@400ff000 {
178179
compatible = "nxp,kinetis-gpio";
179180
status = "disabled";
180-
reg = <0x400ff000 0x40>;
181+
reg = <0x0 0x40>;
181182
gpio-controller;
182183
#gpio-cells = <2>;
183184
nxp,kinetis-port = <&porta>;
@@ -193,17 +194,18 @@
193194
};
194195
};
195196

196-
gpios1: gpios1 {
197+
gpios1: gpios1@400ff040 {
197198
compatible = "nxp,gpio-cluster";
198199
interrupts = <26 2>;
199-
200+
reg = <0x400ff040 0x200>;
201+
ranges = <0x40 0x400ff040 0x200>;
200202
#address-cells = <1>;
201203
#size-cells = <1>;
202204

203205
gpiob: gpio@400ff040 {
204206
compatible = "nxp,kinetis-gpio";
205207
status = "disabled";
206-
reg = <0x400ff040 0x40>;
208+
reg = <0x40 0x40>;
207209
gpio-controller;
208210
#gpio-cells = <2>;
209211
nxp,kinetis-port = <&portb>;
@@ -212,7 +214,7 @@
212214
gpioc: gpio@400ff080 {
213215
compatible = "nxp,kinetis-gpio";
214216
status = "disabled";
215-
reg = <0x400ff080 0x40>;
217+
reg = <0x80 0x40>;
216218
gpio-controller;
217219
#gpio-cells = <2>;
218220
nxp,kinetis-port = <&portc>;
@@ -221,7 +223,7 @@
221223
gpiod: gpio@400ff0c0 {
222224
compatible = "nxp,kinetis-gpio";
223225
status = "disabled";
224-
reg = <0x400ff0c0 0x40>;
226+
reg = <0xc0 0x40>;
225227
gpio-controller;
226228
#gpio-cells = <2>;
227229
nxp,kinetis-port = <&portd>;

0 commit comments

Comments
 (0)