From patchwork Thu Mar 6 09:05:01 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Abel Vesa X-Patchwork-Id: 14004045 Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 7DDF119D071 for ; Thu, 6 Mar 2025 09:05:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741251923; cv=none; b=c5ObBp8HEuzY5dzM1nFi9hmbYl7GcT8dPtPDdtLEPpeltwzYhPlHrDPjctV8I/0qyCAWNdQ2174HDnhZ3rWXuIS8Ox+IGBhG7vCrD6I3vQgcIfpa2uk0+z4gpTeLXmFt9RD5KkS9flpH6ud+XsoSqwR7U6lgQsLKxGS+YMmaalc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741251923; c=relaxed/simple; bh=JvhKk3j6bzUfojj0ONyioWlTV4mog5yq3Mn6X6smoCk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=tXVu0iUilXHKCgCpHwyb0egEnK2jAp4YB7hfDD/JEQw95rXOOVB1zCLzPtQu9uk1R2meH0DU1SGV5lIrCZMXJS85z1rgsRWvytip1JSrjJsIRAqSJcI17n9Wn1XAtrBiCsUtrrcK9/s0EJR0TD9mvgAaLEnXiGRqw+IozfDNXg8= 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=ThygRnQD; arc=none smtp.client-ip=209.85.218.51 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="ThygRnQD" Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-abf4cebb04dso85433166b.0 for ; Thu, 06 Mar 2025 01:05:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1741251920; x=1741856720; 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=MAX58En/Hb1n0GC+JRkiHWBwbQ4TWebixhTAU0+fOXw=; b=ThygRnQDG2Qx03PRK56Kc2J8x8VUAsHZB65HWvdAfr6CpETxWydOTrcqdrcBZk6Fzq YHkMeHR65JQIUGHdTFVd8HVnZryDUfuQo/UE39Pvv4cpFBMdrKxFhS6cC+sFSwWY5tAB DlYC0apQ2XHAXd5U00Ng3H4LyBeWioukLuKa42bWYmx8qULJu3OFtGGMywLZFmzMTkEy ZF2D8YENn7P1VX/0ivlcxPaUUrKE+CrzraWNitniQd+6WH3DvYkwOn628gyuT7naXzvm bNcThKWj36pS07j580L/e1W3ABYyYs/4ZpYXl5UGAKdJutkLiHloaZIpTDK7H2GgPF67 jCMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741251920; x=1741856720; 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=MAX58En/Hb1n0GC+JRkiHWBwbQ4TWebixhTAU0+fOXw=; b=Bv7aXdzxY9BIzQiOe6qu9aqTRYmjBNb7GmSd1tXkhKTk9QwYGbG9bUgoK7bHq8NEvD yy0xlnyvysOUtVIhKrln426zWko6Wd81gTEjFantFwewhlWCaowY1FlGUApYoxaUtEYy 5rYiu9K0cPx9b4X39D57ekhJED0brh5U84fnFHSE9/tUDvjpQKjT5zZ/IhySqopJlf39 814ZY+WmyNqFC4ZBq/yqJ3if7XxqorYaX6AHjYvTHR7FCNJJ7F9xSmYwfPI/MmVrnW55 SZy4S/sd9i/tdHBSeqthlDmFyOxiv/IT5/s5GpdlIgGSVG0HRFx5hSlhXG2gQVZo7O60 CyWQ== X-Forwarded-Encrypted: i=1; AJvYcCVOGXpUl5mjxn9bfil1ECCObx0JnhrXpMSCx+vDHNlU66J/t3MGRgyg86GT4dFBjDuj44PtFHfwvWFPqpLJ@vger.kernel.org X-Gm-Message-State: AOJu0YwnV9oaRxFC3uK+BOiVDbV4s/CL0kfF32e23M302uP0NC4yBgvw bCBfkJavKqMMLM8kTmsU5/vvzWqeVIsw6TksBTifkxxyb15zY2KOHr8ZVAjpgXEcd8ZFg9oNNWg P X-Gm-Gg: ASbGncuGBngxAjYyAIz9h3uJa0tm4Y7jcLOidpQvo8PvFzvYRb98SWywfLRIFh66sRN XuI8SN2d7R4d+zP2TJV+iyECVQzGXpnAefMHAbgiGI+DnH0LCleLucJldhEBHR7u+/uGIfJC+ij GgCVyO52TTNFfs7OZXZoQEm9+Gj//yIk61Tuqm8s2pE5zSqDr8VJVTR3VQYX1Y/mEUev77ndoMa iJa4Dv/Yioyx/8Poou0J7WsmG232JdpndpDjj00QMk6g9smDbkUUNa5c5Qoky6R/C8OOPfGn/KQ Q4j1QbI/XSbmE5ErNrLRnwmR4z5LdJ967DbPo4qXaQw= X-Google-Smtp-Source: AGHT+IFBF85ne/IZkMGc2B/0aHOH+ZFaKTA8+EhhThtignsfXZxxEqemHN79VLEWyfsCNJMyXOwolQ== X-Received: by 2002:a17:907:608d:b0:ac1:e18d:a738 with SMTP id a640c23a62f3a-ac22ca9e8fdmr254010966b.3.1741251919650; Thu, 06 Mar 2025 01:05:19 -0800 (PST) Received: from hackbox.lan ([62.231.96.41]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ac23943a194sm61606866b.37.2025.03.06.01.05.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Mar 2025 01:05:19 -0800 (PST) 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: [RFC 0/2] arm64: dts: qcom: x1e78100-t14s: Rework devicetree for LCD and OLED SKUs Date: Thu, 6 Mar 2025 11:05:01 +0200 Message-Id: <20250306090503.724390-1-abel.vesa@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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. Sending this as an RFC in order to get an agreement on the way this will be handled from now on. 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. Abel Vesa (2): arm64: dts: qcom: x1e78100-t14s: Add LCD variant with backlight support arm64: dts: qcom: x1e78100-t14s: Add OLED variant arch/arm64/boot/dts/qcom/Makefile | 1 + .../x1e78100-lenovo-thinkpad-t14s-oled.dts | 6 + .../qcom/x1e78100-lenovo-thinkpad-t14s.dts | 1190 +---------------- ...dts => x1e78100-lenovo-thinkpad-t14s.dtsi} | 6 +- 4 files changed, 64 insertions(+), 1139 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%)