public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: arm64: dts: qcom: Add Microsoft Surface Pro 12in
Date: Sat, 16 May 2026 09:57:54 +1000	[thread overview]
Message-ID: <review-patch7-8ac29ee38ba80a3fbde8bfe43b74b9b936b31cb1.1778822464.git.harrison.vanderbyl@gmail.com> (raw)
In-Reply-To: <8ac29ee38ba80a3fbde8bfe43b74b9b936b31cb1.1778822464.git.harrison.vanderbyl@gmail.com>

Patch Review

This is the main board DTS file (1201 lines). The overall structure follows the established pattern for x1p42100 boards. A few style issues:

**Issue 1 — Indentation in `&pm8550_gpios` uses spaces instead of tabs:**

```dts
+&pm8550_gpios {
+    vol_up_n_default: vol-up-n-state {
+		pins = "gpio8";
```

and:

```dts
+    vol_down_n_default: vol-down-n-state {
+		pins = "gpio6";
```

The `vol_up_n_default` and `vol_down_n_default` lines use 4 spaces for indentation, while the rest of the file (and DTS convention) uses tabs. This should be fixed.

**Issue 2 — C++ style comment in i2c9:**

```dts
+&i2c9 {
+	clock-frequency = <400000>;
+
+	// NFC @28, commercial devices only
```

DTS files conventionally use C-style `/* */` comments. Some DT maintainers flag `//` comments. The `i2c4` section correctly uses `/* */` style comments for similar device annotations.

**Issue 3 — Extra whitespace in ts0_default closing brace:**

```dts
+	ts0_default: ts0-default-state {
+		...
+		reset-n-pins {
+			...
+		};
+	 };
```

The closing `};` has an extra space before it (`\t }`), making it misaligned compared to the opening.

**Minor observations (non-blocking):**
- The `chassis-type = "tablet"` is correct for this form factor.
- The two USB-C connectors are defined with correct pmic-glink wiring and SBU mux configuration.
- The `reserved-memory` CMA region at 512MB is typical for Qualcomm ARM64 boards.
- The regulator chain `vreg_panel_en` -> `vreg_edp_3p3` -> backlight/panel is logical with the 150ms enable ramp delay.
- The `vreg_l7b_2p8` has `regulator-always-on` which should be verified as intentional.
- The WSA8845 speakers both share the same `reset-gpios` (lpass_tlmm gpio12), which is the expected configuration for paired speakers.
- Firmware paths use `qcom/x1p42100/Microsoft/Surface12/` which is a sensible naming convention.

**Summary for patch 7:** Three style issues (spaces vs tabs, comment style, extra whitespace) should be fixed before merge. The functional content of the DTS looks correct.

---
Generated by Claude Code Patch Reviewer

  reply	other threads:[~2026-05-15 23:57 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <177869930359.1496076.12020223802779537187.b4-ty@kernel.org>
2026-05-15  5:41 ` [PATCH v2 0/7] Add support for the Microsoft Surface Pro 12in 1st Edition (Snapdragon), Harrison Vanderbyl
2026-05-15  5:41   ` [PATCH v2 1/7] dt-bindings: arm: qcom: Add Microsoft Surface Pro 12in Harrison Vanderbyl
2026-05-15  7:03     ` Krzysztof Kozlowski
2026-05-15 23:57       ` Claude review: " Claude Code Review Bot
2026-05-15  5:41   ` [PATCH v2 2/7] dt-bindings: crypto: Add x1e80100 inline crypto Harrison Vanderbyl
2026-05-15  7:04     ` Krzysztof Kozlowski
2026-05-15 23:57       ` Claude review: " Claude Code Review Bot
2026-05-15  5:41   ` [PATCH v2 3/7] platform/surface: SAM: Add support for Surface Pro 12in Harrison Vanderbyl
2026-05-15 23:57     ` Claude review: " Claude Code Review Bot
2026-05-15  5:41   ` [PATCH v2 4/7] hid: Pen battery quirk " Harrison Vanderbyl
2026-05-15 23:57     ` Claude review: " Claude Code Review Bot
2026-05-15  5:41   ` [PATCH v2 5/7] drm/panel-edp: Add panel " Harrison Vanderbyl
2026-05-15 23:57     ` Claude review: " Claude Code Review Bot
2026-05-15  5:41   ` [PATCH v2 6/7] arm64: dts: qcom: hamoa: Add inline crypto for UFS Harrison Vanderbyl
2026-05-15 23:57     ` Claude review: " Claude Code Review Bot
2026-05-15  5:41   ` [PATCH v2 7/7] arm64: dts: qcom: Add Microsoft Surface Pro 12in Harrison Vanderbyl
2026-05-15 23:57     ` Claude Code Review Bot [this message]
2026-05-15 23:57   ` Claude review: Add support for the Microsoft Surface Pro 12in 1st Edition (Snapdragon), Claude Code Review Bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=review-patch7-8ac29ee38ba80a3fbde8bfe43b74b9b936b31cb1.1778822464.git.harrison.vanderbyl@gmail.com \
    --to=claude-review@example.com \
    --cc=dri-devel-reviews@example.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox