hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/boot/dts/r7s72100-rskrza1.dts
....@@ -8,6 +8,7 @@
88 /dts-v1/;
99 #include "r7s72100.dtsi"
1010 #include <dt-bindings/gpio/gpio.h>
11
+#include <dt-bindings/input/input.h>
1112 #include <dt-bindings/pinctrl/r7s72100-pinctrl.h>
1213
1314 / {
....@@ -28,23 +29,93 @@
2829 reg = <0x08000000 0x02000000>;
2930 };
3031
32
+ keyboard {
33
+ compatible = "gpio-keys";
34
+
35
+ pinctrl-names = "default";
36
+ pinctrl-0 = <&keyboard_pins>;
37
+
38
+ key-1 {
39
+ interrupt-parent = <&irqc>;
40
+ interrupts = <3 IRQ_TYPE_EDGE_BOTH>;
41
+ linux,code = <KEY_1>;
42
+ label = "SW1";
43
+ wakeup-source;
44
+ };
45
+
46
+ key-2 {
47
+ interrupt-parent = <&irqc>;
48
+ interrupts = <2 IRQ_TYPE_EDGE_BOTH>;
49
+ linux,code = <KEY_2>;
50
+ label = "SW2";
51
+ wakeup-source;
52
+ };
53
+
54
+ key-3 {
55
+ interrupt-parent = <&irqc>;
56
+ interrupts = <5 IRQ_TYPE_EDGE_BOTH>;
57
+ linux,code = <KEY_3>;
58
+ label = "SW3";
59
+ wakeup-source;
60
+ };
61
+ };
62
+
3163 lbsc {
3264 #address-cells = <1>;
3365 #size-cells = <1>;
3466 };
3567
3668 leds {
37
- status = "okay";
3869 compatible = "gpio-leds";
3970
4071 led0 {
4172 gpios = <&port7 1 GPIO_ACTIVE_LOW>;
73
+ };
74
+
75
+ led1 {
76
+ gpios = <&io_expander1 0 GPIO_ACTIVE_LOW>;
77
+ };
78
+
79
+ led2 {
80
+ gpios = <&io_expander1 1 GPIO_ACTIVE_LOW>;
81
+ };
82
+
83
+ led3 {
84
+ gpios = <&io_expander1 2 GPIO_ACTIVE_LOW>;
4285 };
4386 };
4487 };
4588
4689 &extal_clk {
4790 clock-frequency = <13330000>;
91
+};
92
+
93
+&i2c3 {
94
+ pinctrl-names = "default";
95
+ pinctrl-0 = <&i2c3_pins>;
96
+ status = "okay";
97
+
98
+ clock-frequency = <400000>;
99
+
100
+ io_expander1: gpio@20 {
101
+ compatible = "onnn,cat9554";
102
+ reg = <0x20>;
103
+ gpio-controller;
104
+ #gpio-cells = <2>;
105
+ };
106
+
107
+ io_expander2: gpio@21 {
108
+ compatible = "onnn,cat9554";
109
+ reg = <0x21>;
110
+ gpio-controller;
111
+ #gpio-cells = <2>;
112
+ };
113
+
114
+ eeprom@50 {
115
+ compatible = "renesas,r1ex24016", "atmel,24c16";
116
+ reg = <0x50>;
117
+ pagesize = <16>;
118
+ };
48119 };
49120
50121 &usb_x1_clk {
....@@ -56,6 +127,17 @@
56127 };
57128
58129 &pinctrl {
130
+ /* RIIC ch3 (Port Expander, EEPROM (MAC Addr), Audio Codec) */
131
+ i2c3_pins: i2c3 {
132
+ pinmux = <RZA1_PINMUX(1, 6, 1)>, /* RIIC3SCL */
133
+ <RZA1_PINMUX(1, 7, 1)>; /* RIIC3SDA */
134
+ };
135
+
136
+ keyboard_pins: keyboard {
137
+ pinmux = <RZA1_PINMUX(1, 9, 3)>, /* IRQ3 */
138
+ <RZA1_PINMUX(1, 8, 3)>, /* IRQ2 */
139
+ <RZA1_PINMUX(1, 11, 3)>; /* IRQ5 */
140
+ };
59141
60142 /* Serial Console */
61143 scif2_pins: serial2 {