From patchwork Wed Aug 7 09:08:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Ivanov X-Patchwork-Id: 13756037 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 61DB4C3DA7F for ; Wed, 7 Aug 2024 09:10:02 +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=NGCJ0rLgyZcGwsYVM6NICsTItaF4blq1lnqTK5KCEU4=; b=EuY3pP1Hl6bh0fEqUGw4z0w04g MK3Dbyh13UoaD79ZjqP/vrLfcobmw/z7DehOKEuL1V7WXdkGgbw/mr7vNxBJZFP+k0ldYMVPD8xVq tDUNkoN+C7ET1TbQGRpV/gofsESfQRrONeTYbU1NjwuHz88o0Kz8fFOyznXDiFTkU2HDs2bTsXSdB tylwAo99fvtR7n0+h5yCTyxr+eH6ptftJjBszwpxtDwt4+H9ly1meNJdYtB8RlFjq1Yiwy+MycgGR Sn6ieDtkE6TIP5dcZDIrFGUem1EGcyVDg6o3aiX1+7RCPVtwNkeHR6qgphOQ0xG31HahjW/ePdEiR o0Ia6hTg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbcfz-00000004TYK-0kJg; Wed, 07 Aug 2024 09:09:47 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sbcfR-00000004TOY-1OmL for linux-arm-kernel@lists.infradead.org; Wed, 07 Aug 2024 09:09:15 +0000 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-428119da952so10490025e9.0 for ; Wed, 07 Aug 2024 02:09:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723021751; x=1723626551; 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=NGCJ0rLgyZcGwsYVM6NICsTItaF4blq1lnqTK5KCEU4=; b=nG78EgyFfSXOGTCCL1to+K8Rim3ZRSoE5H2iHViVyItaaZoYNj/0WGKaGm17d124GH YxWVqZHhi2CpLXG/KvhuMxXAd+SnNg9sNklbctLY6NpXgRlbWd/mPTmi0A+qyy5sxpYM lBMmfsCOCfoyHm46CxHADNeY+JoL3Ueojjo41+ABJnPb0extFrxRY96uFTaSACP1vb8x POkHEBzTC3F12vUBBf7ojsoTRTem5HD/JZH+1rnkZFtdLogfokfGNIhdYHas2figfsmZ 3QM4S3aSKf/AzPOPMgfEF1+N25FNp5e5hf8npjARs1v2Io8Gpe17gvqdmVxw+Z3/4MYu n/tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723021751; x=1723626551; 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=NGCJ0rLgyZcGwsYVM6NICsTItaF4blq1lnqTK5KCEU4=; b=MqUaTU5pywHhzHpBy0ihZ+hiHHJwvqbj5o2Psudp2Z8EZPbcq3NZHwc/Y/4D4dbolG 3n/lRqTWqHwmBo2PcOqBOsq49J3v17aIqYVz+ExQ+PnrrLadz6iTC6S/uFL2SewLCAHm ioWz6cmr7+aEXknh/jQ5LOH151maUez76Yp1D+VieL14FHJiYmdvLDI4kMVDSGZNx3Yl HyGvR7lEUqmUe1efO1HPxvwgQ9Gv5aOzOE+v1DlLBmsWlS6xawIezhsbWFDZ6W1knFQG rVFmEC/r0y3Crs94SlSiSnNQytR3ZfATDMuASx8x/TNxzqDqJ4A5kzFYm5RP/Xp0vxrh Iqvg== X-Forwarded-Encrypted: i=1; AJvYcCXuSFlDoVhFGX/tGe7cHdM6uQn12kFPeArUnjXMKgF1vs1D3CQJCgpcbfLkF/W6T+bgL9Ahh1QZkmj02Dp73UNw0jmv2JdcbRFSCvQE7sKDrAwOfbM= X-Gm-Message-State: AOJu0YyVNnuikiSjvyHqJJXpc/UNkEHpRQZDx6HmK5FnWbdMRE735sWa Jsk3fKCfIxd9Sp/RcGGk1dGsVrdkUNU4y4OC91VfQPsH3cQh31W2 X-Google-Smtp-Source: AGHT+IEWLvu9nmdlJKDwe5++PzaE3LD74m8FwOOly7td2JyuphWfWMAWrP9J446nE5JRNDnkLFhGDQ== X-Received: by 2002:a05:600c:350a:b0:428:1eff:78ec with SMTP id 5b1f17b1804b1-428e6b2f2c0mr139636935e9.18.1723021751230; Wed, 07 Aug 2024 02:09:11 -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-42905801d37sm19860455e9.31.2024.08.07.02.09.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Aug 2024 02:09:10 -0700 (PDT) From: Ivaylo Ivanov 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 v2 00/10] Add minimal Exynos8895 SoC and SM-G950F support Date: Wed, 7 Aug 2024 12:08:48 +0300 Message-Id: <20240807090858.356366-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_020913_397128_C03F1628 X-CRM114-Status: GOOD ( 18.96 ) 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 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. When sending out the V1 series it turned out that I had sendemail.from enabled for some reason. I'm really sorry for the inconvenience caused by that. 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 Changes in v2: - No patch changes were made, only fixed the issues with my git send-email 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