From patchwork Mon Sep 9 11:00:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Ivanov X-Patchwork-Id: 13796645 Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (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 D31A515EFA1; Mon, 9 Sep 2024 11:00:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879654; cv=none; b=DbqiDszDmUbDZOXzOmzgLx/sgihef617MGSt+flXhvw/j7rFlQ/22t3AaltOt2A6KDQVA3KTACRaNcP7VThytN5/uEKx8OjoHpYAzOyv31UHwWigRDeJIf1BbT3TVGQEgZeGjDh6jCFsBAhP3fSyoOZ7+6ULjC8A2k2yRaWGy7Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879654; c=relaxed/simple; bh=iuWJjTI0mje2fCoCmmIcE9TUhsfeqtSk83XOw/Ho0+Y=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=rMPF5HpHnKOWVfSX0B+LOALCq2ceQ/OzdRJrR6vn1xEhcp2H/buefH1cNhxabs/5lWHXrWnVf4+jJwz3KR0EprfAsjdSwJ68bZwifNvn5fK2BhnpCUVe243J7DDmDPbPL2918WRaCH2zV9MkXMk16URW68f6hXy6ZH2MywwO2uo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=eWX0Fs5l; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="eWX0Fs5l" Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-5365b71a6bdso3333230e87.2; Mon, 09 Sep 2024 04:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725879651; x=1726484451; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=81DH+LPBNoXfRGAcLzh8y+7rUBjIkmKd6TgqpUqqzZs=; b=eWX0Fs5lSbU1coVTjGrUPNFepVEEL84C22Q4rYr0WNvo0OAftNys/T5BgiO8GlgQb4 znaSC6w/XsA86Sf9BUD3Xyu8NUw6WLsZM76o+qoLam33vosO6wFPYJ1JmW6Q9rDC2BxQ Qkud70igqJ4i9imtYpqYD5NgNAEIVqVmv8DrElGNJU3ISmIgi17z0DTlmGmtScEW+Brf /zdI3aUBbErywXCDoqq3r8ORFjFufmI8Ha3w/zVVvIgf2U+EMycCA9mQNFBqf1aiYqtk gF9Rcxlvlj6XOeFZyW8E8Cip2WfSw1uJJ+UYn1G4UcfLz/u3DcObzldGAeEjg66KPMwt 7FKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725879651; x=1726484451; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=81DH+LPBNoXfRGAcLzh8y+7rUBjIkmKd6TgqpUqqzZs=; b=YcDMIJWOyTEaHTSQUmXpprDPp2261OZSU6I1Ev0w2+rjlVVIq3mxcQf11kp+u1P/xm 7Ojhu8/qhfehzXM29DYYwKVsGCIk6Qio+eTV/htKOdqo3ndRp1I07kT4yXRzcBS6JrRY q5Y4wJVQ8cJ17rTrf3gdGEvIOh351MzNbg/Yw0GVAMpSeR2C/dtrqVtZ+KC0V9rB9Fsx cIcXRBB4glr66uDvR37kMnGCdq7MYwNmY/MxipomLJHbq0YamzwV0p1+kiQP7QqW1Aks 8Aw7TezNfrpI+/IDc9Qq3hBgvYU/Ndk0MfxIjF2Cp3pcI7AIBxDCxo8zeU3hc8zPMvZB Y5bw== X-Forwarded-Encrypted: i=1; AJvYcCUTJWRAbQHKtFbOEhFvx1KKQWqwPc6fJ5lZSWYsj6ePQ+ou6svaiBzu2zw2Ogcz5tsQeozht6f/oVGPgPcn@vger.kernel.org, AJvYcCV31Nu3Y1/Iwk2sYUoViLrqIUQLWLckL4zkeuapnH581ZLB8b4HC/6xZfWx8SeGIFHuXXlfWk1Sg86N@vger.kernel.org, AJvYcCXhZr6u0wV2Z9WbMYR1+f/Q/FrvTi6NyBNeg3MxXU3jKbv8slNWZiKT9Af8Iqb+p9Fkm5iBspX5FjPN6Q==@vger.kernel.org X-Gm-Message-State: AOJu0Yz3Mo3rkzvj7mwHzCoKA3Ufr2a60tHeshyB4LC/6avt2QPqvmbV EvO4ev4C/DyrbvLfCPR0QztgpJCAlWh9CbDWGp7WQXRKeSFXCFJs X-Google-Smtp-Source: AGHT+IF/ur0h+0OYW2HRvJM5QYYZBNcC+3Jv64inyuImOpZJ6snrsh9hMvsZil8CYs7SiaRwUFZ5Qw== X-Received: by 2002:a05:6512:10cf:b0:52e:a7a6:ed7f with SMTP id 2adb3069b0e04-5365881947cmr5941140e87.60.1725879650649; Mon, 09 Sep 2024 04:00:50 -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 a640c23a62f3a-a8d25d5dc74sm322649666b.208.2024.09.09.04.00.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:00:49 -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 v4 01/10] dt-bindings: arm: cpus: Add Samsung Mongoose M2 Date: Mon, 9 Sep 2024 14:00:08 +0300 Message-Id: <20240909110017.419960-2-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> References: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add a compatible for the Samsung Mongoose M2, found in exynos8895. Signed-off-by: Ivaylo Ivanov Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/arm/cpus.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentation/devicetree/bindings/arm/cpus.yaml index f308ff6c3..e41a8aec6 100644 --- a/Documentation/devicetree/bindings/arm/cpus.yaml +++ b/Documentation/devicetree/bindings/arm/cpus.yaml @@ -206,6 +206,7 @@ properties: - qcom,kryo780 - qcom,oryon - qcom,scorpion + - samsung,mongoose-m2 enable-method: $ref: /schemas/types.yaml#/definitions/string From patchwork Mon Sep 9 11:00:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Ivanov X-Patchwork-Id: 13796646 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.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 299DB1B5802; Mon, 9 Sep 2024 11:00:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879655; cv=none; b=jIyKCJeLfVGzwG2m5V2XolDQPd3+TwVyJr6iQEmk4/S9/CoMZh4ZvW/UeVRduzjbACTN42d2xFR2y3s48igEW8mY30IyS9vUxRp2LidB9cKcP3sRumyKtV3D5BUBqn5rrSJ6Wxrr/L4tzyAaF5Hcmz6Ce3inX1r84P9Q8vRlSo0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879655; c=relaxed/simple; bh=yg4lWFLsux2GkZkTBE5nid/8euszrOUu40JI4Fymam4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=o9JTNkLB5opoKSlLaHTYUW+/qdPN5mkDjRywIiGQFSiX1oEwXBAd+pKbfmOrlX4O37K4CO2LRKnkb8qhTQIbk8wgwiM2n/WMDX/zjZ7pUCrXOHZm8pogudpNemVz39lMsjJCElLyycO+C0eQD8bz8eqELxg4cFvJux7rI99oVBo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Zot/KHiU; arc=none smtp.client-ip=209.85.208.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Zot/KHiU" Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-5c3d209db94so4499107a12.3; Mon, 09 Sep 2024 04:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725879652; x=1726484452; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=gFTIk59DfHte/4Im9/5rXIn7HhETWJ2FxxMWTmfCArg=; b=Zot/KHiUaYuhc3Gj6B3iCtYbA8apfnO9Oy/BVwTFsE5gONIzo6WbArEkU5FHJBGaP0 DQMkteFzEfLrC4zQZfQcoSvx2/bskYpjXmWOQFjtw84HwXBr4aZASduUJRFbwhCdIU4P 8S1Q0iXGu+pTBN3iYUMFH5BzJ03+Wp4fXdwW7RP9+G1z41gMCrnNmKruSY7N9XOr0YC3 O7kJBz73o5qVNyByZAEL9eKtKIMp6HoPH8tk+c5Pc4tW4I5Vw1QbKSxc60DSncX6qS7p oHXdX1IyX+hMt/1pPB+mleUpB8CWdJAXdCYmvujN6Pdko8aNTA7VR4LgcE4vDacgfWzU lrMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725879652; x=1726484452; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gFTIk59DfHte/4Im9/5rXIn7HhETWJ2FxxMWTmfCArg=; b=FtxUoTuCWy9Dh1Y2rtkMktnEsh6D/SpWwdlg308N4m6Afmls5UK6OEGbdEm3qF9Aw9 e6wB+IBGdnO+kfkQCQAFomFGFD/dPX5nLKKLzXxUcbM9QX6+oAENX48bTgyHdEAj++Ax MvU3NLQKYGMfsXnYlfqmr0zn1674isMdTTtDwg3wQU1sB9Rz29dI3N5vzSc5epIY9SnR L3P4TnaIB7xieHFHObM1Kq15D5S3/RAK/CvtFCfrTwBN1DzsQ6cK9LANLpHdbcwN0mV8 DLYUQoKMKh6IzejJ3kCScAUg5ysDRfqI5Z76FWwArjysJhsG867r2lof/d+3zpPg1Pjo O+3Q== X-Forwarded-Encrypted: i=1; AJvYcCULOapzUmYxPXnf6ZToSeLOuIZytwDFoRR10s4YsBCqRzrS0ZAF7UflFpt/1RhWlzaxQhUwRnH/nulp@vger.kernel.org, AJvYcCUMmLjjGZhhDi5NTLQA0BJKvbOyoo2tui+HY+CmL0kGMXNKcJb8elOwnzI59Repl6Fc/hUPwOsTGNNvRLIr@vger.kernel.org, AJvYcCW46zZqM8VE9kTYA19klVjHeCBVtBtdpaQiGy5OnfUMaNFPQG2F5/vX8mO9koI83XGGzvOz9AIJ+s9fwA==@vger.kernel.org X-Gm-Message-State: AOJu0YxNHnAsFA7Ny8ne+gzGtmIys9+fQoNsEAObizEWc98xnVHYN6OL Xuqtg6+JPjPC0ewRaaNxR4WChZEIZ34USmPxdVXVM3Tl2Ebm+ytwCWpQTA== X-Google-Smtp-Source: AGHT+IEAoBSYeVLbpA6v3opaZmdIOZTV2watwI7JTAWvctEspc46xKwiTz4rhpKgmn800ilMSSqSlA== X-Received: by 2002:a17:907:3e1f:b0:a86:79a2:ab12 with SMTP id a640c23a62f3a-a8d1c4d7748mr840434066b.38.1725879652027; Mon, 09 Sep 2024 04:00:52 -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 a640c23a62f3a-a8d25d5dc74sm322649666b.208.2024.09.09.04.00.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:00:51 -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 v4 02/10] dt-bindings: hwinfo: samsung,exynos-chipid: add exynos8895 compatible Date: Mon, 9 Sep 2024 14:00:09 +0300 Message-Id: <20240909110017.419960-3-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> References: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add "samsung,exynos8895-chipid" compatible string to binding document. Signed-off-by: Ivaylo Ivanov Acked-by: Rob Herring (Arm) --- .../devicetree/bindings/hwinfo/samsung,exynos-chipid.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/hwinfo/samsung,exynos-chipid.yaml b/Documentation/devicetree/bindings/hwinfo/samsung,exynos-chipid.yaml index 780ccb5ee..c50ee587d 100644 --- a/Documentation/devicetree/bindings/hwinfo/samsung,exynos-chipid.yaml +++ b/Documentation/devicetree/bindings/hwinfo/samsung,exynos-chipid.yaml @@ -23,6 +23,7 @@ properties: - items: - enum: - samsung,exynos7885-chipid + - samsung,exynos8895-chipid - samsung,exynosautov9-chipid - samsung,exynosautov920-chipid - const: samsung,exynos850-chipid From patchwork Mon Sep 9 11:00:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Ivanov X-Patchwork-Id: 13796647 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 841C81B5EAD; Mon, 9 Sep 2024 11:00:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879657; cv=none; b=KRcYHUIlkPcmwc/r6mPmdhMl3BbxmzpAOrIkSIvXID/Zms1Igkf7AKQJgdKYgJNR7y6apSD5gf/s3GmT+5UpesUMOyee9a4oGU/5Xd9RNiQP2Pf789vzQBftRrp8llRBCP6u7rF4LhUnBrIULb90KZHp7CNLIEkB2gsacfJQDWA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879657; c=relaxed/simple; bh=/Ruh32dQtV6C6tPWdAdXoTd28+iuhF5xcHCs657ajK8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=DY2BPAKVjZy79DrplGIgALxXtHDsHuuijvUjIr/fYkXhjFw2B97vWKAWi/LDRxfVdc156wbqPkxrOYFDhfzL6sd9EzdXRiuMTHVZntzMgD1LgWFJaGYXXiBoNDDPkOyTGalkOnUIbgz4+rlBnp45nzhsmZ3gZHToHtMRoSgyss8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Ef4tANVC; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ef4tANVC" Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5c241feb80dso10022332a12.0; Mon, 09 Sep 2024 04:00:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725879654; x=1726484454; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=mchOkTk5Az/RlZsBiRAPflqmETPo/14771bmRbvFbew=; b=Ef4tANVCCcFW6ZqgdVMXo0tQgFWdGGjeyhWhRf0B4/uSQzkQW1MGqTJGQRAnhzaHo4 hKePaS94D8yGvOLe7y33wJSci7XqJwdWw8aLGiIFHsctPIUNQZaIEnM1/RlKV9+P47Iu vMWWeY67pJfuzhjMiprzGLxJyLSWtZ6/1QNLFXiRmS3DnXAlZ+T0hI0f52pmKiwuKFfg KL9deV3tnWC0GqUyzgk0MPt8ZHqXdRVsq7irqoVPI+EOLpLpaBzZkH7MlOiAqG7TxXPr gr5iwlkU1j7V/7sZhHh6WW3M42FOpl1b0/Swthzb3MCmpPA3EYQnBG9gE3UIZLiaFt2u Drww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725879654; x=1726484454; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mchOkTk5Az/RlZsBiRAPflqmETPo/14771bmRbvFbew=; b=vfFHr9D4faqRBE8EXQHs38EBt62nhaBya1SFcAbCix2mbzpsBfU7nVy0Oqc1LLMfq1 /ebXFM5YSFRMYnkstsIMKNJLCA7F8iHqQe9/TFbjknESG4siYF/iWdQ/40LZgWFP3WeF L06yp8+DZHblblpGUkGHy3BqQ09d+kKIpfyayFWAbE59bdTvarfl1qH8GSHD7AAg4gQ1 8lvuv43MxUu2EN2FFVk189Ky0Z3S/Y2JzaOg3SdqGAQv2OukGbSR9WNj5oWruPLwd3xA +1rkZXXP8VkFHNytS+PWpxSPVD24LK5O9WsMFeHSG9ZzWSVA4Kl2Y9BassyfS1WYOYae 5APg== X-Forwarded-Encrypted: i=1; AJvYcCVY0tj0I4b/imK5nqItodE5pf5kHb80i6H68gxulm2VCReXtT2CpvrVsXmJjfaEyxSk0qNTtTpXv0ubP55O@vger.kernel.org, AJvYcCVenD9nwwdeWwi+hKPSJ0IOAmlkPRBeWPH5mdeVDFT3sDRWHnDFV0DgWA7ZKcrVK6XeSDcMqI7//dBh@vger.kernel.org, AJvYcCWNqeWbh7KHPxvRkoMGQPc37MDPI8SrF616Vb9CXv397imIEUoUjTt36ZYX6sJQxUZJOFTfYGU6W9FqMw==@vger.kernel.org X-Gm-Message-State: AOJu0YzYhmTPAgac7iKIGY8INpm7qCBgZt4FtGMq3MOl1LdYhCZMz6re LDv1RmS7f55yEWJ3lHr6NeyFD5Vwj3al9QgTa6tC9hEbBcDBtB4K X-Google-Smtp-Source: AGHT+IGOk/uy3VobagAV9wWMpeab+0vAPZ4INBsF5y2B+qEz/pBYjwGcKEX/0LTe32xymOWC1K27pA== X-Received: by 2002:a17:907:3f83:b0:a86:91a5:4d09 with SMTP id a640c23a62f3a-a8a863f2ea5mr1203162566b.26.1725879653640; Mon, 09 Sep 2024 04:00:53 -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 a640c23a62f3a-a8d25d5dc74sm322649666b.208.2024.09.09.04.00.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:00:53 -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 v4 03/10] soc: samsung: exynos-chipid: add exynos8895 SoC support Date: Mon, 9 Sep 2024 14:00:10 +0300 Message-Id: <20240909110017.419960-4-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> References: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add EXYNOS8895 information to soc_ids tables. This SoC product id is "0xE8895000". Acked-by: Rob Herring (Arm) Signed-off-by: Ivaylo Ivanov --- drivers/soc/samsung/exynos-chipid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/soc/samsung/exynos-chipid.c b/drivers/soc/samsung/exynos-chipid.c index b1118d377..9e00ac8de 100644 --- a/drivers/soc/samsung/exynos-chipid.c +++ b/drivers/soc/samsung/exynos-chipid.c @@ -58,6 +58,7 @@ static const struct exynos_soc_id { /* Compatible with: samsung,exynos850-chipid */ { "EXYNOS7885", 0xE7885000 }, { "EXYNOS850", 0xE3830000 }, + { "EXYNOS8895", 0xE8895000 }, { "EXYNOSAUTOV9", 0xAAA80000 }, { "EXYNOSAUTOV920", 0x0A920000 }, }; From patchwork Mon Sep 9 11:00:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Ivanov X-Patchwork-Id: 13796648 Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.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 2647B1B6535; Mon, 9 Sep 2024 11:00:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879658; cv=none; b=TMmgucMI38YVoZeU+U01uC/J/xs/TtmK8w3SrLlCummKTJPViLiiBWEmDo/oeB3nLjZelZT358oj50pXLi55f6K7j9e6kVeu0EaxWssO125EYs91xM7SCmu/P6BrVPhdTv/dYx7sY0svy1AZEHDRqSU4Le1+H1GCnO02iE1D6ZU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879658; c=relaxed/simple; bh=BACZp2t3koNpk0Kx5baIyUrgPL9GxILVFw3r67ukXfA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=P9nOsktfV9lJN6OngWCK5VTJ0UmAGX6tzMC9L7oFBatXK9uJFo2Ys5jCvtk5CJV64zV+ix74IpqlqJschtnH86U2y5uHWlIXcj3oRiQpecyUfQ219Z/twguvekLQsRPz3fI4bKJP9KNynCa5iC0/k/eqFEtJ3astARADLX+KiHU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=AAQbrmSw; arc=none smtp.client-ip=209.85.208.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AAQbrmSw" Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-5c26815e174so4286009a12.0; Mon, 09 Sep 2024 04:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725879655; x=1726484455; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=I+rRgxOmYLi2N4XWgCIbZjKsFXKXkm9CvD8Sxq31aYg=; b=AAQbrmSweLLe0A1w/vKiHVpZCs7C2mq6t9QCikPGXWXHYiC5XVqZzI1PlcrjCz6aXn AKCIXYs1tM4yCigXmI13/nH2Xai/erb6T8RbtxjgG4C58IDH7Y7+dRn8jmR5kNg/MI9o x9Zg6azqFI+QTD6daA9KKfrAADCmfnxAcNpEWIyXP9E0uXzkDmbnFhK98bz3nBNQcfA5 d8QtZejIqRI1P0YEVXuAfJoR7z878EbssM9NZYVZpxNs4JpGeIalwT9qCk5ro0l0WU2I DS2NdUbJYTnP8zP8mXxsk1FC6xxKGjUzmw+9xgfXByt0FHOv5Wu121PGw2H+cvdlX1ti MFNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725879655; x=1726484455; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=I+rRgxOmYLi2N4XWgCIbZjKsFXKXkm9CvD8Sxq31aYg=; b=rlxr8tn+FNvPWmA3rle79iKCaZWnpHn+BOwaY6CmZjJqY2U208HG3Io7B0qDyzV72E Kflk1Qnp5MpZStsq8s1Qm6FkRXtsdUyZOWJP9qP5K9xMvabBSO4fWAM1olQuAZp3fe6Z Ei48PNQTcdocYVPVSSLSCtypE3ui0v0AHOOp+r19P1f/QX2uyuwCRbVWD3RzKRW51VFf jsIN7K4PQIqakjc60lIaVINShWzHU5+QMIwKxk9LNB0bISA+EXg0ec5xyNuvFyS0Wka8 tzIUNFDDmzXqRP3qp5U6gCZPsWClon+IbSY3p8XSXHloe0TyjTm+yxrTtdM1xkz9kN7p 5A+w== X-Forwarded-Encrypted: i=1; AJvYcCVD119DsbMYBPoJhDZ2JKgsCpvCd4KzWcxXhVkEqaUj8BqyEh7TK+tg80r124vq5ku/JVgnvlWs0Vla7w==@vger.kernel.org, AJvYcCWMIa6MmaC0NuVpApFhaDT0IXRbKATIniaV0N5XqS+FJFxXb4ivdXT2iBO11A7zwtQQkQ1c5nI2YHsI@vger.kernel.org, AJvYcCWl55zDZsF3imFmztpDnt2R8vPILVBLbmWVGNi/Gusb4UAroaRKyOjR37tPLaKMuVo3q6/ZsGK2Fb8On1hl@vger.kernel.org X-Gm-Message-State: AOJu0YyW3RdYwFfEvjC5bV52G/g1Fu022NDq7RMDuZiaQOR83gsq9Fti Ga0NlkQfvy6wDCwF4YEJMEeQGjnksVFhyya4dcfdX9kBd7gzmgqihJWD0Q== X-Google-Smtp-Source: AGHT+IH1Ie6kAWymwwuiZBPFeH2PQ325SceyxPSVsFXekj70QFzxXJ0fKE4lMuD3u6SHpfqC2Y8uaA== X-Received: by 2002:a17:906:c103:b0:a8d:571a:e863 with SMTP id a640c23a62f3a-a8d571cab77mr229940266b.25.1725879655469; Mon, 09 Sep 2024 04:00:55 -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 a640c23a62f3a-a8d25d5dc74sm322649666b.208.2024.09.09.04.00.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:00:54 -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 v4 04/10] dt-bindings: pinctrl: samsung: Add compatible for Exynos8895 SoC Date: Mon, 9 Sep 2024 14:00:11 +0300 Message-Id: <20240909110017.419960-5-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> References: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add compatible for Exynos8895 SoC. Signed-off-by: Ivaylo Ivanov Reviewed-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/pinctrl/samsung,pinctrl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl.yaml index 242dd13c2..a2af2c88a 100644 --- a/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl.yaml @@ -53,6 +53,7 @@ properties: - samsung,exynos7-pinctrl - samsung,exynos7885-pinctrl - samsung,exynos850-pinctrl + - samsung,exynos8895-pinctrl - samsung,exynosautov9-pinctrl - samsung,exynosautov920-pinctrl - tesla,fsd-pinctrl From patchwork Mon Sep 9 11:00:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Ivanov X-Patchwork-Id: 13796649 Received: from mail-ed1-f48.google.com (mail-ed1-f48.google.com [209.85.208.48]) (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 E3A381B78EB; Mon, 9 Sep 2024 11:00:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879660; cv=none; b=pdlVGI3+7UUHjZ02CBki5WcdWIc792HQNb95ehDzfI3zwFEbzEvuZLoyPnma8YYRUCKZPgXAN2lGxu6OIsr+mneTpkVFNIJSgrP/mC6MpAu7e9SLJv+KIuEKOy+rxRhlz+qVfNClR4P7Z89PbV1FXDJYVVeLsBXBvnMAukutSkY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879660; c=relaxed/simple; bh=nRtd7hFLiJIBdqwJ//RZrrMgxZ1pF/c6MZ7hfsnOYo0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pWYSeOYvFSRGys6XvR4eZnQhQZtZnyxbDd5SrNRUtRDzZkuLmkn/Iq1YtaAdHzQsGTLdBaJdsjvyZnyEguXqzto9+nTl5+Q1YP+fqc4WDHhsBr8oEhCzueGyEv3D/136Uyuz1FhwaTU03HY9nsKHqQZqpbPKzRgDD9DocdHlnio= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nH6q4jlF; arc=none smtp.client-ip=209.85.208.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nH6q4jlF" Received: by mail-ed1-f48.google.com with SMTP id 4fb4d7f45d1cf-5c26311c6f0so4942111a12.3; Mon, 09 Sep 2024 04:00:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725879657; x=1726484457; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=H7i2bWmB71REqInuQTYbS35u0c0Kf+CAtF3EswzS+hA=; b=nH6q4jlF5lKIGKzbP/5M8Oa2olLjO86UUABLKumgSLUW0I9vR7GeyOGk96YPrN3Zzj FUO/lOz84Pyb9rnBCK8s+BAMKUGJ1B6UNksn1u9FUO/9+pD2zUl+Qs5yH9gg3LFzjXXd duYMRDlxKJuwRyeuVLE/aRykB1wj46aywNLqVd5CaAg0qn8axJwL7FYOzgEEsbdDFJJz ee1LchXCu7/ZwrAzyoEncTZUmmNZJW7jkAMrIDjOOJqgIKp2Xif/6RxHTWhxPSxkzD3s e+9fv/YfcCgECticUy48vbXpI/2oaCrKoxs/F18Z7KHm8VABDzKY0JvBUhH99AWnsasL yVMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725879657; x=1726484457; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H7i2bWmB71REqInuQTYbS35u0c0Kf+CAtF3EswzS+hA=; b=vEkzyGVmBOisH7ss4TPrZKR1/pnssYK5wymmUvo0LhJX1EkAQCRo3dUEZyY6jtlo8E O1x9XaBsEFCqEs+5TQrzr/ypwYWeRgsv1moa8pDonJ6rGi2AM68UjCHGmv8fSeBxM8Q4 MBi1sIY+TXSSZJFgizVs6tdGGaZ+OGSGneZbQ65XVRJh1iVMUn6Se2RiO8APc+9daWNA ccS8QRazXtNrV53VQLZBPxoYn8j8b8MyNC8PMFsIOJZdWiCjg+XVOIMV9oVfCj/fALgI 2W3YilU0jQy2HMkE0XPRoCrobBUvtc21zMPHYkLDqeW22ulIbnQNaXhZ6rBO6yKIWPSs eNkg== X-Forwarded-Encrypted: i=1; AJvYcCUOSr/I5+O0jkWFGtx0/2ui6bGqO+G1Zwm3eG0yydcLGay/syGJY5q9+8gGE8TfuUpm1vIq0HIGHcr52gZs@vger.kernel.org, AJvYcCXOg81yIKZkGVFoYD0n/4/Ubhq8JumpIcr7nt9KEr6oeytkwxbFx1O7A8KvPLMXq8MX/KOgCOXMPU9nDQ==@vger.kernel.org, AJvYcCXV0GupOa23O+u/HPiRI4m/5C4jA+ucykzQCLqYuM/tMc66ZZWxcjbzuPndIjvM2N16cS1PGs+AsCAv@vger.kernel.org X-Gm-Message-State: AOJu0YyUp2rf6xXssbRQSqomBgo0KJJQepiDTe8ULq5qcV2eXJkX6v1M qNqp1+QOG10tmMNB+tePHxg4uWWpFof/pdyogQYfoLbd0bs9ZH2E X-Google-Smtp-Source: AGHT+IFK5OWkYRs8utXGN6z38GN7u/wZVhIuYrbOuMSfQVCOsIaPkoEE4yYQeIki7wXqh0Lpss4Qnw== X-Received: by 2002:a17:906:fd81:b0:a7a:b561:3575 with SMTP id a640c23a62f3a-a8a88857a11mr781932466b.56.1725879656699; Mon, 09 Sep 2024 04:00:56 -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 a640c23a62f3a-a8d25d5dc74sm322649666b.208.2024.09.09.04.00.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:00:56 -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 v4 05/10] pinctrl: samsung: Add exynos8895 SoC pinctrl configuration Date: Mon, 9 Sep 2024 14:00:12 +0300 Message-Id: <20240909110017.419960-6-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> References: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add support for the pin-controller found on the Exynos8895 SoC used in Samsung Galaxy S8 and S8 Plus phones. It has a newly applied pinctrl register layer for FSYS0 with a different bank type offset that consists of the following bit fields: CON: 4, DAT: 1, PUD: 2, DRV: 3, CONPDN: 2, PUDPDN: 2 Signed-off-by: Ivaylo Ivanov Reviewed-by: Sam Protsenko Acked-by: Linus Walleij --- .../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 + 4 files changed, 150 insertions(+) diff --git a/drivers/pinctrl/samsung/pinctrl-exynos-arm64.c b/drivers/pinctrl/samsung/pinctrl-exynos-arm64.c index 5480e0884..c5df4f1bc 100644 --- a/drivers/pinctrl/samsung/pinctrl-exynos-arm64.c +++ b/drivers/pinctrl/samsung/pinctrl-exynos-arm64.c @@ -58,6 +58,15 @@ static const struct samsung_pin_bank_type exynos850_bank_type_alive = { .reg_offset = { 0x00, 0x04, 0x08, 0x0c, }, }; +/* + * Bank type for non-alive type. Bit fields: + * CON: 4, DAT: 1, PUD: 2, DRV: 3, CONPDN: 2, PUDPDN: 2 + */ +static const struct samsung_pin_bank_type exynos8895_bank_type_off = { + .fld_width = { 4, 1, 2, 3, 2, 2, }, + .reg_offset = { 0x00, 0x04, 0x08, 0x0c, 0x10, 0x14, }, +}; + /* Pad retention control code for accessing PMU regmap */ static atomic_t exynos_shared_retention_refcnt; @@ -866,6 +875,134 @@ const struct samsung_pinctrl_of_match_data exynosautov920_of_data __initconst = .num_ctrl = ARRAY_SIZE(exynosautov920_pin_ctrl), }; +/* pin banks of exynos8895 pin-controller 0 (ALIVE) */ +static const struct samsung_pin_bank_data exynos8895_pin_banks0[] __initconst = { + EXYNOS_PIN_BANK_EINTW(8, 0x020, "gpa0", 0x00), + EXYNOS_PIN_BANK_EINTW(8, 0x040, "gpa1", 0x04), + EXYNOS_PIN_BANK_EINTW(8, 0x060, "gpa2", 0x08), + EXYNOS_PIN_BANK_EINTW(8, 0x080, "gpa3", 0x0c), + EXYNOS_PIN_BANK_EINTW(7, 0x0a0, "gpa4", 0x24), +}; + +/* pin banks of exynos8895 pin-controller 1 (ABOX) */ +static const struct samsung_pin_bank_data exynos8895_pin_banks1[] __initconst = { + EXYNOS_PIN_BANK_EINTG(8, 0x000, "gph0", 0x00), + EXYNOS_PIN_BANK_EINTG(7, 0x020, "gph1", 0x04), + EXYNOS_PIN_BANK_EINTG(4, 0x040, "gph3", 0x08), +}; + +/* pin banks of exynos8895 pin-controller 2 (VTS) */ +static const struct samsung_pin_bank_data exynos8895_pin_banks2[] __initconst = { + EXYNOS_PIN_BANK_EINTG(3, 0x000, "gph2", 0x00), +}; + +/* pin banks of exynos8895 pin-controller 3 (FSYS0) */ +static const struct samsung_pin_bank_data exynos8895_pin_banks3[] __initconst = { + EXYNOS8895_PIN_BANK_EINTG(3, 0x000, "gpi0", 0x00), + EXYNOS8895_PIN_BANK_EINTG(8, 0x020, "gpi1", 0x04), +}; + +/* pin banks of exynos8895 pin-controller 4 (FSYS1) */ +static const struct samsung_pin_bank_data exynos8895_pin_banks4[] __initconst = { + EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpj1", 0x00), + EXYNOS_PIN_BANK_EINTG(7, 0x020, "gpj0", 0x04), +}; + +/* pin banks of exynos8895 pin-controller 5 (BUSC) */ +static const struct samsung_pin_bank_data exynos8895_pin_banks5[] __initconst = { + EXYNOS_PIN_BANK_EINTG(2, 0x000, "gpb2", 0x00), +}; + +/* pin banks of exynos8895 pin-controller 6 (PERIC0) */ +static const struct samsung_pin_bank_data exynos8895_pin_banks6[] __initconst = { + EXYNOS_PIN_BANK_EINTG(8, 0x000, "gpd0", 0x00), + EXYNOS_PIN_BANK_EINTG(8, 0x020, "gpd1", 0x04), + EXYNOS_PIN_BANK_EINTG(4, 0x040, "gpd2", 0x08), + EXYNOS_PIN_BANK_EINTG(5, 0x060, "gpd3", 0x0C), + EXYNOS_PIN_BANK_EINTG(4, 0x080, "gpb1", 0x10), + EXYNOS_PIN_BANK_EINTG(8, 0x0a0, "gpe7", 0x14), + EXYNOS_PIN_BANK_EINTG(8, 0x0c0, "gpf1", 0x18), +}; + +/* pin banks of exynos8895 pin-controller 7 (PERIC1) */ +static const struct samsung_pin_bank_data exynos8895_pin_banks7[] __initconst = { + EXYNOS_PIN_BANK_EINTG(3, 0x000, "gpb0", 0x00), + EXYNOS_PIN_BANK_EINTG(5, 0x020, "gpc0", 0x04), + EXYNOS_PIN_BANK_EINTG(5, 0x040, "gpc1", 0x08), + EXYNOS_PIN_BANK_EINTG(8, 0x060, "gpc2", 0x0C), + EXYNOS_PIN_BANK_EINTG(8, 0x080, "gpc3", 0x10), + EXYNOS_PIN_BANK_EINTG(4, 0x0a0, "gpk0", 0x14), + EXYNOS_PIN_BANK_EINTG(8, 0x0c0, "gpe5", 0x18), + EXYNOS_PIN_BANK_EINTG(8, 0x0e0, "gpe6", 0x1C), + EXYNOS_PIN_BANK_EINTG(8, 0x100, "gpe2", 0x20), + EXYNOS_PIN_BANK_EINTG(8, 0x120, "gpe3", 0x24), + EXYNOS_PIN_BANK_EINTG(8, 0x140, "gpe4", 0x28), + EXYNOS_PIN_BANK_EINTG(4, 0x160, "gpf0", 0x2C), + EXYNOS_PIN_BANK_EINTG(8, 0x180, "gpe1", 0x30), + EXYNOS_PIN_BANK_EINTG(2, 0x1a0, "gpg0", 0x34), +}; + +static const struct samsung_pin_ctrl exynos8895_pin_ctrl[] __initconst = { + { + /* pin-controller instance 0 ALIVE data */ + .pin_banks = exynos8895_pin_banks0, + .nr_banks = ARRAY_SIZE(exynos8895_pin_banks0), + .eint_gpio_init = exynos_eint_gpio_init, + .eint_wkup_init = exynos_eint_wkup_init, + .suspend = exynos_pinctrl_suspend, + .resume = exynos_pinctrl_resume, + }, { + /* pin-controller instance 1 ABOX data */ + .pin_banks = exynos8895_pin_banks1, + .nr_banks = ARRAY_SIZE(exynos8895_pin_banks1), + }, { + /* pin-controller instance 2 VTS data */ + .pin_banks = exynos8895_pin_banks2, + .nr_banks = ARRAY_SIZE(exynos8895_pin_banks2), + .eint_gpio_init = exynos_eint_gpio_init, + }, { + /* pin-controller instance 3 FSYS0 data */ + .pin_banks = exynos8895_pin_banks3, + .nr_banks = ARRAY_SIZE(exynos8895_pin_banks3), + .eint_gpio_init = exynos_eint_gpio_init, + .suspend = exynos_pinctrl_suspend, + .resume = exynos_pinctrl_resume, + }, { + /* pin-controller instance 4 FSYS1 data */ + .pin_banks = exynos8895_pin_banks4, + .nr_banks = ARRAY_SIZE(exynos8895_pin_banks4), + .eint_gpio_init = exynos_eint_gpio_init, + .suspend = exynos_pinctrl_suspend, + .resume = exynos_pinctrl_resume, + }, { + /* pin-controller instance 5 BUSC data */ + .pin_banks = exynos8895_pin_banks5, + .nr_banks = ARRAY_SIZE(exynos8895_pin_banks5), + .eint_gpio_init = exynos_eint_gpio_init, + .suspend = exynos_pinctrl_suspend, + .resume = exynos_pinctrl_resume, + }, { + /* pin-controller instance 6 PERIC0 data */ + .pin_banks = exynos8895_pin_banks6, + .nr_banks = ARRAY_SIZE(exynos8895_pin_banks6), + .eint_gpio_init = exynos_eint_gpio_init, + .suspend = exynos_pinctrl_suspend, + .resume = exynos_pinctrl_resume, + }, { + /* pin-controller instance 7 PERIC1 data */ + .pin_banks = exynos8895_pin_banks7, + .nr_banks = ARRAY_SIZE(exynos8895_pin_banks7), + .eint_gpio_init = exynos_eint_gpio_init, + .suspend = exynos_pinctrl_suspend, + .resume = exynos_pinctrl_resume, + }, +}; + +const struct samsung_pinctrl_of_match_data exynos8895_of_data __initconst = { + .ctrl = exynos8895_pin_ctrl, + .num_ctrl = ARRAY_SIZE(exynos8895_pin_ctrl), +}; + /* * Pinctrl driver data for Tesla FSD SoC. FSD SoC includes three * gpio/pin-mux/pinconfig controllers. diff --git a/drivers/pinctrl/samsung/pinctrl-exynos.h b/drivers/pinctrl/samsung/pinctrl-exynos.h index 305cb1d31..7b7ff7ffe 100644 --- a/drivers/pinctrl/samsung/pinctrl-exynos.h +++ b/drivers/pinctrl/samsung/pinctrl-exynos.h @@ -141,6 +141,16 @@ .name = id \ } +#define EXYNOS8895_PIN_BANK_EINTG(pins, reg, id, offs) \ + { \ + .type = &exynos8895_bank_type_off, \ + .pctl_offset = reg, \ + .nr_pins = pins, \ + .eint_type = EINT_TYPE_GPIO, \ + .eint_offset = offs, \ + .name = id \ + } + #define EXYNOSV920_PIN_BANK_EINTG(pins, reg, id, con_offs, mask_offs, pend_offs) \ { \ .type = &exynos850_bank_type_off, \ diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.c b/drivers/pinctrl/samsung/pinctrl-samsung.c index 623df65a5..ea3214897 100644 --- a/drivers/pinctrl/samsung/pinctrl-samsung.c +++ b/drivers/pinctrl/samsung/pinctrl-samsung.c @@ -1409,6 +1409,8 @@ static const struct of_device_id samsung_pinctrl_dt_match[] = { .data = &exynos7885_of_data }, { .compatible = "samsung,exynos850-pinctrl", .data = &exynos850_of_data }, + { .compatible = "samsung,exynos8895-pinctrl", + .data = &exynos8895_of_data }, { .compatible = "samsung,exynosautov9-pinctrl", .data = &exynosautov9_of_data }, { .compatible = "samsung,exynosautov920-pinctrl", diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.h b/drivers/pinctrl/samsung/pinctrl-samsung.h index d50ba6f07..f18877f2f 100644 --- a/drivers/pinctrl/samsung/pinctrl-samsung.h +++ b/drivers/pinctrl/samsung/pinctrl-samsung.h @@ -363,6 +363,7 @@ extern const struct samsung_pinctrl_of_match_data exynos5433_of_data; extern const struct samsung_pinctrl_of_match_data exynos7_of_data; extern const struct samsung_pinctrl_of_match_data exynos7885_of_data; extern const struct samsung_pinctrl_of_match_data exynos850_of_data; +extern const struct samsung_pinctrl_of_match_data exynos8895_of_data; extern const struct samsung_pinctrl_of_match_data exynosautov9_of_data; extern const struct samsung_pinctrl_of_match_data exynosautov920_of_data; extern const struct samsung_pinctrl_of_match_data fsd_of_data; From patchwork Mon Sep 9 11:00:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Ivanov X-Patchwork-Id: 13796650 Received: from mail-ej1-f41.google.com (mail-ej1-f41.google.com [209.85.218.41]) (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 3650F1B7901; Mon, 9 Sep 2024 11:01:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879661; cv=none; b=lKSNQlphOdYGgirChO1mHQ0mZcgBmTdeaFG4gGjIIr6/vF84sMMkaSAyV4hNwh2EmDu1GFhvAM3mp+Z+VIVm95ss/Xy1b9iI8i8f7W8JEBGFsfp3o8AyEINhuGuBgBOrvOi8VVSJvyRYw8z6SaLlP80jfo9t9F4M4RFJPJbH6zM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879661; c=relaxed/simple; bh=yMd5DLIFL4KIeheK3HmX082PFerBBz9EYOrbqW0N5mE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=efFVxp69d4s7JiDJ5CG/SCsXDGt+KocHvciKJQKYFKbhR5MYx5FZRAYdDqtVIz0ELOB/dPtj2Yl/QyWgYKATgs4jWHIpGwoBhglu+KN1xXW4pb7hJW6xZPcV/5fLmkYH4KTWQ0Z085U3LjfU7/a9W0PvoB1ArqdbMEXInCVwXYU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=JpS7/DHA; arc=none smtp.client-ip=209.85.218.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JpS7/DHA" Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a8ce5db8668so411531966b.1; Mon, 09 Sep 2024 04:00:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725879658; x=1726484458; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qPlQaV17FO9rLqzivtvGzpDMjb4IPNY2uj/S533b4BY=; b=JpS7/DHAlASoBPRLYt5V7rshxDHIsJyYbV/H4KM8+srr7rg4LYH+8P85taFrhvdFgo mKBmFbLZQMq/u5dx0UbqJjCtyQY1J6OR/qdZPR2ZaVVwzYRG7FHdqbeyG4qhqp9isE6G GW4BYX8USCk5Qdh5NK7FKs9lec/zoK/hcUTO5hSV6ECfY0lWDOa6rMkRbkUddvkEJjj6 E/kQSLePz4zwpxaWuGCSfm7K7PTHbesGan2ec7Xh1TosRKtQwISQ2x5o5IuvRwA+0mWe o4h+FxYLjXtr1YAjpmoiPB5OCEB46TdAUicU+549GcdRn7WASCfVHcPBHIMCVdraOvnX OBlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725879658; x=1726484458; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qPlQaV17FO9rLqzivtvGzpDMjb4IPNY2uj/S533b4BY=; b=KKoh+GUHN3B1Z2sd707Vf/UdOTB6lgT1mIWQM7G94rmlsJi++CMLpOxAu8VdS/u80t l4ostz5tlTnxqgcipdv6Fy6PA1LsuC+YBjR532KOl9isNVq6uDC05V0l67c5sUyrzxpQ O08yZLH5OaCxdwUnsjPLLJPhUgR7ohintLv3bkmqAJt3tuxBFyIEO2zzqNttuLe33fy3 JblXPgC2vCGEsNnd2eOjXI+GdAKxJmz0ihAuW99mMcJsWSZ1Yv2j01BSageF+gHtk5o/ aVH9+tOwazhCah3TO14xDxcyhIvdjvstw2aIXiBjm+yv7xOo88qo8qLqGvIgpfT668g0 Nh9Q== X-Forwarded-Encrypted: i=1; AJvYcCVVXBxjll6zE4w+i+DbgkxlM3DPmLSi8V0PZPV0qAKvubJFynqHPZEGVOrxe+xVQKyqeu9WtCfvbs+U6RVM@vger.kernel.org, AJvYcCWIZe+S4BKqeuERzfgpd+DeoBuxkJas6Lod+jErxjRyvxTQ9VYKhR1s2u3gApDH9SOjjpHFb6SbxEGi@vger.kernel.org, AJvYcCXJEld9pRiy9bLP5KBzPpTxdX/+RX/paof2sPH0on53kbO3z5xhybCI2H/4VUTNyawqSEKzh7HKnQ0ZVQ==@vger.kernel.org X-Gm-Message-State: AOJu0YwS12wq3dK0tZgrSPgsenJztfZ4D5cNEcKN2yb1usy08tq9vME6 RLIgXtt2LEJKIhgCyoqUMmB9CwifqD7HvpMYwrqUdmPeDH8xBMIG X-Google-Smtp-Source: AGHT+IF6qmaczArVVg9E/gdfrDl6lzObu/G4Pl0MoGKZQdaio8d+ms8KTqx/R7WjWMO5DAguyJONtQ== X-Received: by 2002:a17:907:1c1b:b0:a86:7c5d:1856 with SMTP id a640c23a62f3a-a8d1c72db0fmr838667266b.46.1725879658183; Mon, 09 Sep 2024 04:00:58 -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 a640c23a62f3a-a8d25d5dc74sm322649666b.208.2024.09.09.04.00.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:00:57 -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 v4 06/10] dt-bindings: pinctrl: samsung: add exynos8895-wakeup-eint compatible Date: Mon, 9 Sep 2024 14:00:13 +0300 Message-Id: <20240909110017.419960-7-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> References: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add a dedicated compatible for exynos8895. Signed-off-by: Ivaylo Ivanov Acked-by: Rob Herring (Arm) Acked-by: Linus Walleij --- .../bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml b/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml index 4dfb49b0e..91516fedc 100644 --- a/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml +++ b/Documentation/devicetree/bindings/pinctrl/samsung,pinctrl-wakeup-interrupt.yaml @@ -42,6 +42,7 @@ properties: - samsung,exynos5433-wakeup-eint - samsung,exynos7885-wakeup-eint - samsung,exynos850-wakeup-eint + - samsung,exynos8895-wakeup-eint - const: samsung,exynos7-wakeup-eint - items: - enum: From patchwork Mon Sep 9 11:00:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Ivanov X-Patchwork-Id: 13796651 Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com [209.85.208.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 B4C531B7919; Mon, 9 Sep 2024 11:01:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879663; cv=none; b=PbQbgz49+r0GFx0vywSlaV/ofP98zQ5Fa/JkSRX4YNqbTvD34ITRb5PWywJl357oiJRrMNzIOp5maLhoKytapYPevB+1RZvV7l7zO+ZHEe2UKiXYZn5YknFnfcqRWpzQ3+9yumVY+WyZCQapM0j/WNGP6bpf7X8Onl0Wtah6cKU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879663; c=relaxed/simple; bh=AiWC3ZfhqL6ldc1FB2y26ZdRa35WGsVGr4Q8zOs9JoA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=eMHw5L+5JXyKU42BYYTu/AHkC4yFMAB5hH6r9Let35nE5t/NbXuGXR6HnnXRHI0MVDNOgtKbcEQWj/ZzvFbCqEuzD2izyUf4iiY069//gy1VkQUJdk7shAG9mdQTROyo9lMip94rDMvKjit0i1GEWe+tZgj2geThKxGc9AqJS38= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=UIzJYINz; arc=none smtp.client-ip=209.85.208.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="UIzJYINz" Received: by mail-ed1-f50.google.com with SMTP id 4fb4d7f45d1cf-5c24c92f699so4685850a12.2; Mon, 09 Sep 2024 04:01:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725879660; x=1726484460; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CS4Hn7bIf4a0dCsNyQ0Lh+IAlZYQwZkw+bfpG9czwyA=; b=UIzJYINzz0irWMGZ3XD8QTTI1//R/T+DGKxw1iRqK+VIk5hpkdlNw543sjkDDsLSZy TdCZ5xBsFiRxjDaB7+l79bShVfJh9NGjNjZkJxHc6X9mEjHIdt+2ak30cn8viswnQOQ/ HN1UrTPt88Wg6Wje/PrWp2okNRivFaVc0GBF8GzkKnpVMKhi9kr2X4ZMmBGcRpJwj7pA rrpKdcKOzyV/6FcS9rDw6u+iz0RqeUbWeUo0A6qWnkevfqQI8eemvr1TAu3qaEZJkvYJ l+5dxJbM4ntH32u6GoYG0ycgp176reu+kmtw0etfykjWYCoUMfBWv5FLW5JujVuBC6Yw ucEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725879660; x=1726484460; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CS4Hn7bIf4a0dCsNyQ0Lh+IAlZYQwZkw+bfpG9czwyA=; b=Q9L+QQi8sWvU21s5WZ4215+C0tLPtD/KvWbrgzktT3Y0pqiJc+MU00cPnq0CQqUxJG mQ8rj/W+5wrzKX8UTgC35xlVAg98EYlWESHFyoSQFiOQ0MwdCJ11jIyq1xVUHiv+5DBA IPfEVk/WJL8zYk/59ePFCnNixSOzWDKX5wvdmpCsopFVA/vA57rcpFAVKtbLbqDrB53l pkyzVDEM4NbGksd7x4ea4OVMdYQZ2e38R2XR2WludncdvzR9+XN8bEtU06t0FacRrMg6 /c8FuBCS2AG2mzGOjCvbrdx70xWIZB1m41L2mWubdgZj54vAvrWuZVXujGHHjMJt4rxZ XLGg== X-Forwarded-Encrypted: i=1; AJvYcCXSTx2/Z0szcohRuFubmMA6Xb58b4nSYF/W5Yb1I/XlCU+fPTq1PKlH6jge64vsQd2Gk+rDL5YhpUWw0PdA@vger.kernel.org, AJvYcCXlJVR2EJqGfHpGxsEG9vG47LedhXG7sFAwHzK3n6h2+9MILG5Vdq0MGy+MPF6BvGvpuDwsAxwpPX76AA==@vger.kernel.org, AJvYcCXxSfzOaYoTdmV24W2JITvCt/l2VB1nG9JonRmhJhRkn1u1uG7AYKDO3yh9ubL1helBAzFiciCvtHLq@vger.kernel.org X-Gm-Message-State: AOJu0Yy8PPT07QzUqDQLo/pSibC3cxfDXgmMnKfdc/sN//sxrDW3B9tV bapOR1s0TNu9gTmK9Utk3T9Gxe/0nOhH1wGpg2X6AT1aMhHVGH03 X-Google-Smtp-Source: AGHT+IGjlx3MFsYGcDjzz+qUs5bBXIQBrlyrzGmFF5diUPB3UauE3Z/C6EH9CJTCxf6jNGshXWzgeA== X-Received: by 2002:a17:907:6022:b0:a8a:926a:d027 with SMTP id a640c23a62f3a-a8a926ad63cmr635036166b.45.1725879660080; Mon, 09 Sep 2024 04:01:00 -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 a640c23a62f3a-a8d25d5dc74sm322649666b.208.2024.09.09.04.00.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:00:59 -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 v4 07/10] dt-bindings: soc: samsung: exynos-pmu: Add exynos8895 compatible Date: Mon, 9 Sep 2024 14:00:14 +0300 Message-Id: <20240909110017.419960-8-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> References: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add exynos8895-pmu compatible to the bindings documentation. Since Samsung, as usual, reuses devices from older designs, use the samsung,exynos7-pmu compatible. Signed-off-by: Ivaylo Ivanov Acked-by: Rob Herring (Arm) --- Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml b/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml index 15fcd8f1d..5c4ba6c65 100644 --- a/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml +++ b/Documentation/devicetree/bindings/soc/samsung/exynos-pmu.yaml @@ -53,6 +53,7 @@ properties: - items: - enum: - samsung,exynos7885-pmu + - samsung,exynos8895-pmu - samsung,exynosautov9-pmu - samsung,exynosautov920-pmu - tesla,fsd-pmu From patchwork Mon Sep 9 11:00:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Ivanov X-Patchwork-Id: 13796653 Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 571301B86C3; Mon, 9 Sep 2024 11:01:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879667; cv=none; b=JEhk0TMml99SUOik37INxSwoXpTbP/GFFgCKYlmlCCxRXO0iCXM+EZ36FmeNiIRKHvdtcfbtyv0U5Sv3p9v2yynmB9z8mXLeqBgCFzsMYUi2YiDpLZbBZAEPH7wy/j/M1zLUpIDKr0KoDcO7cOZZEpZ4JQ5ihNnLGgN/EcHAQBk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879667; c=relaxed/simple; bh=GTMDMtaVIS7S8NoyBfLvEiETqLvwbmNWjvy/EI5/IRg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ajcem8fUzr1jNF+dkut5A6BNEyXAXhg5cAwREhjlCXlamvAi9AtrPccvPulsExlcOFYcZLESlhN1W7p2aWQuFIcgBQPQXxghXztYlbq2ETMa0hq976VBJbKzlj+W/h52Ifi5d3uZnKTgpv84eq9Z9Krf9+BfmyLjrPfUJuOqCsw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=jappnsMQ; arc=none smtp.client-ip=209.85.167.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jappnsMQ" Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-536584f6c84so3833490e87.0; Mon, 09 Sep 2024 04:01:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725879662; x=1726484462; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=NJ5Dp58ntRYtOdHpaKZm2fq/9djAhnU3ZmrKJGA+5Vc=; b=jappnsMQ5T+DEYC77DS97acVndyoVePxSAHKikV2RPqSBRY9qKlJ/+CHiEJvVBMZW9 G+tEH5g1+2Gih83oPkzF1ZUoFN0JGN5UwG3keHgO/FBTV3QYXcmMAbWUTiWM90662gx2 yyVRMUQ6jLfeqTUPIKYq66KUif3bl2D5ho9X5LzrJbV8aYoH1hJwZAA4vszhof7UDwZD 9n4Xh9fCdwF1xG1SSo9uokFBtNFWaLIJxQq0DMaf9j/oJNGf3y+3ES/FBjVrzIv7XI8M 1IGyPp4nizt2TgyZd+TIqxhjMOuJnovpnPu2ewqnpcdIbplSyoqYtZQhxdc8SmZcsBaj XCgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725879662; x=1726484462; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NJ5Dp58ntRYtOdHpaKZm2fq/9djAhnU3ZmrKJGA+5Vc=; b=qcu0NdOfyLUK/XOYjboJB4evd1tkKUGdx8VzdeV3uXHEXla+tEE+ZY2Rg6CAgK8mij 5XYqDXp7ScIq2Rkv0ZMPcDdJg6b1XC/P91CmDp5L2rCSldt+o2030guw68JDOXwP05mV MsdlLZ5qLAmSCpQwNSoPGh8S/EAYJ66QQWS4bRfeFirvgORPRIJtOCQgpWQUPLbi+q7D 9EJSquYtzY0g2WHdFACIGfZCPiBlHbTnsWeX2iwCSHv5JKhnPK3Npg0ykP7uS6X4VHP+ EcvfXB/qs4HeIYmeXsl3Z/83qf1ObVU/Q+QgmapGjPwqyoMXJS1dNzQAVHT17PDpVnkY ZJug== X-Forwarded-Encrypted: i=1; AJvYcCU9trTQ+g1wQuCuSD3mZuR2LrutlsjKC44EolW9mUC6fzvhdiW0pG3nfNTIryD/a7HY4+59WgA2xMDl@vger.kernel.org, AJvYcCUNaEBQmr5oFWKN65HzPgVPj33AKXpzsoCOhtg1/qHYxtu+G9DDytvDO8aUJH0LisHMWam5Hbh1WYJIr8XQ@vger.kernel.org, AJvYcCWOAk5C9RH7kcC78J5NYTuJ+K6iAiJFx6ijnSiHx3Z0fnoG6I08eTpUFfaS87qotrO6/X8DzpWuWPSQjg==@vger.kernel.org X-Gm-Message-State: AOJu0YxBFnEZQej7lisfytndqeJcnfIrMTtSyZ2FL/bCW/cCTkkYgoBr 8/Q1fqfJAmim0PE9/eb9FkWQUshnCK9VM5Q58OsK+Y8cB6tWjzw8 X-Google-Smtp-Source: AGHT+IHbmYa8r+aAyx0dR2bevMT+u0h4I7LzswR5q+7KJzyysZ5+mx67Cdzs9hA2fE6EbGYxvifriw== X-Received: by 2002:a05:6512:114f:b0:535:45d2:abf0 with SMTP id 2adb3069b0e04-536587f594amr7574486e87.39.1725879661402; Mon, 09 Sep 2024 04:01:01 -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 a640c23a62f3a-a8d25d5dc74sm322649666b.208.2024.09.09.04.01.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:01:00 -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 v4 08/10] arm64: dts: exynos: Add initial support for exynos8895 SoC Date: Mon, 9 Sep 2024 14:00:15 +0300 Message-Id: <20240909110017.419960-9-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> References: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Exynos 8895 SoC is an ARMv8 mobile SoC found in the Samsung Galaxy S8 (dreamlte), S8 Plus (dream2lte), Note 8 (greatlte) and the Meizu 15 Plus (m1891). Add minimal support for that SoC, including: - All 8 cores via PSCI - ChipID - Generic ARMV8 Timer - Enumarate all pinctrl nodes The devices using this SoC suffer from an issue caused by the stock Samsung bootloader, as it doesn't configure CNTFRQ_EL0. Hence it's needed to hardcode the adequate frequency in the timer node, otherwise the kernel panics. Further platform support will be added over time. Signed-off-by: Ivaylo Ivanov --- .../boot/dts/exynos/exynos8895-pinctrl.dtsi | 1092 +++++++++++++++++ arch/arm64/boot/dts/exynos/exynos8895.dtsi | 249 ++++ 2 files changed, 1341 insertions(+) create mode 100644 arch/arm64/boot/dts/exynos/exynos8895-pinctrl.dtsi create mode 100644 arch/arm64/boot/dts/exynos/exynos8895.dtsi diff --git a/arch/arm64/boot/dts/exynos/exynos8895-pinctrl.dtsi b/arch/arm64/boot/dts/exynos/exynos8895-pinctrl.dtsi new file mode 100644 index 000000000..bfb4ffb5d --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos8895-pinctrl.dtsi @@ -0,0 +1,1092 @@ +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause +/* + * Samsung's Exynos 8895 SoC pin-mux and pin-config device tree source + * + * Copyright (c) 2024, Ivaylo Ivanov + */ + +#include +#include "exynos-pinctrl.h" + +&pinctrl_alive { + gpa0: gpa0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&gic>; + interrupts = , + , + , + , + , + , + , + ; + }; + + gpa1: gpa1-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&gic>; + interrupts = , + , + , + , + , + , + , + ; + }; + + gpa2: gpa2-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpa3: gpa3-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpa4: gpa4-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + }; + + bt_hostwake: bt-hostwake-pins { + samsung,pins = "gpa2-3"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-con-pdn = ; + samsung,pin-pud-pdn = ; + }; + + uart1_bus: uart1-bus-pins { + samsung,pins = "gpa4-4", "gpa4-3", "gpa4-2", "gpa4-1"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + pcie_wake: pcie-wake-pins { + samsung,pins = "gpa3-3"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + wlan_host_wake: wlan-host-wake-pins { + samsung,pins = "gpa0-7"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-con-pdn = ; + samsung,pin-pud-pdn = ; + }; +}; + +&pinctrl_abox { + gph0: gph0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gph1: gph1-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gph3: gph3-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; +}; + +&pinctrl_vts { + gph2: gph2-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; +}; + +&pinctrl_fsys0 { + gpi0: gpi0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + gpi1: gpi1-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + ufs_rst_n: ufs-rst-n-pins { + samsung,pins = "gpi0-1"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-con-pdn = ; + }; + + ufs_refclk_out: ufs-refclk-out-pins { + samsung,pins = "gpi0-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-con-pdn = ; + }; +}; + +&pinctrl_fsys1 { + gpj1: gpj1-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + gpj0: gpj0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + sd2_clk: sd2-clk-pins { + samsung,pins = "gpj0-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + sd2_cmd: sd2-cmd-pins { + samsung,pins = "gpj0-1"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + sd2_bus1: sd2-bus-width1-pins { + samsung,pins = "gpj0-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + sd2_bus4: sd2-bus-width4-pins { + samsung,pins = "gpj0-3", "gpj0-4", "gpj0-5"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + /* For Drive strength swapping */ + sd2_clk_fast_slew_rate_1x: sd2-clk-fast-slew-rate-1x-pins { + samsung,pins = "gpj0-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + sd2_clk_fast_slew_rate_2x: sd2-clk-fast-slew-rate-2x-pins { + samsung,pins = "gpj0-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + sd2_clk_fast_slew_rate_3x: sd2-clk-fast-slew-rate-3x-pins { + samsung,pins = "gpj0-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + sd2_clk_fast_slew_rate_4x: sd2-clk-fast-slew-rate-4x-pins { + samsung,pins = "gpj0-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + cfg_wlanen: cfg-wlanen-pins { + samsung,pins = "gpj1-3"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + samsung,pin-con-pdn = ; + }; + + bt_en: bt-en-pins { + samsung,pins ="gpj1-7"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-con-pdn = ; + samsung,pin-pud-pdn = ; + }; + + bt_btwake: bt-btwake-pins { + samsung,pins = "gpj1-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-con-pdn = ; + samsung,pin-pud-pdn = ; + }; +}; + +&pinctrl_busc { + gpb2: gpb2-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + hsi2c0_bus: hsi2c0-bus-pins { + samsung,pins = "gpb2-1", "gpb2-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + speedy_bus: speedy-bus-pins { + samsung,pins = "gpb2-0"; + samsung,pin-function = ; + samsung,pin-con-pdn = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; +}; + +&pinctrl_peric0 { + gpd0: gpd0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpd1: gpd1-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpd2: gpd2-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpd3: gpd3-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpb1: gpb1-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpe7: gpe7-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpf1: gpf1-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + uart0_bus: uart0-bus-pins { + samsung,pins = "gpd0-7", "gpd0-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart2_bus: uart2-bus-pins { + samsung,pins = "gpd1-3", "gpd1-2", "gpd1-1", "gpd1-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart2_bus_dual: uart2-bus-dual-pins { + samsung,pins = "gpd1-1", "gpd1-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart3_bus: uart3-bus-pins { + samsung,pins = "gpd1-7", "gpd1-6", "gpd1-5", "gpd1-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart3_bus_dual: uart3-bus-dual-pins { + samsung,pins = "gpd1-5", "gpd1-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart4_bus: uart4-bus-pins { + samsung,pins = "gpd2-3", "gpd2-2", "gpd2-1", "gpd2-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart4_bus_dual: uart4-bus-dual-pins { + samsung,pins = "gpd2-1", "gpd2-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart5_bus: uart5-bus-pins { + samsung,pins = "gpd3-3", "gpd3-2", "gpd3-1", "gpd3-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart5_bus_dual: uart5-bus-dual-pins { + samsung,pins = "gpd3-1", "gpd3-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + hsi2c5_bus: hsi2c5-bus-pins { + samsung,pins = "gpd1-1", "gpd1-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c6_bus: hsi2c6-bus-pins { + samsung,pins = "gpd1-3", "gpd1-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c7_bus: hsi2c7-bus-pins { + samsung,pins = "gpd1-5", "gpd1-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c8_bus: hsi2c8-bus-pins { + samsung,pins = "gpd1-7", "gpd1-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c9_bus: hsi2c9-bus-pins { + samsung,pins = "gpd2-1", "gpd2-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c10_bus: hsi2c10-bus-pins { + samsung,pins = "gpd2-3", "gpd2-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c11_bus: hsi2c11-bus-pins { + samsung,pins = "gpd3-1", "gpd3-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c12_bus: hsi2c12-bus-pins { + samsung,pins = "gpd3-3", "gpd3-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hs_i2c14_bus: hs-i2c14-bus-pins { + samsung,pins = "gpe6-3", "gpe6-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi2_bus: spi2-bus-pins { + samsung,pins = "gpd1-3", "gpd1-2", "gpd1-1", "gpd1-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi2_cs: spi2-cs-pins { + samsung,pins = "gpd1-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi3_bus: spi3-bus-pins { + samsung,pins = "gpd1-7", "gpd1-5", "gpd1-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi3_cs: spi3-cs-pins { + samsung,pins = "gpd1-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi4_bus: spi4-bus-pins { + samsung,pins = "gpd2-3", "gpd2-1", "gpd2-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi4_cs: spi4-cs-pins { + samsung,pins = "gpd2-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi5_bus: spi5-bus-pins { + samsung,pins = "gpd3-3", "gpd3-1", "gpd3-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi5_cs: spi5-cs-pins { + samsung,pins = "gpd3-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; +}; + +&pinctrl_peric1 { + gpb0: gpb0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpc0: gpc0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpc1: gpc1-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpc2: gpc2-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpc3: gpc3-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpk0: gpk0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpe5: gpe5-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpe6: gpe6-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpe2: gpe2-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpe3: gpe3-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpe4: gpe4-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpf0: gpf0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpe1: gpe1-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + gpg0: gpg0-gpio-bank { + gpio-controller; + #gpio-cells = <2>; + + interrupt-controller; + #interrupt-cells = <2>; + }; + + uart6_bus: uart6-bus-pins { + samsung,pins = "gpe5-3", "gpe5-2", "gpe5-1", "gpe5-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart6_bus_dual: uart6-bus-dual-pins { + samsung,pins = "gpe5-1", "gpe5-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart7_bus: uart7-bus-pins { + samsung,pins = "gpe1-3", "gpe1-2", "gpe1-1", "gpe1-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart7_bus_dual: uart7-bus-dual-pins { + samsung,pins = "gpe1-1", "gpe1-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart8_bus: uart8-bus-pins { + samsung,pins = "gpe1-7", "gpe1-6", "gpe1-5", "gpe1-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart8_bus_dual: uart8-bus-dual-pins { + samsung,pins = "gpe1-5", "gpe1-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart9_bus: uart9-bus-pins { + samsung,pins = "gpe2-3", "gpe2-2", "gpe2-1", "gpe2-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart9_bus_dual: uart9-bus-dual-pins { + samsung,pins = "gpe2-1", "gpe2-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart10_bus: uart10-bus-pins { + samsung,pins = "gpe2-7", "gpe2-6", "gpe2-5", "gpe2-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart10_bus_dual: uart10-bus-dual-pins { + samsung,pins = "gpe2-5", "gpe2-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart11_bus: uart11-bus-pins { + samsung,pins = "gpe3-3", "gpe3-2", "gpe3-1", "gpe3-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart11_bus_dual: uart11-bus-dual-pins { + samsung,pins = "gpe3-1", "gpe3-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart12_bus: uart12-bus-pins { + samsung,pins = "gpe3-7", "gpe3-6", "gpe3-5", "gpe3-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart12_bus_dual: uart12-bus-dual-pins { + samsung,pins = "gpe3-5", "gpe3-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart13_bus: uart13-bus-pins { + samsung,pins = "gpe4-3", "gpe4-2", "gpe4-1", "gpe4-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart13_bus_dual: uart13-bus-dual-pins { + samsung,pins = "gpe4-1", "gpe4-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart14_bus: uart14-bus-pins { + samsung,pins = "gpe4-7", "gpe4-6", "gpe4-5", "gpe4-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart14_bus_dual: uart14-bus-dual-pins { + samsung,pins = "gpe4-5", "gpe4-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart15_bus: uart15-bus-pins { + samsung,pins = "gpe5-7", "gpe5-6", "gpe5-5", "gpe5-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + uart15_bus_dual: uart15-bus-dual-pins { + samsung,pins = "gpe5-5", "gpe5-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + }; + + hsi2c1_bus: hsi2c1-bus-pins { + samsung,pins = "gpc2-1", "gpc2-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c2_bus: hsi2c2-bus-pins { + samsung,pins = "gpc2-3", "gpc2-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c3_bus: hsi2c3-bus-pins { + samsung,pins = "gpc2-5", "gpc2-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c4_bus: hsi2c4-bus-pins { + samsung,pins = "gpc2-7", "gpc2-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c13_bus: hsi2c13-bus-pins { + samsung,pins = "gpe5-1", "gpe5-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c14_bus: hsi2c14-bus-pins { + samsung,pins = "gpe5-3", "gpe5-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c15_bus: hsi2c15-bus-pins { + samsung,pins = "gpe1-1", "gpe1-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c16_bus: hsi2c16-bus-pins { + samsung,pins = "gpe1-3", "gpe1-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c17_bus: hsi2c17-bus-pins { + samsung,pins = "gpe1-5", "gpe1-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c18_bus: hsi2c18-bus-pins { + samsung,pins = "gpe1-7", "gpe1-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c19_bus: hsi2c19-bus-pins { + samsung,pins = "gpe2-1", "gpe2-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c20_bus: hsi2c20-bus-pins { + samsung,pins = "gpe2-3", "gpe2-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c21_bus: hsi2c21-bus-pins { + samsung,pins = "gpe2-5", "gpe2-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c22_bus: hsi2c22-bus-pins { + samsung,pins = "gpe2-7", "gpe2-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c23_bus: hsi2c23-bus-pins { + samsung,pins = "gpe3-1", "gpe3-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c24_bus: hsi2c24-bus-pins { + samsung,pins = "gpe3-3", "gpe3-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c25_bus: hsi2c25-bus-pins { + samsung,pins = "gpe3-5", "gpe3-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c26_bus: hsi2c26-bus-pins { + samsung,pins = "gpe3-7", "gpe3-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c27_bus: hsi2c27-bus-pins { + samsung,pins = "gpe4-1", "gpe4-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c28_bus: hsi2c28-bus-pins { + samsung,pins = "gpe4-3", "gpe4-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c29_bus: hsi2c29-bus-pins { + samsung,pins = "gpe4-5", "gpe4-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c30_bus: hsi2c30-bus-pins { + samsung,pins = "gpe4-7", "gpe4-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c31_bus: hsi2c31-bus-pins { + samsung,pins = "gpe5-5", "gpe5-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hsi2c32_bus: hsi2c32-bus-pins { + samsung,pins = "gpe5-7", "gpe5-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi0_bus: spi0-bus-pins { + samsung,pins = "gpc3-3", "gpc3-2", "gpc3-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi0_cs: spi0-cs-pins { + samsung,pins = "gpc3-1"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi1_bus: spi1-bus-pins { + samsung,pins = "gpc3-7", "gpc3-6", "gpc3-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi1_cs: spi1-cs-pins { + samsung,pins = "gpc3-5"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi6_bus: spi6-bus-pins { + samsung,pins = "gpe5-3", "gpe5-1", "gpe5-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi6_cs: spi6-cs-pins { + samsung,pins = "gpe5-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi7_bus: spi7-bus-pins { + samsung,pins = "gpe1-3", "gpe1-1", "gpe1-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi7_cs: spi7-cs-pins { + samsung,pins = "gpe1-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi8_bus: spi8-bus-pins { + samsung,pins = "gpe1-7", "gpe1-5", "gpe1-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi8_cs: spi8-cs-pins { + samsung,pins = "gpe1-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi9_bus: spi9-bus-pins { + samsung,pins = "gpe2-3", "gpe2-1", "gpe2-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi9_cs: spi9-cs-pins { + samsung,pins = "gpe2-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi10_bus: spi10-bus-pins { + samsung,pins = "gpe2-7", "gpe2-5", "gpe2-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi10_cs: spi10-cs-pins { + samsung,pins = "gpe2-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi11_bus: spi11-bus-pins { + samsung,pins = "gpe3-3", "gpe3-1", "gpe3-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi11_cs: spi11-cs-pins { + samsung,pins = "gpe3-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi12_bus: spi12-bus-pins { + samsung,pins = "gpe3-7", "gpe3-5", "gpe3-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi12_cs: spi12-cs-pins { + samsung,pins = "gpe3-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi13_bus: spi13-bus-pins { + samsung,pins = "gpe4-3", "gpe4-1", "gpe4-0"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi13_cs: spi13-cs-pins { + samsung,pins = "gpe4-2"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi14_bus: spi14-bus-pins { + samsung,pins = "gpe4-7", "gpe4-5", "gpe4-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi14_cs: spi14-cs-pins { + samsung,pins = "gpe4-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi15_bus: spi15-bus-pins { + samsung,pins = "gpe5-7", "gpe5-5", "gpe5-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + spi15_cs: spi15-cs-pins { + samsung,pins = "gpe5-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + hrm_irq: hrm-irq-pins { + samsung,pins = "gpe6-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; +}; diff --git a/arch/arm64/boot/dts/exynos/exynos8895.dtsi b/arch/arm64/boot/dts/exynos/exynos8895.dtsi new file mode 100644 index 000000000..59af33420 --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos8895.dtsi @@ -0,0 +1,249 @@ +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause +/* + * Samsung's Exynos 8895 SoC device tree source + * + * Copyright (c) 2024, Ivaylo Ivanov + */ + +#include + +/ { + compatible = "samsung,exynos8895"; + #address-cells = <2>; + #size-cells = <1>; + + interrupt-parent = <&gic>; + + aliases { + pinctrl0 = &pinctrl_alive; + pinctrl1 = &pinctrl_abox; + pinctrl2 = &pinctrl_vts; + pinctrl3 = &pinctrl_fsys0; + pinctrl4 = &pinctrl_fsys1; + pinctrl5 = &pinctrl_busc; + pinctrl6 = &pinctrl_peric0; + pinctrl7 = &pinctrl_peric1; + }; + + arm-a53-pmu { + compatible = "arm,cortex-a53-pmu"; + interrupts = , + , + , + ; + interrupt-affinity = <&cpu0>, + <&cpu1>, + <&cpu2>, + <&cpu3>; + }; + + /* There's no PMU model for the Mongoose cores */ + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + cpu-map { + cluster0 { + core0 { + cpu = <&cpu0>; + }; + core1 { + cpu = <&cpu1>; + }; + core2 { + cpu = <&cpu2>; + }; + core3 { + cpu = <&cpu3>; + }; + }; + + cluster1 { + core0 { + cpu = <&cpu4>; + }; + core1 { + cpu = <&cpu5>; + }; + core2 { + cpu = <&cpu6>; + }; + core3 { + cpu = <&cpu7>; + }; + }; + }; + + cpu0: cpu@100 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x100>; + enable-method = "psci"; + }; + + cpu1: cpu@101 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x101>; + enable-method = "psci"; + }; + + cpu2: cpu@102 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x102>; + enable-method = "psci"; + }; + + cpu3: cpu@103 { + device_type = "cpu"; + compatible = "arm,cortex-a53"; + reg = <0x103>; + enable-method = "psci"; + }; + + cpu4: cpu@0 { + device_type = "cpu"; + compatible = "samsung,mongoose-m2"; + reg = <0x0>; + enable-method = "psci"; + }; + + cpu5: cpu@1 { + device_type = "cpu"; + compatible = "samsung,mongoose-m2"; + reg = <0x1>; + enable-method = "psci"; + }; + + cpu6: cpu@2 { + device_type = "cpu"; + compatible = "samsung,mongoose-m2"; + reg = <0x2>; + enable-method = "psci"; + }; + + cpu7: cpu@3 { + device_type = "cpu"; + compatible = "samsung,mongoose-m2"; + reg = <0x3>; + enable-method = "psci"; + }; + }; + + oscclk: osc-clock { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-output-names = "oscclk"; + }; + + psci { + compatible = "arm,psci"; + method = "smc"; + cpu_suspend = <0xc4000001>; + cpu_off = <0x84000002>; + cpu_on = <0xc4000003>; + }; + + timer { + compatible = "arm,armv8-timer"; + /* Hypervisor Virtual Timer interrupt is not wired to GIC */ + interrupts = , + , + , + ; + /* + * Non-updatable, broken stock Samsung bootloader does not + * configure CNTFRQ_EL0 + */ + clock-frequency = <26000000>; + }; + + soc: soc@0 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x0 0x20000000>; + + chipid@10000000 { + compatible = "samsung,exynos8895-chipid", + "samsung,exynos850-chipid"; + reg = <0x10000000 0x24>; + }; + + gic: interrupt-controller@10201000 { + compatible = "arm,gic-400"; + #interrupt-cells = <3>; + #address-cells = <0>; + interrupt-controller; + reg = <0x10201000 0x1000>, + <0x10202000 0x1000>, + <0x10204000 0x2000>, + <0x10206000 0x2000>; + interrupts = ; + }; + + pinctrl_peric0: pinctrl@104d0000 { + compatible = "samsung,exynos8895-pinctrl"; + reg = <0x104d0000 0x1000>; + interrupts = ; + }; + + pinctrl_peric1: pinctrl@10980000 { + compatible = "samsung,exynos8895-pinctrl"; + reg = <0x10980000 0x1000>; + interrupts = ; + }; + + pinctrl_fsys0: pinctrl@11050000 { + compatible = "samsung,exynos8895-pinctrl"; + reg = <0x11050000 0x1000>; + interrupts = ; + }; + + pinctrl_fsys1: pinctrl@11430000 { + compatible = "samsung,exynos8895-pinctrl"; + reg = <0x11430000 0x1000>; + interrupts = ; + }; + + pinctrl_abox: pinctrl@13e60000 { + compatible = "samsung,exynos8895-pinctrl"; + reg = <0x13e60000 0x1000>; + }; + + pinctrl_vts: pinctrl@14080000 { + compatible = "samsung,exynos8895-pinctrl"; + reg = <0x14080000 0x1000>; + }; + + pinctrl_busc: pinctrl@15a30000 { + compatible = "samsung,exynos8895-pinctrl"; + reg = <0x15a30000 0x1000>; + interrupts = ; + }; + + pmu_system_controller: system-controller@16480000 { + compatible = "samsung,exynos8895-pmu", + "samsung,exynos7-pmu", "syscon"; + reg = <0x16480000 0x10000>; + }; + + pinctrl_alive: pinctrl@164b0000 { + compatible = "samsung,exynos8895-pinctrl"; + reg = <0x164b0000 0x1000>; + + wakeup-interrupt-controller { + compatible = "samsung,exynos8895-wakeup-eint", + "samsung,exynos7-wakeup-eint"; + interrupt-parent = <&gic>; + interrupts = ; + }; + }; + }; +}; + +#include "exynos8895-pinctrl.dtsi" +#include "arm/samsung/exynos-syscon-restart.dtsi" From patchwork Mon Sep 9 11:00:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Ivanov X-Patchwork-Id: 13796652 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 9721F1B86C9; Mon, 9 Sep 2024 11:01:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879666; cv=none; b=VcXAlR36OtZzave005FsPl2m8rpwg6YDvdygviYGT/RWeI7Mm3QICphqq7tFKrNqpCpsAWzqh5ZjDEModSy8FSNQxt9rRNYhyzIUJpSOEFQ9rJUyNX7XuS0r9+hj67tKnfXWFwFPgRnTPWPEdBr3DgzsPfIlpFsimU9uBl3UQmk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879666; c=relaxed/simple; bh=0Xbr1FdDyKpKj+3Fr+/QuaoEN4dfbHmAhWgDRUgmrrQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=kKs+0cP1Cou3JBv8M0g0AmAsfdRETjuRs11oTTwzjNGMV+MkTmP2l2RsRmgPepahfYqfMXPNufGADWB4RaoIcRepPp+GHJx7Bvw+L4adFSnQu+K0DMa8ETmFJ5dqZmqrLan0sLjq/SpXMsmi29mrKqanh2FG4dZ04R6ofGeIpxQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=W9nxOOS6; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="W9nxOOS6" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a8d64b27c45so51536566b.3; Mon, 09 Sep 2024 04:01:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725879663; x=1726484463; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=nIorSPo7KTJeiqhdkQyEU3TTtvPM5JLNIBDUUuxznsI=; b=W9nxOOS6/iQJFsKczHHp+Su00plFCYsJSp9rdPV3Iz7mOP2ouV57RLrdakHLOEGUs2 b5XXwuQVB3j79cy+6/E4U6SdAL5ICErfdvbPZvyEqN4QvVfF8A/HNPboeS1CBJ7qcHyY Wo95CnxfmXVnx6ltcKuGrt7HMLx1+32HQLqcv3DrgkvotEFeuQhrLmy/B9Kxkkc4v3HZ 7/4JFxJ2O2lH+xZvf4xW/bnbhp649/hG3rx09omvSjM143yBgkLzoAcwazKx2YUI/U6i METgJcm6OyzxnXZeY+nib2RItumNHcygPveEsQRyZ+iGqrtwDuGOV5PXsDpFDBCa18/D lsoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725879663; x=1726484463; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=nIorSPo7KTJeiqhdkQyEU3TTtvPM5JLNIBDUUuxznsI=; b=W1QppZW1G5s7qHatSeJvX8QpgMem3XBrkeUHYoVJe/+pIZTYRTj6iGYzB7Zy7sQh5A 8d8vYZH4xgVoreTMkVXnWbAg4QskVA61S7ewVsK31I95hwWIWrRf3JF/8piTWaxociLB JLFO95ASNp9NxKyK+HFDmz/Jpl2eA4fepxXaiRsDwLYSgaJCsEwCHwT3N1nqAVmWMz79 2JGxV0DuPkoubOxV+GMBrwVAXXfUHT8nPOR5+zl4YZQly9QM7J8tkL/bUSucdFJKYfSC d3ZJPBwbBXEEc/1Y1Wbzy/UentnMcqIcvTmmK2kKnik4jZ1EEAv14n/A26qrjXzMz6An UO2g== X-Forwarded-Encrypted: i=1; AJvYcCU78Crsy6+ECmvlUMg+XBJcRexaXr+vv+Puye2b9wze9j3fI2uJEopegKqQSftcI650o3t24ItsW7SYDg==@vger.kernel.org, AJvYcCUoyARAIyEElmLVMTDrra11v+Vb06FVFx2o9rdIpd3CBFaLLrqFFwYnJCAQRahsiBQj1RV+mP489QljJ1jP@vger.kernel.org, AJvYcCW4z2umObEKQaYWbOgwW3rIiTKHiI/KtLkLQP3plLcJr0rsq+lQu9683Q7ZE7k+30SNPe0uooignblE@vger.kernel.org X-Gm-Message-State: AOJu0YygrCvZUtf3PVarsInzJe0+cZyym2BPQsCwus37898svF4tQmGY FZndF6/bugIVxYy0hfMzmJ4FMTLIq69DnESBnSDTvstamwNJqE+x X-Google-Smtp-Source: AGHT+IES/Cpk3XRkGYVpLodwiL3AFJB0x656S+4nyN88Mzp6acqA21rD9FGtL9f41OZgniLiaayuCw== X-Received: by 2002:a17:906:c103:b0:a8d:571a:e863 with SMTP id a640c23a62f3a-a8d571cab77mr229981766b.25.1725879662663; Mon, 09 Sep 2024 04:01:02 -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 a640c23a62f3a-a8d25d5dc74sm322649666b.208.2024.09.09.04.01.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:01:02 -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 v4 09/10] dt-bindings: arm: samsung: Document dreamlte board binding Date: Mon, 9 Sep 2024 14:00:16 +0300 Message-Id: <20240909110017.419960-10-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> References: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add binding for the Samsung Galaxy S8 (SM-G950F) board, which is based on the Samsung Exynos8895 SoC. Signed-off-by: Ivaylo Ivanov Acked-by: Rob Herring (Arm) --- .../devicetree/bindings/arm/samsung/samsung-boards.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml index 01dcbd8aa..49884a7ab 100644 --- a/Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml +++ b/Documentation/devicetree/bindings/arm/samsung/samsung-boards.yaml @@ -224,6 +224,12 @@ properties: - winlink,e850-96 # WinLink E850-96 - const: samsung,exynos850 + - description: Exynos8895 based boards + items: + - enum: + - samsung,dreamlte # Samsung Galaxy S8 (SM-G950F) + - const: samsung,exynos8895 + - description: Exynos Auto v9 based boards items: - enum: From patchwork Mon Sep 9 11:00:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Ivanov X-Patchwork-Id: 13796654 Received: from mail-ej1-f48.google.com (mail-ej1-f48.google.com [209.85.218.48]) (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 31F0B1B86DC; Mon, 9 Sep 2024 11:01:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879667; cv=none; b=dwPhPKcn1D6ixBW0+8w3KcIEsVFbHIQJAP5Map/Eoq1n+/yoiFQFOwjZmRdmLcsZUq9UuKv6MXoOdgiRjDwJk/sEN2RXSwSaIsnH/eJlUbPsXl64cgX310IPNkAS6cNkJ80riTOXR+fyol62412UPzrLE3R2+z+ZXcQvbCEmuOc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725879667; c=relaxed/simple; bh=Z7xGCT06OCZ/m+rGKk5QoYgmcvYZaPJ7LbrMKN+waiw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=GZSLlo3IixqWQtHw5Odpo4VE6UbBiUDgAQqkQw0ozlGnSwpNHvJqvGjAfVfYRHt+rc/YNcexg07wbiwygFfnl0bs3XCyrHCRAkp+N+Y7grnNhN5pZxWUv7Ph0jv+OTgYaf2aVRlMjbCVbLOkoDiJ2kS7x9VR/EtLWl4pWH/QJWc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=BcmlnMr9; arc=none smtp.client-ip=209.85.218.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="BcmlnMr9" Received: by mail-ej1-f48.google.com with SMTP id a640c23a62f3a-a7a9cf7d3f3so536480766b.1; Mon, 09 Sep 2024 04:01:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725879664; x=1726484464; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=oOIysbZqVm4Kknw5BnD1Y7WRyTq4GEatzBCOcYtP3fM=; b=BcmlnMr9WppSUWmlrsf28k4azbDyCtkAf4WCvOlsNh3+Ukg+LRTfzmLw5M3TkNqGWP i8NmPdMqybDvpQgJo86DIeC4kLy9+82nVJ+6PBqL3kIaev+Lq1w5fEMhU8iL1C8JsFyE qQcaJ74ubHzvRGZHSuhpjB9uu5gnlxG+vikr/sesI1h2D74c67xdAx7Rg7hnC0sPHlkZ IVQgiwjIVM3LMEbBzkW759mbd+r0ZaVasRC41UiASFh0bqlvQuz7dhWiaiknBroUUCk3 pcJPFsxipgJIPvkXwH8rO+IR0AMOLlkCmj8yPFlI36A36EE2QtvCPi+zSj5yZLOeFen0 jUHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725879664; x=1726484464; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oOIysbZqVm4Kknw5BnD1Y7WRyTq4GEatzBCOcYtP3fM=; b=J6nYDMb+X1Up4kOZDgOfEo1P8xfghQZ4CZlW6KR6wrdt8j/IasRhVpn/JYIzB2Ekai EPWILkaCd0SJF0Lyto2y025abBe85dtPdjmdFWGO5ySwjKS61KzWKaXb/hQCGxu0GwMW 1hMU0hEfbtt2WeMW7riT5YXNdqfcvsRKGU9H3Gr6oXu/zQJwvCcpvhEoZcsFGtBfESHb prwRK9AGmAe2xjeGcAQ2hjQyG1XzIgdck8vzcMmAPuNtmHYFTLiEYj++JFx77wBhS5Ih pLHjQAT6Us2flDxyhEW+b2PW2X01pZg3QunzxJa3OSwcrSwh9kdGvcw6pUnchoYwuvpA eZOA== X-Forwarded-Encrypted: i=1; AJvYcCVOdNCLJDBFwcWxt/nDoayyh2fNLH5PpQ8eXDXkw0DLTvqajGHJ8edfgQT+0gQOyGmHa+W5O7R4NWQxrw==@vger.kernel.org, AJvYcCVr87sfHoN4SiuoNWgg8PfAEikvT6Fxs2ca8JXsgU29zYBiSE6gPT77G4q28ldPEPIok+duWoT66yrvHWYf@vger.kernel.org, AJvYcCXxTeqiiWFozziIpBUJ/sOY+vMA53zdDbtcPgmL0LbzFumf89VvZt9Po7U/Bo6L/lEedMpGVWXSxXee@vger.kernel.org X-Gm-Message-State: AOJu0YxMUlWqU7gV++lJuLCcfWoHmFrEE+ap2toPDm7eG4vYgZhjv0/0 iSjjDzlQSBD2EVSFSeKVWuT30hc8YRheskqHI+7mxaLXQtQgZHuK X-Google-Smtp-Source: AGHT+IERiUM6or4Hqjr/zTyzV0Z99LS3XXqRaeX2fjq5xdwd6VWNywvTTOo39tbB/wWK72tlTayvhg== X-Received: by 2002:a17:907:72c4:b0:a8d:2c00:949a with SMTP id a640c23a62f3a-a8d2c009911mr446146166b.9.1725879664492; Mon, 09 Sep 2024 04:01:04 -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 a640c23a62f3a-a8d25d5dc74sm322649666b.208.2024.09.09.04.01.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 04:01:03 -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 v4 10/10] arm64: dts: exynos: Add initial support for Samsung Galaxy S8 Date: Mon, 9 Sep 2024 14:00:17 +0300 Message-Id: <20240909110017.419960-11-ivo.ivanov.ivanov1@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> References: <20240909110017.419960-1-ivo.ivanov.ivanov1@gmail.com> Precedence: bulk X-Mailing-List: linux-samsung-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Samsung Galaxy S8 (SM-G950F), codenamed dreamlte, is a mobile phone from 2017. It features 4GB RAM, 64GB UFS 2.1, Exynos 8895 SoC and a 1440x2960 Super AMOLED display. This initial device tree enables SimpleFB, PSTORE and GPIO keys. Signed-off-by: Ivaylo Ivanov --- arch/arm64/boot/dts/exynos/Makefile | 1 + .../boot/dts/exynos/exynos8895-dreamlte.dts | 126 ++++++++++++++++++ 2 files changed, 127 insertions(+) create mode 100644 arch/arm64/boot/dts/exynos/exynos8895-dreamlte.dts diff --git a/arch/arm64/boot/dts/exynos/Makefile b/arch/arm64/boot/dts/exynos/Makefile index d7f2191c2..18f5a3eed 100644 --- a/arch/arm64/boot/dts/exynos/Makefile +++ b/arch/arm64/boot/dts/exynos/Makefile @@ -7,5 +7,6 @@ dtb-$(CONFIG_ARCH_EXYNOS) += \ exynos7-espresso.dtb \ exynos7885-jackpotlte.dtb \ exynos850-e850-96.dtb \ + exynos8895-dreamlte.dtb \ exynosautov9-sadk.dtb \ exynosautov920-sadk.dtb diff --git a/arch/arm64/boot/dts/exynos/exynos8895-dreamlte.dts b/arch/arm64/boot/dts/exynos/exynos8895-dreamlte.dts new file mode 100644 index 000000000..3a376ab2b --- /dev/null +++ b/arch/arm64/boot/dts/exynos/exynos8895-dreamlte.dts @@ -0,0 +1,126 @@ +// SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause +/* + * Samsung Galaxy S8 (dreamlte/SM-G950F) device tree source + * + * Copyright (c) 2024, Ivaylo Ivanov + */ + +/dts-v1/; +#include "exynos8895.dtsi" +#include +#include +#include + +/ { + model = "Samsung Galaxy S8 (SM-G950F)"; + compatible = "samsung,dreamlte", "samsung,exynos8895"; + chassis-type = "handset"; + + chosen { + #address-cells = <2>; + #size-cells = <1>; + ranges; + + framebuffer: framebuffer@cc000000 { + compatible = "simple-framebuffer"; + reg = <0 0xcc000000 (1440 * 2960 * 4)>; + width = <1440>; + height = <2960>; + stride = <(1440 * 4)>; + format = "a8r8g8b8"; + }; + }; + + memory@80000000 { + device_type = "memory"; + reg = <0x0 0x80000000 0x3c800000>, + <0x0 0xc0000000 0x40000000>, + <0x8 0x80000000 0x80000000>; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <1>; + ranges; + + ramoops@92000000 { + compatible = "ramoops"; + reg = <0 0x92000000 0x8000>; + record-size = <0x4000>; + console-size = <0x4000>; + }; + + cont_splash_mem: framebuffer@cc000000 { + reg = <0 0xcc000000 (1440 * 2960 * 4)>; + no-map; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + pinctrl-0 = <&key_power &key_voldown &key_volup &key_wink>; + pinctrl-names = "default"; + + power-key { + label = "Power"; + linux,code = ; + gpios = <&gpa2 4 GPIO_ACTIVE_LOW>; + wakeup-source; + }; + + voldown-key { + label = "Volume Down"; + linux,code = ; + gpios = <&gpa0 4 GPIO_ACTIVE_LOW>; + }; + + volup-key { + label = "Volume Up"; + linux,code = ; + gpios = <&gpa0 3 GPIO_ACTIVE_LOW>; + }; + + /* Typically used for Bixby. Map it as a camera button for now */ + wink-key { + label = "Camera"; + linux,code = ; + gpios = <&gpa0 6 GPIO_ACTIVE_LOW>; + wakeup-source; + }; + }; +}; + +&oscclk { + clock-frequency = <26000000>; +}; + +&pinctrl_alive { + key_power: key-power-pins { + samsung,pins = "gpa2-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + key_voldown: key-voldown-pins { + samsung,pins = "gpa0-4"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + key_volup: key-volup-pins { + samsung,pins = "gpa0-3"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; + + key_wink: key-wink-pins { + samsung,pins = "gpa0-6"; + samsung,pin-function = ; + samsung,pin-pud = ; + samsung,pin-drv = ; + }; +};