|
@@ -104,13 +104,20 @@
|
|
|
/* >;
|
|
|
};
|
|
|
*/
|
|
|
- i2c2_pins: pinmux_i2c2_pins {
|
|
|
- pinctrl-single,pins = <
|
|
|
- 0x150 (PIN_INPUT_PULLUP | MUX_MODE2) /* spi0_sclk.i2c2_sda */
|
|
|
- 0x154 (PIN_INPUT_PULLUP | MUX_MODE2) /* spi0_d0.i2c2_scl */
|
|
|
- >;
|
|
|
- };
|
|
|
|
|
|
+ /*i2c2_pins: pinmux_i2c2_pins {
|
|
|
+ pinctrl-single,pins = <*/
|
|
|
+ /*0x150 (PIN_INPUT_PULLUP | MUX_MODE2) */ /* spi0_sclk.i2c2_sda */
|
|
|
+ /*0x154 (PIN_INPUT_PULLUP | MUX_MODE2) */ /* spi0_d0.i2c2_scl */
|
|
|
+ /*>;
|
|
|
+ };*/
|
|
|
+
|
|
|
+ i2c_gpio_pins: pinmux_i2c_gpio_pins {
|
|
|
+ pinctrl-single,pins = <
|
|
|
+ 0x150 (PIN_INPUT | MUX_MODE7) /* spi0_sclk.i2c2_sda */
|
|
|
+ 0x154 (PIN_INPUT | MUX_MODE7) /* spi0_d0.i2c2_scl */
|
|
|
+ >;
|
|
|
+ };
|
|
|
|
|
|
spi1_pins: pinmux_spi1_pins {
|
|
|
pinctrl-single,pins = <
|
|
@@ -196,23 +203,58 @@
|
|
|
};
|
|
|
};
|
|
|
|
|
|
-
|
|
|
+/*
|
|
|
&i2c2 {
|
|
|
pinctrl-names = "default";
|
|
|
pinctrl-0 = <&i2c2_pins>;
|
|
|
status = "okay";
|
|
|
clock-frequency = <400000>;
|
|
|
};
|
|
|
+*/
|
|
|
+
|
|
|
+/{
|
|
|
+i2c3: i2c@3 {
|
|
|
+ compatible = "i2c-gpio";
|
|
|
+ pinctrl-names = "default";
|
|
|
+ status = "okay";
|
|
|
+ gpios = <&gpio0 2 0 /* sda */
|
|
|
+ &gpio0 3 0 /* scl */
|
|
|
+ >;
|
|
|
+ /*i2c-gpio,sda-open-drain;
|
|
|
+ i2c-gpio,scl-open-drain;*/
|
|
|
+ i2c-gpio,delay-us = <1>; /* ~200 kHz */
|
|
|
+ #address-cells = <1>;
|
|
|
+ #size-cells = <0>;
|
|
|
+ };
|
|
|
+};
|
|
|
|
|
|
|
|
|
-&i2c2 {
|
|
|
+&i2c3 {
|
|
|
+ pca9538_0: gpio@70 {
|
|
|
+ compatible = "nxp,pca9538";
|
|
|
+ reg = <0x70>;
|
|
|
+ gpio-controller;
|
|
|
+ #gpio-cells = <2>;
|
|
|
+ /*interrupt-parent = <&gpio2>;*/
|
|
|
+ /*interrupts = <1 8>;*/
|
|
|
+ };
|
|
|
+
|
|
|
+ pca9538_1: gpio@71 {
|
|
|
+ compatible = "nxp,pca9538";
|
|
|
+ reg = <0x71>;
|
|
|
+ gpio-controller;
|
|
|
+ #gpio-cells = <2>;
|
|
|
+ /*interrupt-parent = <&gpio2>;*/
|
|
|
+ /*interrupts = <1 8>;*/
|
|
|
+ };
|
|
|
+
|
|
|
polytouch: edt-ft5x06@38 {
|
|
|
compatible = "edt,edt-ft5406", "edt,edt-ft5x06";
|
|
|
reg = <0x38>;
|
|
|
pinctrl-names = "default";
|
|
|
pinctrl-0 = <&edt_ft5x06_pins>;
|
|
|
interrupt-parent = <&gpio2>;
|
|
|
- interrupts = <1 0>;
|
|
|
+ interrupts = <1 2>;
|
|
|
reset-gpios = <&gpio3 21 1>;
|
|
|
};
|
|
|
|
|
@@ -220,6 +262,7 @@
|
|
|
compatible = "microchip,mcp7940x";
|
|
|
reg = <0x6f>;
|
|
|
};
|
|
|
+
|
|
|
};
|
|
|
|
|
|
|
|
@@ -346,8 +389,119 @@
|
|
|
compatible = "pwm-beeper";
|
|
|
pwms = <&pwm7 0 0 0>;
|
|
|
};
|
|
|
+
|
|
|
+ gfa_panel_leds {
|
|
|
+ compatible = "gpio-leds";
|
|
|
+
|
|
|
+ led0 {
|
|
|
+ label = "GfA-LED0";
|
|
|
+ gpios = <&pca9538_1 2 0>;
|
|
|
+ linux,default-trigger = "default-off";
|
|
|
+ };
|
|
|
+
|
|
|
+ led1 {
|
|
|
+ label = "GfA-LED1";
|
|
|
+ gpios = <&pca9538_1 3 0>;
|
|
|
+ linux,default-trigger = "default-off";
|
|
|
+ };
|
|
|
+
|
|
|
+ led2 {
|
|
|
+ label = "GfA-LED2";
|
|
|
+ gpios = <&pca9538_1 4 0>;
|
|
|
+ linux,default-trigger = "default-off";
|
|
|
+ };
|
|
|
+
|
|
|
+ led3 {
|
|
|
+ label = "GfA-LED3";
|
|
|
+ gpios = <&pca9538_1 5 0>;
|
|
|
+ linux,default-trigger = "default-off";
|
|
|
+ };
|
|
|
+
|
|
|
+ led4 {
|
|
|
+ label = "GfA-LED4";
|
|
|
+ gpios = <&pca9538_1 6 0>;
|
|
|
+ linux,default-trigger = "default-off";
|
|
|
+ };
|
|
|
+
|
|
|
+ led5 {
|
|
|
+ label = "GfA-LED5";
|
|
|
+ gpios = <&pca9538_1 7 0>;
|
|
|
+ linux,default-trigger = "default-off";
|
|
|
+ };
|
|
|
+ };
|
|
|
+
|
|
|
+ gpio-keys {
|
|
|
+ compatible = "gpio-keys-polled";
|
|
|
+ poll-interval = <100>;
|
|
|
+
|
|
|
+ F2 {
|
|
|
+ linux,code = <60>;
|
|
|
+ label = "F2";
|
|
|
+ gpios = <&pca9538_0 0 0x1>;
|
|
|
+ };
|
|
|
+
|
|
|
+ F5 {
|
|
|
+ linux,code = <63>;
|
|
|
+ label = "F2";
|
|
|
+ gpios = <&pca9538_0 1 0x1>;
|
|
|
+ };
|
|
|
+
|
|
|
+ F6 {
|
|
|
+ linux,code = <64>;
|
|
|
+ label = "F6";
|
|
|
+ gpios = <&pca9538_0 2 0x1>;
|
|
|
+ };
|
|
|
+
|
|
|
+ F7 {
|
|
|
+ linux,code = <65>;
|
|
|
+ label = "F7";
|
|
|
+ gpios = <&pca9538_0 3 0x1>;
|
|
|
+ };
|
|
|
+
|
|
|
+ F8 {
|
|
|
+ linux,code = <66>;
|
|
|
+ label = "F8";
|
|
|
+ gpios = <&pca9538_0 4 0x1>;
|
|
|
+ };
|
|
|
+
|
|
|
+ F9 {
|
|
|
+ linux,code = <67>;
|
|
|
+ label = "F9";
|
|
|
+ gpios = <&pca9538_0 5 0x1>;
|
|
|
+ };
|
|
|
+
|
|
|
+
|
|
|
+ F10 {
|
|
|
+ linux,code = <68>;
|
|
|
+ label = "F10";
|
|
|
+ gpios = <&pca9538_0 6 0x1>;
|
|
|
+ };
|
|
|
+
|
|
|
+
|
|
|
+ F4 {
|
|
|
+ linux,code = <62>;
|
|
|
+ label = "F4";
|
|
|
+ gpios = <&pca9538_0 7 0x1>;
|
|
|
+ };
|
|
|
+
|
|
|
+
|
|
|
+ F1 {
|
|
|
+ linux,code = <59>;
|
|
|
+ label = "F1";
|
|
|
+ gpios = <&pca9538_1 0 0x1>;
|
|
|
+ };
|
|
|
+
|
|
|
+ F3 {
|
|
|
+ linux,code = <61>;
|
|
|
+ label = "F3";
|
|
|
+ gpios = <&pca9538_1 1 0x1>;
|
|
|
+ };
|
|
|
+
|
|
|
+ };
|
|
|
+
|
|
|
};
|
|
|
|
|
|
+
|
|
|
/ {
|
|
|
vendorinfo {
|
|
|
vendor_name = "GfA Display001";
|