From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3215E22CBDC for ; Mon, 10 Mar 2025 14:15:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741616121; cv=none; b=bCfZW3kgItqabQN2Ahh9HKtLGiPGR9P0qX20JGLH+hFNWnZQWycFSWKDcEObMpTVq7dR23UCSAmTiZwAkpAYSspuX9ZnAn4HrUFqSkvCpIFRoxRYSfoQLQXtJhPMAK4RJzk647ukQxXBa5TZfFaWbMKVqNbH0r2KH0TPbom8FW8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741616121; c=relaxed/simple; bh=0cnSqb4EHHZH1jZBocUugKDbkHDTwqCmWiPGEzjYk3I=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=pNWDtzayiiAH/pal/JU9HeUSBw8M+nhoVj3EKraJ/WqHXYNmJObmgVn2W8bCDctWpIaZcI1xofRt9A+akCmu1MkaDMSyrvNUNhOpSkTNK3w+cfJSjgzHyiNLjM2tTpYolUkCw/vRg2uK2zao4doH5yAwxp8tvWE1Liy7C3hiv04= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=y2S9Tz16; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="y2S9Tz16" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-4394036c0efso24480375e9.2 for ; Mon, 10 Mar 2025 07:15:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741616116; x=1742220916; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=oiOvI1jdSHYxDi7DOGuskPixkiPIYyxQOmAzG/sEzYk=; b=y2S9Tz16E7Ok9SWlYeU+1GkjzYLpSj4xLpoL4ZJkTlJokLP8NpQvuaD0mN7u0nOWR9 7veEt7+suL8RjFXm7lJLZmxzcPBD9sQx2pI0ScJmhdq8UXy27ZXLNA/4mRVdBIUODcs+ op3TViYfzVRDVAob0pKjUnJdAT4RMg4n7tVpgh5mi7TPzy7mUlqWcuh2vSwBaxmm24G0 BpbcPc62HeIo9pY7nVr4N3ruuqKHAqBqcFYcZrBoifZmLgFwGztK2kbb11hh1cmRFjE/ MoDk8+ffCTA6dZXlnmMblUYaT8XHfJ/Tq8z6LlzAGCb5lGGoALUBONJGpfcDUCiHKwN1 2LLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741616116; x=1742220916; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=oiOvI1jdSHYxDi7DOGuskPixkiPIYyxQOmAzG/sEzYk=; b=JpicN73AKzT1nik5lUnxBopug7wdeuB7mmh2B7etBY1usLkL+4N41fqKF8ltC86GO9 RH44v4a6NGG7O9yj2a5NJH88/mslS8Zh1MxTmRzvR6vcae0ttlDsqlgDgwan+hCo3LOl HUE4LWCsA7f1f/Fc8AF/Ix9PtvVabCUMv1Tt5fqOSyQ86gq3Xk9P7uuXo/tjjVUS2xLb xHDz5yPRw+hv5sNuM8TDBE6C5KJ+WRRvGAv/gOz8COayNz2V6Lr40iFjV3f5x0gZI5/y zd23iFjMckxyFhDa85NDC5lhTd/n57m3WhNPkjI5DDE7D6zDTW1TdwbzGTiTqNgmKAhL gIAw== X-Forwarded-Encrypted: i=1; AJvYcCWbZAgoBGxQg5ziOr5DZyTRYrhIi204FbLxn3kFpXCp/E9OnQTYCQ/aF1cD74JK4ih+X0zEL5dQzLO7w0o=@vger.kernel.org X-Gm-Message-State: AOJu0Yzxdc3CWmhyJLbVFzx/GIFA2H25goeo5n3AoYORTLUnawhNdwHj vGh4oytR9giKHAix4DFLVZyoMnMibeVFodXmDWjA/tdlEYku3KCvqvVLSkdbSmw= X-Gm-Gg: ASbGnctelNVIqCWLmbHyGOoelynJ2i6bNhPzd7qSNHXOWqQ5zXfh8YdWIsrq/DVdPlZ zVLjGk2osZOBTkU+XEu/jeKshBzfSv+Er7xLA3L/HfhhiHasqx2KSmmay+FyrzRudJMkQgfcCxQ NuS0Qgt3JL+4wAx2Sftp/dpPgXSptcts64AdX1FB1+eAQQMkv+ZvTi7f3qik23lg9Jpzmz1zUow WxgPW1TdHQIhz9ZpcdbKT6U7LgLvgNDTCyIPNV1hCiURWh/3J6CIZmoFztEkj1MCB3yOFtjSuca 9uews6RIEOcYuchA23oB/sBP3qcbVa/kYSV48fdyTdobThQ4kkyDug== X-Google-Smtp-Source: AGHT+IHa45QnkYD1vqqthYS3xXFkFKfr9pmWfxHxp8awb40Um6CRd646Vsb+NIScIuubTXcOwu6+Lg== X-Received: by 2002:a05:6000:1a86:b0:38d:e48b:1787 with SMTP id ffacd0b85a97d-39132d1d1efmr8985888f8f.14.1741616116199; Mon, 10 Mar 2025 07:15:16 -0700 (PDT) Received: from hackbox.lan ([62.231.96.41]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-43bdd8da097sm149824545e9.17.2025.03.10.07.15.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Mar 2025 07:15:15 -0700 (PDT) From: Abel Vesa To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Johan Hovold , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel Subject: [PATCH v2 0/3] arm64: dts: qcom: x1e78100-t14s: Rework devicetree for LCD and OLED SKUs Date: Mon, 10 Mar 2025 16:15:01 +0200 Message-Id: <20250310141504.3008517-1-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Lenovo Thinkpad T14s Gen6 comes in different SKUs when it comes to panels. The only difference that is important is whether it is an OLED or an LCD. The way that backlight is handled in devicetree between OLED and LCD forces the need of two separate DTBs. So create a common T14s dtsi that describes everything except the backlight handling, by renaming the existent dts to dtsi. Then make the legacy dts the LCD version, while adding a prepended oled dts. Both include the generic T14s dtsi. For the OLED version, I do not have HW to test it on, so OLED specific bits will come at a later stage. Still, add the OLED dts in order to set the stage for it. Had to format it using "git format-patch" since b4 doesn't currently support -B when formatting the patch, and the renaming of the dts into dtsi (plus the panel properties being dropped) would've not been visible enough for reviewers. Changes in v2: - rebased on next-20250307 - Dropped the RFC, as it seems to be agreed upon already - Added dt-bindings patch to document the new oled and lcd compatibles - Added panel variant compatible strings to each dts and included the the panel type into model string as well - Changed backlight PWM period to 4266537 to match exact period the PMIC can do. - Link to v1 (RFC): https://lore.kernel.org/r/20250306090503.724390-1-abel.vesa@linaro.org/ Abel Vesa (3): dt-bindings: arm: qcom: Document Lenovo ThinkPad T14s Gen 6 LCD and OLED arm64: dts: qcom: x1e78100-t14s: Add LCD variant with backlight support arm64: dts: qcom: x1e78100-t14s: Add OLED variant .../devicetree/bindings/arm/qcom.yaml | 4 +- arch/arm64/boot/dts/qcom/Makefile | 1 + .../x1e78100-lenovo-thinkpad-t14s-oled.dts | 12 + .../qcom/x1e78100-lenovo-thinkpad-t14s.dts | 1194 +---------------- ...dts => x1e78100-lenovo-thinkpad-t14s.dtsi} | 6 +- 5 files changed, 77 insertions(+), 1140 deletions(-) create mode 100644 arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s-oled.dts rewrite arch/arm64/boot/dts/qcom/x1e78100-lenovo-thinkpad-t14s.dts (98%) copy arch/arm64/boot/dts/qcom/{x1e78100-lenovo-thinkpad-t14s.dts => x1e78100-lenovo-thinkpad-t14s.dtsi} (99%) -- 2.34.1