Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/69175 )
Change subject: Documentation/drivers: Update section on touchscreen runtime detection
......................................................................
Documentation/drivers: Update section on touchscreen runtime detection
Update section now that google/skyrim and google/guybrush implement
power sequencing and touchscreen runtime detection.
Change-Id: Ida63bebf18575d6856edfc65965ff82a4072df87
Signed-off-by: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69175
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Reviewed-by: Raul Rangel <rrangel(a)chromium.org>
---
M Documentation/drivers/dt_entries.md
1 file changed, 21 insertions(+), 3 deletions(-)
Approvals:
build bot (Jenkins): Verified
Raul Rangel: Looks good to me, approved
Eric Lai: Looks good to me, approved
diff --git a/Documentation/drivers/dt_entries.md b/Documentation/drivers/dt_entries.md
index 7726b45..9df965f 100644
--- a/Documentation/drivers/dt_entries.md
+++ b/Documentation/drivers/dt_entries.md
@@ -162,9 +162,10 @@
Touchscreens can use this feature as well, but special care is needed to
implement the proper power sequencing for the device to be detected. Generally,
this means driving the enable GPIO high and holding the reset GPIO low in early
-GPIO init (bootblock/romstage), then releasing reset in ramstage. While no
-boards in the tree currently implement this, it has been used in downstream
-forks without issue for some time now.
+GPIO init (bootblock/romstage), then releasing reset in ramstage. The first
+mainboards in the tree to implement this are google/skyrim and google/guybrush.
+This feature has also been used in downstream forks without issue for some time
+now on several other boards.
### wake
--
To view, visit https://review.coreboot.org/c/coreboot/+/69175
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ida63bebf18575d6856edfc65965ff82a4072df87
Gerrit-Change-Number: 69175
Gerrit-PatchSet: 3
Gerrit-Owner: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: merged
Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/69178 )
Change subject: mb/google/guybrush: Implement touchscreen power sequencing
......................................................................
mb/google/guybrush: Implement touchscreen power sequencing
As all variants have a touchscreen option, in baseboard table set the
enable GPIO high and hold in reset during romstage, then release reset
in ramstage. This will allow the touchscreen to make use of the runtime
I2C detect feature (enabled in a subsequent commit) so that an ACPI
device entry is created only for the touchscreen actually present.
Variants/SKUs which do not have a touchscreen (if any) can use the
romstage/ramstage GPIO override tables to set the associated enable/
reset GPIOs to NC.
This mirrors the change to skyrim in CB:67778.
BUG=b:121309055
TEST=build/boot guybrush with rest of patch series
Change-Id: I9b3356b8b3a0e68a307838a4b18775d25b32e548
Signed-off-by: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/69178
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Raul Rangel <rrangel(a)chromium.org>
---
M src/mainboard/google/guybrush/variants/baseboard/gpio.c
1 file changed, 34 insertions(+), 1 deletion(-)
Approvals:
build bot (Jenkins): Verified
Raul Rangel: Looks good to me, approved
diff --git a/src/mainboard/google/guybrush/variants/baseboard/gpio.c b/src/mainboard/google/guybrush/variants/baseboard/gpio.c
index beb654f..595f680 100644
--- a/src/mainboard/google/guybrush/variants/baseboard/gpio.c
+++ b/src/mainboard/google/guybrush/variants/baseboard/gpio.c
@@ -135,7 +135,7 @@
/* TCHSCR_REPORT_EN */
PAD_GPO(GPIO_120, LOW),
/* TCHSCR_RESET_L */
- PAD_GPO(GPIO_121, LOW),
+ PAD_GPO(GPIO_121, HIGH),
/* GPIO_122 - GPIO_128: Not available */
/* SOC_DISABLE_DISP_BL */
PAD_GPO(GPIO_129, LOW),
@@ -284,6 +284,11 @@
PAD_NC(GPIO_70),
/* PCIE_RST0_L */
PAD_NFO(GPIO_26, PCIE_RST_L, HIGH),
+ /* Enable touchscreen, hold in reset */
+ /* EN_PP3300_TCHSCR */
+ PAD_GPO(GPIO_68, HIGH),
+ /* TCHSCR_RESET_L */
+ PAD_GPO(GPIO_121, LOW),
};
const struct soc_amd_gpio *baseboard_romstage_gpio_table(size_t *size)
--
To view, visit https://review.coreboot.org/c/coreboot/+/69178
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I9b3356b8b3a0e68a307838a4b18775d25b32e548
Gerrit-Change-Number: 69178
Gerrit-PatchSet: 2
Gerrit-Owner: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Jason Nien <jason.nien(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: merged
Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/63799 )
Change subject: util/scripts: Add script to show platforms, CPU, type, and date added
......................................................................
util/scripts: Add script to show platforms, CPU, type, and date added
This is the script used to generate the list of platforms that were
removed from the master branch at each release. Generate a list for the
old branch, another for the new, and compare the two.
Representative output:
```eval_rst
+-------------------------+-------------------+------------+----------+
| Vendor/Board | Processor | Date added | Brd type |
+=========================+===================+============+==========+
| 51nb/x210 | INTEL_KABYLAKE | 2020-03-16 | laptop |
| acer/aspire_vn7_572g | INTEL_SKYLAKE | 2022-01-28 | laptop |
| acer/g43t-am3 | INTEL_X4X | 2020-09-28 | desktop |
| amd/bilby | AMD_PICASSO | 2021-02-17 | eval |
| amd/birman | AMD_MORGANA | 2022-10-10 | eval |
| system76/whl-u | INTEL_WHISKEYLAKE | 2021-04-14 | laptop |
| ti/beaglebone | TI_AM335X | 2013-05-26 | sbc |
| up/squared | INTEL_APOLLOLAKE | 2019-05-22 | mini |
+-------------------------+-------------------+------------+----------+
```
Signed-off-by: Martin Roth <gaumless(a)gmail.com>
Change-Id: I4f7265d95df31f3a74aa2aa164f6a094c1139750
Reviewed-on: https://review.coreboot.org/c/coreboot/+/63799
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Nicholas Chin <nic.c3.14(a)gmail.com>
Reviewed-by: Angel Pons <th3fanbus(a)gmail.com>
---
M util/scripts/description.md
A util/scripts/show_platforms.sh
2 files changed, 84 insertions(+), 0 deletions(-)
Approvals:
build bot (Jenkins): Verified
Angel Pons: Looks good to me, approved
Nicholas Chin: Looks good to me, but someone else must approve
diff --git a/util/scripts/description.md b/util/scripts/description.md
index eb7a1e8..780e9c9 100644
--- a/util/scripts/description.md
+++ b/util/scripts/description.md
@@ -25,5 +25,8 @@
`Perl`
* _rm_unused_code_ - Remove all code not used for a platform from the local
git repository for auditing or release `Bash`
+ * _show_platforms.sh_ - Makes a list of platforms in the tree. Does
+ not show variants.
+ `Shell`
* _ucode_h_to_bin.sh_ - Microcode conversion tool `Bash`
* _update_submodules_ - Check all submodules for updates `Bash`
diff --git a/util/scripts/show_platforms.sh b/util/scripts/show_platforms.sh
new file mode 100755
index 0000000..39d7772
--- /dev/null
+++ b/util/scripts/show_platforms.sh
@@ -0,0 +1,47 @@
+#!/bin/bash
+#
+# SPDX-License-Identifier: GPL-2.0-only
+#
+# This script finds all of the top-level mainboards, then goes through
+# and finds the date the directory was added, the processor type, and
+# the board type.
+#
+# This could be improved by finding all of the variants, then figuring
+# out when those veriants were added.
+# It's also very slow, but only needs to be run once in a while...
+
+readarray -t platforms < <(find src/mainboard -mindepth 3 -name 'Kconfig' | sort)
+
+echo '```eval_rst'
+echo "+-------------------------------+------------------------+------------+-----------+"
+echo "| Vendor/Board | Processor | Date added | Brd type |"
+echo "+===============================+========================+============+===========+"
+
+for file in "${platforms[@]}"; do
+ platformname="$(echo "${file}" | sed 's|.*/mainboard/||;s|/Kconfig||')"
+ if [[ ! -f "${file/Kconfig/board_info.txt}" ]]; then
+ continue
+ fi
+ chips="$(grep "CPU_\|SOC_\|NORTHBRIDGE" "${file}" |
+ grep -v "SUBTYPE\|COMMON\|SOCKET\|ENABLE\|CONSOLE\|SMU\|depends on\|ESPI\|INTEL_CSE\|NORTHBRIDGE_AMD_AGESA\|INTEL_SLOT\|REBOOT\|DISABLE" |
+ sed -e 's|\s\+select\s\+||' \
+ -e 's|\s\+if.*||' \
+ -e 's|SKYLAKE_SOC_PCH|INTEL_SKYLAKE|' \
+ -e 's|CPU_AMD_AGESA|AMD|' \
+ -e 's|SOC_INTEL_ALDERLAKE_PCH_|INTEL_ALDERLAKE|' \
+ -e 's|QC_|QUALCOMM_|' \
+ -e 's/SOC_\|NORTHBRIDGE_\|PCH_\|CPU_//g' |
+ sort -u)"
+ if [[ ! -f ${file/Kconfig/board_info.txt} ]]; then
+ continue
+ fi
+ create_date="$(git log --format="format:%cs" -- "${file}" | tail -n1)"
+ platform_type="$(sed -nE -e 's/Category: (.*)/\1/p' "${file/Kconfig/board_info.txt}" 2>/dev/null)"
+ for chip in ${chips}; do
+
+ printf "| %-29s | %-22s | %-10s | %-9s |\n" "${platformname}" "${chip}" "${create_date}" "${platform_type}"
+ done
+done
+
+echo "+-------------------------------+------------------------+------------+-----------+"
+echo '```'
--
To view, visit https://review.coreboot.org/c/coreboot/+/63799
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I4f7265d95df31f3a74aa2aa164f6a094c1139750
Gerrit-Change-Number: 63799
Gerrit-PatchSet: 5
Gerrit-Owner: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Nicholas Chin <nic.c3.14(a)gmail.com>
Gerrit-Reviewer: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-MessageType: merged