From patchwork Wed Aug 7 08:28:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Ivanov X-Patchwork-Id: 13755973 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 3C9BAC3DA7F for ; Wed, 7 Aug 2024 08:29:46 +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:Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=xHQXGFpfBnq0ynH+7iAXymSNRta5OaZ+nbnM9m911LU=; b=tgzm6U7iV6TVMsJWqSQR5+drjh sg31yZtv3RFCMMTNR7qKVkq7JNv+ieQFjkztiKmxrHZYIua/6lGFJUDpmRrVItufPhj3IXXwkBuC8 IG7OsReT1mU76kopVxsZA5r+EqksInSawRRwxFgJi+irG8A3l1Umal8htCYbemyZbU26xXLEgHnqW ylwqvml2+M/gJOU73MW0o5qHibM12UePPIt2KhP3tH0dxHvigij7AYuCIzjISw3phGahgJeqch/as SFHQBxrSadAvcvwrlkMnUj8O0HLYm3O1lD32FWgxBETXk88LxzF1QmvhvG9rTFuVLee+ELyZAybAE W2CTuXBA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbc30-00000004Mvh-1SHN; Wed, 07 Aug 2024 08:29:30 +0000 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbc2M-00000004McJ-2yZ6 for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2024 08:28:52 +0000 Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2ef7fef3ccfso16219181fa.3 for ; Wed, 07 Aug 2024 01:28:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723019328; x=1723624128; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xHQXGFpfBnq0ynH+7iAXymSNRta5OaZ+nbnM9m911LU=; b=gOZf8vGnkgVUiGQau7mr47BBbcC49C6Fa7gqo9bxvaiHQx6S0yDqJpMjRraRqEZK3E J7wmlihJXiXzDba4bx73N7FOsAG9yKmGFztmvnu62SzvfJp3AAn2qVIC2C8Im+QzlKqb TINBPy5cY2YJK2e7WHXpOQUeU9RgNb1/Q4kh642mwayoI2lOJJga5nPuxmIZ9RlD2c9M Du3XOgP93Qb2/tCb8P1naW4H35vXZZ3S+ix8+D1SlixrkJBAIpkd01EwXug2jBXcmpyf vvQodxr89G0b+mZEr1cpj3MNYmF+n29esMBnsTwjWgFXuLobw0KNlq8w+spR6AcFMDPI stbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723019328; x=1723624128; 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=xHQXGFpfBnq0ynH+7iAXymSNRta5OaZ+nbnM9m911LU=; b=C/BfBX5Iis+RgKe0+UfWLKJq13+KCyTr24PNho7WfkvXLarAOuIHe6weaDAO5O9l/6 GWzNbSGa7w3EY93o07WjzeQEhcqqJoq2lQ26uH/G6M5ogNXHyWVqARlXN+kVZSrdcDu4 b9YJZdsMaXYd89dGFeHyS7ty3HVtHseAHzPJA2WVFvtKn2irkEhrz6jIm91/obWBbOfN se3F26ru3BaAPEfuePOdvsMFFDSZv9L+wPY8IJbgaS4kUS43DJZw4jwmJQZMoK2JsESW RhLkt1LFaUi7nOWvJvPxo6H2RLgj35NDSJlG4h0caghBp5uEQh700XyHIFJv+Cz8cDWM EuiQ== X-Forwarded-Encrypted: i=1; AJvYcCU1X2hatyU2DCLdd+hBkKhTI792QatsDhOj3TuWTKtL2MXX1hwHGWDsuAD5pnX8LcC8wp4kBA3DIkYbnT4Bvwv9iXui1YDjwsHOhgidlzMmzuzX9/I= X-Gm-Message-State: AOJu0YxgBkh5PuRHXMPCFecrTTg8obPLCbUy7bAZSyuhxnqhQU7mmTpF s+73adQzbJvq3+QXt4p0Eq97Kn4TB7eNuj6b+8QJBozY7S2yiMz8 X-Google-Smtp-Source: AGHT+IEK5dSBqWc3i7uzRm9tZ26iz9CxU/757qeiU79fIRrJyEIVR+ffQg9fJVHOwWedCLSRXyXq4Q== X-Received: by 2002:a2e:8703:0:b0:2ec:1810:e50a with SMTP id 38308e7fff4ca-2f15aafdc9fmr112987951fa.32.1723019327950; Wed, 07 Aug 2024 01:28:47 -0700 (PDT) Received: from ivaylo-desktop.. (91-139-201-119.stz.ddns.bulsat.com. [91.139.201.119]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4290579fb34sm18168505e9.14.2024.08.07.01.28.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 01:28:47 -0700 (PDT) From: ivo.ivanov.ivanov1@gmail.com To: Krzysztof Kozlowski , Conor Dooley , Alim Akhtar , Sylwester Nawrocki , Linus Walleij , Rob Herring Cc: linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 00/10] Add minimal Exynos8895 SoC and SM-G950F support Date: Wed, 7 Aug 2024 11:28:32 +0300 Message-Id: <20240807082843.352937-1-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240807_012850_782603_E8A36BEC X-CRM114-Status: GOOD ( 17.06 ) 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 From: Ivaylo Ivanov Hi folks, This series adds initial SoC support for the Exynos 8895 SoC and also initial board support for Samsung Galaxy S8 phone (SM-G950F), codenamed dreamlte. The Exynos 8895 SoC is also used in S8 Plus (dream2lte), Note 8 (greatlte) and Meizu 15 Plus (m1891). Currently DT is added for the Exynos 8895 SoC and dreamlte, but it should be really easy to adapt for the other devices with the same SoC. The support added in this series consists of: * cpus * pinctrl * gpio * simple-framebuffer * pstore This is enough to reach a minimal initramfs shell using an upstream kernel. More platform support will be added in the future. The preferred way to boot this device is by using a small shim bl called uniLoader [1], which packages the mainline kernel and DT and jumps to the kernel. This is done in order to work around some issues caused by the stock, and non-replacable Samsung S-Boot bootloader. For example, S-Boot leaves the decon trigger control unset, which causes the framebuffer to not refresh. [1] https://github.com/ivoszbg/uniLoader Kind regards, Ivaylo. Ivaylo Ivanov (10): dt-bindings: arm: cpus: Add Samsung Mongoose M2 dt-bindings: hwinfo: samsung,exynos-chipid: add exynos8895 compatible soc: samsung: exynos-chipid: add exynos8895 SoC support dt-bindings: pinctrl: samsung: Add compatible for Exynos8895 SoC pinctrl: samsung: Add exynos8895 SoC pinctrl configuration dt-bindings: pinctrl: samsung: add exynos8895-wakeup-eint compatible dt-bindings: soc: samsung: exynos-pmu: Add exynos8895 compatible arm64: dts: exynos: Add initial support for exynos8895 SoC dt-bindings: arm: samsung: Document dreamlte board binding arm64: dts: exynos: Add initial support for Samsung Galaxy S8 .../devicetree/bindings/arm/cpus.yaml | 1 + .../bindings/arm/samsung/samsung-boards.yaml | 6 + .../hwinfo/samsung,exynos-chipid.yaml | 1 + .../samsung,pinctrl-wakeup-interrupt.yaml | 1 + .../bindings/pinctrl/samsung,pinctrl.yaml | 1 + .../bindings/soc/samsung/exynos-pmu.yaml | 1 + arch/arm64/boot/dts/exynos/Makefile | 1 + .../boot/dts/exynos/exynos8895-dreamlte.dts | 126 ++ .../boot/dts/exynos/exynos8895-pinctrl.dtsi | 1378 +++++++++++++++++ arch/arm64/boot/dts/exynos/exynos8895.dtsi | 253 +++ .../pinctrl/samsung/pinctrl-exynos-arm64.c | 137 ++ drivers/pinctrl/samsung/pinctrl-exynos.h | 10 + drivers/pinctrl/samsung/pinctrl-samsung.c | 2 + drivers/pinctrl/samsung/pinctrl-samsung.h | 1 + drivers/soc/samsung/exynos-chipid.c | 1 + 15 files changed, 1920 insertions(+) create mode 100644 arch/arm64/boot/dts/exynos/exynos8895-dreamlte.dts create mode 100644 arch/arm64/boot/dts/exynos/exynos8895-pinctrl.dtsi create mode 100644 arch/arm64/boot/dts/exynos/exynos8895.dtsi