Skip to content

Commit

Permalink
Merge pull request #9 from 0r31/i2c-address-change
Browse files Browse the repository at this point in the history
Different reboots leads to different i2c address for the touch module
  • Loading branch information
GerogeFu committed Mar 10, 2022
2 parents 283a446 + 5cd746c commit 37cebe9
Showing 1 changed file with 38 additions and 7 deletions.
45 changes: 38 additions & 7 deletions Pi4-64-beta/src/ctp40.dts
Expand Up @@ -45,7 +45,7 @@
/* needed to avoid dtc warning */
#address-cells = <1>;
#size-cells = <0>;
ft6236: ft6236@14 {
ft6236_14: ft6236@14 {
compatible = "goodix,gt911";
reg = <0x14>;
interrupt-parent = <&gpio>;
Expand All @@ -55,29 +55,60 @@
touchscreen-x-mm = <51>;
touchscreen-y-mm = <85>;
};
ft6236_5d: ft6236@5d {
compatible = "goodix,gt911";
reg = <0x5d>;
interrupt-parent = <&gpio>;
interrupts = <27 2>;
touchscreen-size-x = <480>;
touchscreen-size-y = <800>;
touchscreen-x-mm = <51>;
touchscreen-y-mm = <85>;
};
};
};
fragment@4 {
target = <&ft6236>;
target = <&ft6236_14>;
__dormant__ {
touchscreen-inverted-x;
};
};
fragment@5 {
target = <&ft6236>;
target = <&ft6236_14>;
__overlay__ {
touchscreen-inverted-y;
};
};
fragment@6 {
target = <&ft6236>;
target = <&ft6236_14>;
__overlay__ {
touchscreen-swapped-x-y;
};
};
fragment@7 {
target = <&ft6236_5d>;
__dormant__ {
touchscreen-inverted-x;
};
};
fragment@8 {
target = <&ft6236_5d>;
__overlay__ {
touchscreen-inverted-y;
};
};
fragment@9 {
target = <&ft6236_5d>;
__overlay__ {
touchscreen-swapped-x-y;
};
};
__overrides__ {
touchscreen-inverted-x = <0>,"+4";
touchscreen-inverted-y = <0>,"-5";
touchscreen-swapped-x-y = <0>,"-6";
touchscreen-inverted-x = <0>,"+4",
<0>,"+7";
touchscreen-inverted-y = <0>,"-5",
<0>,"-8";
touchscreen-swapped-x-y = <0>,"-6",
<0>,"-9";
};
};

0 comments on commit 37cebe9

Please sign in to comment.