Evan Green has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/43153 )
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
mb/google/dedede: Add Goodix touchscreen
Add overridetree info for the touchscreen, and make a define for TOUCH_INT_ODL since everyone else seems to do that.
BUG=b:160129126 TEST=cros flash-ap -b dedede
Signed-off-by: Evan Green evgreen@chromium.org Change-Id: I55fc0749b824a0bf4b615d02bd8bc39bcdd589e0 --- M src/mainboard/google/dedede/variants/waddledee/include/variant/gpio.h M src/mainboard/google/dedede/variants/waddledee/overridetree.cb 2 files changed, 19 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/53/43153/1
diff --git a/src/mainboard/google/dedede/variants/waddledee/include/variant/gpio.h b/src/mainboard/google/dedede/variants/waddledee/include/variant/gpio.h index c7e4605..dabefeb 100644 --- a/src/mainboard/google/dedede/variants/waddledee/include/variant/gpio.h +++ b/src/mainboard/google/dedede/variants/waddledee/include/variant/gpio.h @@ -9,4 +9,6 @@
#include <baseboard/gpio.h>
+#define TOUCH_INT_ODL GPP_D4_IRQ + #endif /* MAINBOARD_GPIO_H */ diff --git a/src/mainboard/google/dedede/variants/waddledee/overridetree.cb b/src/mainboard/google/dedede/variants/waddledee/overridetree.cb index 33c578c..6223165 100644 --- a/src/mainboard/google/dedede/variants/waddledee/overridetree.cb +++ b/src/mainboard/google/dedede/variants/waddledee/overridetree.cb @@ -66,5 +66,22 @@ device i2c 0x2c on end end end + device pci 15.2 on + chip drivers/i2c/hid + register "generic.hid" = ""GDIX0000"" + register "generic.desc" = ""Goodix Touchscreen"" + register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_D4_IRQ)" + register "generic.probed" = "1" + register "generic.reset_gpio" = + "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)" + register "generic.reset_delay_ms" = "120" + register "generic.reset_off_delay_ms" = "3" + register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" + register "generic.enable_delay_ms" = "12" + register "generic.has_power_resource" = "1" + register "hid_desc_reg_offset" = "0x01" + device i2c 14 on end # TODO: Someone plz scan to see what the right value is here. + end + end end end
Evan Green has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43153 )
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
Patch Set 1:
Here's an initial attempt at touchscreen. I don't have a unit yet, so there are most likely errors here.
Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43153 )
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43153/1/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/waddledee/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/43153/1/src/mainboard/google/dedede... PS1, Line 83: 14 It should be 5d. i2cdetect detects Touchscreen on address 0x5d.
Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43153 )
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43153/1/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/waddledee/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/43153/1/src/mainboard/google/dedede... PS1, Line 83: 14
It should be 5d. i2cdetect detects Touchscreen on address 0x5d.
Even after that observing "i2c_hid i2c-GDIX0000:00: failed to retrieve report from device." error message in kernel logs. Need to triage further.
Hello build bot (Jenkins), Karthikeyan Ramasubramanian,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43153
to look at the new patch set (#2).
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
mb/google/dedede: Add Goodix touchscreen
Add overridetree info for the touchscreen, and make a define for TOUCH_INT_ODL since everyone else seems to do that.
BUG=b:160129126 TEST=cros flash-ap -b dedede
Signed-off-by: Evan Green evgreen@chromium.org Change-Id: I55fc0749b824a0bf4b615d02bd8bc39bcdd589e0 --- M src/mainboard/google/dedede/variants/waddledee/include/variant/gpio.h M src/mainboard/google/dedede/variants/waddledee/overridetree.cb 2 files changed, 19 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/53/43153/2
Evan Green has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43153 )
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43153/1/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/waddledee/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/43153/1/src/mainboard/google/dedede... PS1, Line 83: 14
Even after that observing "i2c_hid i2c-GDIX0000:00: failed to retrieve report from device. […]
got it. I got my device today so I may be able to take a look tomorrow. Maybe it just needs a FW update first.
Marco Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43153 )
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
Patch Set 2:
(3 comments)
https://review.coreboot.org/c/coreboot/+/43153/2/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/waddledee/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/43153/2/src/mainboard/google/dedede... PS2, Line 77: 120 * T3 is >= 10ms in the spec between Reset and Report_EN? * And there is to stop_gpio (report_en) here? * Then stop_delay_ms can be 110ms
https://review.coreboot.org/c/coreboot/+/43153/2/src/mainboard/google/dedede... PS2, Line 78: 3 1ms for T2 and T3 in the spec so do we play safe here?
https://review.coreboot.org/c/coreboot/+/43153/2/src/mainboard/google/dedede... PS2, Line 80: 12 The GT7375P Programming Guide Rev 0.4 mentions that T1 (AVDD -> Reset) is >= 10 so we set to 12 for playing safe?
Hello build bot (Jenkins), Karthikeyan Ramasubramanian,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43153
to look at the new patch set (#3).
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
mb/google/dedede: Add Goodix touchscreen
Add overridetree info for the touchscreen, and make a define for TOUCH_INT_ODL since everyone else seems to do that.
BUG=b:160129126 TEST=cros flash-ap -b dedede
Signed-off-by: Evan Green evgreen@chromium.org Change-Id: I55fc0749b824a0bf4b615d02bd8bc39bcdd589e0 --- M src/mainboard/google/dedede/variants/waddledee/include/variant/gpio.h M src/mainboard/google/dedede/variants/waddledee/overridetree.cb 2 files changed, 21 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/53/43153/3
Evan Green has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43153 )
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
Patch Set 3:
(3 comments)
https://review.coreboot.org/c/coreboot/+/43153/2/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/waddledee/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/43153/2/src/mainboard/google/dedede... PS2, Line 77: 120
- T3 is >= 10ms in the spec between Reset and Report_EN? […]
There does seem to be a TOUCH_RPT_EN, so the stop_gpio should be added. Need to confirm it actually goes to the chip. Will do that.
Then T1 is 12ms, T3 is 12ms, and then stop_delay can be 110.
https://review.coreboot.org/c/coreboot/+/43153/2/src/mainboard/google/dedede... PS2, Line 78: 3
1ms for T2 and T3 in the spec so do we play safe here?
Yes, though it seems like 2 should be fine here, so I'll change to that, and add stop_off_delay_ms of 2 as well.
https://review.coreboot.org/c/coreboot/+/43153/2/src/mainboard/google/dedede... PS2, Line 80: 12
The GT7375P Programming Guide Rev 0. […]
I noticed most of the other users of GDIX0000 seem to have this padding. If we're feeling adventurous we could start with 10 and see if problems come up.
Marco Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43153 )
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
Patch Set 3: Code-Review+1
And as Evan mentioned, need to check with sub board of Goodix for Report_En pin.
Marco Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43153 )
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
Patch Set 3:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43153/2/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/waddledee/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/43153/2/src/mainboard/google/dedede... PS2, Line 77: 120
There does seem to be a TOUCH_RPT_EN, so the stop_gpio should be added. […]
Partners confirmed that Report_En (stop_gpio) is not enabled in this module so we don't need to consider this stop_gpio.
Hello build bot (Jenkins), Marco Chen, Karthikeyan Ramasubramanian,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43153
to look at the new patch set (#4).
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
mb/google/dedede: Add Goodix touchscreen
Add overridetree info for the touchscreen, and make a define for TOUCH_INT_ODL since everyone else seems to do that.
BUG=b:160129126 TEST=cros flash-ap -b dedede
Signed-off-by: Evan Green evgreen@chromium.org Change-Id: I55fc0749b824a0bf4b615d02bd8bc39bcdd589e0 --- M src/mainboard/google/dedede/variants/waddledee/include/variant/gpio.h M src/mainboard/google/dedede/variants/waddledee/overridetree.cb 2 files changed, 17 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/53/43153/4
Evan Green has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43153 )
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
Patch Set 4:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43153/2/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/waddledee/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/43153/2/src/mainboard/google/dedede... PS2, Line 77: 120
Partners confirmed that Report_En (stop_gpio) is not enabled in this module so we don't need to cons […]
Done
Marco Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43153 )
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
Patch Set 4: Code-Review+2
Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43153 )
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
Patch Set 4:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43153/4/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/waddledee/include/variant/gpio.h:
https://review.coreboot.org/c/coreboot/+/43153/4/src/mainboard/google/dedede... PS4, Line 12: #define TOUCH_INT_ODL GPP_D4_IRQ I don't see it being used anywhere. Can be removed.
Hello build bot (Jenkins), Marco Chen, Karthikeyan Ramasubramanian,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43153
to look at the new patch set (#5).
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
mb/google/dedede: Add Goodix touchscreen
Add overridetree info for the touchscreen.
BUG=b:160129126 TEST=cros flash-ap -b dedede
Signed-off-by: Evan Green evgreen@chromium.org Change-Id: I55fc0749b824a0bf4b615d02bd8bc39bcdd589e0 --- M src/mainboard/google/dedede/variants/waddledee/overridetree.cb 1 file changed, 15 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/53/43153/5
Evan Green has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43153 )
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
Patch Set 5:
(1 comment)
https://review.coreboot.org/c/coreboot/+/43153/4/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/waddledee/include/variant/gpio.h:
https://review.coreboot.org/c/coreboot/+/43153/4/src/mainboard/google/dedede... PS4, Line 12: #define TOUCH_INT_ODL GPP_D4_IRQ
I don't see it being used anywhere. Can be removed.
Done.
Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43153 )
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
Patch Set 5: Code-Review+2
Evan Green has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43153 )
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
Patch Set 5:
(3 comments)
Marking comments as Done, maybe that will make the build go?
https://review.coreboot.org/c/coreboot/+/43153/1/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/waddledee/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/43153/1/src/mainboard/google/dedede... PS1, Line 83: 14
got it. I got my device today so I may be able to take a look tomorrow. […]
Done
https://review.coreboot.org/c/coreboot/+/43153/2/src/mainboard/google/dedede... File src/mainboard/google/dedede/variants/waddledee/overridetree.cb:
https://review.coreboot.org/c/coreboot/+/43153/2/src/mainboard/google/dedede... PS2, Line 78: 3
Yes, though it seems like 2 should be fine here, so I'll change to that, and add stop_off_delay_ms o […]
Done
https://review.coreboot.org/c/coreboot/+/43153/2/src/mainboard/google/dedede... PS2, Line 80: 12
I noticed most of the other users of GDIX0000 seem to have this padding. […]
Done
Karthik Ramasubramanian has submitted this change. ( https://review.coreboot.org/c/coreboot/+/43153 )
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
mb/google/dedede: Add Goodix touchscreen
Add overridetree info for the touchscreen.
BUG=b:160129126 TEST=cros flash-ap -b dedede
Signed-off-by: Evan Green evgreen@chromium.org Change-Id: I55fc0749b824a0bf4b615d02bd8bc39bcdd589e0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/43153 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Karthik Ramasubramanian kramasub@google.com --- M src/mainboard/google/dedede/variants/waddledee/overridetree.cb 1 file changed, 15 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Karthik Ramasubramanian: Looks good to me, approved
diff --git a/src/mainboard/google/dedede/variants/waddledee/overridetree.cb b/src/mainboard/google/dedede/variants/waddledee/overridetree.cb index 3534c4e3..b18e589 100644 --- a/src/mainboard/google/dedede/variants/waddledee/overridetree.cb +++ b/src/mainboard/google/dedede/variants/waddledee/overridetree.cb @@ -84,6 +84,21 @@ register "hid_desc_reg_offset" = "0x00" device i2c 5c on end end + chip drivers/i2c/hid + register "generic.hid" = ""GDIX0000"" + register "generic.desc" = ""Goodix Touchscreen"" + register "generic.irq" = "ACPI_IRQ_EDGE_LOW(GPP_D4_IRQ)" + register "generic.probed" = "1" + register "generic.reset_gpio" = + "ACPI_GPIO_OUTPUT_ACTIVE_LOW(GPP_D5)" + register "generic.reset_delay_ms" = "120" + register "generic.reset_off_delay_ms" = "2" + register "generic.enable_gpio" = "ACPI_GPIO_OUTPUT_ACTIVE_HIGH(GPP_D6)" + register "generic.enable_delay_ms" = "12" + register "generic.has_power_resource" = "1" + register "hid_desc_reg_offset" = "0x01" + device i2c 0x5d on end + end end # I2C 2 device pci 19.0 on chip drivers/i2c/generic
Marco Chen has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/43153 )
Change subject: mb/google/dedede: Add Goodix touchscreen ......................................................................
Patch Set 6: Code-Review+2