File tree 15 files changed +387
-0
lines changed
15 files changed +387
-0
lines changed Original file line number Diff line number Diff line change 7
7
8
8
#include <renesas/ra/ra2/r7fa2a1ab3cfm.dtsi>
9
9
#include <zephyr/dt-bindings/gpio/gpio.h>
10
+ #include <zephyr/dt-bindings/input/input-event-codes.h>
10
11
11
12
#include "ek_ra2a1-pinctrl.dtsi"
12
13
29
30
};
30
31
};
31
32
33
+ buttons {
34
+ compatible = "gpio-keys";
35
+ button0: s1 {
36
+ gpios = <&ioport2 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
37
+ label = "Push button switch 1";
38
+ zephyr,code = <INPUT_KEY_0>;
39
+ };
40
+ };
41
+
32
42
aliases {
33
43
led0 = &led1;
44
+ sw0 = &button0;
34
45
};
35
46
};
36
47
69
80
&ioport1 {
70
81
status = "okay";
71
82
};
83
+
84
+ &port_irq6 {
85
+ interrupts = <29 3>;
86
+ status = "okay";
87
+ };
Original file line number Diff line number Diff line change 7
7
8
8
#include <renesas/ra/ra4/r7fa4e2b93cfm.dtsi>
9
9
#include <dt-bindings/gpio/gpio.h>
10
+ #include <dt-bindings/input/input-event-codes.h>
10
11
#include <zephyr/dt-bindings/adc/adc.h>
11
12
#include "ek_ra4e2-pinctrl.dtsi"
12
13
38
39
};
39
40
};
40
41
42
+ buttons {
43
+ compatible = "gpio-keys";
44
+ button0: s1 {
45
+ gpios = <&ioport0 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
46
+ label = "Push button switch 1";
47
+ zephyr,code = <INPUT_KEY_0>;
48
+ };
49
+ button1: s2 {
50
+ gpios = <&ioport3 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
51
+ label = "Push button switch 2";
52
+ zephyr,code = <INPUT_KEY_1>;
53
+ };
54
+ };
55
+
41
56
aliases {
42
57
led0 = &led1;
58
+ sw0 = &button0;
59
+ sw1 = &button1;
43
60
};
44
61
45
62
transceiver0: can-phy0 {
78
95
};
79
96
};
80
97
98
+ &ioport0 {
99
+ status = "okay";
100
+ };
101
+
81
102
&ioport1 {
82
103
status = "okay";
83
104
};
118
139
pinctrl-0 = <&adc0_default>;
119
140
pinctrl-names = "default";
120
141
};
142
+
143
+ &ioport3 {
144
+ status = "okay";
145
+ };
146
+
147
+ &port_irq9 {
148
+ interrupts = <4 12>;
149
+ status = "okay";
150
+ };
151
+
152
+ &port_irq10 {
153
+ interrupts = <5 12>;
154
+ status = "okay";
155
+ };
Original file line number Diff line number Diff line change 7
7
8
8
#include <renesas/ra/ra4/r7fa4m2ad3cfp.dtsi>
9
9
#include <dt-bindings/gpio/gpio.h>
10
+ #include <dt-bindings/input/input-event-codes.h>
10
11
#include <zephyr/dt-bindings/adc/adc.h>
11
12
#include "ek_ra4m2-pinctrl.dtsi"
12
13
37
38
};
38
39
};
39
40
41
+ buttons {
42
+ compatible = "gpio-keys";
43
+ button0: s1 {
44
+ gpios = <&ioport0 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
45
+ label = "Push button switch 1";
46
+ zephyr,code = <INPUT_KEY_0>;
47
+ };
48
+ button1: s2 {
49
+ gpios = <&ioport0 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
50
+ label = "Push button switch 2";
51
+ zephyr,code = <INPUT_KEY_1>;
52
+ };
53
+ };
54
+
40
55
aliases {
41
56
led0 = &led1;
57
+ sw0 = &button0;
58
+ sw1 = &button1;
42
59
};
43
60
};
44
61
70
87
};
71
88
};
72
89
90
+ &ioport0 {
91
+ status = "okay";
92
+ };
93
+
73
94
&ioport4 {
74
95
status = "okay";
75
96
};
85
106
pinctrl-0 = <&adc0_default>;
86
107
pinctrl-names = "default";
87
108
};
109
+
110
+ &port_irq10 {
111
+ interrupts = <41 12>;
112
+ status = "okay";
113
+ };
114
+
115
+ &port_irq11 {
116
+ interrupts = <42 12>;
117
+ status = "okay";
118
+ };
Original file line number Diff line number Diff line change 7
7
8
8
#include <renesas/ra/ra4/r7fa4m3af3cfb.dtsi>
9
9
#include <dt-bindings/gpio/gpio.h>
10
+ #include <dt-bindings/input/input-event-codes.h>
10
11
#include <zephyr/dt-bindings/adc/adc.h>
11
12
#include "ek_ra4m3-pinctrl.dtsi"
12
13
37
38
};
38
39
};
39
40
41
+ buttons {
42
+ compatible = "gpio-keys";
43
+ button0: s1 {
44
+ gpios = <&ioport0 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
45
+ label = "Push button switch 1";
46
+ zephyr,code = <INPUT_KEY_0>;
47
+ };
48
+ button1: s2 {
49
+ gpios = <&ioport0 6 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
50
+ label = "Push button switch 2";
51
+ zephyr,code = <INPUT_KEY_1>;
52
+ };
53
+ };
54
+
40
55
aliases {
41
56
led0 = &led1;
57
+ sw0 = &button0;
58
+ sw1 = &button1;
42
59
};
43
60
};
44
61
70
87
};
71
88
};
72
89
90
+ &ioport0 {
91
+ status = "okay";
92
+ };
93
+
73
94
&ioport4 {
74
95
status = "okay";
75
96
};
85
106
pinctrl-0 = <&adc0_default>;
86
107
pinctrl-names = "default";
87
108
};
109
+
110
+ &port_irq10 {
111
+ interrupts = <41 12>;
112
+ status = "okay";
113
+ };
114
+
115
+ &port_irq11 {
116
+ interrupts = <42 12>;
117
+ status = "okay";
118
+ };
Original file line number Diff line number Diff line change 7
7
8
8
#include <renesas/ra/ra4/r7fa4w1ad2cng.dtsi>
9
9
#include <dt-bindings/gpio/gpio.h>
10
+ #include <dt-bindings/input/input-event-codes.h>
10
11
#include <zephyr/dt-bindings/adc/adc.h>
11
12
#include "ek_ra4w1-pinctrl.dtsi"
12
13
35
36
};
36
37
};
37
38
39
+ buttons {
40
+ compatible = "gpio-keys";
41
+ button0: s1 {
42
+ gpios = <&ioport4 2 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
43
+ label = "Push button switch 1";
44
+ zephyr,code = <INPUT_KEY_0>;
45
+ };
46
+ };
47
+
38
48
aliases {
39
49
led0 = &led1;
50
+ sw0 = &button0;
40
51
};
41
52
};
42
53
77
88
pinctrl-0 = <&adc0_default>;
78
89
pinctrl-names = "default";
79
90
};
91
+
92
+ &port_irq4 {
93
+ interrupts = <31 12>;
94
+ status = "okay";
95
+ };
Original file line number Diff line number Diff line change 7
7
8
8
#include <renesas/ra/ra6/r7fa6e2bb3cfm.dtsi>
9
9
#include <dt-bindings/gpio/gpio.h>
10
+ #include <dt-bindings/input/input-event-codes.h>
10
11
#include <zephyr/dt-bindings/adc/adc.h>
11
12
12
13
#include "ek_ra6e2-pinctrl.dtsi"
39
40
};
40
41
};
41
42
43
+ buttons {
44
+ compatible = "gpio-keys";
45
+ button0: s1 {
46
+ gpios = <&ioport0 5 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
47
+ label = "Push button switch 1";
48
+ zephyr,code = <INPUT_KEY_0>;
49
+ };
50
+ button1: s2 {
51
+ gpios = <&ioport3 4 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
52
+ label = "Push button switch 2";
53
+ zephyr,code = <INPUT_KEY_1>;
54
+ };
55
+ };
56
+
42
57
aliases {
43
58
led0 = &led1;
59
+ sw0 = &button0;
60
+ sw1 = &button1;
44
61
};
45
62
};
46
63
54
71
};
55
72
};
56
73
74
+ &ioport0 {
75
+ status = "okay";
76
+ };
77
+
57
78
&ioport1 {
58
79
status = "okay";
59
80
};
68
89
status = "okay";
69
90
};
70
91
92
+ &ioport3 {
93
+ status = "okay";
94
+ };
95
+
71
96
&ioport4 {
72
97
status = "okay";
73
98
};
133
158
pinctrl-0 = <&adc0_default>;
134
159
pinctrl-names = "default";
135
160
};
161
+
162
+ &port_irq9 {
163
+ interrupts = <4 12>;
164
+ status = "okay";
165
+ };
166
+
167
+ &port_irq10 {
168
+ interrupts = <5 12>;
169
+ status = "okay";
170
+ };
Original file line number Diff line number Diff line change 7
7
8
8
#include <renesas/ra/ra6/r7fa6m1ad3cfp.dtsi>
9
9
#include <dt-bindings/gpio/gpio.h>
10
+ #include <dt-bindings/input/input-event-codes.h>
10
11
#include <zephyr/dt-bindings/adc/adc.h>
11
12
12
13
#include "ek_ra6m1-pinctrl.dtsi"
31
32
};
32
33
};
33
34
35
+ buttons {
36
+ compatible = "gpio-keys";
37
+ button0: s1 {
38
+ gpios = <&ioport4 15 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
39
+ label = "Push button switch 1";
40
+ zephyr,code = <INPUT_KEY_0>;
41
+ };
42
+ };
43
+
34
44
aliases {
35
45
led0 = &led1;
46
+ sw0 = &button0;
36
47
};
37
48
};
38
49
67
78
status = "okay";
68
79
};
69
80
81
+ &ioport4 {
82
+ status = "okay";
83
+ };
84
+
70
85
&xtal {
71
86
clock-frequency = <DT_FREQ_M(12)>;
72
87
mosel = <0>;
94
109
pinctrl-0 = <&adc0_default>;
95
110
pinctrl-names = "default";
96
111
};
112
+
113
+ &port_irq8 {
114
+ interrupts = <41 12>;
115
+ status = "okay";
116
+ };
You can’t perform that action at this time.
0 commit comments