|
@@ -97,10 +97,10 @@
|
|
|
};
|
|
|
|
|
|
|
|
|
- i2c_gpio_pins: pinmux_i2c_gpio_pins {
|
|
|
+ i2c2_pins: pinmux_i2c2_pins {
|
|
|
pinctrl-single,pins = <
|
|
|
- 0x150 (PIN_INPUT | MUX_MODE7) /* spi0_sclk.i2c2_sda */
|
|
|
- 0x154 (PIN_INPUT | MUX_MODE7) /* spi0_d0.i2c2_scl */
|
|
|
+ 0x150 (PIN_INPUT | MUX_MODE2) /* spi0_sclk.i2c2_sda */
|
|
|
+ 0x154 (PIN_INPUT | MUX_MODE2) /* spi0_d0.i2c2_scl */
|
|
|
>;
|
|
|
};
|
|
|
|
|
@@ -200,36 +200,27 @@
|
|
|
};
|
|
|
};
|
|
|
|
|
|
-/ {
|
|
|
-i2c@3 {
|
|
|
- compatible = "i2c-gpio";
|
|
|
- pinctrl-names = "default";
|
|
|
- pinctrl-0 = <&i2c_gpio_pins>;
|
|
|
- status = "okay";
|
|
|
+&i2c2 {
|
|
|
+ pinctrl-names = "default";
|
|
|
+ pinctrl-0 = <&i2c2_pins>;
|
|
|
+ status = "okay";
|
|
|
+ clock-frequency = <400000>;
|
|
|
+};
|
|
|
|
|
|
- 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>;
|
|
|
-
|
|
|
- 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>;
|
|
|
- reset-gpios = <&gpio3 21 1>;
|
|
|
- };
|
|
|
+&i2c2 {
|
|
|
+ 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 8>;
|
|
|
+ reset-gpios = <&gpio3 21 1>;
|
|
|
+ };
|
|
|
|
|
|
- mcp7940x: rtc@6f {
|
|
|
- compatible = "microchip,mcp7940x";
|
|
|
- reg = <0x6f>;
|
|
|
- };
|
|
|
+ mcp7940x: rtc@6f {
|
|
|
+ compatible = "microchip,mcp7940x";
|
|
|
+ reg = <0x6f>;
|
|
|
};
|
|
|
};
|
|
|
|
|
@@ -361,7 +352,7 @@ i2c@3 {
|
|
|
/ {
|
|
|
vendorinfo {
|
|
|
vendor_name = "GfA Display001";
|
|
|
- display_dtb = "Display001_7.dtb";
|
|
|
+ display_dtb = "Display001_7_i2c2.dtb";
|
|
|
display_physical_width = "153"; /* in mm */
|
|
|
display_physical_height = "92"; /* in mm */
|
|
|
};
|