Skip to content

Commit aa4076e

Browse files
committed
update overlay files with better node names
Use node names that better illustrate the role of each node Signed-off-by: Mike Szczys <mike@golioth.io>
1 parent 798cec1 commit aa4076e

File tree

6 files changed

+32
-28
lines changed

6 files changed

+32
-28
lines changed

03_LED/boards/nrf7002dk_nrf5340_cpuapp.overlay

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
/ {
22
aliases {
3-
mynode = &nodelabel;
3+
alias-name = &subnode_nodelabel;
44
};
55

66

7-
nodelabel: nodepath {
7+
child-node-path {
88
compatible = "zephyr,fake-eeprom";
9-
size = <0>;
9+
10+
size = <0>; /* property required by zephyr,fake-eprom binding */
11+
12+
subnode_nodelabel: subnode-path {
13+
foo = <3>;
14+
};
1015
};
1116
};
12-

03_LED/boards/nrf9160dk_nrf9160_ns.overlay

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
/ {
22
aliases {
3-
mynode = &nodelabel;
3+
alias-name = &subnode_nodelabel;
44
};
55

66

7-
nodelabel: nodepath {
7+
child-node-path {
88
compatible = "zephyr,fake-eeprom";
9-
size = <0>;
9+
10+
size = <0>; /* property required by zephyr,fake-eprom binding */
11+
12+
subnode_nodelabel: subnode-path {
13+
foo = <3>;
14+
};
1015
};
1116
};
12-
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
/ {
22
aliases {
3-
training-led = &ledn2;
3+
training-led = &led2_subnode_label;
44
};
55

66

7-
trainingleds: tled {
7+
led_childnode: led_childnode_path {
88
compatible = "gpio-leds";
99

10-
ledn2: led_number_2 {
10+
led2_subnode_label: led2_path {
1111
gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
12-
};
12+
};
1313
};
1414
};
15-
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
/ {
22
aliases {
3-
training-led = &ledn2;
3+
training-led = &led2_subnode_label;
44
};
55

66

7-
trainingleds: tled {
7+
led_childnode: led_childnode_path {
88
compatible = "gpio-leds";
99

10-
ledn2: led_number_2 {
10+
led2_subnode_label: led2_path {
1111
gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
12-
};
12+
};
1313
};
1414
};
15-
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
/ {
22
aliases {
3-
training-led = &ledn2;
3+
training-led = &led2_subnode_label;
44
};
55

66

7-
trainingleds: tled {
7+
led_childnode_path {
88
compatible = "gpio-leds";
99

10-
ledn2: led_number_2 {
10+
led2_subnode_label: led2_path {
1111
gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
12-
};
12+
};
1313
};
1414
};
15-
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
/ {
22
aliases {
3-
training-led = &ledn2;
3+
training-led = &led2_subnode_label;
44
};
55

66

7-
trainingleds: tled {
7+
led_childnode_path {
88
compatible = "gpio-leds";
99

10-
ledn2: led_number_2 {
10+
led2_subnode_label: led2_path {
1111
gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
12-
};
12+
};
1313
};
1414
};
15-

0 commit comments

Comments
 (0)