From patchwork Fri Dec 20 11:27:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13916651 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E6F2EE7718A for ; Fri, 20 Dec 2024 11:30:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=1zESwL5z/yFz+1EwFu23hzBHEEa+Luon6DhT4CZGajQ=; b=gozPiXEqPdX6lSSCZ02Fv6r0I7 AiVSdxukwPd6APAnYu0sVa7c6DBzNm5S78jMQhpKsZhGxZCMZlPwFM1NjoaQjXtu5/TDFx8mgille ITr6WtPwEGyphMKZFoIzOdM3EKZDhW4aecuo6KAeI8WY6xlHDUnDiZ/pBicWx22raS9uczca2oceO 2X5rQXjegATA8Ky5sKnB2nw28K/Sp40pldXpJBuUklYC8ZmmRTN7rS7vanxUJ0WqVegTYoOspvepG cX0C9W0WI3FAdon08YvNcb4hmGqk7Z0DPnCLUXaVXw7jyXVZ0iQiyCj/pp1tX4tQTfNOkvdlgjVfD WxhMxxgg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tObDP-00000004mHH-3pLH; Fri, 20 Dec 2024 11:30:43 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tObAm-00000004lfl-1twQ for linux-arm-kernel@lists.infradead.org; Fri, 20 Dec 2024 11:28:01 +0000 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5d34030ebb2so2867983a12.1 for ; Fri, 20 Dec 2024 03:28:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734694079; x=1735298879; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=1zESwL5z/yFz+1EwFu23hzBHEEa+Luon6DhT4CZGajQ=; b=qrKKNtm6Kt35T3NALvy1SNEvNx4VdCY6V+/J2/hUtBMXJJCblHSrSBEMzeftbUj271 ZAkGmgLImSnis/Ot+OngkIusv0BEKkq5151db21o7NwFb8B/b3d/yYo7/PkZDTRpkWoZ 03f8S7tCCjpVo0aaKt2B8JjkHNw2A++L0A31Qcw9zrqGuC0LbphAq+36E/2/7fsuOUvp ptvGWmMKGRE0blXCgnPvitkEO7U631nX2IVUpXjk2ykKdZZnC2lpdwqCv8NRlHNnVfkj +zqmrMI9q6H0hqvhNapKKWq3rpq9OWb8QXf4OtL+vMCTXguflfEelNUIndBaEq4dawMc Rd5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734694079; x=1735298879; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1zESwL5z/yFz+1EwFu23hzBHEEa+Luon6DhT4CZGajQ=; b=Z+aCn+ov2RjZj7uM0kC+sOSj1TMRCVfqSP35Wkt16/TUeaGw2hi8pLhSx/YKz/cFSK yTJzq6H3Z9JxEDO95k/lAIqrptlubiUKUeTgBOjQso3VGTJ4iuRAt6xhyLIYnC3o7nbn dAQo/rEYwowTauNpgOKHhJhLKhfDf0TP1iJAX1DBVKvp5PovkbMdOrFxCKmURzVcv+Bw KA0H+qcJZ1R6kSvlXfkMyQW8t+H7po8qeoBbV4Uw0UvA7l6h5tGENdvEymqZ4Og+FqyR d98Xa5LaOWG3++BCE+Ocp6X2D1pBv/jr6i0aGY5O2czs19Ke2W03DSDD7LyvG6q97Ajt btSw== X-Forwarded-Encrypted: i=1; AJvYcCVrveG6geZ6B90i+QOrE5jbs+1Pv14bI6Uvtwf1NAI9475d+vT/W/ZsL+ihayyIR983frkXUFuSD/iUqMbR3Otj@lists.infradead.org X-Gm-Message-State: AOJu0Yyn5Qlpd2flsYQwVeW3dyrxOpAYmpCSQnzZaMWKZAsnN4YA1XwD ISpi6BDq8CARCO2DjfnhhdJmxki9oACgjJ/4Ktd4u9hDVcgfq1g7rlFiR2YNrE8= X-Gm-Gg: ASbGncuXN4ytNp86hncX/pLO5wLZ6rXQF5cTxEgdRieVPVvJUU+qN32/yQVQybRk833 nimaXFe3tJyXICqOGnSyQEnbyMZY6ZB6D/KFWNDqWqE2RMdlH8By85AzXysGeyVO6LBjNJ18Jmv jWzcvvVSQI5rshkURIogWxjAfFO3TUpe7cWiItIfdbCFOY9Cbxd9kUUh/qoTe7hGGzEZ2f1WIL0 InKs+SpqgJQInG624drSaaPWIS2TaXQfuHL2zfM4BhvpOZuc4UPsQqZZ2dbHPwxm+PwlTB6rRyE DnzRtOFr7HVXT0MO6aOOmmamtLGlC25x9eyFkDpG X-Google-Smtp-Source: AGHT+IHwdFHGdeIg/yzoQyFEM4Ix23wZS04hAPOurAhS8SM0BMEKA/I7VUHkQxsK73sPZbaMVySSVA== X-Received: by 2002:a05:6402:210b:b0:5d3:d19e:6d57 with SMTP id 4fb4d7f45d1cf-5d81de0669fmr1906775a12.34.1734694078782; Fri, 20 Dec 2024 03:27:58 -0800 (PST) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d80701abd1sm1632634a12.76.2024.12.20.03.27.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2024 03:27:58 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Fri, 20 Dec 2024 11:27:24 +0000 Subject: [PATCH v2 1/3] dt-bindings: arm: google: add gs101-raven and generic gs101-pixel MIME-Version: 1.0 Message-Id: <20241220-gs101-simplefb-v2-1-c10a8f9e490b@linaro.org> References: <20241220-gs101-simplefb-v2-0-c10a8f9e490b@linaro.org> In-Reply-To: <20241220-gs101-simplefb-v2-0-c10a8f9e490b@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Griffin , Tudor Ambarus , Alim Akhtar Cc: Will McVicker , kernel-team@android.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241220_032800_500203_C7BA4F9A X-CRM114-Status: GOOD ( 10.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Raven is Google's code name for Pixel 6 Pro. Since there are differences compared to Pixel 6 (Oriole), we need to add a separate compatible for it. We also want to support a generic DT, which can work on any type of gs101-based Pixel device, e.g. Pixel 6, or Pixel 6 Pro, or Pixel 6a (as a future addition). Such a DT will have certain nodes disabled / not added. To facilitate such a generic gs101-based Pixel device, also add a more generic gs101-pixel compatible. We can not just use the existing google,gs101 for that, as it refers to the SoC, not a board. Signed-off-by: André Draszik --- Documentation/devicetree/bindings/arm/google.yaml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/arm/google.yaml b/Documentation/devicetree/bindings/arm/google.yaml index e20b5c9b16bc..a8faf2256242 100644 --- a/Documentation/devicetree/bindings/arm/google.yaml +++ b/Documentation/devicetree/bindings/arm/google.yaml @@ -34,11 +34,21 @@ properties: const: '/' compatible: oneOf: - - description: Google Pixel 6 / Oriole + - description: Google GS101 Pixel devices, as generic Pixel, or Pixel 6 + (Oriole), or 6 Pro (Raven) + minItems: 2 + maxItems: 3 items: - - enum: - - google,gs101-oriole - - const: google,gs101 + enum: + - google,gs101-oriole + - google,gs101-raven + - google,gs101-pixel + - google,gs101 + allOf: + - contains: + const: google,gs101-pixel + - contains: + const: google,gs101 # Bootloader requires empty ect node to be present ect: From patchwork Fri Dec 20 11:27:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13916652 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 098B1E77188 for ; Fri, 20 Dec 2024 11:32:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=h557sfpCD6pzztMbKFx7XhfpV8rTpdinmEFFBb6Jmvw=; b=4YYebTMAALSeQGxrzMqorY+P8n vDOZOWsn4xJIaqkdp9++jKxTyGESzsKDkVBIA0W5EwPo2gzbJtkTAdJN329WTX3MhuHo5LzYv2dI9 UIzLxXf8PzOGf2OBJowE0ELOm2fFSeE6d4Rhqg8OxT22dHgKhxumSb8VnEeLQlJOiFD+tQbuKMtt2 ndl1orCx260keCVu55TiVdZ4O0p/ROrs2gFrYJW/im/F0Zr+qZf3M39zop1zzt0/6pu2lhldpog1D aIFaQayX/ctFdkeru1URSoSKPmhqO91de+sLDIs1N+f3C782MUdPLmo9AD4m8IfKO1I+4h0+l67Ct x3ZD57rA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tObEX-00000004mVV-2LRV; Fri, 20 Dec 2024 11:31:53 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tObAn-00000004lg2-0lsT for linux-arm-kernel@lists.infradead.org; Fri, 20 Dec 2024 11:28:02 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-5d3e8f64d5dso3124383a12.3 for ; Fri, 20 Dec 2024 03:28:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734694079; x=1735298879; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=h557sfpCD6pzztMbKFx7XhfpV8rTpdinmEFFBb6Jmvw=; b=IGWPr82yZfNbmfkI86nzMQtoghyPYXZm6WEiQLFTrcIiWlnTzcI+XGnO9lFOfQwso7 UfNEAzXAqFQNj/q/ayF3X//4LOrjE6PLXaSUC9pHg37CZjwCzWWgAxv88/uCYbu3SM0U y2rdZy87/Uk+KjnE0JZ7rWZzypOYHyOgYfsY4ApOx5ceqIMYnV7+hwkPcSrmdRbPfntq 0u8dRpm35n78dZNnScSQw86CX8A80/foTnJOjSPBDzla2lnFrdGj99oapKECuaBs9eD7 koC5skKXXz9295vpOkWga27qCd3abTgfROY+r1R8QWdpGzGVsMyQdptJcvRc8aa/RgAz RrXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734694079; x=1735298879; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=h557sfpCD6pzztMbKFx7XhfpV8rTpdinmEFFBb6Jmvw=; b=Da0phDF2er/H8Vw0AcaiG6WWHeoNrtjFO18bQkxQuEjg40bdrzv5vb+pKDE4TB+BUm bJnCc4ERtJFDvMTEU+syCiYfUdLouikKWZ50RG7PEbVrVblCE7xPLBXu7gOCxB2YaAAJ 55zKOJuD26aNTsFGnhctXUgS4RQJEPNOC/aLvUw4Hhg3C9KwAXoyZCQO2Njl7G4PPqG1 VEfBW5CfjTdpF94odbi9ZcNuJMmuXfUuvAN/X3urEkEHOsTEPpg74dg0vHYGyrBHoF8C KENXB8clfqMIBWurbeMxOwUbJrh9yt7UlXCfnO7EiwkMJz0X3QQ4ny5YkO6XysWiiR6b Er+g== X-Forwarded-Encrypted: i=1; AJvYcCWXQ+E6hggXk729OM7ngRFnaYBc7fcJShYt0zjsjAnjiGS6cs1Om9a+w4rKaJ0xEQcEjO5uZON5fuJTrnHXYp8F@lists.infradead.org X-Gm-Message-State: AOJu0YzPcno6fdQqM+E72tvQSOKx32L9op/ImDQbKk7OeS+QiBxdLMjo LKy2Eav+ejtYbKoU2RP58yHhP0DWHA0nEaKxggFlHq7XpcSD/VVsHJ9pq98jAbE= X-Gm-Gg: ASbGncvxgxE+Alkrlh7nnqi2zXTabdzmTsVimsx0KS1KD1fx1oO0pFcoujYlKHj/NaN IRYbIlKMC7SN79PvLQb1p6fNxXkdo9qPMuwPvx0IpwLGctJMUD0I1kn0mYhIwRzEZr3db/yScW2 k/F6koyBS84eU7bdrpzdbPVkiT9yvsC4EarYU4cdglkWWcpXOxBVYbVQAWXgFUAngBN0tZFtNd3 wrW4q1sVE9Eif3LrClZI0/n4B8p2e3p2Qp9B4PcrqYGPPlJOdkCJO7XOsKbjtgICv3disfWOlqF UQ3CDljb/R9sSkVmjtl5k/fA937Wh8L1SRw7i8Ok X-Google-Smtp-Source: AGHT+IHjmMU/3zmiS3Zl2m5JwsXhRMD8ZylySaBxTKE5pjFRxO1xqf1fl9ZBq0GagyZwjvHpy9be8Q== X-Received: by 2002:a05:6402:2794:b0:5d3:d8bb:3c5c with SMTP id 4fb4d7f45d1cf-5d81ddf3bd5mr2035503a12.12.1734694079483; Fri, 20 Dec 2024 03:27:59 -0800 (PST) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d80701abd1sm1632634a12.76.2024.12.20.03.27.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2024 03:27:58 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Fri, 20 Dec 2024 11:27:25 +0000 Subject: [PATCH v2 2/3] arm64: dts: exynos: gs101-pixel: add generic gs101-based Pixel support MIME-Version: 1.0 Message-Id: <20241220-gs101-simplefb-v2-2-c10a8f9e490b@linaro.org> References: <20241220-gs101-simplefb-v2-0-c10a8f9e490b@linaro.org> In-Reply-To: <20241220-gs101-simplefb-v2-0-c10a8f9e490b@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Griffin , Tudor Ambarus , Alim Akhtar Cc: Will McVicker , kernel-team@android.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241220_032801_235436_B8A05B20 X-CRM114-Status: GOOD ( 19.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org In order to support Pixel 6 (Oriole), Pixel 6 Pro (Raven), and Pixel 6a (Bluejay) correctly, we have to be able to distinguish them properly as we add support for more features. For example, Raven has a larger display. There are other differences, like battery design capacity, etc. To facilitate this, we create a generic gs101-based Pixel DT that can work on any such gs101-based device. At the same time, we move the Oriole specific parts that we have at the moment (display) into an overlay, making it easy to add support for Raven and Bluejay in a similar way. Note1: Despite being an overlay, we instruct kbuild to create a merged gs101-oriole.dtb and a gs101-oriole.dtbo. This way existing scripts can keep working, but it also gives the option to just apply the overlay before boot (e.g. by the bootloader). Note2: I've changed the simple-framebuffer node to specify the memory via memory-region instead of reg, as that avoids unnecessary duplication (of the size), and it avoids having to specify #address-cells and #size-cells in the chosen node (and duplicating this in the DTSO), which is otherwise necessary to keep dt_binding_check happy and DT validation working in general. Signed-off-by: André Draszik --- Note: MAINTAINERS doesn't need updating, it covers this whole directory --- arch/arm64/boot/dts/exynos/google/Makefile | 6 ++-- .../arm64/boot/dts/exynos/google/gs101-oriole.dtso | 33 ++++++++++++++++++++++ .../{gs101-oriole.dts => gs101-pixel-generic.dts} | 24 +++++++--------- 3 files changed, 47 insertions(+), 16 deletions(-) diff --git a/arch/arm64/boot/dts/exynos/google/Makefile b/arch/arm64/boot/dts/exynos/google/Makefile index 0a6d5e1fe4ee..6e6b5319212a 100644 --- a/arch/arm64/boot/dts/exynos/google/Makefile +++ b/arch/arm64/boot/dts/exynos/google/Makefile @@ -1,4 +1,6 @@ # SPDX-License-Identifier: GPL-2.0 -dtb-$(CONFIG_ARCH_EXYNOS) += \ - gs101-oriole.dtb \ +dtb-$(CONFIG_ARCH_EXYNOS) += gs101-pixel-generic.dtb + +gs101-oriole-dtbs := gs101-pixel-generic.dtb gs101-oriole.dtbo +dtb-$(CONFIG_ARCH_EXYNOS) += gs101-oriole.dtb diff --git a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dtso b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dtso new file mode 100644 index 000000000000..43572039cd07 --- /dev/null +++ b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dtso @@ -0,0 +1,33 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Oriole Device Tree + * + * Copyright 2021-2023 Google LLC + * Copyright 2023-2024 Linaro Ltd + */ + +/dts-v1/; +/plugin/; + +&{/} { + model = "Oriole"; + compatible = "google,gs101-oriole", "google,gs101-pixel", "google,gs101"; + + reserved-memory { + #address-cells = <2>; + #size-cells = <1>; + + splash@fac00000 { + reg = <0x0 0xfac00000 (1080 * 2400 * 4)>; + status = "okay"; + }; + }; +}; + +&framebuffer0 { + width = <1080>; + height = <2400>; + stride = <(1080 * 4)>; + format = "a8r8g8b8"; + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts b/arch/arm64/boot/dts/exynos/google/gs101-pixel-generic.dts similarity index 93% rename from arch/arm64/boot/dts/exynos/google/gs101-oriole.dts rename to arch/arm64/boot/dts/exynos/google/gs101-pixel-generic.dts index 4e1625e3fbb4..48dc37afcb86 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts +++ b/arch/arm64/boot/dts/exynos/google/gs101-pixel-generic.dts @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Oriole Device Tree + * generic gs101-based Pixel Device Tree * * Copyright 2021-2023 Google LLC * Copyright 2023 Linaro Ltd - @@ -15,30 +15,24 @@ #include "gs101.dtsi" / { - model = "Oriole"; - compatible = "google,gs101-oriole", "google,gs101"; + model = "GS101-based Pixel or derivative"; + compatible = "google,gs101-pixel", "google,gs101"; aliases { serial0 = &serial_0; }; chosen { - #address-cells = <2>; - #size-cells = <1>; - ranges; - /* Bootloader expects bootargs specified otherwise it crashes */ bootargs = ""; stdout-path = &serial_0; /* Use display framebuffer as setup by bootloader */ - framebuffer0: framebuffer@fac00000 { + framebuffer0: framebuffer-0 { compatible = "simple-framebuffer"; - reg = <0x0 0xfac00000 (1080 * 2400 * 4)>; - width = <1080>; - height = <2400>; - stride = <(1080 * 4)>; - format = "a8r8g8b8"; + memory-region = <&cont_splash_mem>; + /* format properties to be added by board overlay */ + status = "disabled"; }; }; @@ -86,8 +80,10 @@ ufs_0_fixed_vcc_reg: regulator-1 { reserved-memory { cont_splash_mem: splash@fac00000 { - reg = <0x0 0xfac00000 (1080 * 2400 * 4)>; + /* size to be updated by board overlay */ + reg = <0x0 0xfac00000 0x0>; no-map; + status = "disabled"; }; }; }; From patchwork Fri Dec 20 11:27:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Draszik?= X-Patchwork-Id: 13916653 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B88D1E77188 for ; Fri, 20 Dec 2024 11:33:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=vhMGmKlGGOtZ2SvpqF+i7oaaEFRcqd8HwZsDBdF9tV0=; b=1oQ87yH5wTNsSlhsAhbJorBX0y /aZQMudLCso8hF5b8vRTZLS4euZMspid54zd3/tFKTMutDcxXbBw1QUjc4r5de7wQlawdJj9KEAGb rjlS1SPK+qeH1DVjiKH3R/iTimP5nVJCU1ah23pzm0DQTVS1B2A5jnP7HX4eiNSqiEdcMIPjZ8jNN AwGbX9pBVyrMkI+1v9J3CP6UDjB7lV4tz2ofpPagFPouBfnPY+/6v6/IkEtusB9W95W83UGRjCPmv mIs9d8y0oFZq4Rmxw/yDJgyeqycDDRIpbGQvDW+Nd+DYO0trFexhwhQJWyC42xsc2hotlAKSxi7V0 W0aB2rJA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tObFf-00000004mlF-0oG5; Fri, 20 Dec 2024 11:33:03 +0000 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tObAn-00000004lgJ-27uw for linux-arm-kernel@lists.infradead.org; Fri, 20 Dec 2024 11:28:02 +0000 Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5d0d32cd31aso2494711a12.0 for ; Fri, 20 Dec 2024 03:28:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734694080; x=1735298880; darn=lists.infradead.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=vhMGmKlGGOtZ2SvpqF+i7oaaEFRcqd8HwZsDBdF9tV0=; b=E7d2nFMesIr2tOIWMqEjRFONmLJ85WpPcV3zX38MCPBM9Hf3s21Lgrkh3X4ZFK7eZK Hu7jKaV4YwpXpc25F36CfZ1acOikhgu/GVyaF3ZF+VPvijBAENPORB8OLZy8bvCCTgYY J7tzRQJU5MXbFpOj/m2cJfG6dPiMYV6no9L6xN8FJmwr3QBVsf57cOCA8iFBHihLr1RK yppbuXXzJJoEEgbGhFPpqb8bdAWl0UGsu0+NYv3yWBjNehaCu9TGVFfULcbOEJuyBBt+ 2P5S8j9ghYMfZYCoAgV/4sw/91s2cVJgIiiKLkN+8ua1l9XyJCjERuQSwmfO+eOR/WjN PjnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734694080; x=1735298880; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vhMGmKlGGOtZ2SvpqF+i7oaaEFRcqd8HwZsDBdF9tV0=; b=Yaj2nCfBxfDd4v7BAlueP40t2ejyoNPviq3onL2bm9douknyFLwnXKEEVHzyaPN186 RWmDZ1SoRsloo+5u6ZYTb8Ly78Dz+jDLFUtoIL4diN6mWSXDQ6onAF7/0mNx3WHzXRU6 u4uIjKrsY9MBUFi3NHPklHZgHZb6iQJiKbSQ4uMGlZot1qiHDS79zST1r/KlSmL8smL9 5+Tbdh+cFW3h1n+kmDo0WBPye7pu3zXnJvKqUAmGRdCeiT4XLAYBU5OEUnn2ZJlBNk6S MklaQy7V8gXycw0RyjHqWThhAq6VNzdurViyZquP6HT3NrRJS7PTLZxofVy+ncUpqiAU vtgA== X-Forwarded-Encrypted: i=1; AJvYcCWPip4SIrjcvi+Pl+G9tHHY/1g4g5hOus59fLyTTbtjyPrb/7Fi+CNHbhF636Shq1ytakar7desIhwnf7VC0+/y@lists.infradead.org X-Gm-Message-State: AOJu0Yy5QNGUulfS5G/lMvf1pvI6ggZPMpIPG1Y/HsqQU9OMMgT5u6z0 2bwEh1jLezokAElRvGvlV6DAHJzT5ME4CYGs7tm+XmqJvSzZFCkoLjM22bFcWG0= X-Gm-Gg: ASbGncsQY2z9MCSfdYKs9KSee6Dbq84rBNiqwuJXRG4zvCjhBhQjvVJWSqMpssfRH4d 9wz8njJ2df0QqheP6xBWiwvvZKGQzxVNP5hOiiKb39AWR4/oWE3RMEzVAoiqtqz3oFqmpDvi98o nKZV8CeqGT5zk1DDDMQkbwJv03e1kAH//B/OA8i1/77ifgztRW6UUyQ8IPnXemkUQzSfB0ZZEc/ 6aUdxOLwTTpJK172fwga/rwSFzOx2qCrvIUVNDWPnJPlpPrAPopzPZbiOyV40jImsLD5dprEuJD m1WWSGsvsPm/tXdL70lSvpQZB4h90Ijs9bqThSNo X-Google-Smtp-Source: AGHT+IFU2H+Pw1Dmh9hoL+lth2FhsMr8S0vXuAclD0J3+yf3rw+Dc8UEEShqb5npXBaErUn+eaUhdA== X-Received: by 2002:a05:6402:3206:b0:5d1:2377:5af3 with SMTP id 4fb4d7f45d1cf-5d81dd83b23mr5556412a12.5.1734694080230; Fri, 20 Dec 2024 03:28:00 -0800 (PST) Received: from puffmais.c.googlers.com (64.227.90.34.bc.googleusercontent.com. [34.90.227.64]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d80701abd1sm1632634a12.76.2024.12.20.03.27.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2024 03:27:59 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Fri, 20 Dec 2024 11:27:26 +0000 Subject: [PATCH v2 3/3] arm64: dts: exynos: gs101-raven: add new board file MIME-Version: 1.0 Message-Id: <20241220-gs101-simplefb-v2-3-c10a8f9e490b@linaro.org> References: <20241220-gs101-simplefb-v2-0-c10a8f9e490b@linaro.org> In-Reply-To: <20241220-gs101-simplefb-v2-0-c10a8f9e490b@linaro.org> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Peter Griffin , Tudor Ambarus , Alim Akhtar Cc: Will McVicker , kernel-team@android.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= X-Mailer: b4 0.13.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241220_032801_588086_52A4162F X-CRM114-Status: GOOD ( 13.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Raven is Google's code name for Pixel 6 Pro. Similar to Pixel 6 (Oriole), this is also based around its Tensor gs101 SoC. For now, the relevant difference here is the display resolution: 1440 x 3120 instead of 1080 x 2400. Create a new board file to reflect this difference. Signed-off-by: André Draszik --- Note: MAINTAINERS doesn't need updating, it covers this whole directory --- arch/arm64/boot/dts/exynos/google/Makefile | 3 ++ arch/arm64/boot/dts/exynos/google/gs101-raven.dtso | 33 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/Makefile b/arch/arm64/boot/dts/exynos/google/Makefile index 6e6b5319212a..bc6d600fda84 100644 --- a/arch/arm64/boot/dts/exynos/google/Makefile +++ b/arch/arm64/boot/dts/exynos/google/Makefile @@ -4,3 +4,6 @@ dtb-$(CONFIG_ARCH_EXYNOS) += gs101-pixel-generic.dtb gs101-oriole-dtbs := gs101-pixel-generic.dtb gs101-oriole.dtbo dtb-$(CONFIG_ARCH_EXYNOS) += gs101-oriole.dtb + +gs101-raven-dtbs := gs101-pixel-generic.dtb gs101-raven.dtbo +dtb-$(CONFIG_ARCH_EXYNOS) += gs101-raven.dtb diff --git a/arch/arm64/boot/dts/exynos/google/gs101-raven.dtso b/arch/arm64/boot/dts/exynos/google/gs101-raven.dtso new file mode 100644 index 000000000000..577f52a4fdad --- /dev/null +++ b/arch/arm64/boot/dts/exynos/google/gs101-raven.dtso @@ -0,0 +1,33 @@ +// SPDX-License-Identifier: GPL-2.0-only +/* + * Raven Device Tree + * + * Copyright 2021-2023 Google LLC + * Copyright 2023-2024 Linaro Ltd + */ + +/dts-v1/; +/plugin/; + +&{/} { + model = "Raven"; + compatible = "google,gs101-raven", "google,gs101-pixel", "google,gs101"; + + reserved-memory { + #address-cells = <2>; + #size-cells = <1>; + + splash@fac00000 { + reg = <0x0 0xfac00000 (1440 * 3120 * 4)>; + status = "okay"; + }; + }; +}; + +&framebuffer0 { + width = <1440>; + height = <3120>; + stride = <(1440 * 4)>; + format = "a8r8g8b8"; + status = "okay"; +};