From patchwork Wed Oct 23 04:40:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846417 Received: from mail-pl1-f180.google.com (mail-pl1-f180.google.com [209.85.214.180]) (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 27B1213D52C; Wed, 23 Oct 2024 04:44:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658691; cv=none; b=uHm063Skh/YrjNf9HySzolOjBmXnaz+V/V85BuIWwwEwDv1QlB5/+BiI35+7SjPkBXUt5+/5OLE/vLPBDx3ETQ6WLDtV4IMRlTduJovdysf7jkm5mFQjHWkBAeAMZbMm7UCqmHx2ttDmdbEZxowGNd3WPc9HqE87WskstyjUgMk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658691; c=relaxed/simple; bh=Zigzrlnp/ggViYOHlizqBPJEHu5N7+T4SWqNN3pX6F0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OuVpxZIxs+PtGTBrKeocTGvG9MN+zQ0I47lC38jrdwu0f9ECp8aiFx+avot4E1PET3aN8s95p0nvtrapDXKIWLbmaJvARn1e9QekHLVq//TWa50Lv7k8sbjiwYuGKl8qhe1GFDkIFEULfFk7pMjQbhsTmJ650XCMSPaP+fsgViQ= 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=MA5TEM++; arc=none smtp.client-ip=209.85.214.180 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="MA5TEM++" Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-20c9978a221so72665175ad.1; Tue, 22 Oct 2024 21:44:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658689; x=1730263489; 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=c/DXdjRCmhmjz3IRlGxg8kr3zWLF2w8ofwZY/NRTv2s=; b=MA5TEM++NDdW7AukPrQt39zb1QPURjD4sxKz4Wi4QGaZDxpgdNgGq0VBcL88Z3Mu5M izHmHzc3V3QwlhghPm+3UjCk+y4WJsAPsgTDadywnQk7itYVUrtjDpdj94Fos/VuXodb ndUx0gTi7iS2bt4H6vBeFItV+jwHbTrG6G7EwGAa6YQ7TYcPZiTEwtYuSv1XgULhxgmP iXksRT3h3L7LwCFyNTybW1hMjZv6FYSDucLvHh9YZcxyUM3zFVUaJ2YVWHI9VpdIG/Y5 kCl7PeI7NjYS+/ydb8eb1jd848WKAhww52ySN1XmukXPTjPudq31ZTD29K9dWyjirNr2 lI/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658689; x=1730263489; 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=c/DXdjRCmhmjz3IRlGxg8kr3zWLF2w8ofwZY/NRTv2s=; b=lYq3XWKkeWdI2C1FHATKgI6OzeRxpqzz55ESOyVyVN1hPTqpfHdttLcicETsuxjv+K KflZsYh8RF25YCGC9QY7wAeQ6Ab9SqpyRVqhGj4weCWN2hVup5sRlB9NVlqNoE8+Z7nD E7qPDmfbkM6zinkajtZPvf3dd9rNNdea5eF5necRDNt2GCi3uJ6YagOT/JO4f+SLQQ6a zXW4JS5wbsWYycsVSxUeCqbTc6o4zatYOMiCqevSTTzD1d3RlqgfioVcn6TRJLokWljT +CPg3TpJpqFECPXqs7inr3ZjLKSE33oSnoJzItWSYgLHRlWGszcmEuXEqvcMZ/uJJkSM DXTg== X-Forwarded-Encrypted: i=1; AJvYcCVz0eK/JaeHUM7D39bSrRS76UJ7IdDR8aCHBr3b4dH++k0Pjak/l2B2XSe2dLEvAhTdwxUA/7Qgi3D8LnMybHU=@vger.kernel.org, AJvYcCWKv+x4bEUGvnAfHPnIUNNWB3FjhLhpOXsGEfPnzgdwGFU5Usykk94pGxgOgqtz9NwxgT0cuo/q8rarc0VM@vger.kernel.org, AJvYcCXSs9edpklP3daeL8YdYG9kD6ZBx5SHOs7uosyD5feXX+L9PKx7YLGkb1oQiMKzjpw1POCUJxGKk3zI@vger.kernel.org, AJvYcCXjiMkMmtzFqyFa22imKmPSClqwOp835Tz0jcvEMFwzXkvkdkgkZbUWcjlHTErRILI63tWbb469b/3v+g==@vger.kernel.org X-Gm-Message-State: AOJu0YzosTCg7T9JfGIWFN4YqGu1dNAKmzUxLBjAbs4iIjzg5sqnNiom QWK+GEKxi7DNcTMBsVUbHqPhujk1Ln6xo1KduPrBgzQ9UDK+bcdO X-Google-Smtp-Source: AGHT+IGn7UgZ9BJ/TlkQ+E2HAb0XR+rspKCuaZMeClu6zEYk8ERChl9lG0s2Nk1ILro9xGQFJ0oStg== X-Received: by 2002:a17:902:690b:b0:20c:f3cf:50e6 with SMTP id d9443c01a7336-20fa9eb649bmr18804295ad.38.1729658689494; Tue, 22 Oct 2024 21:44:49 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.44.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:44:49 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Krzysztof Kozlowski Subject: [PATCH v6 RESEND 01/20] dt-bindings: arm: cpus: Add Apple A7-A11 CPU cores Date: Wed, 23 Oct 2024 12:40:36 +0800 Message-ID: <20241023044423.18294-2-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add the following CPU cores: - apple,cyclone: A7 cores - apple,typhoon: A8 cores - apple,twister: A9 cores - apple,hurricane-zephyr: A10 logical cores - apple,monsoon: A11 performance cores - apple,mistral: A11 efficiency cores In the Apple A10, there are physical performance-efficiency cores that forms logical cores to software depending on the current p-state, and only one type of core may be active at one time. Acked-by: Krzysztof Kozlowski Signed-off-by: Nick Chan --- Documentation/devicetree/bindings/arm/cpus.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentation/devicetree/bindings/arm/cpus.yaml index c54d20dd9d7e..dc0d219ff9d5 100644 --- a/Documentation/devicetree/bindings/arm/cpus.yaml +++ b/Documentation/devicetree/bindings/arm/cpus.yaml @@ -87,8 +87,14 @@ properties: enum: - apple,avalanche - apple,blizzard - - apple,icestorm + - apple,cyclone - apple,firestorm + - apple,hurricane-zephyr + - apple,icestorm + - apple,mistral + - apple,monsoon + - apple,twister + - apple,typhoon - arm,arm710t - arm,arm720t - arm,arm740t From patchwork Wed Oct 23 04:40:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846418 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 22C3813CABC; Wed, 23 Oct 2024 04:44:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658696; cv=none; b=dJL7crKz08yttU/LpTyXCftMPsAL4lFsraSAQzTNxk/3tYKRxe/757M6jPYb3GtOBFhcMbo6xAnBGLKyNhNycM0XGlWj+oEKSBWVECEWu4i3neBCdAjOAptbdDQRq5t8YNKuqXZyMJSEwaHld3ho57QDz0eMBB86j9Crh2vmnD4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658696; c=relaxed/simple; bh=oEG6p+vWkAWs7zrYdXJAcLsli3rmOydvcpIRQN95zb8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=f7fCxixgnpq1T/S0fE1BY2GpgUTqERQyGg3XtgM/EVkHv4pSlGtujCmUB62WrIvHaicwWrYts1n43MLEVIpO/oLYgU2l0Cwd/UTxrWpN/cPR8K8WRU2o5pYg0j3gRxyQGfeCh8tNUQ2W1bfGdchhW26mg2Ngat0hgw/SI1ZaQyY= 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=fyTyfV28; arc=none smtp.client-ip=209.85.214.174 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="fyTyfV28" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-20ca1b6a80aso61121865ad.2; Tue, 22 Oct 2024 21:44:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658694; x=1730263494; 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=yAdYfBN+Mf10zH0eoCFYz9vxHGOsv0094bye20ACE5Q=; b=fyTyfV28kN6WMQtbuNRJicL0GDYGrbIcMXXPUr/B9+FyIDNiNWH7vUirAoXNf7np76 sITvl6/7A9i1bSvn3a38/LsFlkCkXGNNPSN4tfDSEZPNcx7oyE4Tk89Ru8wKSCDl8c6h YWXutLNnGJQ3MHFiSsyq5ZnAvGvs4KoFPIkPgUfOLUsXlKAOvFau+q1trsZSSTI+GBFt GL32lkiCyHPmd5tXSHBCKoxk1OtIyIsLipbLuBuQP0iMayljLpmLxOL4wtu0WLjxXSet 1GR4bwdYBXpSXE+D+q7xXeTlcV794S9auJw9p0xU/hqa/DEkNU3M09cQG6B4XnlKttQ0 mMMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658694; x=1730263494; 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=yAdYfBN+Mf10zH0eoCFYz9vxHGOsv0094bye20ACE5Q=; b=Vxsmqe6mM45cZyKWh+C42AT97BJvNWdGn7FjdZyf/0MnZ0a2kGXKAvIfrSE7Fo7DGN /XBwjvwycIaEYzSh2HpSzIo5o7xgiwR9fR28P8VlVitJ2n1d1+Z+yhqbpx3d5ygMlI8b s/emvAAttQFy5fQVOKd/TFGke+d6BDacSYeafxkSAmCjV6OdobQXsToL2CBQAnDb2OXN ayFKIVaf8F3x8Nu2ebrb7OjG2cqclKsP82PlyqN0eqI47dxw7pCqpa1qZU/zKluLkrHx 9j2mpSJcyGCcYhfkew5+MXNwaXBIiju6jTEKkDq+45MzxPckJLkiLmiB5p204nT1tq5q ohUA== X-Forwarded-Encrypted: i=1; AJvYcCUbBPEmVt7Fd+0ebiATlR/Q3jUu0IiDJHERizlwIpRGCD2uEAyqGy/0hvFvZ9n6x1w1QSBD4K2ByjpiHwv7hts=@vger.kernel.org, AJvYcCUoIhO9o0wn7m9cpAkqQfa30yOakE2a8TdRCpKV77GWXs5Hczpjj+mDc2rv4oNUdYsUpKe/c4+dikx4i5Uy@vger.kernel.org, AJvYcCVNwTOiGpdc6ySv3ozAczz2r7Gt7FbisRUZTO3Z1pIgXqmFAWW744o1khe75PYJVpKkrxVlf+a4d9w4Og==@vger.kernel.org, AJvYcCX7KCsBcn+kOJMx3UINDyNOX7vpE44ruzfcIdfl5FAcjojmZ0Yq9TMzTMvMRbSHMy+vq6yIU8iw782I@vger.kernel.org X-Gm-Message-State: AOJu0YwoUBZ5zin+ixZn1aWs/52MMjHgxi1U9xDf9am/Phi0G84fPQID J3RI58sfQqiUYEeTDgZ6ePxSb7SIoFQqCHsmt0Y8+49y+wNPkwff X-Google-Smtp-Source: AGHT+IFR5NkdGICd7s9c2//F6zkeu11cFy3HP0c2fdOAiP6AGF9wRnepLtOrmAX5Q8qGU1rxNE+5JQ== X-Received: by 2002:a17:902:d4c3:b0:20b:8bd0:7387 with SMTP id d9443c01a7336-20fab307224mr19637715ad.52.1729658694457; Tue, 22 Oct 2024 21:44:54 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.44.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:44:54 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Krzysztof Kozlowski Subject: [PATCH v6 RESEND 02/20] dt-bindings: watchdog: apple,wdt: Add A7-A11 compatibles Date: Wed, 23 Oct 2024 12:40:37 +0800 Message-ID: <20241023044423.18294-3-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The blocks on A7-A11 SoCs are compatible with the existing driver so add their per-SoC compatibles. Acked-by: Guenter Roeck Acked-by: Krzysztof Kozlowski Signed-off-by: Nick Chan --- Documentation/devicetree/bindings/watchdog/apple,wdt.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/watchdog/apple,wdt.yaml b/Documentation/devicetree/bindings/watchdog/apple,wdt.yaml index 21872e15916c..310832fa8c28 100644 --- a/Documentation/devicetree/bindings/watchdog/apple,wdt.yaml +++ b/Documentation/devicetree/bindings/watchdog/apple,wdt.yaml @@ -16,6 +16,11 @@ properties: compatible: items: - enum: + - apple,s5l8960x-wdt + - apple,t7000-wdt + - apple,s8000-wdt + - apple,t8010-wdt + - apple,t8015-wdt - apple,t8103-wdt - apple,t8112-wdt - apple,t6000-wdt From patchwork Wed Oct 23 04:40:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846419 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 E34ED13CABC; Wed, 23 Oct 2024 04:44:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658701; cv=none; b=OWie1+wccIsSmNJsGyq2+MgzaipVkBuWeM5hhMBHeGmWsxxZOpQGNfRzKrH7EQZYftSsdnGOBaI5JIwNvVzJ5HUC+PzaYYNnWa2HZH3a+gGtV199m3NsAkdQNF1nLvJfa/n8R1ng8XzVHoiXEbx4UG7TmiC6oZPxEQ3Pe57NFic= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658701; c=relaxed/simple; bh=xNIV6DN/8buZvNlK0QqZPtrqGuIXmLL8oUXC00+mtW4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=sKS/VOoW7YXpxo4r48sADd1MvEFnIfoINlSQGlsNKicvEaXcqnRxfT85jpOHrUfOjS/o3eD7vNaVgaMV7C/Cx6faF37Q/YaSPTp69jMuCRArsPY1cmGH4hfqhXkMi1oEC8o7PFiTx7Leki4ztcTDsskDBtfpAgdwWEuGpEaFA8k= 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=YO28bgCn; arc=none smtp.client-ip=209.85.214.182 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="YO28bgCn" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-20cb7139d9dso58355555ad.1; Tue, 22 Oct 2024 21:44:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658699; x=1730263499; 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=3kpdjyoP29XpDiPFedkAYnCbJjAK7z6B+D6DDuXAfbg=; b=YO28bgCntqtjCTnaUJzWFA/4Q4qw6yYe7pnBptxO0Q5YrBdz4OupazexFlo6boFOSb PVz4ieoJpnMa5bzdD5ovSrtkNCyLBVsOgBMhnlKgdGhEsPCIL2p5Zw14ypCvuOFY4YhV WoEvB71evdKVNQE76IEo+uaCzxXGO5rKeDPxyB8wSYLqbm9gojL0AJzIU7g707iJFx4I vO3sooHFIQz6YXfL+GaSh8JZiOws/s0XAwJqgbBsiZ4wRxTaryUShoObTTatjoU0SvK7 EqWC+lmB50XGWFkoQoYdk6KLsZtgucJY8sffh68EYsOjxlYg4ulM2n/5s+Vmgh2esXeU ZRKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658699; x=1730263499; 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=3kpdjyoP29XpDiPFedkAYnCbJjAK7z6B+D6DDuXAfbg=; b=RwRNomupg/WvmmM9KXuaWSieh6PpWNQmMzUBWUDcdl+AoOarhJPnCYJfTTYgupzmgv g9IgR3PcQYZ+firEYQvBxy5Eb2vG90MHRhmvsQwP2Nep1GChhPkCFS4upTUAyMaV141m QE/u133lw+rpSiYk01NWYbl7XTqCY51SqRYSuTLt+dx0GigZ9bQoEsAzXTF1Glp+FHZt G0x1ETVq47ipZregKhVhH9yvoTkSqqmduTz3uIE7fKw5fMmXGWL1Al9w6Kb2GocbN0dw pILMz8rAEOb/kErIboUdVecikH2INAG8qkdJQd+STUCKTo6R2VUP29aq2Nh/i2w+OhLN jC0A== X-Forwarded-Encrypted: i=1; AJvYcCUUOx9vfEa8TupVACTz1oNXFKB+1y1g5hmO3ikOgimT4CBEQ5JxJuYsZUqmCNwJtUV5a5Iwso2BUrUE@vger.kernel.org, AJvYcCV0Oc1cXtIYa6yqCsFJtmTralUEHF9JoVzH3vmFgjI7Ky2h3y+8J8ZRcXEuCGyowVZ/TmSb1WBNfAuQ1A==@vger.kernel.org, AJvYcCW5KkE9Z0dOGiH9fTaX0yqxEu8NcjC80ZHMI6VI5pmC3JovevOe9OdIZRVPb189sMS7pkyywyOBME4tObl0@vger.kernel.org, AJvYcCWxQH90cS/TMJlHK2ZpyoFKGGpTn8a7Xk7rB/DQNNP58sEgiSIPG8S2N8lWpT048I3tcV+6nGc6Og6yrOWxI+o=@vger.kernel.org X-Gm-Message-State: AOJu0Yzyzp5jGKf9KiaYVkc51rPi9GlLcFbuzuefVqW+GLx6dFreYwvP i2UAJ+M7xSgDNfloUQUeIp8nqoff0IcSyMIhpLWzvlG7k+bmY4/p X-Google-Smtp-Source: AGHT+IFZFDdv83kDhIIVLNfNpDvYr5lcyMvZPsFbMtN5Jo1HlWhITkFyccJswUnCikzDBX93+nPcsg== X-Received: by 2002:a17:902:d4cf:b0:20c:b517:d715 with SMTP id d9443c01a7336-20fa9e5e89bmr17667155ad.25.1729658699245; Tue, 22 Oct 2024 21:44:59 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.44.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:44:58 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Krzysztof Kozlowski Subject: [PATCH v6 RESEND 03/20] dt-bindings: pinctrl: apple,pinctrl: Add A7-A11 compatibles Date: Wed, 23 Oct 2024 12:40:38 +0800 Message-ID: <20241023044423.18294-4-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The block found on Apple's A7-A11 SoCs are compatible with the existing driver so add their per-SoC compatibles. Acked-by: Krzysztof Kozlowski Signed-off-by: Nick Chan --- Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml index 9c07935919ea..63737d858944 100644 --- a/Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/apple,pinctrl.yaml @@ -18,6 +18,11 @@ properties: compatible: items: - enum: + - apple,s5l8960x-pinctrl + - apple,t7000-pinctrl + - apple,s8000-pinctrl + - apple,t8010-pinctrl + - apple,t8015-pinctrl - apple,t8103-pinctrl - apple,t8112-pinctrl - apple,t6000-pinctrl From patchwork Wed Oct 23 04:40:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846420 Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (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 EC4B913CABC; Wed, 23 Oct 2024 04:45:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658706; cv=none; b=Dy0Zr0841lwd3L+oqeDnpNMQKVv/9qzG1gfO7AGSNGeAlvHKcAdpFLBxOYq1JIVnr5VZSdWXBcgHhT4/zySliU3hp0faW7tVhlm1QARRtravja84KD0vcBUi7KHKwhqEVLe79ZJs+IQumk0GZViBrspCjARPJSY5iiWmMklxwWI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658706; c=relaxed/simple; bh=UlYlVeLWj1/jD4Wc+V8YqMdxC72e0nUCkBxTnqcmimI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=krr561RUu8GyXVrM2MB/0PkCy7PjbM3enSVmg6RR2H6BL0gfsKVIHsqRV9Z+RwowkFxR7blwbn7woNFg8zu3EpsBQaoqngCatfDuojO4ktalHsSC3wOjdkuOY6z3B7G5G7Ko3r1uavVpiQVepcGDduVdIKN/jMhutfD7yx1C7zo= 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=hOoQ/N96; arc=none smtp.client-ip=209.85.214.182 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="hOoQ/N96" Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-207115e3056so53727535ad.2; Tue, 22 Oct 2024 21:45:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658704; x=1730263504; 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=j0oa/ZitNLoZMPejVfhkyWaBLfp6DNfNYv6Lewc+8d8=; b=hOoQ/N96Ccries0ORljx6qXWEfiQTVo84RZaKssBm0ot3dBbZ+7oL2hbuUOc4ZTboj PsBNYvZbkvm+m05ytHKciVT1ErGrOx/ogsHIlNkGiEMCNDByI5aBvQiAvh9bsxHJRJKD oqHuuvn64xYe+M6qjOwgEAHK9O3mXKSCaRvrdqievbAMHb8O174tcD6M2RfsdcplgWu1 VRdHVsolIAZ/+NvlLvH3l6hT8ia2xbBoQjDnHSbaWNRlgzeoD+ULC5IzPtqyUG7BZZMP Tb3tjKbCfcL/nzujGdpGlmslt02R4D94+HXtqAZwR96JPcT9ftq01b1bRaNfK0Skp3YY FYVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658704; x=1730263504; 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=j0oa/ZitNLoZMPejVfhkyWaBLfp6DNfNYv6Lewc+8d8=; b=rjfzk5aHlO7yH4TOTIL8LQqD4b2zxTvU6BlQo7x0qm6+sgG6xYnyPoqu623Yi6Zjpq 9fVjFm28XHB2KV6lUkTI5QsyUxOoHDsFiAlaVslyFdTlhUOUFg9vcT+fQMhoSj/8Ckve aJqUhN4tLnHRFcVpTV/Wd2h0fwztuxolgMiTnHGsRg9rDFEbKlVa7UGVhWmA/Rhjdho8 vHTP80k2GqJ7YV1WDgjDYFFBcwx+US4tKtLPP77imo3SphHpUwAaLiHr9Jni6LvoKLVG JQmseQp1KQh/qp1QwG22PyRDL9Jkmp1JMaTrRhuiVVgi8nNT+ORMDET9d0GRoKUGXYuq qEIA== X-Forwarded-Encrypted: i=1; AJvYcCVkN7tq4SosZ3hQMxG64nJl42SE0h1XtGAEJMw7SmrbjaI2dispiKgq4YIbvsBPqJ4abRxRa5PYv+Bl5H5V@vger.kernel.org, AJvYcCVsGVsJr/azlJlu+ZVkMYq0/2ymyB0Y+WsDd+zAfiAg7y1yrSb8+AjuuOupFjsHxTGrWgVrhGWN3a7PlQ==@vger.kernel.org, AJvYcCWrkB6liPbaUHPEiZEgZbdwRbjDoe+JdpekFyClYmb6CA4r1ARk4rLm+M+SgWlDUGI9yrmEvMi7gXIUbKyUd94=@vger.kernel.org, AJvYcCWtv8tjk2nAajVXHUd8j8bx654pgCI0Jzx/8rzlKTfyi8c9+8QiZtCcVtx/cLa+U1VtZQlYoAMkLQa9@vger.kernel.org X-Gm-Message-State: AOJu0YwKxsGOYVxIvIe5D8qPLyNZsdYyYHFOKIhkCJGNXbb3MYXfs50+ X9axMiIaAcYIt1VA+NHNKoioqSzyPsNvRfdAyzVG4Fo4rUDNM+L9 X-Google-Smtp-Source: AGHT+IGCGpL8XgY9O4we1vfDkxsryUCPguaJHl/7uD/PqNglBhxVGjPdAOM5ExueRp/VXl6sB8J85A== X-Received: by 2002:a17:903:2308:b0:20c:e8df:2516 with SMTP id d9443c01a7336-20fa9ea159dmr19234095ad.42.1729658704219; Tue, 22 Oct 2024 21:45:04 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.44.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:45:03 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Krzysztof Kozlowski , Conor Dooley Subject: [PATCH v6 RESEND 04/20] dt-bindings: arm: apple: Add A7 devices Date: Wed, 23 Oct 2024 12:40:39 +0800 Message-ID: <20241023044423.18294-5-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This adds the following apple,s5l8960x platforms: - iPhone 5s - iPad Air (1) - iPad Mini 2 - iPad Mini 3 Acked-by: Krzysztof Kozlowski Acked-by: Conor Dooley Signed-off-by: Nick Chan --- .../devicetree/bindings/arm/apple.yaml | 26 ++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/arm/apple.yaml b/Documentation/devicetree/bindings/arm/apple.yaml index 883fd67e3752..89c1e35e404b 100644 --- a/Documentation/devicetree/bindings/arm/apple.yaml +++ b/Documentation/devicetree/bindings/arm/apple.yaml @@ -12,7 +12,14 @@ maintainers: description: | ARM platforms using SoCs designed by Apple Inc., branded "Apple Silicon". - This currently includes devices based on the "M1" SoC: + This currently includes devices based on the "A7" SoC: + + - iPhone 5s + - iPad Air (1) + - iPad mini 2 + - iPad mini 3 + + Devices based on the "M1" SoC: - Mac mini (M1, 2020) - MacBook Pro (13-inch, M1, 2020) @@ -65,6 +72,23 @@ properties: const: "/" compatible: oneOf: + - description: Apple A7 SoC based platforms + items: + - enum: + - apple,j71 # iPad Air (Wi-Fi) + - apple,j72 # iPad Air (Cellular) + - apple,j73 # iPad Air (Cellular, China) + - apple,j85 # iPad mini 2 (Wi-Fi) + - apple,j85m # iPad mini 3 (Wi-Fi) + - apple,j86 # iPad mini 2 (Cellular) + - apple,j86m # iPad mini 3 (Cellular) + - apple,j87 # iPad mini 2 (Cellular, China) + - apple,j87m # iPad mini 3 (Cellular, China) + - apple,n51 # iPhone 5s (GSM) + - apple,n53 # iPhone 5s (LTE) + - const: apple,s5l8960x + - const: apple,arm-platform + - description: Apple M1 SoC based platforms items: - enum: From patchwork Wed Oct 23 04:40:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846421 Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) (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 D7928148857; Wed, 23 Oct 2024 04:45:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658711; cv=none; b=J03C8tm+mb6V6PTHf+84R8cNd8quyRt5xDSQXjuE0yRCzkKvhnJDEraDdNrbguqIPEDawdk3jZgymN8Do2HDbReR9jLvjoYlmSJT/HW0E9/px+G32pVyXvgJLJhkvjsWuXxQitsHd6H5mGXMCDuJLdBDk0TaPooKH37ULXxvJuk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658711; c=relaxed/simple; bh=/xF4mdxwIhmk8HMPBdMfDFiwL7SS1YLTggmotvU3r/c=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Y/UmmI8LlxqQjOugXShpb6+BaGC8+N4MZWLuN5Cu7ToPJi1nweK47oRU5b0oKRzzyqvpBdfmZNKJh9mRL6lclKuHhomGOBCS8+mNHN23ecW/YuKVXAzFP0R5Y3AFyhfH9DDBxN3fTCmt/lxkb/AC8awVsH61kx9WaXTiktpH90M= 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=TPGxt/IA; arc=none smtp.client-ip=209.85.214.176 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="TPGxt/IA" Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-20c7ee8fe6bso61254205ad.2; Tue, 22 Oct 2024 21:45:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658709; x=1730263509; 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=Q+4zDIBqpXebMTzDFpDT9eRBDvM63w5V4mXYWQhuiHc=; b=TPGxt/IA1vKEoeZuVRcH1CQShixfGDyCwD8VSp3Se3BwTzcu2sY1ELaynBKQiJoEen yLal73XkIYb/CIWl+Jrze5NAbsyDIoI+8dlaVQA+HAYrHTNDrHMkn5JZ5EPN/MrFR4VK uaL6fxZ6QijyZG3AjTW4TwZloDe4Tn4RtFpC8OoQTKW+1ryRbjLu1XOXzJnRYy3TI+hZ ZKikbE9lhqInTW3bDVgpgYgCKoqrnL1Ka9CJhiFRub5W5JvKLVf3+EbmGc0fmlqi6TjN R2Evqb/GtXUJ3xF8dWJAux+cmNquOF3UDFa+Z7+X94voTzuCBzwFc3dX8wgrfuohb3iJ ZG7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658709; x=1730263509; 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=Q+4zDIBqpXebMTzDFpDT9eRBDvM63w5V4mXYWQhuiHc=; b=ET7VVMBoLl49Iq0OirV6J2LF6ZA2ch40BHT5cu37g3AChLtaqSMNRfc0m9uISDfrpW q5si+vSdgeMXdbqi9WezTlK1boLTMBtiqLq9a4hHIWJ1YIo8nk+xwcUms+N8sCzF4ESu CbLUPZV2otIPfJd7TZ2EymFdxb7aNlZad9ZaLsmNtILTBjFW39SdCWAgvz3IBsUT7Cha BpA3VkiBOsQJaF3UJyLr+/zpb/wD+LOFveTLfDTH0YeEKHzAqvtlm19hmTcuW5hKwrR1 c3HqMOvtzEq7xWwR4jgg62k27k4iYPRVrKi4O8DF9F+qo+Ssb8zqbdUnat6gwmMqscIg sP/Q== X-Forwarded-Encrypted: i=1; AJvYcCUBi9dcyoqR5CEc2rKGzo5cgKDNhEQaRF0HQuMz7GcnhNm8VYEeXiN70aGsFrPoeHqdLzmhTgS5OXZp@vger.kernel.org, AJvYcCVhtRIYzNkMouT17HjmAooj3yoVgnD4uE9RdoCVUq3ac877YJPfWosQ/Hpen5x5HkaS5DQICQyo1l3AcA==@vger.kernel.org, AJvYcCXs+EC7UKeyGtdgtESBb7cQNGmB0tlG8FNI5iQ65Sfh0N0K5mtqV58xz/YND7h+avUgCK0IMG8MBPwheh2mQxE=@vger.kernel.org, AJvYcCXtFqxY4QQ2HXgH3skch5oW1I/QGbD6zqbomE1ufBJpZcQ9EMeyFCG1Me05DBH1Mhu1doInL/lVw5z00aEZ@vger.kernel.org X-Gm-Message-State: AOJu0YzGOd24FKh04cq2/vpNW2qPZ2ZXB8oXREq5BZSL2QM3t0gXXINo kgmArSuBkKQ12ZZ1GPtwmRJXVaBElOsw4CXUlbMZWwA0QZvxCI6XWEzBgrCWkEY= X-Google-Smtp-Source: AGHT+IGkZ0YiYKN/wZ33oPdz62pyzHKEQvLTlWCTI8o78RTGv7e5bqySL1yDyI7UrJA8DguKMMVqOA== X-Received: by 2002:a17:903:18d:b0:20b:6188:fc5e with SMTP id d9443c01a7336-20fa9e5feeamr15742345ad.28.1729658709189; Tue, 22 Oct 2024 21:45:09 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.45.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:45:08 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Krzysztof Kozlowski Subject: [PATCH v6 RESEND 05/20] dt-bindings: arm: apple: Add A8 devices Date: Wed, 23 Oct 2024 12:40:40 +0800 Message-ID: <20241023044423.18294-6-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 This adds the following apple,t7000 based platforms: - iPhone 6 - iPhone 6 Plus - iPad mini 4 - iPod touch 6 - Apple TV HD The remaining HomePod is not supported as part of this patch. Acked-by: Krzysztof Kozlowski Signed-off-by: Nick Chan --- .../devicetree/bindings/arm/apple.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/apple.yaml b/Documentation/devicetree/bindings/arm/apple.yaml index 89c1e35e404b..c05a4414c8b6 100644 --- a/Documentation/devicetree/bindings/arm/apple.yaml +++ b/Documentation/devicetree/bindings/arm/apple.yaml @@ -19,6 +19,14 @@ description: | - iPad mini 2 - iPad mini 3 + Devices based on the "A8" SoC: + + - iPhone 6 + - iPhone 6 Plus + - iPad mini 4 + - iPod touch 6 + - Apple TV HD + Devices based on the "M1" SoC: - Mac mini (M1, 2020) @@ -89,6 +97,18 @@ properties: - const: apple,s5l8960x - const: apple,arm-platform + - description: Apple A8 SoC based platforms + items: + - enum: + - apple,j42d # Apple TV HD + - apple,j96 # iPad mini 4 (Wi-Fi) + - apple,j97 # iPad mini 4 (Cellular) + - apple,n56 # iPhone 6 Plus + - apple,n61 # iPhone 6 + - apple,n102 # iPod touch 6 + - const: apple,t7000 + - const: apple,arm-platform + - description: Apple M1 SoC based platforms items: - enum: From patchwork Wed Oct 23 04:40:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846422 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 D6FE113C9A2; Wed, 23 Oct 2024 04:45:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658716; cv=none; b=vCxQTZmeFHMIVhnXCguiXtjd4NHZJgz068IJ6T+U3B3G86yCGGw1Rsg0dgnuWsO7X3C6B+dRaNwOe7bOw6TUVt/0K8bpuDz+AB7SzX2zpHUS0w9/ln3nYUdIuyqQbEOs6v9JzPPyPYDpvXj3iM/iPzmGvqZ2mXGfrh6QO0m1KMs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658716; c=relaxed/simple; bh=QyRVCV7k0IMsHEFlNwqwOXLJhq0As8matIK1rrm+8R0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=f5RMUhvozatCWQNGhjnEC+E1LPzV4wGiCd9KQQoZz4S51AA0DjzRrrawcKjj/SZ+vCc3oxmFLVsN5ha03DCQ7EHnRwi9I/ECgB7kqD02BbTxLSFT4begiGL+Z1uWdJk26TV7j5pcHlHi1iXQ+FXpRIB0pCVjFGr1CRgidxm59CM= 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=VSf3LeQp; arc=none smtp.client-ip=209.85.214.177 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="VSf3LeQp" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-20e576dbc42so46933435ad.0; Tue, 22 Oct 2024 21:45:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658714; x=1730263514; 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=VRRyn6DkpWMz0v2kqaN2e7vs9rb3yVIRaf7RcLqYaMw=; b=VSf3LeQpqNbiWFl/rcUN2oCvZYfII+vtKeklIKQEJOEyTsZMP5TYpA1NVFcnlWZH9X MocwwFwAsWJX/OZ937uggtxSmHxo3cBOhat+xZt9nCbvQqABIREEazNILHOkSTLBmmE/ awSo1KTsIOPjgaBrfqzTw1FbLTmA/utSraQkP+qJcIyNdxZGfXMOsgUFn3Ju4g++RY/s p5Bhk3y0Vlf1dXb7lyZ5ezwQji5vca42d0e4eEvDeA0y8HjHEpe+dyiCvqZAaVHJFfhC OBgKOGVULGN9kua5M+0Q9auT4PnNUd2Y6aYeRcR3aXfmYELZYPReQK6vIStDR446UK7O dW3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658714; x=1730263514; 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=VRRyn6DkpWMz0v2kqaN2e7vs9rb3yVIRaf7RcLqYaMw=; b=IbVib20dkzVZZn+vtUHhJj5XzzhdqxM64Mw9QX6TJel63vdVlueMejXHM+q4axjd4H vgS8lUjaasGbwnqzthfckP27qlVWzGXjly15LBW7d/l/8TM4shUngUpiC0CXYvbgDHXm wK3HY5mc1jYDQkv4CP4GQt0deC62K/izDe2eJXOyRB7QPvTWMpI8IM1wEG2O13BojAtu PA5W1PCUVUi9wKNdJNuNr+Xq42m8Db6jngpD83RATh7nRrstSmW1yGz3sbSzuF6Y0bO7 E0S006Y4pIF2/NE30rrfMogYwgfVFDrVbz/YPuZrbHLBkZ54hHo3Lo5mPHiBpK28koHy g84g== X-Forwarded-Encrypted: i=1; AJvYcCUebXKHV6Aq6rJmCDXibgBvnUUMbxx7KAFqvO73LaR0MWaDJDrShHPT0drMc8CMhw+QcHOPu5Kt6IefGg==@vger.kernel.org, AJvYcCUl6qTJ5grhvwPBbZ4hmSMY+XZ+22Fm0knVeGtQ2xulp2R8ROdjkW9Jo6AIlIpZlbVDs9OhuyYlZPjJlgSq@vger.kernel.org, AJvYcCVefqJAXB+saycRQRJSfB/vcZdRJjU+lxVTLpbVrlGffaKXV5oiesk8Dtm8eRz2pUeavRo6cU15dfw1TogLIxE=@vger.kernel.org, AJvYcCXku6HX3neOAe/dgktzGJUAazoSqVN1lxRXGGrJmr+oB2eaDhGrE5iMbU/t8BANgpQkayySUkq+iDqm@vger.kernel.org X-Gm-Message-State: AOJu0YwydlFPJFdRtwxtb5DLTMYQY0iiFBBZ/4i9GklY33/8ixx+c9GI Sw82HinOERg3AnNVebBIGXhv+nXhtxIXn98pu1lcxTxEKsLfC71E X-Google-Smtp-Source: AGHT+IEVxY6WS0+t4ZS0RRhzjZgRl3Kk/p4MYisUMVUnP7LVq42/iEODevokAF0quLoBPBwiWFtO+A== X-Received: by 2002:a17:902:d481:b0:20c:ecd8:d0af with SMTP id d9443c01a7336-20fa9de9252mr17066275ad.9.1729658714157; Tue, 22 Oct 2024 21:45:14 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.45.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:45:13 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Krzysztof Kozlowski Subject: [PATCH v6 RESEND 06/20] dt-bindings: arm: apple: Add A8X devices Date: Wed, 23 Oct 2024 12:40:41 +0800 Message-ID: <20241023044423.18294-7-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add the only platform based on apple,t7001, the iPad Air 2. Acked-by: Krzysztof Kozlowski Signed-off-by: Nick Chan --- Documentation/devicetree/bindings/arm/apple.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/apple.yaml b/Documentation/devicetree/bindings/arm/apple.yaml index c05a4414c8b6..fecc4953df33 100644 --- a/Documentation/devicetree/bindings/arm/apple.yaml +++ b/Documentation/devicetree/bindings/arm/apple.yaml @@ -27,6 +27,10 @@ description: | - iPod touch 6 - Apple TV HD + Device based on the "A8X" SoC: + + - iPad Air 2 + Devices based on the "M1" SoC: - Mac mini (M1, 2020) @@ -109,6 +113,14 @@ properties: - const: apple,t7000 - const: apple,arm-platform + - description: Apple A8X SoC based platforms + items: + - enum: + - apple,j81 # iPad Air 2 (Wi-Fi) + - apple,j82 # iPad Air 2 (Cellular) + - const: apple,t7001 + - const: apple,arm-platform + - description: Apple M1 SoC based platforms items: - enum: From patchwork Wed Oct 23 04:40:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846423 Received: from mail-pl1-f170.google.com (mail-pl1-f170.google.com [209.85.214.170]) (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 AE068143890; Wed, 23 Oct 2024 04:45:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658722; cv=none; b=kibZKaRuAqU7SqLuniGhX5Ug6f0WkQW8WUrCsM8KMuCB9vHnYgW9Z6ncAnxAJtVLZ9BaZm1AbcnmBxQ3mZDBLFjZYFQWs5XmC/VXsmyWRBUQy0lGAY1Pg+BOpsMeLgm+jTvHAn3aEFgpLw8pR9FKavJi4hFc6J8pfU/fcBeOq/8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658722; c=relaxed/simple; bh=6B3oNBth7WdCDZKAEv+sr4ONIRSxuWPkgVqTYOi3EKA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=K8hZGtiqAvDWSNqq4ek3Yj0xsfI91S3CheNXsZ5TNQsX2/Ed+5uxfjS+ndy3Rn3tKUTo+3k/BLkmAsGc3vRP25y52rd9KfAhEkYWKVz8EGfPt24C0W4ZJ80EMgwC53fneqbZ5u6Pr15gLWMCO3i/BVR5cm7mUW3THGqXJIHzKHE= 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=ex2D56g/; arc=none smtp.client-ip=209.85.214.170 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="ex2D56g/" Received: by mail-pl1-f170.google.com with SMTP id d9443c01a7336-20cf6eea3c0so52200845ad.0; Tue, 22 Oct 2024 21:45:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658719; x=1730263519; 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=wxIREcENY/VE72Bee6nwhWXzCYg9Bd3zdNVXoWML8C0=; b=ex2D56g/TkleuumGvIEK5GxC/UkO2YgQvxZp2rCwL/3LQUKqDVu/qEtEXwHqTtx31H dBhLiHkWcmv2y+8B7TVdz2VEwfyijDry1GM8OB1rskNm7MU2YZO7wEDbWSjE70LeeGah /0RN91fjKPtw0u5IcxxG1z/Yh+QE4/Jo3JArINR7Dnn4aLt2RKKGaJ9XzGDDO8VkPlXc ZNnsUi6rTKVw9MSNNRigb7jaLaYsl7g7HA7uagZJIS3VAuoSLyfUYKu3UkqCYlX7tql5 nsqrIR+X+ZyJoV8PzFZc4KP80W4hgPiO8MPOji/qGNoIO3eBrSTLaxpkkBpuTjlxFmeQ bkgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658719; x=1730263519; 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=wxIREcENY/VE72Bee6nwhWXzCYg9Bd3zdNVXoWML8C0=; b=TL3zz6nXly7f5zoV5tZVluwQzg4pAQ1RMJ/2UiNgfsqT6C+Nuor3BXYrnrHVJvjJcn /yp6O+QKFcDJN0H73lzamoc1MVX7OaaHN4kjgjtR7HyG7RhHZLCXyz14fnFMoNHzC6s/ LpWn2LPqNsvQ14qM2HC11nY9fZF4oROBp/FUQxXGxe8S0SZRepV+vNPb3It+RLglod6R 91aGTpl9In1lcFQBngnUnzBj2pxiAlgUBgueFROIPyvcrBcGL77WVHKrwRHza/9oFKEi 7QTALDsglwtR+ptbtKOnoVCk0a97OUvWRCD0wYGIoTfKP553N93ilwYn9AYk2gtRrZJE 8bXw== X-Forwarded-Encrypted: i=1; AJvYcCUaZO8+QryjhuH6c0cANkJwCGw2Iw3VWU8MZckVWi0Nx1sePr3FR7k/WIBG7oI6gsmk+8N5wEzuGhsiJ3G6@vger.kernel.org, AJvYcCVt0g3OFa4MMHkRxVJKpAWTwMdyZSsL0+w7RIiMVIsv0uXNI9u8P/+9HLI5D0PuFth6rsmeQnSBxzBmgg==@vger.kernel.org, AJvYcCW4thtDIhQKbaptcsqI5YY9T1rnqcmsZsupLHLo4hm9WkwCP9qsLviF8N2o/8r7WtY6xRRCffiRWRamhSAFKNc=@vger.kernel.org, AJvYcCXVeQYXyVMH2WtxCpwsRA4NAaq/gsbzC980LN8a9ngv2dJ+yD+ul4Nw3fLGQ/u4CnsBthI6VKIJyBVt@vger.kernel.org X-Gm-Message-State: AOJu0YwQtFFkoV3xgwAD7dgpNuVHWgSYWrwHSnKfrDWv3WWnm3cliBYT 1QZtPGJDmYzpVJgPs4COHMLIj2hr7QMmsAVir4kg+tA2YNJwNqBw X-Google-Smtp-Source: AGHT+IGgXur+PX0IJXc2NTjsffcocHTpbrnxwthHzYoKrR4LqxCxd1MUW6l8EO4Kl2BjcMtY5PnxnA== X-Received: by 2002:a17:902:cf07:b0:20b:8776:4902 with SMTP id d9443c01a7336-20fa9ea14cemr19282485ad.38.1729658719265; Tue, 22 Oct 2024 21:45:19 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.45.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:45:18 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Krzysztof Kozlowski Subject: [PATCH v6 RESEND 07/20] dt-bindings: arm: apple: Add A9 devices Date: Wed, 23 Oct 2024 12:40:42 +0800 Message-ID: <20241023044423.18294-8-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Adds the following apple,s8000 and apple,s8003 based platforms: - iPhone 6s - iPhone 6s Plus - iPhone SE (2016) - iPad 5 apple,s8000 is the Samsung A9, while apple,s8003 is the TSMC A9. Acked-by: Krzysztof Kozlowski Signed-off-by: Nick Chan --- .../devicetree/bindings/arm/apple.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/apple.yaml b/Documentation/devicetree/bindings/arm/apple.yaml index fecc4953df33..01965890b4ef 100644 --- a/Documentation/devicetree/bindings/arm/apple.yaml +++ b/Documentation/devicetree/bindings/arm/apple.yaml @@ -31,6 +31,13 @@ description: | - iPad Air 2 + Devices based on the "A9" SoC: + + - iPhone 6s + - iPhone 6s Plus + - iPhone SE (2016) + - iPad 5 + Devices based on the "M1" SoC: - Mac mini (M1, 2020) @@ -121,6 +128,28 @@ properties: - const: apple,t7001 - const: apple,arm-platform + - description: Apple Samsung A9 SoC based platforms + items: + - enum: + - apple,j71s # iPad 5 (Wi-Fi) (S8000) + - apple,j72s # iPad 5 (Cellular) (S8000) + - apple,n66 # iPhone 6s Plus (S8000) + - apple,n69u # iPhone SE (S8000) + - apple,n71 # iPhone 6S (S8000) + - const: apple,s8000 + - const: apple,arm-platform + + - description: Apple TSMC A9 SoC based platforms + items: + - enum: + - apple,j71t # iPad 5 (Wi-Fi) (S8003) + - apple,j72t # iPad 5 (Cellular) (S8003) + - apple,n66m # iPhone 6s Plus (S8003) + - apple,n69 # iPhone SE (S8003) + - apple,n71m # iPhone 6S (S8003) + - const: apple,s8003 + - const: apple,arm-platform + - description: Apple M1 SoC based platforms items: - enum: From patchwork Wed Oct 23 04:40:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846424 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (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 43F1314AD2E; Wed, 23 Oct 2024 04:45:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658728; cv=none; b=CCeDsUxrH+LB6iP+TUW7syqmmwdPwyOSwzycMQUMoJiiLvT2Ck4+akrfdwBlOOAl0liDUw889MZWysAvphjpqn1kA6T6pr78Y0G2GCpmGwszo8TKDPclkPIUVTIa2XyCa2Yrtgrjv4iJ8D+ITWWyzGGKD0uwFj3mZEqE8puSlxo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658728; c=relaxed/simple; bh=EUU78kZNwoHO8Nwzpazo6uRxyqhOIPAANrOLKIujOpc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=WcCHmqstaBAZE2IsVfJsE9kq928Z4dPIrGsdJ9oVLOidMn4JPxL2zQnF2510wXXdVNgLWlLXnIONTfzSXO83BCjxWUYUDnNotC7x/W22zlVcoCbAT8Hr15fvjsyekyIfX1JSZx6FLiYchgQAIl3/3Vqc2udZw/1x0pQrt8JwkIU= 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=gMj1Nv8s; arc=none smtp.client-ip=209.85.210.172 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="gMj1Nv8s" Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-71e61b47c6cso4915277b3a.2; Tue, 22 Oct 2024 21:45:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658724; x=1730263524; 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=bcarKreMP1Q/pdoi5/P9xmiPp+4y+yFJL0ckVrG3Cq4=; b=gMj1Nv8sadacxJfEX6R0HXVxGeNqKnoNSoybocg6P6I84mX4rli+CjMQyYSyHiybx7 R13yX3nVK6s1P8l4rUZQCMloG3NEriTP6S0+FO07kgNP2dvt9EJM389KrCGZXXHPE+KV p1h0ELN1mxlFIZLABKmqV5CnKlD7V3xXesxkUMsr0Rq3dzkbNjcQB230/HoLsLQmrSzF 1A/vo9G9FGijrlnzLpzAs9JZi4QugluMArEEpULXK6yICQYN+m21PAkynbLZOt0LCdcf glJjhY+++optH04oSM23trx5dmi52Ap8XaFM9ABS7v7pEFsmboou5Ah8MBmc/PL780Z0 UuOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658724; x=1730263524; 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=bcarKreMP1Q/pdoi5/P9xmiPp+4y+yFJL0ckVrG3Cq4=; b=ZzdemX8ojqjAwC8BpLdwXaAAuuMHu2lW24nzkYLY9g6f6erAYBUylmpJMAgoQUs7W8 tiVm6WlDQxBmNZynXhXS3mobFyzmYwzssQL1mzLdEb6mCFHbcCzeJ09D70jLhIN2IjX5 OSJ6q1rO45bS6plIwnrPVfUHDvK2qvwv99NKCI2o4jHa++fRQ+nLFyBm0Z6xjZx4AWK5 wtKuX96VVp7RaqBBim/FF9BaKlUm2grMQWJc/rAejCtHT/chCaJnhLLl++cF+zCzMoCH bRMsqWB7IKNMAn3KaC5iQCuDJ2XNzo5Gm+Td2fTYTdUi5Z0impSGaFe7qfKVKIOmXMLS Kx5w== X-Forwarded-Encrypted: i=1; AJvYcCUDNbOOqvPclRnpzPs4ynvWjzPhWBk5LDtHdehrzKhExevdxiyNo2BeNZHEVM93OiDXZwcZDgTqwBLy@vger.kernel.org, AJvYcCVH3loc/oxGSRo5sYwfDzrFbsAaH0tjSOgjLAmwQ8ZAPS4bsbnQUPFEh3+24xVQrxSMRyeqqWnQJS++Xg==@vger.kernel.org, AJvYcCVTUe0SrA+PUdtAm1pF+EFLgcem1/Oiqqr9y5jYxe8TfPDAd/NGiL1nnceJnSrr4juAujG/pqowHo9xF8aS@vger.kernel.org, AJvYcCVU8j3WrB/IFuhdobFEuzJlSyUs79A80NEpYshtcElpzNYQi6I56rPZ7d5f+ZvNpQ+E4ReTik04XXdS3ypicxI=@vger.kernel.org X-Gm-Message-State: AOJu0YwufUDej2/wLsvrrO2GEjiQups509p8tUbkyty1U6bshn3XxMVb lU/TK5B7LvIvonnYi5w54cgude61hl+pYEI9TrNfRaBJyEzZltd8 X-Google-Smtp-Source: AGHT+IExn+fPRcV10FHE9dtg/+zBAnh+t9Lwtv8s2LJ4pkCkmAnCSv3NLBBJjN4CFeH8Crk1vVbBkQ== X-Received: by 2002:a05:6a21:39a:b0:1d5:14ff:a153 with SMTP id adf61e73a8af0-1d978b0fb3dmr1939343637.12.1729658724392; Tue, 22 Oct 2024 21:45:24 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.45.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:45:24 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Krzysztof Kozlowski Subject: [PATCH v6 RESEND 08/20] dt-bindings: arm: apple: Add A9X devices Date: Wed, 23 Oct 2024 12:40:43 +0800 Message-ID: <20241023044423.18294-9-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Adds the following apple,s8001 based platforms: - iPad Pro (9.7 Inch) - iPad Pro (12.9 Inch) (1st generation) Acked-by: Krzysztof Kozlowski Signed-off-by: Nick Chan --- Documentation/devicetree/bindings/arm/apple.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/apple.yaml b/Documentation/devicetree/bindings/arm/apple.yaml index 01965890b4ef..253dae759f10 100644 --- a/Documentation/devicetree/bindings/arm/apple.yaml +++ b/Documentation/devicetree/bindings/arm/apple.yaml @@ -38,6 +38,11 @@ description: | - iPhone SE (2016) - iPad 5 + Devices based on the "A9X" SoC: + + - iPad Pro (9.7-inch) + - iPad Pro (12.9-inch) + Devices based on the "M1" SoC: - Mac mini (M1, 2020) @@ -150,6 +155,16 @@ properties: - const: apple,s8003 - const: apple,arm-platform + - description: Apple A9X SoC based platforms + items: + - enum: + - apple,j127 # iPad Pro (9.7-inch) (Wi-Fi) + - apple,j128 # iPad Pro (9.7-inch) (Cellular) + - apple,j98a # iPad Pro (12.9-inch) (Wi-Fi) + - apple,j99a # iPad Pro (12.9-inch) (Cellular) + - const: apple,s8001 + - const: apple,arm-platform + - description: Apple M1 SoC based platforms items: - enum: From patchwork Wed Oct 23 04:40:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846425 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 2214814B946; Wed, 23 Oct 2024 04:45:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658731; cv=none; b=c+LVoIwn2Z5VfnYGtbOtinJCxkOK2wkllBvoOxnwEYriVZ4E0Iqo6E4H+LLNExoI0K1+dWjbTfHU6E04pPEhSizNX0syVjY19MWwd0WayWfv+cpQivdTapsgy0NhYcg3lfx0ykabZw2T6ChYv2c1aAnjW8OFguI52bsWCrjjGqw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658731; c=relaxed/simple; bh=4HKNim7HFxJRjrFmDGbWHva7HxDNUViZOa/mq0bin68=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=is5lPWi+kpXYcZprXEg1Sp4/Jl62um4/9YQa0H12ykqZGDrI4Ld7j8WmXclF8rle8TxlE7UB2PAL+++khSbXPXh9hg6ZsYLopyRWi+ShoSRZ4E/5FinVjhy6yjz1b77NOecLyPthvSyBYOCfL6U4XPwK0kERu6jXJK4MJL0lxXE= 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=NlN9q8NX; arc=none smtp.client-ip=209.85.214.178 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="NlN9q8NX" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-20e6981ca77so48189885ad.2; Tue, 22 Oct 2024 21:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658729; x=1730263529; 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=pH2ow61Xa10eYMI/pQ47ccz7OPzd71+FsvtkLoWx3cI=; b=NlN9q8NXx8PaMbocjp9mWOTMq26Z8QlK2kxhjGPiRbtRo+pA8Vqx4+clAhPZSoIWEJ Qa125R4ze8ifVRbqPa4Z072cFH94o3Q2JV+lmrfdDeauMtBrIPivQuvLrUqwdGRb9Hrp l/mbD9jQjtarw/b6ySP7Y4wWLOApAxgpqDENyyw69Jzb4xWisZN4O6W/pWR/P4qDoV2U Gi+zsxwF7kjaYnGLF4eeLUKqnQnXPGw+AyPAM9cUiJnXmiWp5eVcHZmGQyT3rwbGxt/k 0wLIJyT47QmLfFzZTR9cN87SnuoC90dLNe6j6nNNUEWxhohpEOH2DaAFFEln9H8WFyno R7bQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658729; x=1730263529; 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=pH2ow61Xa10eYMI/pQ47ccz7OPzd71+FsvtkLoWx3cI=; b=VQe8OSqal8tS6hDJMX6Y3bRmEVwnh0oLs2scSM7NlhZh5ws7xcwDhx738fKYIpLzSB 7n26OXOm8ho2LeNBWc9oY2wTXixNvigit8vTidKVyy4x0SFgUM3xGn1FqASICjXqPfQo Oog+Rqc9GrbvkCwz0b7y8FBKWoIUfdKksnijh8avEH+A1z1TmJOuruIsM7Y0B+iosQH9 lhoFB0KiUjZUje4fc0Zijq50Gg0uz+g1G9UP9sEJIwHw4r0qsKYN8GhggfPYI1kLec0p Pgr3tyJKZ63VaEvowB6SLK8rzKFczN7BXo7JA5FNIUCLuP1ljlR5cnpLLdyILBClsDtr py6A== X-Forwarded-Encrypted: i=1; AJvYcCU+9lw5C3Y9lomWiWQe2ru3icqR+fuGcz5KTW2qaZrOspubFNKbMXGb09VPQKbGiJe3kb+G7NlKQS/lbBGPYqE=@vger.kernel.org, AJvYcCWK1WHdGZYNpvlt+gjJnKaIvxS9hFmetAZD4+BocHkplMync1/l+3KZsReFc2k7fq15Aue49CPZkTaaUA==@vger.kernel.org, AJvYcCWeCx/kyWVFh1qAaHCkNvqd2hw3GbG6yARk3806HUl4wr3cFityLljj2jqWk1VZ+WeHYvjaioBDT9qethd1@vger.kernel.org, AJvYcCXVfgrRLJnanfrmHexUf5GM0QuT7vPCtBgzj1zvagtVEZFBGzT+K2ljL1mR9W1jV/+AfKanr/LZvckw@vger.kernel.org X-Gm-Message-State: AOJu0YxTi5dl9auYsp2B56jIpYdGgwPqAQGWfBh7VYZkbPL7eSESbEoh pDlNiZlL8zL6hSb3s3hZf9HQGxhlx3cCeIwOUY0JfhTmY6C2F184 X-Google-Smtp-Source: AGHT+IG5gi7XjdZQIYYPSYGr62YReQleUZiDqBaU8LyLMAVcCSU8coTf5w5e/pm2Iv+t9BbyTg/KEg== X-Received: by 2002:a17:902:e887:b0:205:3e6d:9949 with SMTP id d9443c01a7336-20fab2dbbaemr16378215ad.52.1729658729422; Tue, 22 Oct 2024 21:45:29 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.45.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:45:29 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Krzysztof Kozlowski Subject: [PATCH v6 RESEND 09/20] dt-bindings: arm: apple: Add A10 devices Date: Wed, 23 Oct 2024 12:40:44 +0800 Message-ID: <20241023044423.18294-10-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Adds the following apple,t8010 based platforms: - iPhone 7 - iPhone 7 Plus - iPod touch 7 - iPad 6 - iPad 7 Acked-by: Krzysztof Kozlowski Signed-off-by: Nick Chan --- .../devicetree/bindings/arm/apple.yaml | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/apple.yaml b/Documentation/devicetree/bindings/arm/apple.yaml index 253dae759f10..b6a2916fb0f6 100644 --- a/Documentation/devicetree/bindings/arm/apple.yaml +++ b/Documentation/devicetree/bindings/arm/apple.yaml @@ -43,6 +43,14 @@ description: | - iPad Pro (9.7-inch) - iPad Pro (12.9-inch) + Devices based on the "A10" SoC: + + - iPhone 7 + - iPhone 7 Plus + - iPod touch 7 + - iPad 6 + - iPad 7 + Devices based on the "M1" SoC: - Mac mini (M1, 2020) @@ -165,6 +173,21 @@ properties: - const: apple,s8001 - const: apple,arm-platform + - description: Apple A10 SoC based platforms + items: + - enum: + - apple,d10 # iPhone 7 (Qualcomm) + - apple,d11 # iPhone 7 (Intel) + - apple,d101 # iPhone 7 Plus (Qualcomm) + - apple,d111 # iPhone 7 Plus (Intel) + - apple,j71b # iPad 6 (Wi-Fi) + - apple,j72b # iPad 6 (Cellular) + - apple,j171 # iPad 7 (Wi-Fi) + - apple,j172 # iPad 7 (Cellular) + - apple,n112 # iPod touch 7 + - const: apple,t8010 + - const: apple,arm-platform + - description: Apple M1 SoC based platforms items: - enum: From patchwork Wed Oct 23 04:40:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846426 Received: from mail-pl1-f177.google.com (mail-pl1-f177.google.com [209.85.214.177]) (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 14CC513D891; Wed, 23 Oct 2024 04:45:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658736; cv=none; b=onxD33R6etZNf0P5ArpfC3krs3lgYqGlhEOK7Gk8nIbbVc83VSllJblYtvWWnMrznjtHbdd7R5dMNm9iVdNWgv8z16jOkOuXoYLOVwQrUDXFwVcxqXSP6lSeUqoCYI1A86oFNlgo8Jc+xxRcycNhuLqvvdnqpH0ZnH0o8r0+WIw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658736; c=relaxed/simple; bh=w3eVY/B29SRF0KT2mswItvepFQQjOQ+Iv2sPUga293U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=DuCsEgz4lyMcFJ7k2DHCV67S5vvc4tAl1VhGjsBuvRtGZIFfbJx2r44K/7Kj1OwpKTn5nqHMtGsaBtPkpOfnNMrRTHLPUI5jThtc78DyESqlmwsh77JVi66E0j4A6Y+hLov3EtiiVQnky1KquMZJrrX/dMAwRSO5V3jGm9FDoDc= 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=RRSrj5aa; arc=none smtp.client-ip=209.85.214.177 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="RRSrj5aa" Received: by mail-pl1-f177.google.com with SMTP id d9443c01a7336-20cbca51687so62986815ad.1; Tue, 22 Oct 2024 21:45:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658734; x=1730263534; 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=Y5tGCZAwgsQd/JEpSzWcjKaVDDVs2G7IjrY/5JPqA68=; b=RRSrj5aaVzjsC4CLP6Vw93MGDEC9PY1JodHEzRErUMw17Iww6KVs/XVTGZ3R33zUm6 F/tM0tW+sLabv3p1rNDGlKShPyCpq/jTFxnPqWpE3zZYtOskXYui+04cmcSaYeJn9os7 kK22SBCz+bBaBEjrKqoyWZWNUYwQV1JkR4+Q8o2WW3xRkE/IryzdHaEQvcCCpIg8jWDJ 6KqIGeYbB+mH53Eudy1C38oh7Xze/+o1tW6jPzUm79MduL9ZUldKy+8+PQH/KbeGRVZ1 24R/z9Y6NqpVpHeVQYi+DWwxEewDTVIait1hmwQdKqzyJwUJy7QoBJRvM8ir7xjoh3eO yMhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658734; x=1730263534; 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=Y5tGCZAwgsQd/JEpSzWcjKaVDDVs2G7IjrY/5JPqA68=; b=Tv/Mqkx+LrwMvWESX3ID9eiDLmszmVXLKlcCftnkVlEn1dx+UHwhzS6vR7z9NRJTUU I6mwblEcaPEKcb/BkgntsTwSz5jZXQqEetr1MTPpdzH/Z77lCMWSgCl9UOP49BZ0fyPh 4Lb0Ve0Oct8S+WjyHSwAEszfO5SDoyZwdhqLw1FqiNdsKJYALxYneYD93IcoGxoGNQEu 6dA9D6TC0+OquE5DJGhb16y5GjovFDwTOW0JIuifSMQyB5fbr+gBGxlO1qTp6cbxIjAg wcLE0HtHYPhTXKVJxaZXoXIXw1hRE+mzyoVQvHMLpTx6BhXWiFt3EQYMQifHgixogn/o pjPw== X-Forwarded-Encrypted: i=1; AJvYcCVT/PB2g0Ct/FQevdP393CW6+39W/+Hzr3aNLvcQdUu7klcP1wkh4NEGM8SGQqvczGju2328GJamuHxHg==@vger.kernel.org, AJvYcCW/QaM8Z9IBCNFBuhmBXHKK08N69yq7Bk2om3jB4RSGDp19NXeyx70n5Atz55cZ9o96PMIEwrh5n32NvgdRo88=@vger.kernel.org, AJvYcCXO0aZfe25naPZIHZm3w8O8/AEd9t1q4lsNOMYL70TzQENpQqnWKdATfN4jw/gjVDjciYXGS/v1CmDX3gMx@vger.kernel.org, AJvYcCXWgzJQLJRwHxWK/ot20Zo5uv4pUbKL1ZhBZ396MxWsUT6sZWkJokw0WTbrMLHTUQiGymhfXfo3DIAk@vger.kernel.org X-Gm-Message-State: AOJu0YzkQyucchHG+fcdRhemguYk1/rySbKILULDAAcVg61N4nLafasP J3Q9hvTex1btHpOdWi36MnlgYSCq6BCWg/0XDIDmVDzc3b8lKVrq X-Google-Smtp-Source: AGHT+IGQczJSDPY9IaBIYcgOGXzqfF+JMyKf0dT11UOK8ODDHJNEr+deUWTrKgnZ1HQ/JnYRDqWFJA== X-Received: by 2002:a17:902:ea0f:b0:20c:705b:4123 with SMTP id d9443c01a7336-20fa9e41209mr17062725ad.21.1729658734324; Tue, 22 Oct 2024 21:45:34 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.45.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:45:33 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Krzysztof Kozlowski Subject: [PATCH v6 RESEND 10/20] dt-bindings: arm: apple: Add A10X devices Date: Wed, 23 Oct 2024 12:40:45 +0800 Message-ID: <20241023044423.18294-11-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add the following apple,t8011 based platforms: - Apple TV 4K - iPad Pro (2nd Generation) (10.5 Inch) - iPad Pro (2nd Generation) (12.9 Inch) Acked-by: Krzysztof Kozlowski Signed-off-by: Nick Chan --- .../devicetree/bindings/arm/apple.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/apple.yaml b/Documentation/devicetree/bindings/arm/apple.yaml index b6a2916fb0f6..96efadad15a6 100644 --- a/Documentation/devicetree/bindings/arm/apple.yaml +++ b/Documentation/devicetree/bindings/arm/apple.yaml @@ -51,6 +51,12 @@ description: | - iPad 6 - iPad 7 + Devices based on the "A10X" SoC: + + - Apple TV 4K (1st generation) + - iPad Pro (2nd Generation) (10.5 Inch) + - iPad Pro (2nd Generation) (12.9 Inch) + Devices based on the "M1" SoC: - Mac mini (M1, 2020) @@ -188,6 +194,17 @@ properties: - const: apple,t8010 - const: apple,arm-platform + - description: Apple A10X SoC based platforms + items: + - enum: + - apple,j105a # Apple TV 4K (1st Generation) + - apple,j120 # iPad Pro 2 (12.9-inch) (Wi-Fi) + - apple,j121 # iPad Pro 2 (12.9-inch) (Cellular) + - apple,j207 # iPad Pro 2 (10.5-inch) (Wi-Fi) + - apple,j208 # iPad Pro 2 (10.5-inch) (Cellular) + - const: apple,t8011 + - const: apple,arm-platform + - description: Apple M1 SoC based platforms items: - enum: From patchwork Wed Oct 23 04:40:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846427 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (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 EA6E015098B; Wed, 23 Oct 2024 04:45:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658741; cv=none; b=uYpGdU/W1r8EED0DYo3qp+7vZPacLgAtgzcGv3SAcLQ7QNp8E6Fldlrg2ngoBj0KoTf+AWQCT2AMqKy27zaNXXAe7E/5ZI9c8y9A92uUAA6RFdqtUjLcFABUa2vqt5MTMarumG9evmVVG+aCwyx/Dzck8zTjp0e02/zlvBCdTUY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658741; c=relaxed/simple; bh=clRC7SlCVokGRt05BZkHjfxvxOHH6WjJTUUbgEJzcqQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=F+rsYXs+66P2w+oqR09Zpy92jp5epE1Xw3cxX5DI7lahzCCcMnuqEyf85JwHFAtJiGY+IVlLh9li6kT/r602g8YbU9lFdfu+JgWo4U6ATG1deGxkbG7QBbznWAcEnHula0c86BQc0xDV5tWLf1V1bz7l94vMPlqVWWDbjtGXGOE= 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=Q/OMy/pl; arc=none smtp.client-ip=209.85.214.171 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="Q/OMy/pl" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-20cb47387ceso57364015ad.1; Tue, 22 Oct 2024 21:45:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658739; x=1730263539; 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=x8ySFZ/e4rYDchZwRHVmsRhqGnJF26yjuWxa24CCZHw=; b=Q/OMy/plrOZ/krJnDlWiqgR0wCsZa2HJJAsXxxHbpJ8D/RlTo/8Q1vYludnltYtqY5 rMQ0a98vSpPgpRx/1HJcWAc1LjGNeL+3onCMtib0EITu0di1gDGju2ayTExG+yh/YkyJ LvY161+sp7mA1hj7b9vLU5Dr4jKNBRTGqzweqD7CV3keWWnInkUhkeH7MeBaW+0eyomG vCV8epLzF4wfRFi5OXFeq8/RqkHcpyoFwJbA+gKrREpD2AeMxcWHiG7V3zM7ocabjtLl WbjzPB46dSETe75niDF07WOqpLxdB594EMAN0OQDsNWSxvumkhA5n7VkeB0xOG1WAIT5 nLxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658739; x=1730263539; 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=x8ySFZ/e4rYDchZwRHVmsRhqGnJF26yjuWxa24CCZHw=; b=AhAKFffFDsNGmlBtsR5ksnCNnPfmLqxNBDUsYKs2k6KqqwgpJ26rFkSfu1IePFAszm E/jXrxbvM3e1A2VJFZn3yQRvou597MiKTU3h5RsuNUKzyG4Xa5WKu2XsESbceTMlfF02 lZrzQonjW717aqM2ybctp4vp5Hm92rDI9hu8rSpG+oz51/HP/uK+PtwUy4h5iBQGvkP3 a4YMse47xnSNzexothUHquVcTC8jNf6J94EtAesqBnGhx/Pw6J5wVNvpbhztAjAol7yf gaYQcwGQQlBqv+D3iJn5JnTi1h+56J4Rtu3NfWWDhk2r3YQgOkXVeX+SUqn1f4ZLQuNP vr5Q== X-Forwarded-Encrypted: i=1; AJvYcCU/LPDYTmS2cMozXYcWXQx7mkLVbUcfuIxvUH2vI6d/kI9l16fNg4sqUCy19cguQftH64DgjSKGhYj4j7aq@vger.kernel.org, AJvYcCUw05PZF3mVMsUCr1Z2ruUJybVmB1UFMC7EkIlQlP1vkLakFBxocp/cyf79fOuIu6l6Qaqhm8h7IgQoWg==@vger.kernel.org, AJvYcCX4HQ8d1Q96zyamAA5UoH1HERXCv1Iz/ADVgQEwLwXC+aMHWELNwaSyrF5oVj+j4W8UgGzDq5BwJeTi@vger.kernel.org, AJvYcCXpY8DwXTfisPd36bdTnm+oWDom8QmdCgqSByK4sYwS8okfX3M7GFa7XyhCXSuEk0396WjT+ZPWcVq1snxwN64=@vger.kernel.org X-Gm-Message-State: AOJu0Yw/PDVH5B7B8FkbYN+RO+BGUefou8VmRYCp3SGggG41OpzUBlgB J3IL0TObmlL8j0bFYea+C2Wb3ob2JusoPxDhIxAILHDnUJg/CHgv X-Google-Smtp-Source: AGHT+IEnzOstKHuAoKlCyOmaiMfvKSyCyMyYjgaGD+r5AD2jOIfOABw/OXeuqWTeXltAhA6ge3A5hw== X-Received: by 2002:a17:903:2452:b0:20c:9821:69a4 with SMTP id d9443c01a7336-20fa9de8c00mr16520565ad.6.1729658739269; Tue, 22 Oct 2024 21:45:39 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.45.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:45:38 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Krzysztof Kozlowski Subject: [PATCH v6 RESEND 11/20] dt-bindings: arm: apple: Add A11 devices Date: Wed, 23 Oct 2024 12:40:46 +0800 Message-ID: <20241023044423.18294-12-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add the follow apple,t8015 based platforms: - iPhone 8 - iPhone 8 Plus - iPhone X Acked-by: Krzysztof Kozlowski Signed-off-by: Nick Chan --- .../devicetree/bindings/arm/apple.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/apple.yaml b/Documentation/devicetree/bindings/arm/apple.yaml index 96efadad15a6..dc9aab19ff11 100644 --- a/Documentation/devicetree/bindings/arm/apple.yaml +++ b/Documentation/devicetree/bindings/arm/apple.yaml @@ -57,6 +57,12 @@ description: | - iPad Pro (2nd Generation) (10.5 Inch) - iPad Pro (2nd Generation) (12.9 Inch) + Devices based on the "A11" SoC: + + - iPhone 8 + - iPhone 8 Plus + - iPhone X + Devices based on the "M1" SoC: - Mac mini (M1, 2020) @@ -205,6 +211,18 @@ properties: - const: apple,t8011 - const: apple,arm-platform + - description: Apple A11 SoC based platforms + items: + - enum: + - apple,d20 # iPhone 8 (Global) + - apple,d21 # iPhone 8 Plus (Global) + - apple,d22 # iPhone X (Global) + - apple,d201 # iPhone 8 (GSM) + - apple,d211 # iPhone 8 Plus (GSM) + - apple,d221 # iPhone X (GSM) + - const: apple,t8015 + - const: apple,arm-platform + - description: Apple M1 SoC based platforms items: - enum: From patchwork Wed Oct 23 04:40:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846428 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 2621215098B; Wed, 23 Oct 2024 04:45:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658747; cv=none; b=pzisSl9OD+LoQ0lVd2ERLYkxSJZvNw5f2DzVNbrboqTFcWy6DiapThK8Mdv/xu023IstDAS804HMOG1q4HoR5GC29rnaazP2HLVpbaq7pJFIX8gj/QtQsxL/Z3EbrLkTFM6whJBAQX751mIj5tGoGbsQJALXSgk8hfJOq7WYMLM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658747; c=relaxed/simple; bh=yIVKTjp7HmUEE+jAqnUIAvtXDVDUpX9R/K40dYxtwFw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LRFZAOUv9PsAqoTBbcs4qothV7lepdufQjdZeeWWTtuySQ0x9H5nZk25KSumVFWgfH+Y8JqCtrf/+233izaAflYBueyQnmvb4mS4BDF0z0d9pahTafR5gv7qN72tMF4Gxp0xG6JW8lbtiQYM6zXft4MIym/ba5Vo0VwsJ9YfE3g= 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=kr4FLeyZ; arc=none smtp.client-ip=209.85.214.175 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="kr4FLeyZ" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-20cf3e36a76so62425105ad.0; Tue, 22 Oct 2024 21:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658744; x=1730263544; 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=r9SfTlwcZyH0yUcqOx9zTharZEZAJuKqe5VOPkiJv28=; b=kr4FLeyZ5iRdzfXvHf86HdbEGn64pw0ttWrpf3cAEvXskSePZA3XnmHQKoqdc2CqJf IEeEdLH485d5rAVszOyXUIF71QN/Jypmx5LcoTz3I5SHUYsdDlvPmsmhXtkCIqPfm0Pi ljaA28xa/CW1fRjNFAHORVS9FNdxB6tLNsr+gTZZtFxBMPN6749aY+xFUBJ7EEavPRob aKMiGANhAL+3GmuH6FGFdJzgXSKVqAg2kewhm2EnGY9vYB2KiytfOxHLRchukkvzLc88 FgQCecF55flGPrdfUvs5VEtL8SEFVHVAv5q9eM4ZIEoZYtYHoZXsJAVJ48HcmCVBFOkI hvvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658744; x=1730263544; 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=r9SfTlwcZyH0yUcqOx9zTharZEZAJuKqe5VOPkiJv28=; b=LHqjixCJXBt+m17HFYWQVPfilKg3AOEBRITaDMRCt/NVJFIhIJslmpxuma1NtqQOMj cyx9nzn/aHagupWVCKYtjm/cL6YYU2740ebgc1V9a3QLjtmPvjbb/j7boWNlmaqYGD8Q mD73zrMihARNS3VoJOyXZQ/U/GZp/d/3koe3Z7YMXO5QyVtGsAlTNc1iLHL1AUbnci73 M4gRe9gt3m97/2CHFxjK8MLfusw9j30iNJTyUgG3jj1wAnWBviqZ0Tnt5jkPNmYOTRCP LSQRSf4kbvAGqBUu6RvoVyjhFP9l2T8d6lXSykoiS/6tZgPTCVQHLKy8TvoQ1e8xnwdv DfQQ== X-Forwarded-Encrypted: i=1; AJvYcCVBeXn29rw34+IEOUJ2MAem04AC3CIC1nGVXcELVlLxOes6Kqa0u0hSCDgWTB6KjOBGapRPAYn1P9GRFxxs@vger.kernel.org, AJvYcCVWgxTNnyNSV2PX7IQtjiR27oBBKy3eabttl/ArxAw/VM62lb8EpVVC3c4cNDJm321w0A+Hxtw7Ve3/ag==@vger.kernel.org, AJvYcCWYDYRbmnvAOoyNlaVPlv6DduVYv4RGOL4edmkjDQZ3srHPYUUEYyURw1EMlUYPUl8svDH0qtH3wGes@vger.kernel.org, AJvYcCXd38U3JMX1GIzNXn5XaUXh5dQLQj4amY8GxXADsxa4XmUqIm/DAOmhYD8NEaCppBhaRd/U5CAlRru6XdqSHlE=@vger.kernel.org X-Gm-Message-State: AOJu0YzVyYrU+4YSuMlA0xq58+KJcSaDiVCY3TKPkyoIT775887WtBSt 5UspsLpJd8lTo0U1x0m6ox8UNPP0YQz1AZWEXActPlu98WzA3Q46 X-Google-Smtp-Source: AGHT+IH366PmqJlj634y+zRA10rXUuA8o2rHoI/ZEJymSHsee2MRcxgkfjCKrzrAEVs8Px4QIvkaaA== X-Received: by 2002:a05:6a21:a247:b0:1c4:9f31:ac9e with SMTP id adf61e73a8af0-1d978bd56dfmr1718599637.42.1729658744284; Tue, 22 Oct 2024 21:45:44 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.45.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:45:43 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Konrad Dybcio , Nick Chan Subject: [PATCH v6 RESEND 12/20] arm64: dts: apple: Add A7 devices Date: Wed, 23 Oct 2024 12:40:47 +0800 Message-ID: <20241023044423.18294-13-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Konrad Dybcio Add DTS files for the A7 SoC and the following devices based on it: - iPhone 5s - iPad Air (1) - iPad mini 2 - iPad mini 3 Signed-off-by: Konrad Dybcio [Nick: SMP and m1n1 support, gpio-keys additions] Co-developed-by: Nick Chan Signed-off-by: Nick Chan --- arch/arm64/boot/dts/apple/Makefile | 11 ++ arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi | 51 ++++++++ arch/arm64/boot/dts/apple/s5l8960x-air1.dtsi | 51 ++++++++ .../arm64/boot/dts/apple/s5l8960x-common.dtsi | 48 ++++++++ arch/arm64/boot/dts/apple/s5l8960x-j71.dts | 14 +++ arch/arm64/boot/dts/apple/s5l8960x-j72.dts | 14 +++ arch/arm64/boot/dts/apple/s5l8960x-j73.dts | 14 +++ arch/arm64/boot/dts/apple/s5l8960x-j85.dts | 14 +++ arch/arm64/boot/dts/apple/s5l8960x-j85m.dts | 14 +++ arch/arm64/boot/dts/apple/s5l8960x-j86.dts | 14 +++ arch/arm64/boot/dts/apple/s5l8960x-j86m.dts | 14 +++ arch/arm64/boot/dts/apple/s5l8960x-j87.dts | 14 +++ arch/arm64/boot/dts/apple/s5l8960x-j87m.dts | 14 +++ arch/arm64/boot/dts/apple/s5l8960x-mini2.dtsi | 51 ++++++++ arch/arm64/boot/dts/apple/s5l8960x-mini3.dtsi | 14 +++ arch/arm64/boot/dts/apple/s5l8960x-n51.dts | 14 +++ arch/arm64/boot/dts/apple/s5l8960x-n53.dts | 14 +++ arch/arm64/boot/dts/apple/s5l8960x.dtsi | 113 ++++++++++++++++++ 18 files changed, 493 insertions(+) create mode 100644 arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi create mode 100644 arch/arm64/boot/dts/apple/s5l8960x-air1.dtsi create mode 100644 arch/arm64/boot/dts/apple/s5l8960x-common.dtsi create mode 100644 arch/arm64/boot/dts/apple/s5l8960x-j71.dts create mode 100644 arch/arm64/boot/dts/apple/s5l8960x-j72.dts create mode 100644 arch/arm64/boot/dts/apple/s5l8960x-j73.dts create mode 100644 arch/arm64/boot/dts/apple/s5l8960x-j85.dts create mode 100644 arch/arm64/boot/dts/apple/s5l8960x-j85m.dts create mode 100644 arch/arm64/boot/dts/apple/s5l8960x-j86.dts create mode 100644 arch/arm64/boot/dts/apple/s5l8960x-j86m.dts create mode 100644 arch/arm64/boot/dts/apple/s5l8960x-j87.dts create mode 100644 arch/arm64/boot/dts/apple/s5l8960x-j87m.dts create mode 100644 arch/arm64/boot/dts/apple/s5l8960x-mini2.dtsi create mode 100644 arch/arm64/boot/dts/apple/s5l8960x-mini3.dtsi create mode 100644 arch/arm64/boot/dts/apple/s5l8960x-n51.dts create mode 100644 arch/arm64/boot/dts/apple/s5l8960x-n53.dts create mode 100644 arch/arm64/boot/dts/apple/s5l8960x.dtsi diff --git a/arch/arm64/boot/dts/apple/Makefile b/arch/arm64/boot/dts/apple/Makefile index aec5e29cdfb7..e1ee803f72a7 100644 --- a/arch/arm64/boot/dts/apple/Makefile +++ b/arch/arm64/boot/dts/apple/Makefile @@ -1,4 +1,15 @@ # SPDX-License-Identifier: GPL-2.0 +dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j71.dtb +dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j73.dtb +dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j85m.dtb +dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j86m.dtb +dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j87m.dtb +dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-n53.dtb +dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j72.dtb +dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j85.dtb +dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j86.dtb +dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j87.dtb +dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-n51.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j274.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j293.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j313.dtb diff --git a/arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi b/arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi new file mode 100644 index 000000000000..0b16adf07f79 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi @@ -0,0 +1,51 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 5s common device tree + * Based on A7 (APL0698), up to 1.3GHz + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "s5l8960x.dtsi" +#include "s5l8960x-common.dtsi" +#include + +/ { + chassis-type = "handset"; + + gpio-keys { + compatible = "gpio-keys"; + + button-home { + label = "Home Button"; + gpios = <&pinctrl 2 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-power { + label = "Power Button"; + gpios = <&pinctrl 3 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-voldown { + label = "Volume Down"; + gpios = <&pinctrl 5 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + button-volup { + label = "Volume Up"; + gpios = <&pinctrl 4 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + switch-mute { + label = "Mute Switch"; + gpios = <&pinctrl 16 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x-air1.dtsi b/arch/arm64/boot/dts/apple/s5l8960x-air1.dtsi new file mode 100644 index 000000000000..741c5a9f21dd --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-air1.dtsi @@ -0,0 +1,51 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Air common device tree + * Based on A7 (APL5698), up to 1.4GHz + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "s5l8960x.dtsi" +#include "s5l8960x-common.dtsi" +#include + +/ { + chassis-type = "tablet"; + + gpio-keys { + compatible = "gpio-keys"; + + button-home { + label = "Home Button"; + gpios = <&pinctrl 2 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-power { + label = "Power Button"; + gpios = <&pinctrl 3 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-voldown { + label = "Volume Down"; + gpios = <&pinctrl 4 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + button-volup { + label = "Volume Up"; + gpios = <&pinctrl 5 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + switch-mute { + label = "Mute Switch"; + gpios = <&pinctrl 110 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x-common.dtsi b/arch/arm64/boot/dts/apple/s5l8960x-common.dtsi new file mode 100644 index 000000000000..243480ca2356 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-common.dtsi @@ -0,0 +1,48 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 5s, iPad mini 2/3, iPad Air + * + * This file contains parts common to all Apple A7 devices. + * + * target-type: J71, J72, J73, J85, J85m, J86, J86m, J87, J87m, N51, N53 + * + * Copyright (c) 2024, Nick Chan + */ + +/ { + aliases { + serial0 = &serial0; + }; + + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + stdout-path = "serial0"; + + framebuffer0: framebuffer@0 { + compatible = "apple,simple-framebuffer", "simple-framebuffer"; + reg = <0 0 0 0>; /* To be filled by loader */ + /* Format properties will be added by loader */ + status = "disabled"; + }; + }; + + memory@800000000 { + device_type = "memory"; + reg = <0x8 0 0 0>; /* To be filled by loader */ + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* To be filled by loader */ + }; +}; + +&serial0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x-j71.dts b/arch/arm64/boot/dts/apple/s5l8960x-j71.dts new file mode 100644 index 000000000000..e13036dacb45 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-j71.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Air (Wi-Fi), J71, iPad4,1 (A1474) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s5l8960x-air1.dtsi" + +/ { + compatible = "apple,j71", "apple,s5l8960x", "apple,arm-platform"; + model = "Apple iPad Air (Wi-Fi)"; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x-j72.dts b/arch/arm64/boot/dts/apple/s5l8960x-j72.dts new file mode 100644 index 000000000000..afb71b8885c6 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-j72.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Air (Cellular), J72, iPad4,2 (A1475) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s5l8960x-air1.dtsi" + +/ { + compatible = "apple,j72", "apple,s5l8960x", "apple,arm-platform"; + model = "Apple iPad Air (Cellular)"; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x-j73.dts b/arch/arm64/boot/dts/apple/s5l8960x-j73.dts new file mode 100644 index 000000000000..c871962df529 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-j73.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Air (Cellular, China), J73, iPad4,2 (A1476) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s5l8960x-air1.dtsi" + +/ { + compatible = "apple,j73", "apple,s5l8960x", "apple,arm-platform"; + model = "Apple iPad Air (Cellular, China)"; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x-j85.dts b/arch/arm64/boot/dts/apple/s5l8960x-j85.dts new file mode 100644 index 000000000000..aefb7b36d7aa --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-j85.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad mini 2 (Wi-Fi), J85, iPad4,4 (A1489) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s5l8960x-mini2.dtsi" + +/ { + compatible = "apple,j85", "apple,s5l8960x", "apple,arm-platform"; + model = "Apple iPad mini 2 (Wi-Fi)"; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x-j85m.dts b/arch/arm64/boot/dts/apple/s5l8960x-j85m.dts new file mode 100644 index 000000000000..ec2bcaa6d1d5 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-j85m.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad mini 3 (Wi-Fi), J85m, iPad4,7 (A1599) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s5l8960x-mini3.dtsi" + +/ { + compatible = "apple,j85m", "apple,s5l8960x", "apple,arm-platform"; + model = "Apple iPad mini 3 (Wi-Fi)"; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x-j86.dts b/arch/arm64/boot/dts/apple/s5l8960x-j86.dts new file mode 100644 index 000000000000..470f2f825e70 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-j86.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad mini 2 (Cellular), J86, iPad4,5 (A1490) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s5l8960x-mini2.dtsi" + +/ { + compatible = "apple,j86", "apple,s5l8960x", "apple,arm-platform"; + model = "Apple iPad mini 2 (Cellular)"; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x-j86m.dts b/arch/arm64/boot/dts/apple/s5l8960x-j86m.dts new file mode 100644 index 000000000000..90311d98aaad --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-j86m.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad mini 3 (Cellular), J86m, iPad4,8 (A1600) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s5l8960x-mini3.dtsi" + +/ { + compatible = "apple,j86m", "apple,s5l8960x", "apple,arm-platform"; + model = "Apple iPad mini 3 (Cellular)"; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x-j87.dts b/arch/arm64/boot/dts/apple/s5l8960x-j87.dts new file mode 100644 index 000000000000..3580fd8e3831 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-j87.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad mini 2 (Cellular, China), J87, iPad4,6 (A1491) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s5l8960x-mini2.dtsi" + +/ { + compatible = "apple,j87", "apple,s5l8960x", "apple,arm-platform"; + model = "Apple iPad mini 2 (Cellular, China)"; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x-j87m.dts b/arch/arm64/boot/dts/apple/s5l8960x-j87m.dts new file mode 100644 index 000000000000..fa0da4fa6727 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-j87m.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad mini 3 (Cellular, China), J87m, iPad4,9 (A1601) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s5l8960x-mini3.dtsi" + +/ { + compatible = "apple,j87m", "apple,s5l8960x", "apple,arm-platform"; + model = "Apple iPad mini 3 (Cellular, China)"; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x-mini2.dtsi b/arch/arm64/boot/dts/apple/s5l8960x-mini2.dtsi new file mode 100644 index 000000000000..b27ef5680626 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-mini2.dtsi @@ -0,0 +1,51 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad mini 2 common device tree + * Based on A7 (APL0698), up to 1.3GHz + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "s5l8960x.dtsi" +#include "s5l8960x-common.dtsi" +#include + +/ { + chassis-type = "tablet"; + + gpio-keys { + compatible = "gpio-keys"; + + button-home { + label = "Home Button"; + gpios = <&pinctrl 2 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-power { + label = "Power Button"; + gpios = <&pinctrl 3 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-voldown { + label = "Volume Down"; + gpios = <&pinctrl 5 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + button-volup { + label = "Volume Up"; + gpios = <&pinctrl 4 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + switch-mute { + label = "Mute Switch"; + gpios = <&pinctrl 6 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x-mini3.dtsi b/arch/arm64/boot/dts/apple/s5l8960x-mini3.dtsi new file mode 100644 index 000000000000..4e397b3d7d7a --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-mini3.dtsi @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad mini 3 common device tree + * Based on A7 (APL0698), up to 1.3GHz + * + * Copyright (c) 2022, Konrad Dybcio + */ + +/* + * The Mini 3 seems to be only an iteration over the Mini 2 with some + * small changes, like the introduction of Touch ID, hence there is little + * to no differentiation between these 2 for now. + */ +#include "s5l8960x-mini2.dtsi" diff --git a/arch/arm64/boot/dts/apple/s5l8960x-n51.dts b/arch/arm64/boot/dts/apple/s5l8960x-n51.dts new file mode 100644 index 000000000000..cd52f814fbf2 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-n51.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 5s (GSM), N51, iPhone6,1 (A1453/A1533) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s5l8960x-5s.dtsi" + +/ { + compatible = "apple,n51", "apple,s5l8960x", "apple,arm-platform"; + model = "Apple iPhone 5s (GSM)"; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x-n53.dts b/arch/arm64/boot/dts/apple/s5l8960x-n53.dts new file mode 100644 index 000000000000..4795798a4444 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-n53.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 5s (LTE), N53, iPhone6,2 (A1457/A1518/A1528/A1530) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s5l8960x-5s.dtsi" + +/ { + compatible = "apple,n53", "apple,s5l8960x", "apple,arm-platform"; + model = "Apple iPhone 5s (LTE)"; +}; diff --git a/arch/arm64/boot/dts/apple/s5l8960x.dtsi b/arch/arm64/boot/dts/apple/s5l8960x.dtsi new file mode 100644 index 000000000000..0218ecac1d83 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x.dtsi @@ -0,0 +1,113 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple S5L8960X "A7" SoC + * + * Other Names: H6, "Alcatraz" + * + * Copyright (c) 2022, Konrad Dybcio + * Based on Asahi Linux's M1 (t8103.dtsi) and Corellium's A10 efforts. + */ + +#include +#include +#include +#include + +/ { + interrupt-parent = <&aic>; + #address-cells = <2>; + #size-cells = <2>; + + clkref: clock-ref { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "clkref"; + }; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + cpu0: cpu@0 { + compatible = "apple,cyclone"; + reg = <0x0 0x0>; + cpu-release-addr = <0 0>; /* To be filled by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + + cpu1: cpu@1 { + compatible = "apple,cyclone"; + reg = <0x0 0x1>; + cpu-release-addr = <0 0>; /* To be filled by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + nonposted-mmio; + ranges; + + serial0: serial@20a0a0000 { + compatible = "apple,s5l-uart"; + reg = <0x2 0x0a0a0000 0x0 0x4000>; + reg-io-width = <4>; + interrupt-parent = <&aic>; + interrupts = ; + /* Use the bootloader-enabled clocks for now. */ + clocks = <&clkref>, <&clkref>; + clock-names = "uart", "clk_uart_baud0"; + status = "disabled"; + }; + + wdt: watchdog@20e027000 { + compatible = "apple,s5l8960x-wdt", "apple,wdt"; + reg = <0x2 0x0e027000 0x0 0x1000>; + clocks = <&clkref>; + interrupt-parent = <&aic>; + interrupts = ; + }; + + aic: interrupt-controller@20e100000 { + compatible = "apple,s5l8960x-aic", "apple,aic"; + reg = <0x2 0x0e100000 0x0 0x100000>; + #interrupt-cells = <3>; + interrupt-controller; + }; + + pinctrl: pinctrl@20e300000 { + compatible = "apple,s5l8960x-pinctrl", "apple,pinctrl"; + reg = <0x2 0x0e300000 0x0 0x100000>; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 0 200>; + apple,npins = <200>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + ; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupt-parent = <&aic>; + interrupt-names = "phys", "virt"; + /* Note that A7 doesn't actually have a hypervisor (EL2 is not implemented). */ + interrupts = , + ; + }; +}; From patchwork Wed Oct 23 04:40:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846429 Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175]) (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 5A9AB153573; Wed, 23 Oct 2024 04:45:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658752; cv=none; b=QQD3Hrw1NyXNd5zLVINnGfRWiCfBE6iIlSZuVQKgniIZrGjj3JY64YzLkLcaa0UStddNSydTlmpsoG6iiPeqknF91w8Sd/+ur42spCXYQ06elQRr+uN8mvAzLrlNl8HjdCSeEazuL7mcziDOCNvXlUJrbooAevMts6faifyPqRQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658752; c=relaxed/simple; bh=ZGZge3Dacc4g8jmVbaXLshrxsJoEkmaXrKF4fgcTgN4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FQBUwJU1qfxruTq6/bDOBdQPhKW6WQCKqcvgEEVt1HJIk+pvkjTXzhvjANnOmvafR5PGHl5Z+ckjXeDLzGolzVI6+21Xi5w1LTda+oRqMRoaBrUAud7ZtyhDctIZDEOCsbL+N96h0gpQsvYbh7qOIMIpnm1FJDZZD5XSoARwu2o= 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=EK3QkHrL; arc=none smtp.client-ip=209.85.215.175 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="EK3QkHrL" Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-7eb0bc007edso736446a12.3; Tue, 22 Oct 2024 21:45:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658749; x=1730263549; 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=8gnjfOf+haBHSmwr0qBV6ooJDIIH4PDk5HIKdQUDv6o=; b=EK3QkHrLiJnvohdKlP/ZqRvgrpfdMMFCGIjwopTKZ//1ozqOXYAA83tJ6LkdInCINX UoHMvRsBP1Z2uzm8X9CPk/y5wweTYoffR3XYua75RBHDqeRLnkpFbnID6j5jFKTm98Fh cokhw7PozCcvn0/3OeOJWpkbv+A7uvyBkxsbtvycIyor/GYLiDS3r3ChNSOTkrPgErGD v+c2NupmjD3sb9McsFJkSwQAyjKmvfoM+iJ96WQuyggFG+Usw493HmS6WR8+FL7oEwEB P4n8yK+8xu8tTweFhL3/FblLVJTVoiXcSmfyzhrupCnZGvQuWat3Dxnz7cUv0WwMb+lA ljJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658749; x=1730263549; 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=8gnjfOf+haBHSmwr0qBV6ooJDIIH4PDk5HIKdQUDv6o=; b=O4uA7Q8kdxXg2Bb6iYV4hwNw201i3/rPf7GhSBNd1y/0zDfv20jdwvFO2tc2TfDZ4M HXwk/NXykR7+sbRI5ziVZ0/xLvL/iuHqQ+pJBKDCqwFyJcaPqvz1VTNEJ7F4601Fxhky zda7coVhu8i7QjKx+5oqAs0kGcw69ZVS6GazYWS6sMnbyFBs7hljyexpOhUwcreJob9D IIpMyOleQfbDLC7yzBiyyL4mXzMzPRU7JU2EtmPrzyNtekxN0xF27vK0DASBd1Twnfqv ctGWQGPiMEGCWMH1WxKz2I46t+QYTsLblk1RCGGTZNHHRC6kQ/HQ95gOriCgTzyRU5vo Srgw== X-Forwarded-Encrypted: i=1; AJvYcCUJXwTej6bABSNEfaSXckgePmy4Qvos5/d6cufz8JTX6MYH+GGHNKBmVHMW6SLHr4GYR2DNbBnwDu2S67IgkRc=@vger.kernel.org, AJvYcCWnAgYS6Of9p8bMe3deTnfIzY5FAEZlDpXzxIg9AN9znf4hkXqLAFd2oIqk796QAnuQnV/Tm2ap0vUxFA==@vger.kernel.org, AJvYcCX4FuIA/dmzpU/e6rQoIWfrq/taglAdfvixY9OtjRekaM7PsafDKoJSeSewKSjmzoZXlxljdysaNqqVtldM@vger.kernel.org, AJvYcCXdQwYB1mzQhVa/N4jZ7lHxZIp1Crk+fj2DnIYtoQIgSY0QUtJwF4dZYjOHNZ/b3G2sGHY/nO1jKk3t@vger.kernel.org X-Gm-Message-State: AOJu0Yw7766sKhyG8oehT15KWicl2BkDZ7aGosMABOZcPpuO67F624rz U9khCcGpiImLZaXJpWTDfxLhssfUYQQLRj4cVeJB06NbpchHDy5b X-Google-Smtp-Source: AGHT+IEaSi1bCgwSK4UNQvD5wJxLBDOch0R3luq1Q12dfPOfjuOhey4H9WOi3T4GHc/8mgH5YPpwYA== X-Received: by 2002:a05:6a20:e196:b0:1d9:3456:b6f4 with SMTP id adf61e73a8af0-1d978b13b89mr1429824637.11.1729658749429; Tue, 22 Oct 2024 21:45:49 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.45.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:45:49 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH v6 RESEND 13/20] arm64: dts: apple: Add A8 devices Date: Wed, 23 Oct 2024 12:40:48 +0800 Message-ID: <20241023044423.18294-14-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Konrad Dybcio Add DTS files for the A8 SoC and the following devices based on it: - iPhone 6 - iPhone 6 Plus - iPad mini 4 - iPod touch 6 - Apple TV HD The remaining HomePod is not supported as part of this patch. Signed-off-by: Konrad Dybcio [Ivalyo: system memory bits, iPhone 6 gpio-keys, pinctrl] Co-developed-by: Ivaylo Ivanov Signed-off-by: Ivaylo Ivanov [Nick: SMP and m1n1 support, gpio-keys additions] Co-developed-by: Nick Chan Signed-off-by: Nick Chan --- arch/arm64/boot/dts/apple/Makefile | 6 + arch/arm64/boot/dts/apple/t7000-6.dtsi | 50 +++++++ arch/arm64/boot/dts/apple/t7000-common.dtsi | 36 +++++ arch/arm64/boot/dts/apple/t7000-handheld.dtsi | 27 ++++ arch/arm64/boot/dts/apple/t7000-j42d.dts | 31 +++++ arch/arm64/boot/dts/apple/t7000-j96.dts | 14 ++ arch/arm64/boot/dts/apple/t7000-j97.dts | 14 ++ arch/arm64/boot/dts/apple/t7000-mini4.dtsi | 51 +++++++ arch/arm64/boot/dts/apple/t7000-n102.dts | 48 +++++++ arch/arm64/boot/dts/apple/t7000-n56.dts | 14 ++ arch/arm64/boot/dts/apple/t7000-n61.dts | 14 ++ arch/arm64/boot/dts/apple/t7000.dtsi | 125 ++++++++++++++++++ 12 files changed, 430 insertions(+) create mode 100644 arch/arm64/boot/dts/apple/t7000-6.dtsi create mode 100644 arch/arm64/boot/dts/apple/t7000-common.dtsi create mode 100644 arch/arm64/boot/dts/apple/t7000-handheld.dtsi create mode 100644 arch/arm64/boot/dts/apple/t7000-j42d.dts create mode 100644 arch/arm64/boot/dts/apple/t7000-j96.dts create mode 100644 arch/arm64/boot/dts/apple/t7000-j97.dts create mode 100644 arch/arm64/boot/dts/apple/t7000-mini4.dtsi create mode 100644 arch/arm64/boot/dts/apple/t7000-n102.dts create mode 100644 arch/arm64/boot/dts/apple/t7000-n56.dts create mode 100644 arch/arm64/boot/dts/apple/t7000-n61.dts create mode 100644 arch/arm64/boot/dts/apple/t7000.dtsi diff --git a/arch/arm64/boot/dts/apple/Makefile b/arch/arm64/boot/dts/apple/Makefile index e1ee803f72a7..d5dd1e2e4f4c 100644 --- a/arch/arm64/boot/dts/apple/Makefile +++ b/arch/arm64/boot/dts/apple/Makefile @@ -10,6 +10,12 @@ dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j85.dtb dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j86.dtb dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-j87.dtb dtb-$(CONFIG_ARCH_APPLE) += s5l8960x-n51.dtb +dtb-$(CONFIG_ARCH_APPLE) += t7000-j42d.dtb +dtb-$(CONFIG_ARCH_APPLE) += t7000-j96.dtb +dtb-$(CONFIG_ARCH_APPLE) += t7000-j97.dtb +dtb-$(CONFIG_ARCH_APPLE) += t7000-n102.dtb +dtb-$(CONFIG_ARCH_APPLE) += t7000-n56.dtb +dtb-$(CONFIG_ARCH_APPLE) += t7000-n61.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j274.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j293.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j313.dtb diff --git a/arch/arm64/boot/dts/apple/t7000-6.dtsi b/arch/arm64/boot/dts/apple/t7000-6.dtsi new file mode 100644 index 000000000000..f60ea4a4a387 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000-6.dtsi @@ -0,0 +1,50 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 6 / 6 Plus common device tree + * Copyright (c) 2022, Konrad Dybcio + */ + +#include +#include "t7000.dtsi" +#include "t7000-common.dtsi" +#include "t7000-handheld.dtsi" + +/ { + chassis-type = "handset"; + + gpio-keys { + compatible = "gpio-keys"; + + button-home { + label = "Home Button"; + gpios = <&pinctrl 32 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-power { + label = "Power Button"; + gpios = <&pinctrl 33 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-volup { + label = "Volume Up"; + gpios = <&pinctrl 45 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + button-voldown { + label = "Volume Down"; + gpios = <&pinctrl 46 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + switch-mute { + label = "Mute Switch"; + gpios = <&pinctrl 131 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t7000-common.dtsi b/arch/arm64/boot/dts/apple/t7000-common.dtsi new file mode 100644 index 000000000000..87146e6daae7 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000-common.dtsi @@ -0,0 +1,36 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple TV HD, iPhone 6, iPhone 6 Plus, iPad mini 4, iPod touch 6 + * + * This file contains parts common to all Apple A8 devices. + * + * target-type: J42d, J96, J97, N56, N61, N102 + * + * Copyright (c) 2024, Nick Chan + */ + +/ { + aliases { + serial0 = &serial0; + serial6 = &serial6; + }; + + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + }; + + memory@800000000 { + device_type = "memory"; + reg = <0x8 0 0 0>; /* To be filled by loader */ + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* To be filled by loader */ + }; +}; diff --git a/arch/arm64/boot/dts/apple/t7000-handheld.dtsi b/arch/arm64/boot/dts/apple/t7000-handheld.dtsi new file mode 100644 index 000000000000..8984c9ec6cc8 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000-handheld.dtsi @@ -0,0 +1,27 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 6, iPhone 6 Plus, iPad mini 4, iPod touch 6 + * + * This file contains the parts common to handheld devices with t7000 + * + * target-type: J96, J97, N56, N61, N102 + * + * Copyright (c) 2024, Nick Chan + */ + +/ { + chosen { + stdout-path = "serial0"; + + framebuffer0: framebuffer@0 { + compatible = "apple,simple-framebuffer", "simple-framebuffer"; + reg = <0 0 0 0>; /* To be filled by loader */ + /* Format properties will be added by loader */ + status = "disabled"; + }; + }; +}; + +&serial0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/apple/t7000-j42d.dts b/arch/arm64/boot/dts/apple/t7000-j42d.dts new file mode 100644 index 000000000000..2231db6a739d --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000-j42d.dts @@ -0,0 +1,31 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple TV HD, J42d, AppleTV5,3 (A1625) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t7000.dtsi" +#include "t7000-common.dtsi" + +/ { + compatible = "apple,j42d", "apple,t7000", "apple,arm-platform"; + model = "Apple TV HD"; + chassis-type = "television"; + + chosen { + stdout-path = "serial6"; + + framebuffer0: framebuffer@0 { + compatible = "apple,simple-framebuffer", "simple-framebuffer"; + reg = <0 0 0 0>; /* To be filled by loader */ + /* Format properties will be added by loader */ + status = "disabled"; + }; + }; +}; + +&serial6 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/apple/t7000-j96.dts b/arch/arm64/boot/dts/apple/t7000-j96.dts new file mode 100644 index 000000000000..8a32a50cc2df --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000-j96.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad mini 4 (Wi-Fi), J96, iPad5,1 (A1538) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t7000-mini4.dtsi" + +/ { + compatible = "apple,j96", "apple,t7000", "apple,arm-platform"; + model = "Apple iPad mini 4 (Wi-Fi)"; +}; diff --git a/arch/arm64/boot/dts/apple/t7000-j97.dts b/arch/arm64/boot/dts/apple/t7000-j97.dts new file mode 100644 index 000000000000..ac7d501f88d2 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000-j97.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad mini 4 (Cellular), J97, iPad5,2 (A1550) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t7000-mini4.dtsi" + +/ { + compatible = "apple,j97", "apple,t7000", "apple,arm-platform"; + model = "Apple iPad mini 4 (Cellular)"; +}; diff --git a/arch/arm64/boot/dts/apple/t7000-mini4.dtsi b/arch/arm64/boot/dts/apple/t7000-mini4.dtsi new file mode 100644 index 000000000000..c64ddc402fda --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000-mini4.dtsi @@ -0,0 +1,51 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad mini 4 common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t7000.dtsi" +#include "t7000-common.dtsi" +#include "t7000-handheld.dtsi" +#include + +/ { + chassis-type = "tablet"; + + gpio-keys { + compatible = "gpio-keys"; + + button-home { + label = "Home Button"; + gpios = <&pinctrl 32 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-power { + label = "Power Button"; + gpios = <&pinctrl 33 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-volup { + label = "Volume Up"; + gpios = <&pinctrl 45 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + button-voldown { + label = "Volume Down"; + gpios = <&pinctrl 46 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + switch-mute { + label = "Mute Switch"; + gpios = <&pinctrl 36 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t7000-n102.dts b/arch/arm64/boot/dts/apple/t7000-n102.dts new file mode 100644 index 000000000000..9c55d339ba4e --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000-n102.dts @@ -0,0 +1,48 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPod touch 6, N102, iPod7,1 (A1574) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t7000.dtsi" +#include "t7000-common.dtsi" +#include "t7000-handheld.dtsi" +#include + +/ { + compatible = "apple,n102", "apple,t7000", "apple,arm-platform"; + model = "Apple iPod touch 6"; + chassis-type = "handset"; + + gpio-keys { + compatible = "gpio-keys"; + + button-home { + label = "Home Button"; + gpios = <&pinctrl 32 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-power { + label = "Power Button"; + gpios = <&pinctrl 33 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-voldown { + label = "Volume Down"; + gpios = <&pinctrl 46 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + button-volup { + label = "Volume Up"; + gpios = <&pinctrl 45 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t7000-n56.dts b/arch/arm64/boot/dts/apple/t7000-n56.dts new file mode 100644 index 000000000000..2c358df14458 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000-n56.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 6 Plus, N56, iPhone7,2 (A1549/A1586/A1589) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t7000-6.dtsi" + +/ { + compatible = "apple,n56", "apple,t7000", "apple,arm-platform"; + model = "Apple iPhone 6 Plus"; +}; diff --git a/arch/arm64/boot/dts/apple/t7000-n61.dts b/arch/arm64/boot/dts/apple/t7000-n61.dts new file mode 100644 index 000000000000..10b4ca8babf7 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000-n61.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 6, N61, iPhone7,2 (A1549/A1586/A1589) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t7000-6.dtsi" + +/ { + compatible = "apple,n61", "apple,t7000", "apple,arm-platform"; + model = "Apple iPhone 6"; +}; diff --git a/arch/arm64/boot/dts/apple/t7000.dtsi b/arch/arm64/boot/dts/apple/t7000.dtsi new file mode 100644 index 000000000000..a7cc29e84c84 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000.dtsi @@ -0,0 +1,125 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple T7000 "A8" SoC + * + * Other names: H7P, "Fiji" + * + * Copyright (c) 2022, Konrad Dybcio + * Based on Asahi Linux's M1 (t8103.dtsi) and Corellium's A10 efforts. + */ + +#include +#include +#include +#include + +/ { + interrupt-parent = <&aic>; + #address-cells = <2>; + #size-cells = <2>; + + clkref: clock-ref { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "clkref"; + }; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + cpu0: cpu@0 { + compatible = "apple,typhoon"; + reg = <0x0 0x0>; + cpu-release-addr = <0 0>; /* To be filled in by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + + cpu1: cpu@1 { + compatible = "apple,typhoon"; + reg = <0x0 0x1>; + cpu-release-addr = <0 0>; /* To be filled in by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + nonposted-mmio; + ranges; + + serial0: serial@20a0c0000 { + compatible = "apple,s5l-uart"; + reg = <0x2 0x0a0c0000 0x0 0x4000>; + reg-io-width = <4>; + interrupt-parent = <&aic>; + interrupts = ; + /* Use the bootloader-enabled clocks for now. */ + clocks = <&clkref>, <&clkref>; + clock-names = "uart", "clk_uart_baud0"; + status = "disabled"; + }; + + serial6: serial@20a0d8000 { + compatible = "apple,s5l-uart"; + reg = <0x2 0x0a0d8000 0x0 0x4000>; + reg-io-width = <4>; + interrupt-parent = <&aic>; + interrupts = ; + /* Use the bootloader-enabled clocks for now. */ + clocks = <&clkref>, <&clkref>; + clock-names = "uart", "clk_uart_baud0"; + status = "disabled"; + }; + + wdt: watchdog@20e027000 { + compatible = "apple,t7000-wdt", "apple,wdt"; + reg = <0x2 0x0e027000 0x0 0x1000>; + clocks = <&clkref>; + interrupt-parent = <&aic>; + interrupts = ; + }; + + aic: interrupt-controller@20e100000 { + compatible = "apple,t7000-aic", "apple,aic"; + reg = <0x2 0x0e100000 0x0 0x100000>; + #interrupt-cells = <3>; + interrupt-controller; + }; + + pinctrl: pinctrl@20e300000 { + compatible = "apple,t7000-pinctrl", "apple,pinctrl"; + reg = <0x2 0x0e300000 0x0 0x100000>; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 0 208>; + apple,npins = <208>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + ; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupt-parent = <&aic>; + interrupt-names = "phys", "virt"; + /* Note that A8 doesn't actually have a hypervisor (EL2 is not implemented). */ + interrupts = , + ; + }; +}; From patchwork Wed Oct 23 04:40:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846430 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 62338154457; Wed, 23 Oct 2024 04:45:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658757; cv=none; b=BS0HoHs3MCg/cumskKoLKs+Y14kVX16QubhPv+zXh2skIEKbKVK20dGVYB7t0JvkH9dObB9YmHdwk+BjL8+CPKERjwe3IHL5JMLLIJvS6g66r1tbixhS4YaO7VpYjcq35w2mhZqf4o93nMknkDNWi1+8l5qQIfH8JWA+4XCIPqE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658757; c=relaxed/simple; bh=SiMVBX7W7hhoJAL/qCc3A3gub3f9fWHwN4g5NCcNwHg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=p7z2Ygj33W1OAM2KfPkaU+1mk9l+xk5/E4Tnp65i+od3+f7rz08eaNZtsD0GtzOT/MIU8OCg3ueWgCAuR4eDboXNrvQEAcZTt/9Kje/qRGqrb4yMu+9hZEt1DcVghSuukQrJ05Dkl2YIzOm4VxL0jxYb/saBx54m4l8m7ZUnhCA= 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=OWrb0zHc; arc=none smtp.client-ip=209.85.214.178 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="OWrb0zHc" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-20cceb8d8b4so3339245ad.1; Tue, 22 Oct 2024 21:45:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658755; x=1730263555; 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=xse42JPMlb18tBEtSRtGxVxHCq0YAkMVANvrwDCLO5g=; b=OWrb0zHcd72xVHKmzNF8EAjCtZAWoiMj3N/wlu7YdmSy3ntJerUpM+b4ZBXEK5jNrH PUKHyOUWG/l4cpOdu37dBQEapDu2HLluYOYEHFdOZqOfNt5CRC9TNQ6uyMfxW/jxrd9E ylXCDvDZ5YtRSDwnhfIH5kw0IU8h6XO+7bn8mvx9WgaiWCPickwoxYI8U6T0bY/47crw 1fAe0BnycLGwY0FC2jHUWPNq6tV92jdwkv6Nj/p3gGnXYTpzxD3yW0Fj3b0+g1LPsAKI ec3LcDNk2qXaQCt6upV0Ym2Pw6/4luz3oVCs01cH/AZ90d7h5s0pHktRQHQCQMAUzG/2 wVbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658755; x=1730263555; 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=xse42JPMlb18tBEtSRtGxVxHCq0YAkMVANvrwDCLO5g=; b=csKW/VDVvJ+7zFD7Wj2DXmuYo2G6Kjok6wEJacv2+wZ6rYIOlpGjXWKBE2qN6oXYFL GUGAsrU257k6A/G1d2ph9GLfemMYL1AMHA7NSMai179z/O3tFEXwH9dfOUtN3UOjis4Z 4yLkvRwIYjdbnriw3WDWoT0oqXvzj5MmV4vajKNjo/35YOzNJhjqmjkykZGUKwHyZ1cb ru5eAvN87CNot0KRDdwfA4QwUEWLtAk79OiJwjmXbAVtcmRWpD8/Ks6pHjQm8zRoAONz WcVDtWsUUEVxGN5oPv85Pv3Bvvzlons+BQMSmhqZTZAxpr301juQSeMH+p420ASYXnZu CHgA== X-Forwarded-Encrypted: i=1; AJvYcCUTLwTw9DZ4Yi77rPPN9vC2mLTQ7pvFd8VqWy0d8qsNEpzU6fqtBxCc0SrbP0fbkNS+QGYQf59cU1ggiKv/@vger.kernel.org, AJvYcCWEyGJSIpak0ZWIFkZKgGwo3yDMtTQzJ1UGJM+KjeLkJ+obblZOcxIrcq4JgPmkY9n3NX3PranVrN1niEx8Q2U=@vger.kernel.org, AJvYcCWuxyy6wCbNvYA0LZm4mC+2kDkm+l1h6ELZKEmyS+zSc/8kK8PiehHyIlGrQ+ANWudyqoL4Egad+xOnsQ==@vger.kernel.org, AJvYcCXeu1gJtRD0OUTDtdeF0hdb3JYJ+Rh0qPvbQAmI7EVk9wiTOVB/1HkfSo5aH7mqI2mcWWsvwoeZOM7K@vger.kernel.org X-Gm-Message-State: AOJu0YyTbFoDuXDVnpunzcpxYe//yVPzz5UoqXPP3h/1DKQHXd47x0so EtppDkBnZ6G0lX3BEEmvv5Zguq+B+JURQ2zzOx+UyQPy+j7XNNUB X-Google-Smtp-Source: AGHT+IFrW760imja2ufBc09zoWb6edLpgsry9SDkkTqlmYzglUTtXXBRp6nj6R5lNsnbXpIftk/Mhg== X-Received: by 2002:a17:902:f686:b0:20c:d71d:69c5 with SMTP id d9443c01a7336-20fa9e96600mr20023365ad.4.1729658754667; Tue, 22 Oct 2024 21:45:54 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.45.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:45:54 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Konrad Dybcio , Markuss Broks , Nick Chan Subject: [PATCH v6 RESEND 14/20] arm64: dts: apple: Add A8X devices Date: Wed, 23 Oct 2024 12:40:49 +0800 Message-ID: <20241023044423.18294-15-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Konrad Dybcio Add DTS files for the A8X SoC and the only device based on it, the iPad Air 2. Signed-off-by: Konrad Dybcio [Markuss: System memory bits] Co-developed-by: Markuss Broks Signed-off-by: Markuss Broks [Nick: SMP, m1n1 and gpio-keys support, pinctrl fixes] Co-developed-by: Nick Chan Signed-off-by: Nick Chan --- arch/arm64/boot/dts/apple/Makefile | 2 + arch/arm64/boot/dts/apple/t7001-air2.dtsi | 74 +++++++++++++ arch/arm64/boot/dts/apple/t7001-j81.dts | 14 +++ arch/arm64/boot/dts/apple/t7001-j82.dts | 14 +++ arch/arm64/boot/dts/apple/t7001.dtsi | 123 ++++++++++++++++++++++ 5 files changed, 227 insertions(+) create mode 100644 arch/arm64/boot/dts/apple/t7001-air2.dtsi create mode 100644 arch/arm64/boot/dts/apple/t7001-j81.dts create mode 100644 arch/arm64/boot/dts/apple/t7001-j82.dts create mode 100644 arch/arm64/boot/dts/apple/t7001.dtsi diff --git a/arch/arm64/boot/dts/apple/Makefile b/arch/arm64/boot/dts/apple/Makefile index d5dd1e2e4f4c..adda522ea490 100644 --- a/arch/arm64/boot/dts/apple/Makefile +++ b/arch/arm64/boot/dts/apple/Makefile @@ -16,6 +16,8 @@ dtb-$(CONFIG_ARCH_APPLE) += t7000-j97.dtb dtb-$(CONFIG_ARCH_APPLE) += t7000-n102.dtb dtb-$(CONFIG_ARCH_APPLE) += t7000-n56.dtb dtb-$(CONFIG_ARCH_APPLE) += t7000-n61.dtb +dtb-$(CONFIG_ARCH_APPLE) += t7001-j81.dtb +dtb-$(CONFIG_ARCH_APPLE) += t7001-j82.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j274.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j293.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j313.dtb diff --git a/arch/arm64/boot/dts/apple/t7001-air2.dtsi b/arch/arm64/boot/dts/apple/t7001-air2.dtsi new file mode 100644 index 000000000000..19fabd425c52 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7001-air2.dtsi @@ -0,0 +1,74 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Air 2 common device tree + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t7001.dtsi" +#include + +/ { + chassis-type = "tablet"; + + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + stdout-path = "serial0"; + + framebuffer0: framebuffer@0 { + compatible = "apple,simple-framebuffer", "simple-framebuffer"; + reg = <0 0 0 0>; /* To be filled by loader */ + /* Format properties will be added by loader */ + status = "disabled"; + }; + }; + + gpio-keys { + compatible = "gpio-keys"; + + button-home { + label = "Home Button"; + gpios = <&pinctrl 0 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-power { + label = "Power Button"; + gpios = <&pinctrl 1 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-volup { + label = "Volume Up"; + gpios = <&pinctrl 92 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + button-voldown { + label = "Volume Down"; + gpios = <&pinctrl 93 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + + memory@800000000 { + device_type = "memory"; + reg = <0x8 0 0 0>; /* To be filled by loader */ + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* To be filled by loader */ + }; +}; + +&serial0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/apple/t7001-j81.dts b/arch/arm64/boot/dts/apple/t7001-j81.dts new file mode 100644 index 000000000000..ca90dc0c872c --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7001-j81.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Air 2 (Wi-Fi), J81, iPad5,3 (A1566) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t7001-air2.dtsi" + +/ { + compatible = "apple,j81", "apple,t7001", "apple,arm-platform"; + model = "Apple iPad Air 2 (Wi-Fi)"; +}; diff --git a/arch/arm64/boot/dts/apple/t7001-j82.dts b/arch/arm64/boot/dts/apple/t7001-j82.dts new file mode 100644 index 000000000000..d9fd16f48db7 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7001-j82.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Air 2 (Cellular), J82, iPad5,4 (A1567) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t7001-air2.dtsi" + +/ { + compatible = "apple,j82", "apple,t7001", "apple,arm-platform"; + model = "Apple iPad Air 2 (Cellular)"; +}; diff --git a/arch/arm64/boot/dts/apple/t7001.dtsi b/arch/arm64/boot/dts/apple/t7001.dtsi new file mode 100644 index 000000000000..a76e034c85e3 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7001.dtsi @@ -0,0 +1,123 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple T7001 "A8X" SoC + * + * Copyright (c) 2022, Konrad Dybcio + * Based on Asahi Linux's M1 (t8103.dtsi) and Corellium's A10 efforts. + */ + +#include +#include +#include +#include + +/ { + interrupt-parent = <&aic>; + #address-cells = <2>; + #size-cells = <2>; + + aliases { + serial0 = &serial0; + }; + + clkref: clock-ref { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "clkref"; + }; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + cpu0: cpu@0 { + compatible = "apple,typhoon"; + reg = <0x0 0x0>; + cpu-release-addr = <0 0>; /* To be filled in by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + + cpu1: cpu@1 { + compatible = "apple,typhoon"; + reg = <0x0 0x1>; + cpu-release-addr = <0 0>; /* To be filled in by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + + cpu2: cpu@2 { + compatible = "apple,typhoon"; + reg = <0x0 0x2>; + cpu-release-addr = <0 0>; /* To be filled by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + nonposted-mmio; + ranges; + + serial0: serial@20a0c0000 { + compatible = "apple,s5l-uart"; + reg = <0x2 0x0a0c0000 0x0 0x4000>; + reg-io-width = <4>; + interrupt-parent = <&aic>; + interrupts = ; + /* Use the bootloader-enabled clocks for now. */ + clocks = <&clkref>, <&clkref>; + clock-names = "uart", "clk_uart_baud0"; + status = "disabled"; + }; + + wdt: watchdog@20e027000 { + compatible = "apple,t7000-wdt", "apple,wdt"; + reg = <0x2 0x0e027000 0x0 0x1000>; + clocks = <&clkref>; + interrupt-parent = <&aic>; + interrupts = ; + }; + + aic: interrupt-controller@20e100000 { + compatible = "apple,t7000-aic", "apple,aic"; + reg = <0x2 0x0e100000 0x0 0x100000>; + #interrupt-cells = <3>; + interrupt-controller; + }; + + pinctrl: pinctrl@20e300000 { + compatible = "apple,t7000-pinctrl", "apple,pinctrl"; + reg = <0x2 0x0e300000 0x0 0x100000>; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl 0 0 184>; + apple,npins = <184>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + ; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupt-parent = <&aic>; + interrupt-names = "phys", "virt"; + /* Note that A8X doesn't actually have a hypervisor (EL2 is not implemented). */ + interrupts = , + ; + }; +}; From patchwork Wed Oct 23 04:40:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846431 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 86D80154C0C; Wed, 23 Oct 2024 04:46:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658762; cv=none; b=ivjsssNaKD3yC7ZOMsEaXC1+/e0SmunjwxABviUO+5+IwtXoq86+b5JWXqioYRzkCdyYotMx2WUGk8LztLARXALrl/wJQhj2ANP1n/+BUezREUjaH1jyCVW0IIWLNMUJldGqr6rPj4bMCOlmV3A0/aIv4qkwIFWugomxezWrwDE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658762; c=relaxed/simple; bh=mL07Lv3MQzR5EQhoBQ/Do0t4o63xtCp9Uw+lm0KVT2U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uvnUpDZZ0CvZORtZZUNT1Unp6Q0YP8geIogTitR7GKrVsvSlW7Aer71OtqXEgZeuaHYzcL8VLCKNRjWedk9EyR1B4rCcqP1k27s/5tC0KHR5cJslNQiuw8dAG/lzSjpykwiMbQrp99J57g8wOt8pJJ/Un6xJLj21zxtmUG8PBZ4= 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=G2JWMf5n; arc=none smtp.client-ip=209.85.214.178 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="G2JWMf5n" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-20c70abba48so53275955ad.0; Tue, 22 Oct 2024 21:46:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658760; x=1730263560; 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=Q7NKY7djca+NM/4QklI//n9y36tDEyEWXM9GSvRYyKg=; b=G2JWMf5nf6vG0aIFWOazxogUyTCrIH6wjqDbz/B8Tftm2MhN2XoT2QjpET39/23JGI E2TcRjrlCQdC+XSaSAtDyiVESRHGJUYLxRBg+2v2C6xvXzxH7SpYl/719ylMBx+RWwg1 gUVTzSRdd14NKp+zRHCTDct4qYa+q4T/XKPdEqWAPpWGZA39tPCKIUwXROZli+WAAA9o wwI5AN+Bthjgr/fHZnBg67SRFk5jGAQIoqIzTI443VJ4EWkNi3cS0Tf9uPOZcZdz0Hw6 ty1wBAQEZeOIRKToZYE5XkGL+UE/5MPuBiLOQ9awp2L4+D3gzI50MCQDpqO1QcEl6uU8 KsUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658760; x=1730263560; 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=Q7NKY7djca+NM/4QklI//n9y36tDEyEWXM9GSvRYyKg=; b=CYlpjPetCO8oGqVnyy6sWsMEiDjyB6RoXkuwYMi2x3cktxd+ZIC1CzHJd1zs9H0+dE enQL9aZmjTO+es+U7caUmoDNgwpBqyexquGFlCC5kICo6utaJmo66EwZJCu5ZbuzsljF wzTksxUX+F9oPEHr04/KM3aRKzl7orikuoqv6Xor+LRVGoVQbIC8g6gan2G66vSHMbEs 8cFZcdVNIwNsemvmH3flRJvCswX8Y+2KYGawUp8dLKIoUbklNAe9BcBtTyC/eZJG/6xv IKBozPIl1Um/CcFt6D78ZpyuAMxeKaMaYzjkVAhm7PblV/NkpnqA2qxtpdebTaHFTLfC +wNQ== X-Forwarded-Encrypted: i=1; AJvYcCU9HF1Uqd2XRRaFmnSOGX+XXsWO4ACnZlUAV3kWZI79FSaLXq/gSDRtlASJWYruQyIQ7dpoO7+SPkPb6A==@vger.kernel.org, AJvYcCUq4l7JrpNjlN+odTCe/n9P0eHZNLS/SWCNfDl+MqXEqQCw8+VbLrGein4gEAGkZ54gqnifFbUd6THnRPmU@vger.kernel.org, AJvYcCVJbBtH3bbxYqXoFbNuKQEKMgOVW8shUZ3xw4FTCEZdCWjTzIAW9+WG1wL/zkX5L1ww0SumxOJqeNUiHGUP+3A=@vger.kernel.org, AJvYcCVcW+YM+yBQ0llruGnh8oAgIQMMyaJcwnH1a0j5MzaOcv0Ev5hoxzLbwhUGiwOyWdwBvMb6R9TF9FYL@vger.kernel.org X-Gm-Message-State: AOJu0Yy4JlKNd7itRSzH/siEl4hRL72KKpmnIUG764WlIUWahHsv1OlA 57IV6gB0R11VanKoDp9428rCQxF71zR2EOCRg01jcw6oOpva2FW0 X-Google-Smtp-Source: AGHT+IFH89gaeARCK1EF2vqVcupCqKhUrBYfDernHILy2SSRmLE7lpQrnKnH7qnx1Xy1X4Xvgj0Tsw== X-Received: by 2002:a17:902:d485:b0:20c:79f1:fee9 with SMTP id d9443c01a7336-20fa9e46b54mr18373675ad.11.1729658759641; Tue, 22 Oct 2024 21:45:59 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:45:59 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Konrad Dybcio , Nick Chan Subject: [PATCH v6 RESEND 15/20] arm64: dts: apple: Add A9 devices Date: Wed, 23 Oct 2024 12:40:50 +0800 Message-ID: <20241023044423.18294-16-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Konrad Dybcio Add DTS files for the A9 SoC and the following devices based on it: - iPhone 6s - iPhone 6s Plus - iPhone SE (2016) - iPad 5 Signed-off-by: Konrad Dybcio [Nick: SMP, m1n1 and AOP pinctrl support] Co-developed-by: Nick Chan Signed-off-by: Nick Chan --- arch/arm64/boot/dts/apple/Makefile | 10 ++ .../arm64/boot/dts/apple/s800-0-3-common.dtsi | 48 ++++++ arch/arm64/boot/dts/apple/s8000-j71s.dts | 15 ++ arch/arm64/boot/dts/apple/s8000-j72s.dts | 15 ++ arch/arm64/boot/dts/apple/s8000-n66.dts | 15 ++ arch/arm64/boot/dts/apple/s8000-n69u.dts | 15 ++ arch/arm64/boot/dts/apple/s8000-n71.dts | 15 ++ arch/arm64/boot/dts/apple/s8000.dtsi | 144 ++++++++++++++++++ arch/arm64/boot/dts/apple/s8003-j71t.dts | 15 ++ arch/arm64/boot/dts/apple/s8003-j72t.dts | 15 ++ arch/arm64/boot/dts/apple/s8003-n66m.dts | 15 ++ arch/arm64/boot/dts/apple/s8003-n69.dts | 15 ++ arch/arm64/boot/dts/apple/s8003-n71m.dts | 15 ++ arch/arm64/boot/dts/apple/s8003.dtsi | 21 +++ arch/arm64/boot/dts/apple/s800x-6s.dtsi | 49 ++++++ arch/arm64/boot/dts/apple/s800x-ipad5.dtsi | 43 ++++++ arch/arm64/boot/dts/apple/s800x-se.dtsi | 49 ++++++ 17 files changed, 514 insertions(+) create mode 100644 arch/arm64/boot/dts/apple/s800-0-3-common.dtsi create mode 100644 arch/arm64/boot/dts/apple/s8000-j71s.dts create mode 100644 arch/arm64/boot/dts/apple/s8000-j72s.dts create mode 100644 arch/arm64/boot/dts/apple/s8000-n66.dts create mode 100644 arch/arm64/boot/dts/apple/s8000-n69u.dts create mode 100644 arch/arm64/boot/dts/apple/s8000-n71.dts create mode 100644 arch/arm64/boot/dts/apple/s8000.dtsi create mode 100644 arch/arm64/boot/dts/apple/s8003-j71t.dts create mode 100644 arch/arm64/boot/dts/apple/s8003-j72t.dts create mode 100644 arch/arm64/boot/dts/apple/s8003-n66m.dts create mode 100644 arch/arm64/boot/dts/apple/s8003-n69.dts create mode 100644 arch/arm64/boot/dts/apple/s8003-n71m.dts create mode 100644 arch/arm64/boot/dts/apple/s8003.dtsi create mode 100644 arch/arm64/boot/dts/apple/s800x-6s.dtsi create mode 100644 arch/arm64/boot/dts/apple/s800x-ipad5.dtsi create mode 100644 arch/arm64/boot/dts/apple/s800x-se.dtsi diff --git a/arch/arm64/boot/dts/apple/Makefile b/arch/arm64/boot/dts/apple/Makefile index adda522ea490..cbb7e409b7e3 100644 --- a/arch/arm64/boot/dts/apple/Makefile +++ b/arch/arm64/boot/dts/apple/Makefile @@ -18,6 +18,16 @@ dtb-$(CONFIG_ARCH_APPLE) += t7000-n56.dtb dtb-$(CONFIG_ARCH_APPLE) += t7000-n61.dtb dtb-$(CONFIG_ARCH_APPLE) += t7001-j81.dtb dtb-$(CONFIG_ARCH_APPLE) += t7001-j82.dtb +dtb-$(CONFIG_ARCH_APPLE) += s8000-j71s.dtb +dtb-$(CONFIG_ARCH_APPLE) += s8000-j72s.dtb +dtb-$(CONFIG_ARCH_APPLE) += s8000-n66.dtb +dtb-$(CONFIG_ARCH_APPLE) += s8000-n69u.dtb +dtb-$(CONFIG_ARCH_APPLE) += s8000-n71.dtb +dtb-$(CONFIG_ARCH_APPLE) += s8003-j71t.dtb +dtb-$(CONFIG_ARCH_APPLE) += s8003-j72t.dtb +dtb-$(CONFIG_ARCH_APPLE) += s8003-n66m.dtb +dtb-$(CONFIG_ARCH_APPLE) += s8003-n69.dtb +dtb-$(CONFIG_ARCH_APPLE) += s8003-n71m.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j274.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j293.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j313.dtb diff --git a/arch/arm64/boot/dts/apple/s800-0-3-common.dtsi b/arch/arm64/boot/dts/apple/s800-0-3-common.dtsi new file mode 100644 index 000000000000..4276bd890e81 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s800-0-3-common.dtsi @@ -0,0 +1,48 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 6s, iPhone 6s Plus, iPad 5, iPhone SE + * + * This file contains parts common to all Apple A9 devices. + * + * target-type: J71s, J72s, N66, N69u, N71, J71t, J72t, N66m, N69, N71m + * + * Copyright (c) 2024, Nick Chan + */ + +/ { + aliases { + serial0 = &serial0; + }; + + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + stdout-path = "serial0"; + + framebuffer0: framebuffer@0 { + compatible = "apple,simple-framebuffer", "simple-framebuffer"; + reg = <0 0 0 0>; /* To be filled by loader */ + /* Format properties will be added by loader */ + status = "disabled"; + }; + }; + + memory@800000000 { + device_type = "memory"; + reg = <0x8 0 0 0>; /* To be filled by loader */ + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* To be filled by loader */ + }; +}; + +&serial0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/apple/s8000-j71s.dts b/arch/arm64/boot/dts/apple/s8000-j71s.dts new file mode 100644 index 000000000000..b5a2dfa1121e --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8000-j71s.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad 5 (Wi-Fi) (Samsung), J71s, iPad6,11 (A1822) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s8000.dtsi" +#include "s800x-ipad5.dtsi" + +/ { + compatible = "apple,j71s", "apple,s8000", "apple,arm-platform"; + model = "Apple iPad 5 (Wi-Fi) (Samsung)"; +}; diff --git a/arch/arm64/boot/dts/apple/s8000-j72s.dts b/arch/arm64/boot/dts/apple/s8000-j72s.dts new file mode 100644 index 000000000000..8f3dea5adb09 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8000-j72s.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad 5 (Cellular) (Samsung), J72s, iPad6,12 (A1823) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s8000.dtsi" +#include "s800x-ipad5.dtsi" + +/ { + compatible = "apple,j72s", "apple,s8000", "apple,arm-platform"; + model = "Apple iPad 5 (Cellular) (Samsung)"; +}; diff --git a/arch/arm64/boot/dts/apple/s8000-n66.dts b/arch/arm64/boot/dts/apple/s8000-n66.dts new file mode 100644 index 000000000000..30b4b6630b60 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8000-n66.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 6s Plus (Samsung), N66, iPhone8,2 (A1634/A1687/A1690/A1699) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s8000.dtsi" +#include "s800x-6s.dtsi" + +/ { + compatible = "apple,n66", "apple,s8000", "apple,arm-platform"; + model = "Apple iPhone 6s Plus (Samsung)"; +}; diff --git a/arch/arm64/boot/dts/apple/s8000-n69u.dts b/arch/arm64/boot/dts/apple/s8000-n69u.dts new file mode 100644 index 000000000000..e63bc2e7f7c1 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8000-n69u.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone SE (Samsung), N69u, iPhone8,4 (A1662/A1723/A1724) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s8000.dtsi" +#include "s800x-se.dtsi" + +/ { + compatible = "apple,n69u", "apple,s8000", "apple,arm-platform"; + model = "Apple iPhone SE (Samsung)"; +}; diff --git a/arch/arm64/boot/dts/apple/s8000-n71.dts b/arch/arm64/boot/dts/apple/s8000-n71.dts new file mode 100644 index 000000000000..f2964a1fc434 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8000-n71.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 6s (Samsung), N71, iPhone8,1 (A1633/A1688/A1691/A1700) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s8000.dtsi" +#include "s800x-6s.dtsi" + +/ { + compatible = "apple,n71", "apple,s8000", "apple,arm-platform"; + model = "Apple iPhone 6s (Samsung)"; +}; diff --git a/arch/arm64/boot/dts/apple/s8000.dtsi b/arch/arm64/boot/dts/apple/s8000.dtsi new file mode 100644 index 000000000000..6e9046ea106c --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8000.dtsi @@ -0,0 +1,144 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple S8000 "A9" (Samsung) SoC + * + * Other names: H8P, "Maui" + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include +#include +#include +#include + +/ { + interrupt-parent = <&aic>; + #address-cells = <2>; + #size-cells = <2>; + + clkref: clock-ref { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "clkref"; + }; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + cpu0: cpu@0 { + compatible = "apple,twister"; + reg = <0x0 0x0>; + cpu-release-addr = <0 0>; /* To be filled in by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + + cpu1: cpu@1 { + compatible = "apple,twister"; + reg = <0x0 0x1>; + cpu-release-addr = <0 0>; /* To be filled in by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + nonposted-mmio; + ranges; + + serial0: serial@20a0c0000 { + compatible = "apple,s5l-uart"; + reg = <0x2 0x0a0c0000 0x0 0x4000>; + reg-io-width = <4>; + interrupt-parent = <&aic>; + interrupts = ; + /* Use the bootloader-enabled clocks for now. */ + clocks = <&clkref>, <&clkref>; + clock-names = "uart", "clk_uart_baud0"; + status = "disabled"; + }; + + aic: interrupt-controller@20e100000 { + compatible = "apple,s8000-aic", "apple,aic"; + reg = <0x2 0x0e100000 0x0 0x100000>; + #interrupt-cells = <3>; + interrupt-controller; + }; + + pinctrl_ap: pinctrl@20f100000 { + compatible = "apple,s8000-pinctrl", "apple,pinctrl"; + reg = <0x2 0x0f100000 0x0 0x100000>; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_ap 0 0 208>; + apple,npins = <208>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + ; + }; + + pinctrl_aop: pinctrl@2100f0000 { + compatible = "apple,s8000-pinctrl", "apple,pinctrl"; + reg = <0x2 0x100f0000 0x0 0x100000>; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_aop 0 0 42>; + apple,npins = <42>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + ; + }; + + wdt: watchdog@2102b0000 { + compatible = "apple,s8000-wdt", "apple,wdt"; + reg = <0x2 0x102b0000 0x0 0x4000>; + clocks = <&clkref>; + interrupt-parent = <&aic>; + interrupts = ; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupt-parent = <&aic>; + interrupt-names = "phys", "virt"; + /* Note that A9 doesn't actually have a hypervisor (EL2 is not implemented). */ + interrupts = , + ; + }; +}; + +/* + * The A9 was made by two separate fabs on two different process + * nodes: Samsung made the S8000 (APL0898) on 14nm and TSMC made + * the S8003 (APL1022) on 16nm. While they are seemingly the same, + * they do have distinct part numbers and devices using them have + * distinct model names. There are currently no known differences + * between these as far as Linux is concerned, but let's keep things + * structured properly to make it easier to alter the behaviour of + * one of the chips if need be. + */ diff --git a/arch/arm64/boot/dts/apple/s8003-j71t.dts b/arch/arm64/boot/dts/apple/s8003-j71t.dts new file mode 100644 index 000000000000..0d906ae80b07 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8003-j71t.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad 5 (Wi-Fi) (TSMC), J71t, iPad6,11 (A1822) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s8003.dtsi" +#include "s800x-ipad5.dtsi" + +/ { + compatible = "apple,j71t", "apple,s8003", "apple,arm-platform"; + model = "Apple iPad 5 (Wi-Fi) (TSMC)"; +}; diff --git a/arch/arm64/boot/dts/apple/s8003-j72t.dts b/arch/arm64/boot/dts/apple/s8003-j72t.dts new file mode 100644 index 000000000000..0cd7d88e9dfb --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8003-j72t.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad 5 (Cellular) (TSMC), J72t, iPad6,12 (A1823) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s8003.dtsi" +#include "s800x-ipad5.dtsi" + +/ { + compatible = "apple,j72t", "apple,s8003", "apple,arm-platform"; + model = "Apple iPad 5 (Cellular) (TSMC)"; +}; diff --git a/arch/arm64/boot/dts/apple/s8003-n66m.dts b/arch/arm64/boot/dts/apple/s8003-n66m.dts new file mode 100644 index 000000000000..4146cd28160d --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8003-n66m.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 6s Plus (TSMC), N66m, iPhone8,2 (A1634/A1687/A1690/A1699) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s8003.dtsi" +#include "s800x-6s.dtsi" + +/ { + compatible = "apple,n66m", "apple,s8003", "apple,arm-platform"; + model = "Apple iPhone 6s Plus (TSMC)"; +}; diff --git a/arch/arm64/boot/dts/apple/s8003-n69.dts b/arch/arm64/boot/dts/apple/s8003-n69.dts new file mode 100644 index 000000000000..8eed879b155e --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8003-n69.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone SE (TSMC), N69, iPhone8,4 (A1662/A1723/A1724) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s8003.dtsi" +#include "s800x-se.dtsi" + +/ { + compatible = "apple,n69", "apple,s8003", "apple,arm-platform"; + model = "Apple iPhone SE (TSMC)"; +}; diff --git a/arch/arm64/boot/dts/apple/s8003-n71m.dts b/arch/arm64/boot/dts/apple/s8003-n71m.dts new file mode 100644 index 000000000000..7ec6d2cda0bf --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8003-n71m.dts @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 6s (TSMC), N71m, iPhone8,1 (A1633/A1688/A1691/A1700) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s8003.dtsi" +#include "s800x-6s.dtsi" + +/ { + compatible = "apple,n71m", "apple,s8003", "apple,arm-platform"; + model = "Apple iPhone 6s (TSMC)"; +}; diff --git a/arch/arm64/boot/dts/apple/s8003.dtsi b/arch/arm64/boot/dts/apple/s8003.dtsi new file mode 100644 index 000000000000..7e4ad4f7e499 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8003.dtsi @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple S8003 "A9" (TSMC) SoC + * + * Other names: H8P, "Malta" + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "s8000.dtsi" + +/* + * The A9 was made by two separate fabs on two different process + * nodes: Samsung made the S8000 (APL0898) on 14nm and TSMC made + * the S8003 (APL1022) on 16nm. While they are seemingly the same, + * they do have distinct part numbers and devices using them have + * distinct model names. There are currently no known differences + * between these as far as Linux is concerned, but let's keep things + * structured properly to make it easier to alter the behaviour of + * one of the chips if need be. + */ diff --git a/arch/arm64/boot/dts/apple/s800x-6s.dtsi b/arch/arm64/boot/dts/apple/s800x-6s.dtsi new file mode 100644 index 000000000000..49b04db310c6 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s800x-6s.dtsi @@ -0,0 +1,49 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 6s / 6S Plus common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "s800-0-3-common.dtsi" +#include + +/ { + chassis-type = "handset"; + + gpio-keys { + compatible = "gpio-keys"; + + button-home { + label = "Home Button"; + gpios = <&pinctrl_ap 96 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-power { + label = "Power Button"; + gpios = <&pinctrl_ap 97 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-voldown { + label = "Volume Down"; + gpios = <&pinctrl_ap 67 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + button-volup { + label = "Volume Up"; + gpios = <&pinctrl_ap 66 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + switch-mute { + label = "Mute Switch"; + gpios = <&pinctrl_ap 149 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/s800x-ipad5.dtsi b/arch/arm64/boot/dts/apple/s800x-ipad5.dtsi new file mode 100644 index 000000000000..32570ed3cdf0 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s800x-ipad5.dtsi @@ -0,0 +1,43 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad 5 common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "s800-0-3-common.dtsi" +#include + +/ { + chassis-type = "tablet"; + + gpio-keys { + compatible = "gpio-keys"; + + button-home { + label = "Home Button"; + gpios = <&pinctrl_ap 96 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-power { + label = "Power Button"; + gpios = <&pinctrl_ap 97 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-voldown { + label = "Volume Down"; + gpios = <&pinctrl_ap 143 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + button-volup { + label = "Volume Up"; + gpios = <&pinctrl_ap 144 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/s800x-se.dtsi b/arch/arm64/boot/dts/apple/s800x-se.dtsi new file mode 100644 index 000000000000..a1a5690e8371 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s800x-se.dtsi @@ -0,0 +1,49 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone SE common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "s800-0-3-common.dtsi" +#include + +/ { + chassis-type = "handset"; + + gpio-keys { + compatible = "gpio-keys"; + + button-home { + label = "Home Button"; + gpios = <&pinctrl_ap 96 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-power { + label = "Power Button"; + gpios = <&pinctrl_ap 97 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-voldown { + label = "Volume Down"; + gpios = <&pinctrl_ap 67 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + button-volup { + label = "Volume Up"; + gpios = <&pinctrl_ap 66 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + switch-mute { + label = "Mute Switch"; + gpios = <&pinctrl_ap 149 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; From patchwork Wed Oct 23 04:40:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846432 Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) (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 56B351494C3; Wed, 23 Oct 2024 04:46:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658767; cv=none; b=f9A/8+a/Ykz5CrOg5PfQmA04wUAiJvzYcQD1pVhkMF/FXI545vShfo0t5t7bdYAA+Fl+rBM21EwKzA/q8/icIn15i18uX/uDcP1++Cmj/38PRsBzKsBLv8ohBJ84XcvhWs/+uLMHc7b7VJy75YewplYjDMsv4PZPbkPv41KWyFI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658767; c=relaxed/simple; bh=NNLa2ToojVT9gJ9ql2YSywrZGhdfD3vQN78ZiSdEqmY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jpYXa10lxJRNbPPZFGZ1B6zYUUwE2Wjtld4XrHQrrTO/vI9KCVb3bEmOSJ4q/Yqqn48yQOXHRGH1vWAo6JqZxD5HQTHmkfyiBmm6Tv63bM5SLj1eVziJDScaBEGZAU7SiHmvQYhFwISyp0EdQRCwNjE++PKbSfBcHrcKkm4tLJw= 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=AnBABAco; arc=none smtp.client-ip=209.85.210.179 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="AnBABAco" Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-71e8235f0b6so4830586b3a.3; Tue, 22 Oct 2024 21:46:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658764; x=1730263564; 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=B6K6yFxOvBL53qExXu3jUShvFyrVZl54pYpUooOLfxc=; b=AnBABAco03rrqeuCt7CBn4J3vfXEeH9OfTMZ7TgbDuS17eJysJ3/ijU6y+B6NY1fMc kvtD0DkKgCe8QVh5mQyy6GgibYBcnnWdq9G3DFAD8boQFbugdTviNqbthh605orfJQar 4DwGC8DQ0UE8B5BahulSo+8DRPCH6hYCdj5eXeEKtcr1FBZP4c8X0a9isq8fTfwcV8i8 z9h8XMWKMjSg3OgMF4VHkk9iggivzxbWAzpFDSG555UaONqdS0pVlHNTqhLf6Ina8fre aQff2f49qQyxspX995ttELbuO2TRG2ZMWHD40LDy27/teh7OCA0v63CenHCdoVc5WUtp dSKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658764; x=1730263564; 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=B6K6yFxOvBL53qExXu3jUShvFyrVZl54pYpUooOLfxc=; b=hyI3sC1hI0YaOsDnjldwTjTjUGRK+G+SVsGbjSi6s97o/P3AVKvb5Uiok2fsi1FaCz HR/3qrfBvPq9aV8ezE1baOY6GASmFlK/mXg65j0OHvhTbi1ldMEONxlUSgUrFKWi4yjo GYvoqeUyS8SHzJWWkm2zniuOcAqdiLCQ3PzfxSkz7Mu+YXbhKO+i+1EpQ5SPYk939omG SKzhOhIYkXyONjCw6uLGHb4ajbrVCTk3pK2+Kt7hfS7jKV56w1se58up1rmUlrFWw+OH g/9T7LWnyaGE/rtsWIuwpMTC2vyFvgk9L28DTOKB69xUeWFye2pZ0UTrkgnRhxgq383Y 0vAg== X-Forwarded-Encrypted: i=1; AJvYcCUD64EnseZVltkkAUT8oNfYEPrH4AWWi3n+U04VzN+tWVPb2EYcYIgggtf6Hx5Pf9uZzma9k9K1WFPC@vger.kernel.org, AJvYcCUEImZ2LFVVVIDmJ/WvRJ7F0y2SIMTCG8jIAd7GqFouXm/2fteljeHemBGiBL/wFyuY8GEvCFJjp3+6Mg==@vger.kernel.org, AJvYcCVcfosEJ4j3Gwnd2Vzx6b8FGlMdO6GGM1P/PL3m9FyBM0yxRc1oJZ4c7bYXEUZiCCEs9RHQ73gTNy4KYFn4@vger.kernel.org, AJvYcCWVYWqhP9X5liNn3m0XF92T063rFlJhDiFGY9jiBz5keDjqtQ43bU/FQNhBR18BJ3+voUSraKTa1he6JDJ7H1U=@vger.kernel.org X-Gm-Message-State: AOJu0Yxhg6yJsQdhzRA4YZJDGkcTiwNAHESMta03RuPUXnCw7fpDNRgo TsbUEZRPfoiUt0ZQbwICTMFK4h0ItjYtMW11N58hmGvaF4fztOze X-Google-Smtp-Source: AGHT+IFSv0T6EhDv32M4zOW8tIRqKJbou9kGmvdMCfWVp0rHm5y3lq1qAETAlf9cY2IvXsZK82HJwA== X-Received: by 2002:a05:6a21:3514:b0:1d9:261c:5948 with SMTP id adf61e73a8af0-1d978bd555emr1593456637.47.1729658764428; Tue, 22 Oct 2024 21:46:04 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.46.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:46:04 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Konrad Dybcio , Nick Chan Subject: [PATCH v6 RESEND 16/20] arm64: dts: apple: Add A9X devices Date: Wed, 23 Oct 2024 12:40:51 +0800 Message-ID: <20241023044423.18294-17-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Konrad Dybcio Add the device tree for the A9X SoC and the devices based on it: - iPad Pro (9.7 Inch) - iPad Pro (12.9 Inch) (1st generation) Signed-off-by: Konrad Dybcio [Nick: SMP and m1n1 support, uart interrupt and pinctrl fixes] Co-developed-by: Nick Chan Signed-off-by: Nick Chan --- arch/arm64/boot/dts/apple/Makefile | 4 + arch/arm64/boot/dts/apple/s8001-common.dtsi | 48 +++++++ arch/arm64/boot/dts/apple/s8001-j127.dts | 14 +++ arch/arm64/boot/dts/apple/s8001-j128.dts | 14 +++ arch/arm64/boot/dts/apple/s8001-j98a.dts | 14 +++ arch/arm64/boot/dts/apple/s8001-j99a.dts | 14 +++ arch/arm64/boot/dts/apple/s8001-pro.dtsi | 44 +++++++ arch/arm64/boot/dts/apple/s8001.dtsi | 133 ++++++++++++++++++++ 8 files changed, 285 insertions(+) create mode 100644 arch/arm64/boot/dts/apple/s8001-common.dtsi create mode 100644 arch/arm64/boot/dts/apple/s8001-j127.dts create mode 100644 arch/arm64/boot/dts/apple/s8001-j128.dts create mode 100644 arch/arm64/boot/dts/apple/s8001-j98a.dts create mode 100644 arch/arm64/boot/dts/apple/s8001-j99a.dts create mode 100644 arch/arm64/boot/dts/apple/s8001-pro.dtsi create mode 100644 arch/arm64/boot/dts/apple/s8001.dtsi diff --git a/arch/arm64/boot/dts/apple/Makefile b/arch/arm64/boot/dts/apple/Makefile index cbb7e409b7e3..f8cd10889d9f 100644 --- a/arch/arm64/boot/dts/apple/Makefile +++ b/arch/arm64/boot/dts/apple/Makefile @@ -28,6 +28,10 @@ dtb-$(CONFIG_ARCH_APPLE) += s8003-j72t.dtb dtb-$(CONFIG_ARCH_APPLE) += s8003-n66m.dtb dtb-$(CONFIG_ARCH_APPLE) += s8003-n69.dtb dtb-$(CONFIG_ARCH_APPLE) += s8003-n71m.dtb +dtb-$(CONFIG_ARCH_APPLE) += s8001-j127.dtb +dtb-$(CONFIG_ARCH_APPLE) += s8001-j128.dtb +dtb-$(CONFIG_ARCH_APPLE) += s8001-j98a.dtb +dtb-$(CONFIG_ARCH_APPLE) += s8001-j99a.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j274.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j293.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j313.dtb diff --git a/arch/arm64/boot/dts/apple/s8001-common.dtsi b/arch/arm64/boot/dts/apple/s8001-common.dtsi new file mode 100644 index 000000000000..e94d0e77653a --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8001-common.dtsi @@ -0,0 +1,48 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Pro (9.7-inch), iPad Pro (12.9-inch) + * + * This file contains parts common to all Apple A9X devices. + * + * target-type: J127, J128, J98a, J99a + * + * Copyright (c) 2024, Nick Chan + */ + +/ { + aliases { + serial0 = &serial0; + }; + + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + stdout-path = "serial0"; + + framebuffer0: framebuffer@0 { + compatible = "apple,simple-framebuffer", "simple-framebuffer"; + reg = <0 0 0 0>; /* To be filled by loader */ + /* Format properties will be added by loader */ + status = "disabled"; + }; + }; + + memory@800000000 { + device_type = "memory"; + reg = <0x8 0 0 0>; /* To be filled by loader */ + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* To be filled by loader */ + }; +}; + +&serial0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/apple/s8001-j127.dts b/arch/arm64/boot/dts/apple/s8001-j127.dts new file mode 100644 index 000000000000..8b522085cb3e --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8001-j127.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Pro (9.7-inch) (Wi-Fi), J127, iPad6,3 (A1673) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s8001-pro.dtsi" + +/ { + compatible = "apple,j127", "apple,s8001", "apple,arm-platform"; + model = "Apple iPad Pro (9.7-inch) (Wi-Fi)"; +}; diff --git a/arch/arm64/boot/dts/apple/s8001-j128.dts b/arch/arm64/boot/dts/apple/s8001-j128.dts new file mode 100644 index 000000000000..cdd3d06dcbf1 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8001-j128.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Pro (9.7-inch) (Cellular), J128, iPad6,4 (A1674/A1675) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s8001-pro.dtsi" + +/ { + compatible = "apple,j128", "apple,s8001", "apple,arm-platform"; + model = "Apple iPad Pro (9.7-inch) (Cellular)"; +}; diff --git a/arch/arm64/boot/dts/apple/s8001-j98a.dts b/arch/arm64/boot/dts/apple/s8001-j98a.dts new file mode 100644 index 000000000000..6d6b841e7ab0 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8001-j98a.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Pro (12.9-inch) (Wi-Fi), J98a, iPad6,7 (A1584) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s8001-pro.dtsi" + +/ { + compatible = "apple,j98a", "apple,s8001", "apple,arm-platform"; + model = "Apple iPad Pro (12.9-inch) (Wi-Fi)"; +}; diff --git a/arch/arm64/boot/dts/apple/s8001-j99a.dts b/arch/arm64/boot/dts/apple/s8001-j99a.dts new file mode 100644 index 000000000000..d20194b1cae7 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8001-j99a.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Pro (12.9-inch) (Cellular), J99a, iPad6,8 (A1652) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "s8001-pro.dtsi" + +/ { + compatible = "apple,j99a", "apple,s8001", "apple,arm-platform"; + model = "Apple iPad Pro (12.9-inch) (Cellular)"; +}; diff --git a/arch/arm64/boot/dts/apple/s8001-pro.dtsi b/arch/arm64/boot/dts/apple/s8001-pro.dtsi new file mode 100644 index 000000000000..1fce5a7c4200 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8001-pro.dtsi @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Pro (1st generation) common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "s8001.dtsi" +#include "s8001-common.dtsi" +#include + +/ { + chassis-type = "tablet"; + + gpio-keys { + compatible = "gpio-keys"; + + button-home { + label = "Home Button"; + gpios = <&pinctrl_ap 122 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-power { + label = "Power Button"; + gpios = <&pinctrl_ap 123 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-voldown { + label = "Volume Down"; + gpios = <&pinctrl_ap 15 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + button-volup { + label = "Volume Up"; + gpios = <&pinctrl_ap 12 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/s8001.dtsi b/arch/arm64/boot/dts/apple/s8001.dtsi new file mode 100644 index 000000000000..23ee3238844d --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8001.dtsi @@ -0,0 +1,133 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple S8001 "A9X" SoC + * + * Other names: H8G, "Elba" + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include +#include +#include +#include + +/ { + interrupt-parent = <&aic>; + #address-cells = <2>; + #size-cells = <2>; + + clkref: clock-ref { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "clkref"; + }; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + cpu0: cpu@0 { + compatible = "apple,twister"; + reg = <0x0 0x0>; + cpu-release-addr = <0 0>; /* To be filled in by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + + cpu1: cpu@1 { + compatible = "apple,twister"; + reg = <0x0 0x1>; + cpu-release-addr = <0 0>; /* To be filled in by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + nonposted-mmio; + ranges; + + serial0: serial@20a0c0000 { + compatible = "apple,s5l-uart"; + reg = <0x2 0x0a0c0000 0x0 0x4000>; + reg-io-width = <4>; + interrupt-parent = <&aic>; + interrupts = ; + /* Use the bootloader-enabled clocks for now. */ + clocks = <&clkref>, <&clkref>; + clock-names = "uart", "clk_uart_baud0"; + status = "disabled"; + }; + + aic: interrupt-controller@20e100000 { + compatible = "apple,s8000-aic", "apple,aic"; + reg = <0x2 0x0e100000 0x0 0x100000>; + #interrupt-cells = <3>; + interrupt-controller; + }; + + pinctrl_ap: pinctrl@20f100000 { + compatible = "apple,s8000-pinctrl", "apple,pinctrl"; + reg = <0x2 0x0f100000 0x0 0x100000>; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_ap 0 0 219>; + apple,npins = <219>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + ; + }; + + pinctrl_aop: pinctrl@2100f0000 { + compatible = "apple,s8000-pinctrl", "apple,pinctrl"; + reg = <0x2 0x100f0000 0x0 0x100000>; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_aop 0 0 28>; + apple,npins = <28>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + ; + }; + + wdt: watchdog@2102b0000 { + compatible = "apple,s8000-wdt", "apple,wdt"; + reg = <0x2 0x102b0000 0x0 0x4000>; + clocks = <&clkref>; + interrupt-parent = <&aic>; + interrupts = ; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupt-parent = <&aic>; + interrupt-names = "phys", "virt"; + /* Note that A9X doesn't actually have a hypervisor (EL2 is not implemented). */ + interrupts = , + ; + }; +}; From patchwork Wed Oct 23 04:40:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846433 Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) (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 40AA5155A4E; Wed, 23 Oct 2024 04:46:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658772; cv=none; b=rP4r23Nr3yG++CYVR+Krntr/S+sdCdOe3agOll90Yt9YkK6bRdPkTs7EXV8v82neK6RxkHbsEke5q1WzLrQZlSqWvqYzVIIW3Wl8bITcda5dF9YOFy9nN91egqgMIlP/p2VgC9ruZbJ9oxrXr5qFLH/0qSTkWpixD63tt2l6ILk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658772; c=relaxed/simple; bh=94jjOdtrtZImvKDIPteMs5rqwLM6WzumKrYkKINXUV0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=h2uUf9gYGpWh1mn9dGYQFWz6Km63DJLMasZWtpFdF/9Kk4A2N5PlgTdsT+gnybG3E/Oyunf07tJETGYAGy785eu9SNWB419ckVavy6DkAT8pXGMKfRTmV4gZNMCJ0CyeLvnl/oi3sN1rv8HlaawFx00Nh2g2FzsHxzog4Q4eBrM= 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=Ag08rS7K; arc=none smtp.client-ip=209.85.214.175 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="Ag08rS7K" Received: by mail-pl1-f175.google.com with SMTP id d9443c01a7336-20cb89a4e4cso45075025ad.3; Tue, 22 Oct 2024 21:46:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658769; x=1730263569; 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=uijBdBq6zNUqacP6OtbyYBaUoq7n8oBf5StN0dV2d5Q=; b=Ag08rS7KRWz71Dxd/79oxcu72TxqMETjZJvX3iOoiXYDqUYTkRwjAaj34N2rCf88aN 7pTkwRtcqx366v7Y2gu00i7pdNVubMs+lHlkAyI9UleSOohlVA+e8gdCozvNb7qZkOLd AFuopZnG1DwmCoxvK+/z5hh0I398rMYPGzhhwau/+hzAljNhY5yWCVxGzmf1t9bCVI0x WxV3TWbJR8SJHx7COV9PRn8Fn7wJf2POc96nF4n8Y+6SVzvdi3wz94/+pJnpsAfvTpfu XeMWtBPVROMYfyNSQ4n1m0D1YsRB+IEsZc7zZduxV84TTrUGI7WySAG2qSOK/y+5TLed 63AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658769; x=1730263569; 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=uijBdBq6zNUqacP6OtbyYBaUoq7n8oBf5StN0dV2d5Q=; b=ahTS+DNm+8wJeoLe3UgJDQyepXaQhROV2TBRSTBrSpqjuAePHzBsIb2/cVu0vFncwd MRlOzAXPoV3puDTaUSSeyi3flkp8mH60/VVHPDCnJllYrpAQMBDDn0PUFWmCh8ME5Ony GfyIc/lOvYAhj9BUV1BOlFliCvdRGe7soh8itQdL4uHfq845HYuWPgnk6c5q5Mb3fySo 8RR1kQuHOpN3FqZZZ5v4ANm1CTs8Ju8xGcwawux9SGTJygvwhzLTu+VVfD/GmKnfHMDw eBWxJUhU/ToVRDC5+Ykzfiy3JusY65thweZAsJBEtggOdzWJ7cHQNUfFm9+rZZ+ItvjM Nksw== X-Forwarded-Encrypted: i=1; AJvYcCUnhW5DBxD8sgN3Z6TmebGEX4qSTCy0gL6QkvmS19bcTxOcM1Ojru4qHgVBaOxtaJa/JntSQCQ1O7VR4ked@vger.kernel.org, AJvYcCVNsVccmnhejmM+LX2oKrfA1dKIK48mMKpJZ4vT6oSDcLI4caGYJUOD0Tuo6WisgHUuH8AocHGQbyePXg==@vger.kernel.org, AJvYcCVn2wnVUQKxe5GEUOA1KBfbhEzovhgqeLQZJ2bWax34YIM1Z7AUcp2MnwCtaHk5nORXaF9GKOHAK3hF@vger.kernel.org, AJvYcCWyF2ypxRzLwJ/6hlj7NzPgBxh/S0kgs9MZv9HVpJnD1j7btrugxfjRxKcllqkQquO9FIL6i+HnKjwUxfEeWPg=@vger.kernel.org X-Gm-Message-State: AOJu0YxfZATvt28Dqv6GBTs/J0UFa1WUFq5MVIBG3YxzlcHmH+iW1qZw /R71HcEl0pfbj5rf6nrzRFrwCdTLcm++1Xetewnl0vxIA95IdhO2 X-Google-Smtp-Source: AGHT+IGbzovQGjh+okIEUuKeJiLrFqCPS8MgkLOOX7Nkj7uSPViLPLAHmCZJseRskzAMtU6IT0XyMg== X-Received: by 2002:a17:902:f94e:b0:20e:5997:c107 with SMTP id d9443c01a7336-20fa9ea0977mr14453345ad.39.1729658769392; Tue, 22 Oct 2024 21:46:09 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.46.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:46:09 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Konrad Dybcio , Nick Chan Subject: [PATCH v6 RESEND 17/20] arm64: dts: apple: Add A10 devices Date: Wed, 23 Oct 2024 12:40:52 +0800 Message-ID: <20241023044423.18294-18-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Konrad Dybcio Add DTS files for the A10 SoC and the following devices based on it: - iPhone 7 - iPhone 7 Plus - iPod touch 7 - iPad 6 - iPad 7 Signed-off-by: Konrad Dybcio [Nick: SMP, m1n1 and AOP pinctrl support] Co-developed-by: Nick Chan Signed-off-by: Nick Chan --- arch/arm64/boot/dts/apple/Makefile | 9 ++ arch/arm64/boot/dts/apple/t8010-7.dtsi | 43 +++++++ arch/arm64/boot/dts/apple/t8010-common.dtsi | 48 +++++++ arch/arm64/boot/dts/apple/t8010-d10.dts | 14 +++ arch/arm64/boot/dts/apple/t8010-d101.dts | 14 +++ arch/arm64/boot/dts/apple/t8010-d11.dts | 14 +++ arch/arm64/boot/dts/apple/t8010-d111.dts | 14 +++ arch/arm64/boot/dts/apple/t8010-ipad6.dtsi | 44 +++++++ arch/arm64/boot/dts/apple/t8010-ipad7.dtsi | 14 +++ arch/arm64/boot/dts/apple/t8010-j171.dts | 14 +++ arch/arm64/boot/dts/apple/t8010-j172.dts | 14 +++ arch/arm64/boot/dts/apple/t8010-j71b.dts | 14 +++ arch/arm64/boot/dts/apple/t8010-j72b.dts | 14 +++ arch/arm64/boot/dts/apple/t8010-n112.dts | 47 +++++++ arch/arm64/boot/dts/apple/t8010.dtsi | 133 ++++++++++++++++++++ 15 files changed, 450 insertions(+) create mode 100644 arch/arm64/boot/dts/apple/t8010-7.dtsi create mode 100644 arch/arm64/boot/dts/apple/t8010-common.dtsi create mode 100644 arch/arm64/boot/dts/apple/t8010-d10.dts create mode 100644 arch/arm64/boot/dts/apple/t8010-d101.dts create mode 100644 arch/arm64/boot/dts/apple/t8010-d11.dts create mode 100644 arch/arm64/boot/dts/apple/t8010-d111.dts create mode 100644 arch/arm64/boot/dts/apple/t8010-ipad6.dtsi create mode 100644 arch/arm64/boot/dts/apple/t8010-ipad7.dtsi create mode 100644 arch/arm64/boot/dts/apple/t8010-j171.dts create mode 100644 arch/arm64/boot/dts/apple/t8010-j172.dts create mode 100644 arch/arm64/boot/dts/apple/t8010-j71b.dts create mode 100644 arch/arm64/boot/dts/apple/t8010-j72b.dts create mode 100644 arch/arm64/boot/dts/apple/t8010-n112.dts create mode 100644 arch/arm64/boot/dts/apple/t8010.dtsi diff --git a/arch/arm64/boot/dts/apple/Makefile b/arch/arm64/boot/dts/apple/Makefile index f8cd10889d9f..4a7002e289a0 100644 --- a/arch/arm64/boot/dts/apple/Makefile +++ b/arch/arm64/boot/dts/apple/Makefile @@ -32,6 +32,15 @@ dtb-$(CONFIG_ARCH_APPLE) += s8001-j127.dtb dtb-$(CONFIG_ARCH_APPLE) += s8001-j128.dtb dtb-$(CONFIG_ARCH_APPLE) += s8001-j98a.dtb dtb-$(CONFIG_ARCH_APPLE) += s8001-j99a.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8010-d101.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8010-d10.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8010-d111.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8010-d11.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8010-j171.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8010-j172.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8010-j71b.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8010-j72b.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8010-n112.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j274.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j293.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j313.dtb diff --git a/arch/arm64/boot/dts/apple/t8010-7.dtsi b/arch/arm64/boot/dts/apple/t8010-7.dtsi new file mode 100644 index 000000000000..1332fd73f50f --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-7.dtsi @@ -0,0 +1,43 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 7 / 7 Plus common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t8010.dtsi" +#include "t8010-common.dtsi" +#include + +/ { + chassis-type = "handset"; + + gpio-keys { + compatible = "gpio-keys"; + + button-power { + label = "Power Button"; + gpios = <&pinctrl_ap 179 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-voldown { + label = "Volume Down"; + gpios = <&pinctrl_ap 180 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + button-volup { + label = "Volume Up"; + gpios = <&pinctrl_ap 23 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + switch-mute { + label = "Mute Switch"; + gpios = <&pinctrl_ap 86 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t8010-common.dtsi b/arch/arm64/boot/dts/apple/t8010-common.dtsi new file mode 100644 index 000000000000..6613fb57c92f --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-common.dtsi @@ -0,0 +1,48 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Apple iPhone 7, iPhone 7 Plus, iPad 6, iPad 7, iPod touch 7 + * + * This file contains parts common to all Apple A10 devices. + * + * target-type: D10, D11, D101, D111, J71b, J72b, J171, J172, N112 + * + * Copyright (c) 2024, Nick Chan + */ + +/ { + aliases { + serial0 = &serial0; + }; + + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + stdout-path = "serial0"; + + framebuffer0: framebuffer@0 { + compatible = "apple,simple-framebuffer", "simple-framebuffer"; + reg = <0 0 0 0>; /* To be filled by loader */ + /* Format properties will be added by loader */ + status = "disabled"; + }; + }; + + memory@800000000 { + device_type = "memory"; + reg = <0x8 0 0 0>; /* To be filled by loader */ + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* To be filled by loader */ + }; +}; + +&serial0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/apple/t8010-d10.dts b/arch/arm64/boot/dts/apple/t8010-d10.dts new file mode 100644 index 000000000000..39cdd12db6bf --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-d10.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 7 (Qualcomm), D10, iPhone9,1 (A1660/A1778/A1779/A1780) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8010-7.dtsi" + +/ { + compatible = "apple,d10", "apple,t8010", "apple,arm-platform"; + model = "Apple iPhone 7 (Qualcomm)"; +}; diff --git a/arch/arm64/boot/dts/apple/t8010-d101.dts b/arch/arm64/boot/dts/apple/t8010-d101.dts new file mode 100644 index 000000000000..6a9f0856f930 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-d101.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 7 (Intel), D101, iPhone9,3 (A1660/A1778/A1779/A1780) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8010-7.dtsi" + +/ { + compatible = "apple,d101", "apple,t8010", "apple,arm-platform"; + model = "Apple iPhone 7 (Intel)"; +}; diff --git a/arch/arm64/boot/dts/apple/t8010-d11.dts b/arch/arm64/boot/dts/apple/t8010-d11.dts new file mode 100644 index 000000000000..57e41c2cfbe2 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-d11.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 7 Plus (Qualcomm), D11, iPhone9,2 (A1661/A1784/A1785/A1786) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8010-7.dtsi" + +/ { + compatible = "apple,d11", "apple,t8010", "apple,arm-platform"; + model = "Apple iPhone 7 Plus (Qualcomm)"; +}; diff --git a/arch/arm64/boot/dts/apple/t8010-d111.dts b/arch/arm64/boot/dts/apple/t8010-d111.dts new file mode 100644 index 000000000000..37e395a48c1d --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-d111.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 7 Plus (Intel), D111, iPhone9,4 (A1661/A1784/A1785/A1786) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8010-7.dtsi" + +/ { + compatible = "apple,d111", "apple,t8010", "apple,arm-platform"; + model = "Apple iPhone 7 Plus (Intel)"; +}; diff --git a/arch/arm64/boot/dts/apple/t8010-ipad6.dtsi b/arch/arm64/boot/dts/apple/t8010-ipad6.dtsi new file mode 100644 index 000000000000..81696c6e302c --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-ipad6.dtsi @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad 6 common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t8010.dtsi" +#include "t8010-common.dtsi" +#include + +/ { + chassis-type = "tablet"; + + gpio-keys { + compatible = "gpio-keys"; + + button-home { + label = "Home Button"; + gpios = <&pinctrl_ap 180 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-power { + label = "Power Button"; + gpios = <&pinctrl_ap 179 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-voldown { + label = "Volume Down"; + gpios = <&pinctrl_ap 89 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + button-volup { + label = "Volume Up"; + gpios = <&pinctrl_ap 90 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t8010-ipad7.dtsi b/arch/arm64/boot/dts/apple/t8010-ipad7.dtsi new file mode 100644 index 000000000000..bd0e9c0b5696 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-ipad7.dtsi @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad 7 common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +/* + * The iPad 7 seems to be only an iteration over the iPad 6 with some + * small changes, like the a bigger screen and 1 GiB of RAM more, hence + * there is little to no differentiation between these 2 generations for + * now. + */ +#include "t8010-ipad6.dtsi" diff --git a/arch/arm64/boot/dts/apple/t8010-j171.dts b/arch/arm64/boot/dts/apple/t8010-j171.dts new file mode 100644 index 000000000000..6751bf3a4afd --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-j171.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad 7 (Wi-Fi), J171, iPad7,11 (A2197) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8010-ipad7.dtsi" + +/ { + compatible = "apple,j171", "apple,t8010", "apple,arm-platform"; + model = "Apple iPad 7 (Wi-Fi)"; +}; diff --git a/arch/arm64/boot/dts/apple/t8010-j172.dts b/arch/arm64/boot/dts/apple/t8010-j172.dts new file mode 100644 index 000000000000..51aaa950acd9 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-j172.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad 7 (Cellular), J172, iPad7,12 (A2198/A2200) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8010-ipad7.dtsi" + +/ { + compatible = "apple,j172", "apple,t8010", "apple,arm-platform"; + model = "Apple iPad 7 (Cellular)"; +}; diff --git a/arch/arm64/boot/dts/apple/t8010-j71b.dts b/arch/arm64/boot/dts/apple/t8010-j71b.dts new file mode 100644 index 000000000000..534eb8413e08 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-j71b.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad 6 (Wi-Fi), J71b, iPad7,5 (A1893) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8010-ipad6.dtsi" + +/ { + compatible = "apple,j71b", "apple,t8010", "apple,arm-platform"; + model = "Apple iPad 6 (Wi-Fi)"; +}; diff --git a/arch/arm64/boot/dts/apple/t8010-j72b.dts b/arch/arm64/boot/dts/apple/t8010-j72b.dts new file mode 100644 index 000000000000..264924e41f42 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-j72b.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad 6 (Cellular), J72b, iPad7,6 (A1954) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8010-ipad6.dtsi" + +/ { + compatible = "apple,j72b", "apple,t8010", "apple,arm-platform"; + model = "Apple iPad 6 (Cellular)"; +}; diff --git a/arch/arm64/boot/dts/apple/t8010-n112.dts b/arch/arm64/boot/dts/apple/t8010-n112.dts new file mode 100644 index 000000000000..6e71c3cb5d92 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-n112.dts @@ -0,0 +1,47 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPod touch 7, N112, iPod9,1 (A2178) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8010.dtsi" +#include "t8010-common.dtsi" +#include + +/ { + compatible = "apple,n112", "apple,t8010", "apple,arm-platform"; + model = "Apple iPod touch 7"; + chassis-type = "handset"; + + gpio-keys { + compatible = "gpio-keys"; + + button-home { + label = "Home Button"; + gpios = <&pinctrl_ap 86 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-power { + label = "Power Button"; + gpios = <&pinctrl_ap 179 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-voldown { + label = "Volume Down"; + gpios = <&pinctrl_ap 180 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + button-volup { + label = "Volume Up"; + gpios = <&pinctrl_ap 23 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t8010.dtsi b/arch/arm64/boot/dts/apple/t8010.dtsi new file mode 100644 index 000000000000..e3d6a8354103 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010.dtsi @@ -0,0 +1,133 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Apple T8010 "A10" SoC + * + * Other names: H9P, "Cayman" + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include +#include +#include +#include + +/ { + interrupt-parent = <&aic>; + #address-cells = <2>; + #size-cells = <2>; + + clkref: clock-ref { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "clkref"; + }; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + cpu0: cpu@0 { + compatible = "apple,hurricane-zephyr"; + reg = <0x0 0x0>; + cpu-release-addr = <0 0>; /* To be filled by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + + cpu1: cpu@1 { + compatible = "apple,hurricane-zephyr"; + reg = <0x0 0x1>; + cpu-release-addr = <0 0>; /* To be filled by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + nonposted-mmio; + ranges; + + serial0: serial@20a0c0000 { + compatible = "apple,s5l-uart"; + reg = <0x2 0x0a0c0000 0x0 0x4000>; + reg-io-width = <4>; + interrupt-parent = <&aic>; + interrupts = ; + /* Use the bootloader-enabled clocks for now. */ + clocks = <&clkref>, <&clkref>; + clock-names = "uart", "clk_uart_baud0"; + status = "disabled"; + }; + + aic: interrupt-controller@20e100000 { + compatible = "apple,t8010-aic", "apple,aic"; + reg = <0x2 0x0e100000 0x0 0x100000>; + #interrupt-cells = <3>; + interrupt-controller; + }; + + pinctrl_ap: pinctrl@20f100000 { + compatible = "apple,t8010-pinctrl", "apple,pinctrl"; + reg = <0x2 0x0f100000 0x0 0x100000>; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_ap 0 0 208>; + apple,npins = <208>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + ; + }; + + pinctrl_aop: pinctrl@2100f0000 { + compatible = "apple,t8010-pinctrl", "apple,pinctrl"; + reg = <0x2 0x100f0000 0x0 0x100000>; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_aop 0 0 42>; + apple,npins = <42>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + ; + }; + + wdt: watchdog@2102b0000 { + compatible = "apple,t8010-wdt", "apple,wdt"; + reg = <0x2 0x102b0000 0x0 0x4000>; + clocks = <&clkref>; + interrupt-parent = <&aic>; + interrupts = ; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupt-parent = <&aic>; + interrupt-names = "phys", "virt"; + /* Note that A10 doesn't actually have a hypervisor (EL2 is not implemented). */ + interrupts = , + ; + }; +}; From patchwork Wed Oct 23 04:40:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846434 Received: from mail-pl1-f174.google.com (mail-pl1-f174.google.com [209.85.214.174]) (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 34EC1149E09; Wed, 23 Oct 2024 04:46:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658777; cv=none; b=XqrZ/zr8Vf7L7uysp3tZzSt7H5uibQzBa8mToXRIrtUmZFFO5cilXh5aN2h/E3F71k7ujgn1HEb9I3ujLcCjjkKGVmygHOxTorem5WJiLy2Ke/Q/i76tAxq4ut2D3qngAfu7LcWgmtdG/QeUnQbFrIkekTLYraNfxy9rubltnMM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658777; c=relaxed/simple; bh=Nj4UYo9pD076edDh5xr2HpIgCOqWZxoI8CUGoOd2KsY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=i2AwXD4UHbLkBbrbnynOzS4FqThVRGkUZP9pToNjb973AZd+O8WRLabQchhbQRuI9qZp/v77dmPPuMKcALV6xwIOaUZWQtmekW1rGojgvacMDnol/c+1Eos47Lm5t9VrBJE69h7HiNA0n74RWZ76F+RjTWb1kZKOei9PqhkJ4i8= 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=GtSGczUF; arc=none smtp.client-ip=209.85.214.174 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="GtSGczUF" Received: by mail-pl1-f174.google.com with SMTP id d9443c01a7336-20cbca51687so62989585ad.1; Tue, 22 Oct 2024 21:46:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658774; x=1730263574; 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=IQuv385CzKnq3zLwf+BYMbcSjCeXWxuc5AxIE/I+jyc=; b=GtSGczUF8gh+Hu1WR58Q4Zdf1llsMXPNJFfkcRxpFs7ZxWNV4BfYeuXK8iazUH5xIa BX489QPy71SFijF+HVJ5qRyg4so1DhyfsJSGZ9WEnNl0x8u9egYowDA3Al/wtXUsYi3r WUqRTn3XXlbq67um9uVPsLWuefpsNXH4oXOYmww3Ug/WBllIKVNx+Tz9m9INIoXlm/i1 eRkQFp4dv0FUMxCmho1WSyLLXI8toQ4qwFrdsra56u8+o9r4EYVc3KZZNKufZT2uyohr +kDxHFB0HyAbPDK1en8at+h8e8rJmAtfjN6py+sKnEWhGyo7vwfLOygO7ZW6kAReVXYO 7ixw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658774; x=1730263574; 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=IQuv385CzKnq3zLwf+BYMbcSjCeXWxuc5AxIE/I+jyc=; b=QRzPIcdugSVAoROI+yTqA7qHDD0fb54JB1uDXTwgnGqKUaxGhL/qNCK/R82zbT6dTD URKmpSc6JixMnIu7pyRuY+QszCx7t/md7CAGwFjIw5NkPh31JgYSKjwVP6eF7t+qoTfe j4Q/0nKshxJRSsU9KubpTv/CTiSH/vo1mUUEz2Gd9gH/6XxkKTNbVBRhBvATJMD++yOt Z+TsChxTqKjV5nGdusV8954LKfvoFA4LMLRtRrsyRbWnkE2m9Qy9OwSte2hkJCWwK9Em xMacQhUkDoo+eNOEtJKA+73UwuhVwvozuzU8Q1zTsEmNyJ1WabloDwVH+Eh982wwozAp p5rw== X-Forwarded-Encrypted: i=1; AJvYcCVAa8VXpX+35+BgKm4IPLQ93o0/cdLxQ1b3/giDUVsdjIuEqp3AVoyVagat3yZSH0Z748K/P5xihDqfCw==@vger.kernel.org, AJvYcCWON9YASK3iQaY9Cqn2wiM29ZmBIIDAF7GDFvxi+9wozKL3waBFriq6sN+5dus7ixssS+JpHSF+7L3GdThx@vger.kernel.org, AJvYcCXNKFn4zPOu++rn7d1KEH36Say+zJENmNs0qdeXUE09phcu9hoihOCvJmjYUITj/iDOr5DVJQ4Ytof9tZzhZhQ=@vger.kernel.org, AJvYcCXZtt7DRA9KBTMcw5CQlwwrb+qqpqpsGb8m2+TFmxUWlmzBHcyrFjRz5bafzWCEjquN7Tc/Db2df+Em@vger.kernel.org X-Gm-Message-State: AOJu0YxEhUo3t96tDFiFUA0Ooyzt0GLyYaaaZKeoVKBxCVJ99ATPResJ 3KV+/xu7D63z6Mun5EgVmVgQDf4dpe2X5+/lfY8tmLU1ksDNFm76 X-Google-Smtp-Source: AGHT+IEp+3z3gVE5nWRACY5aakppI3SlsLkO0SzSCSAR47LOhF6+HyztUUHnLbWBdo9Ygbd87BfbgQ== X-Received: by 2002:a17:902:e884:b0:20c:a498:1e4d with SMTP id d9443c01a7336-20fab2e0ed9mr15802355ad.60.1729658774323; Tue, 22 Oct 2024 21:46:14 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.46.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:46:13 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Konrad Dybcio , Nick Chan Subject: [PATCH v6 RESEND 18/20] arm64: dts: apple: Add A10X devices Date: Wed, 23 Oct 2024 12:40:53 +0800 Message-ID: <20241023044423.18294-19-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Konrad Dybcio Add DTS files for the A10X SoC and the following devices based on it: - Apple TV 4K - iPad Pro (2nd Generation) (10.5 Inch) - iPad Pro (2nd Generation) (12.9 Inch) Signed-off-by: Konrad Dybcio [Nick: SMP, m1n1 and Apple TV 4K support, uart interrupt and pinctrl fixes] Co-developed-by: Nick Chan Signed-off-by: Nick Chan --- arch/arm64/boot/dts/apple/Makefile | 5 + arch/arm64/boot/dts/apple/t8011-common.dtsi | 46 +++++++ arch/arm64/boot/dts/apple/t8011-j105a.dts | 16 +++ arch/arm64/boot/dts/apple/t8011-j120.dts | 16 +++ arch/arm64/boot/dts/apple/t8011-j121.dts | 16 +++ arch/arm64/boot/dts/apple/t8011-j207.dts | 16 +++ arch/arm64/boot/dts/apple/t8011-j208.dts | 16 +++ arch/arm64/boot/dts/apple/t8011-pro2.dtsi | 42 ++++++ arch/arm64/boot/dts/apple/t8011.dtsi | 141 ++++++++++++++++++++ 9 files changed, 314 insertions(+) create mode 100644 arch/arm64/boot/dts/apple/t8011-common.dtsi create mode 100644 arch/arm64/boot/dts/apple/t8011-j105a.dts create mode 100644 arch/arm64/boot/dts/apple/t8011-j120.dts create mode 100644 arch/arm64/boot/dts/apple/t8011-j121.dts create mode 100644 arch/arm64/boot/dts/apple/t8011-j207.dts create mode 100644 arch/arm64/boot/dts/apple/t8011-j208.dts create mode 100644 arch/arm64/boot/dts/apple/t8011-pro2.dtsi create mode 100644 arch/arm64/boot/dts/apple/t8011.dtsi diff --git a/arch/arm64/boot/dts/apple/Makefile b/arch/arm64/boot/dts/apple/Makefile index 4a7002e289a0..a44c14fae7bc 100644 --- a/arch/arm64/boot/dts/apple/Makefile +++ b/arch/arm64/boot/dts/apple/Makefile @@ -41,6 +41,11 @@ dtb-$(CONFIG_ARCH_APPLE) += t8010-j172.dtb dtb-$(CONFIG_ARCH_APPLE) += t8010-j71b.dtb dtb-$(CONFIG_ARCH_APPLE) += t8010-j72b.dtb dtb-$(CONFIG_ARCH_APPLE) += t8010-n112.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8011-j105a.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8011-j120.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8011-j121.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8011-j207.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8011-j208.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j274.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j293.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j313.dtb diff --git a/arch/arm64/boot/dts/apple/t8011-common.dtsi b/arch/arm64/boot/dts/apple/t8011-common.dtsi new file mode 100644 index 000000000000..44a0d0ea2ee3 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8011-common.dtsi @@ -0,0 +1,46 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple TV 4K, Apple iPad Pro 2 + * + * This file contains parts common to all Apple A10X devices. + * + * Copyright (c) 2024, Nick Chan + */ + +/ { + aliases { + serial0 = &serial0; + }; + + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + stdout-path = "serial0"; + + framebuffer0: framebuffer@0 { + compatible = "apple,simple-framebuffer", "simple-framebuffer"; + reg = <0 0 0 0>; /* To be filled by loader */ + /* Format properties will be added by loader */ + status = "disabled"; + }; + }; + + memory@800000000 { + device_type = "memory"; + reg = <0x8 0 0 0>; /* To be filled by loader */ + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* To be filled by loader */ + }; +}; + +&serial0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/apple/t8011-j105a.dts b/arch/arm64/boot/dts/apple/t8011-j105a.dts new file mode 100644 index 000000000000..d3e5b69c67aa --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8011-j105a.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple TV 4K (1st Generation), J105a, AppleTV6,2 (A1482) + * Copyright (c) 2024, Nick Chan + */ + +/dts-v1/; + +#include "t8011.dtsi" +#include "t8011-common.dtsi" + +/ { + compatible = "apple,j105a", "apple,t8011", "apple,arm-platform"; + model = "Apple TV 4K (1st Generation)"; + chassis-type = "television"; +}; diff --git a/arch/arm64/boot/dts/apple/t8011-j120.dts b/arch/arm64/boot/dts/apple/t8011-j120.dts new file mode 100644 index 000000000000..1b49bb5c97c3 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8011-j120.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Pro 2 (12.9-inch) (Wi-Fi), J120, iPad7,1 (A1670) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8011.dtsi" +#include "t8011-common.dtsi" +#include "t8011-pro2.dtsi" + +/ { + compatible = "apple,j120", "apple,t8011", "apple,arm-platform"; + model = "Apple iPad Pro 2 (12.9-inch) (Wi-Fi)"; +}; diff --git a/arch/arm64/boot/dts/apple/t8011-j121.dts b/arch/arm64/boot/dts/apple/t8011-j121.dts new file mode 100644 index 000000000000..22f4aa1ecbda --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8011-j121.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Pro 2 (12.9-inch) (Cellular), J121, iPad7,2 (A1671) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8011.dtsi" +#include "t8011-common.dtsi" +#include "t8011-pro2.dtsi" + +/ { + compatible = "apple,j121", "apple,t8011", "apple,arm-platform"; + model = "Apple iPad Pro 2 (12.9-inch) (Cellular)"; +}; diff --git a/arch/arm64/boot/dts/apple/t8011-j207.dts b/arch/arm64/boot/dts/apple/t8011-j207.dts new file mode 100644 index 000000000000..c3384e2cad44 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8011-j207.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Pro 2 (10.5-inch) (Wi-Fi), J207, iPad7,3 (A1701) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8011.dtsi" +#include "t8011-common.dtsi" +#include "t8011-pro2.dtsi" + +/ { + compatible = "apple,j207", "apple,t8011", "apple,arm-platform"; + model = "Apple iPad Pro 2 (10.5-inch) (Wi-Fi)"; +}; diff --git a/arch/arm64/boot/dts/apple/t8011-j208.dts b/arch/arm64/boot/dts/apple/t8011-j208.dts new file mode 100644 index 000000000000..251fa76efb6b --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8011-j208.dts @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Pro 2 (10.5-inch) (Cellular), J208, iPad7,4 (A1709) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8011.dtsi" +#include "t8011-common.dtsi" +#include "t8011-pro2.dtsi" + +/ { + compatible = "apple,j208", "apple,t8011", "apple,arm-platform"; + model = "Apple iPad Pro 2 (10.5-inch) (Cellular)"; +}; diff --git a/arch/arm64/boot/dts/apple/t8011-pro2.dtsi b/arch/arm64/boot/dts/apple/t8011-pro2.dtsi new file mode 100644 index 000000000000..f4e707415003 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8011-pro2.dtsi @@ -0,0 +1,42 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Pro 2 common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include + +/ { + chassis-type = "tablet"; + + gpio-keys { + compatible = "gpio-keys"; + + button-home { + label = "Home Button"; + gpios = <&pinctrl_ap 139 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-power { + label = "Power Button"; + gpios = <&pinctrl_ap 138 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + button-voldown { + label = "Volume Down"; + gpios = <&pinctrl_ap 43 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + button-volup { + label = "Volume Up"; + gpios = <&pinctrl_ap 40 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t8011.dtsi b/arch/arm64/boot/dts/apple/t8011.dtsi new file mode 100644 index 000000000000..6c4ed9dc4a50 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8011.dtsi @@ -0,0 +1,141 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple T8011 "A10X" SoC + * + * Other names: H9G, "Myst" + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include +#include +#include +#include + +/ { + interrupt-parent = <&aic>; + #address-cells = <2>; + #size-cells = <2>; + + clkref: clock-ref { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "clkref"; + }; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + cpu0: cpu@0 { + compatible = "apple,hurricane-zephyr"; + reg = <0x0 0x0>; + cpu-release-addr = <0 0>; /* To be filled by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + + cpu1: cpu@1 { + compatible = "apple,hurricane-zephyr"; + reg = <0x0 0x1>; + cpu-release-addr = <0 0>; /* To be filled by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + + cpu2: cpu@2 { + compatible = "apple,hurricane-zephyr"; + reg = <0x0 0x2>; + cpu-release-addr = <0 0>; /* To be filled by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + nonposted-mmio; + ranges; + + serial0: serial@20a0c0000 { + compatible = "apple,s5l-uart"; + reg = <0x2 0x0a0c0000 0x0 0x4000>; + reg-io-width = <4>; + interrupt-parent = <&aic>; + interrupts = ; + /* Use the bootloader-enabled clocks for now. */ + clocks = <&clkref>, <&clkref>; + clock-names = "uart", "clk_uart_baud0"; + status = "disabled"; + }; + + aic: interrupt-controller@20e100000 { + compatible = "apple,t8010-aic", "apple,aic"; + reg = <0x2 0x0e100000 0x0 0x100000>; + #interrupt-cells = <3>; + interrupt-controller; + }; + + pinctrl_ap: pinctrl@20f100000 { + compatible = "apple,t8010-pinctrl", "apple,pinctrl"; + reg = <0x2 0x0f100000 0x0 0x100000>; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_ap 0 0 219>; + apple,npins = <219>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + ; + }; + + pinctrl_aop: pinctrl@2100f0000 { + compatible = "apple,t8010-pinctrl", "apple,pinctrl"; + reg = <0x2 0x100f0000 0x0 0x100000>; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_aop 0 0 42>; + apple,npins = <42>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + ; + }; + + wdt: watchdog@2102b0000 { + compatible = "apple,t8010-wdt", "apple,wdt"; + reg = <0x2 0x102b0000 0x0 0x4000>; + clocks = <&clkref>; + interrupt-parent = <&aic>; + interrupts = ; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupt-parent = <&aic>; + interrupt-names = "phys", "virt"; + /* Note that A10X doesn't actually have a hypervisor (EL2 is not implemented). */ + interrupts = , + ; + }; +}; From patchwork Wed Oct 23 04:40:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846435 Received: from mail-pg1-f181.google.com (mail-pg1-f181.google.com [209.85.215.181]) (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 4096C156C5E; Wed, 23 Oct 2024 04:46:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658782; cv=none; b=tRQ8KYeSxza6ntFHHJMGlQuWYLPIZwYI9Dilhh1tRENwj+VBVQDWsbnIaOWnP1O0FdBAdWZwljTiyYLlvthUKZRdcU0hFsLMjFYjZkzLJmCYxbLOOMINxRAs4Ba33WYrU5ygj1ltpR1oWPyoB3llVoGtbH896MNpChd1deCPfjE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658782; c=relaxed/simple; bh=v2yz6ILW1kGDU+IedxRi1vIjNn/8gkzFtY8Yi4sVJUA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rmXVjMwPcCSiEPolPrNeAbTiDYj3Hc/BwMqqd0dVTVjzIE+V+0cS0DuFgXS0L7PiQdaTxlukQdfONCA4QvIvu5kq9s36817aaNo7RZTGLKQWtBhpPZjOH48VwBMXXPiSP8MRKGIc1PVBYklHbt8LRcFR+Z6mHuagsogq55LBnGM= 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=Eys8n0ky; arc=none smtp.client-ip=209.85.215.181 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="Eys8n0ky" Received: by mail-pg1-f181.google.com with SMTP id 41be03b00d2f7-7ea68af2f62so4899221a12.3; Tue, 22 Oct 2024 21:46:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658779; x=1730263579; 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=3Y7+yqrOrJvDdsiBEJdGCKVf+3/9W6oRgsxZW76uknw=; b=Eys8n0ky4hG5EE7PkMLngixK9Iet21iWOQBS71uywSjsKUitWIWY/Zz4Ax8XnVwgis rgGQ0gf/n8AQfyuWPjqk0tyzqzaUP65RPmZVvbqD+e8fNiCvxGWTpCuUCyUBAPJ0c5Pp IGRU2tiK7Rc6NQiJdGv12SWX3+/CDdPeUOZCqXOK3a+ELnGpo1/XJNCezvWUS0vfRBM7 hTmheesHFwkwf7dbz6ACZisMQxBj5zK8ZQO3YsUulFU1mbIiAco0Soorh5xp5LEKrMKL vBEndKKc96c6wJZvTx/ngUiK/tLm2J6p1dsQknc9R9TD8/4/eS57RXynKoyd6gbBgW4N SHKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658779; x=1730263579; 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=3Y7+yqrOrJvDdsiBEJdGCKVf+3/9W6oRgsxZW76uknw=; b=pzE7eTi/vzF5TD7iNJgCet4OarY7wnTEhNBCHj2sj/U1q5IMofb15eBZw3SguN7fn/ /1auVCB2/RRlQYgilg8RkoFlBh0MoIYt7jTjHCkKP5RQLYFVqgmN3IkLSW/UAKUFY67M VRdyn3sV2tMEwq1cpvnQBvMFSgyo8bpIlezobtGrMEtjczC4SdDZm/zDwzDsRwm40yGV 9rFdZtxuKe2Zktd2ypQyzH+gCdmB6rmG6tusH4t+SOQg3SoirynDJF9sfzoZM21qH8BB z+vEd+YNTTG9H6uYdwTT/wS3JqAkDEekcdjrgxK0t8SMsV3hbz+9C5UZBc5pozc4NuXa 1w7g== X-Forwarded-Encrypted: i=1; AJvYcCU/OdkI+hMDUeOzi1NVoj1Ox0MSh4Tp3rLmC0ZZqVqX5T2lEHNncO5e7a048bCD322ku13CEHolzNNplA==@vger.kernel.org, AJvYcCUo2n81T210+Ch28Z7r2MFX3vbIk87xevBzOeAREDJPT17VNzMVwJeg1Ci4NKAw66wG8sDcEKUg9rZA@vger.kernel.org, AJvYcCVPOOGAsAOj2GGPjciiveWjMvR+hUeP5B9akpEHYKSCLqtU+M6DhuRQp6MK9vLyoXN0QIF721YATlZ0THyA@vger.kernel.org, AJvYcCWnyKoBdvrgZ3aUqACezKtU3nFBbrnJzW3KNgph1Us79fUUtZuWIah11ZfhEDOAXW8qQFS4zsZhJB6WwbnaU00=@vger.kernel.org X-Gm-Message-State: AOJu0YzF0jNoVlcHUnRAfRogjJ6/fWOl9uNE7P4ZzZkjblY7eqHga4Af 2A/pyxNJJC4IvwnCMIs8qhC4v8T7JDMA2en6MnmOpiPmF9AUmAsY X-Google-Smtp-Source: AGHT+IEorPfxzVA8JvAA4/DPkTMVrov6A/Gg9PEIGNddwVA5e4NP/YRoMFQaTUExL0bMHnL8P2fuqQ== X-Received: by 2002:a05:6a21:e8f:b0:1cf:6d20:4d6 with SMTP id adf61e73a8af0-1d978b0a072mr1488634637.16.1729658779466; Tue, 22 Oct 2024 21:46:19 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.46.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:46:19 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Konrad Dybcio , Nick Chan Subject: [PATCH v6 RESEND 19/20] arm64: dts: apple: Add A11 devices Date: Wed, 23 Oct 2024 12:40:54 +0800 Message-ID: <20241023044423.18294-20-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: Konrad Dybcio Add DTS files for the A11 SoC and the following devices based on it: - iPhone 8 - iPhone 8 Plus - iPhone X On A11, Apple has introduced independent performance and efficiency core clusters, so indicate it in the device tree as well. Signed-off-by: Konrad Dybcio [Nick: SMP and m1n1 support, disabled SMC pinctrl] Co-developed-by: Nick Chan Signed-off-by: Nick Chan --- arch/arm64/boot/dts/apple/Makefile | 6 + arch/arm64/boot/dts/apple/t8015-8.dtsi | 13 ++ arch/arm64/boot/dts/apple/t8015-8plus.dtsi | 9 + arch/arm64/boot/dts/apple/t8015-common.dtsi | 48 ++++ arch/arm64/boot/dts/apple/t8015-d20.dts | 14 ++ arch/arm64/boot/dts/apple/t8015-d201.dts | 14 ++ arch/arm64/boot/dts/apple/t8015-d21.dts | 14 ++ arch/arm64/boot/dts/apple/t8015-d211.dts | 14 ++ arch/arm64/boot/dts/apple/t8015-d22.dts | 14 ++ arch/arm64/boot/dts/apple/t8015-d221.dts | 14 ++ arch/arm64/boot/dts/apple/t8015-x.dtsi | 13 ++ arch/arm64/boot/dts/apple/t8015.dtsi | 234 ++++++++++++++++++++ 12 files changed, 407 insertions(+) create mode 100644 arch/arm64/boot/dts/apple/t8015-8.dtsi create mode 100644 arch/arm64/boot/dts/apple/t8015-8plus.dtsi create mode 100644 arch/arm64/boot/dts/apple/t8015-common.dtsi create mode 100644 arch/arm64/boot/dts/apple/t8015-d20.dts create mode 100644 arch/arm64/boot/dts/apple/t8015-d201.dts create mode 100644 arch/arm64/boot/dts/apple/t8015-d21.dts create mode 100644 arch/arm64/boot/dts/apple/t8015-d211.dts create mode 100644 arch/arm64/boot/dts/apple/t8015-d22.dts create mode 100644 arch/arm64/boot/dts/apple/t8015-d221.dts create mode 100644 arch/arm64/boot/dts/apple/t8015-x.dtsi create mode 100644 arch/arm64/boot/dts/apple/t8015.dtsi diff --git a/arch/arm64/boot/dts/apple/Makefile b/arch/arm64/boot/dts/apple/Makefile index a44c14fae7bc..ab6ebb53218a 100644 --- a/arch/arm64/boot/dts/apple/Makefile +++ b/arch/arm64/boot/dts/apple/Makefile @@ -46,6 +46,12 @@ dtb-$(CONFIG_ARCH_APPLE) += t8011-j120.dtb dtb-$(CONFIG_ARCH_APPLE) += t8011-j121.dtb dtb-$(CONFIG_ARCH_APPLE) += t8011-j207.dtb dtb-$(CONFIG_ARCH_APPLE) += t8011-j208.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8015-d201.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8015-d20.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8015-d211.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8015-d21.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8015-d221.dtb +dtb-$(CONFIG_ARCH_APPLE) += t8015-d22.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j274.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j293.dtb dtb-$(CONFIG_ARCH_APPLE) += t8103-j313.dtb diff --git a/arch/arm64/boot/dts/apple/t8015-8.dtsi b/arch/arm64/boot/dts/apple/t8015-8.dtsi new file mode 100644 index 000000000000..b6505b5185bd --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8015-8.dtsi @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 8 common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t8015.dtsi" +#include "t8015-common.dtsi" + +/ { + chassis-type = "handset"; +}; diff --git a/arch/arm64/boot/dts/apple/t8015-8plus.dtsi b/arch/arm64/boot/dts/apple/t8015-8plus.dtsi new file mode 100644 index 000000000000..ea291a95f028 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8015-8plus.dtsi @@ -0,0 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 8 Plus common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +/* The 8 Plus has minor differences like 1 more camera, 1 GiB of RAM more and a bigger display. */ +#include "t8015-8.dtsi" diff --git a/arch/arm64/boot/dts/apple/t8015-common.dtsi b/arch/arm64/boot/dts/apple/t8015-common.dtsi new file mode 100644 index 000000000000..69258a33ea50 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8015-common.dtsi @@ -0,0 +1,48 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 8, iPhone 8 Plus, iPhone X + * + * This file contains parts common to all Apple A11 devices. + * + * target-type: D20, D21, D22, D201, D211, D221 + * + * Copyright (c) 2024, Nick Chan + */ + +/ { + aliases { + serial0 = &serial0; + }; + + chosen { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + stdout-path = "serial0"; + + framebuffer0: framebuffer@0 { + compatible = "apple,simple-framebuffer", "simple-framebuffer"; + reg = <0 0 0 0>; /* To be filled by loader */ + /* Format properties will be added by loader */ + status = "disabled"; + }; + }; + + memory@800000000 { + device_type = "memory"; + reg = <0x8 0 0 0>; /* To be filled by loader */ + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* To be filled by loader */ + }; +}; + +&serial0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/apple/t8015-d20.dts b/arch/arm64/boot/dts/apple/t8015-d20.dts new file mode 100644 index 000000000000..35d79e2ceebc --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8015-d20.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 8 (Global), D20 iPhone10,1 (A1863/A1906/A1907) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8015-8.dtsi" + +/ { + compatible = "apple,d20", "apple,t8015", "apple,arm-platform"; + model = "Apple iPhone 8 (Global)"; +}; diff --git a/arch/arm64/boot/dts/apple/t8015-d201.dts b/arch/arm64/boot/dts/apple/t8015-d201.dts new file mode 100644 index 000000000000..31e0947fee70 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8015-d201.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 8 (GSM), D20 iPhone10,4 (A1905) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8015-8.dtsi" + +/ { + compatible = "apple,d201", "apple,t8015", "apple,arm-platform"; + model = "Apple iPhone 8 (GSM)"; +}; diff --git a/arch/arm64/boot/dts/apple/t8015-d21.dts b/arch/arm64/boot/dts/apple/t8015-d21.dts new file mode 100644 index 000000000000..a902ba7f1133 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8015-d21.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 8 Plus (Global), D21 iPhone10,2 (A1864/A1897/A1898) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8015-8plus.dtsi" + +/ { + compatible = "apple,d21", "apple,t8015", "apple,arm-platform"; + model = "Apple iPhone 8 Plus (Global)"; +}; diff --git a/arch/arm64/boot/dts/apple/t8015-d211.dts b/arch/arm64/boot/dts/apple/t8015-d211.dts new file mode 100644 index 000000000000..3b3f886c0c09 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8015-d211.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 8 Plus (GSM), D211 iPhone10,5 (A1899) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8015-8plus.dtsi" + +/ { + compatible = "apple,d211", "apple,t8015", "apple,arm-platform"; + model = "Apple iPhone 8 Plus (GSM)"; +}; diff --git a/arch/arm64/boot/dts/apple/t8015-d22.dts b/arch/arm64/boot/dts/apple/t8015-d22.dts new file mode 100644 index 000000000000..5a7a6092c2d0 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8015-d22.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone X (Global), D22, iPhone10,3 (A1865) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8015-x.dtsi" + +/ { + compatible = "apple,d22", "apple,t8015", "apple,arm-platform"; + model = "Apple iPhone X (Global)"; +}; diff --git a/arch/arm64/boot/dts/apple/t8015-d221.dts b/arch/arm64/boot/dts/apple/t8015-d221.dts new file mode 100644 index 000000000000..dd920c945bd6 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8015-d221.dts @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone X (GSM), D221, iPhone10,6 (A1901) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include "t8015-x.dtsi" + +/ { + compatible = "apple,d221", "apple,t8015", "apple,arm-platform"; + model = "Apple iPhone X (GSM)"; +}; diff --git a/arch/arm64/boot/dts/apple/t8015-x.dtsi b/arch/arm64/boot/dts/apple/t8015-x.dtsi new file mode 100644 index 000000000000..41134ed40b89 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8015-x.dtsi @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone X common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t8015.dtsi" +#include "t8015-common.dtsi" + +/ { + chassis-type = "handset"; +}; diff --git a/arch/arm64/boot/dts/apple/t8015.dtsi b/arch/arm64/boot/dts/apple/t8015.dtsi new file mode 100644 index 000000000000..8828d830e5be --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8015.dtsi @@ -0,0 +1,234 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple T8015 "A11" SoC + * + * Other names: H10, "Skye" + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include +#include +#include +#include + +/ { + interrupt-parent = <&aic>; + #address-cells = <2>; + #size-cells = <2>; + + clkref: clock-ref { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "clkref"; + }; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + cpu-map { + cluster0 { + core0 { + cpu = <&cpu_e0>; + }; + core1 { + cpu = <&cpu_e1>; + }; + core2 { + cpu = <&cpu_e2>; + }; + core3 { + cpu = <&cpu_e3>; + }; + }; + + cluster1 { + core0 { + cpu = <&cpu_p0>; + }; + core1 { + cpu = <&cpu_p1>; + }; + }; + }; + + cpu_e0: cpu@0 { + compatible = "apple,mistral"; + reg = <0x0 0x0>; + cpu-release-addr = <0 0>; /* To be filled by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + + cpu_e1: cpu@1 { + compatible = "apple,mistral"; + reg = <0x0 0x1>; + cpu-release-addr = <0 0>; /* To be filled by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + + cpu_e2: cpu@2 { + compatible = "apple,mistral"; + reg = <0x0 0x2>; + cpu-release-addr = <0 0>; /* To be filled by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + + cpu_e3: cpu@3 { + compatible = "apple,mistral"; + reg = <0x0 0x3>; + cpu-release-addr = <0 0>; /* To be filled by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + + cpu_p0: cpu@10004 { + compatible = "apple,monsoon"; + reg = <0x0 0x10004>; + cpu-release-addr = <0 0>; /* To be filled by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + + cpu_p1: cpu@10005 { + compatible = "apple,monsoon"; + reg = <0x0 0x10005>; + cpu-release-addr = <0 0>; /* To be filled by loader */ + enable-method = "spin-table"; + device_type = "cpu"; + }; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + nonposted-mmio; + ranges; + + serial0: serial@22e600000 { + compatible = "apple,s5l-uart"; + reg = <0x2 0x2e600000 0x0 0x4000>; + reg-io-width = <4>; + interrupt-parent = <&aic>; + interrupts = ; + /* Use the bootloader-enabled clocks for now. */ + clocks = <&clkref>, <&clkref>; + clock-names = "uart", "clk_uart_baud0"; + status = "disabled"; + }; + + aic: interrupt-controller@232100000 { + compatible = "apple,t8015-aic", "apple,aic"; + reg = <0x2 0x32100000 0x0 0x8000>; + #interrupt-cells = <3>; + interrupt-controller; + }; + + pinctrl_ap: pinctrl@233100000 { + compatible = "apple,t8015-pinctrl", "apple,pinctrl"; + reg = <0x2 0x33100000 0x0 0x1000>; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_ap 0 0 223>; + apple,npins = <223>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + ; + }; + + pinctrl_aop: pinctrl@2340f0000 { + compatible = "apple,t8015-pinctrl", "apple,pinctrl"; + reg = <0x2 0x340f0000 0x0 0x4000>; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_aop 0 0 49>; + apple,npins = <49>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + ; + }; + + pinctrl_nub: pinctrl@2351f0000 { + compatible = "apple,t8015-pinctrl", "apple,pinctrl"; + reg = <0x2 0x351f0000 0x0 0x4000>; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_nub 0 0 8>; + apple,npins = <8>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&aic>; + interrupts = , + , + ; + }; + + wdt: watchdog@2352b0000 { + compatible = "apple,t8015-wdt", "apple,wdt"; + reg = <0x2 0x352b0000 0x0 0x4000>; + clocks = <&clkref>; + interrupt-parent = <&aic>; + interrupts = ; + }; + + pinctrl_smc: pinctrl@236024000 { + compatible = "apple,t8015-pinctrl", "apple,pinctrl"; + reg = <0x2 0x36024000 0x0 0x4000>; + + gpio-controller; + #gpio-cells = <2>; + gpio-ranges = <&pinctrl_smc 0 0 6>; + apple,npins = <6>; + + interrupt-controller; + #interrupt-cells = <2>; + interrupt-parent = <&aic>; + interrupts = , + , + , + , + , + , + ; + /* + * SMC is not yet supported and accessing this pinctrl while SMC is + * suspended results in a hang. + */ + status = "disabled"; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupt-parent = <&aic>; + interrupt-names = "phys", "virt"; + /* Note that A11 doesn't actually have a hypervisor (EL2 is not implemented). */ + interrupts = , + ; + }; +}; From patchwork Wed Oct 23 04:40:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13846436 Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 1EE4714A60F; Wed, 23 Oct 2024 04:46:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658786; cv=none; b=PEQswpLEwrm9YOwJi2tJlZsXTCcwKQdLoIM9un2BbIK/BQ6H8XA8cFRvGXuyKVWyHUFnAp0W5Pcd5L1kPMCWxIbZHw4or7L/RAzQ1Qw7Na3qE02hI0RXksKVEUgDg4ZIkK9WaMWKj+sckAaa62Y+mKDz9wq53T1z+sbW6v+cako= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729658786; c=relaxed/simple; bh=ct2YcdcBOxSZ1GCGb1LeP2FaYCRJZl05xZd1vf0mRTM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=LC+zQ/gJWZEO5D3wiGcAkAsWiEM2EBoL1LMn/2Xp3s7jV+npfmH15XzPesmNKT9iCDseKBTRmwJD2OOlOSM8ahIPqjWrHNpMLQdbUYCpH42W3Cxf6q6GWQRGKdb3diHcSev5NVraeq/p+hma7o6pMu/EFSXOnPPbGU2CGLyf3YA= 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=VBFhA5jF; arc=none smtp.client-ip=209.85.214.178 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="VBFhA5jF" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-20cb47387ceso57367375ad.1; Tue, 22 Oct 2024 21:46:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729658784; x=1730263584; 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=OLcv3ofcVGTwufnm7xv48GbGD0iBXCtvjDAqDevq6/g=; b=VBFhA5jFgkJAb2vvF/7KyJpxqyYfYr+cNxphtFYxwh2JZpSuN+2RSUKY4YgQIsORlI umg4cV/8XJpfUCMorXg8zvibvtX0uEquP/gfduHlVfn/rhcli4GJ+P620D4Mn97JbOlc njUEgiD7G/r6ipwWwTAjebOH30AWWM+5pVoyo1q4HjF74oqFVn6grVEFd674YyGv1stJ sqbA8yN3mXWcFZ3rSPogMqMnL6V3P1OhsziBwNckYPXQ9sxm9oR4VodvWM+8YLx5laQv VgDBHBuasaqB+dlFkF1DUAX8l9ulReLv7GvSekZr+xEX3MoM2sIi/NlZejbWjcORK1K9 31Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729658784; x=1730263584; 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=OLcv3ofcVGTwufnm7xv48GbGD0iBXCtvjDAqDevq6/g=; b=agC3etwBtOhL6N7LHDmLQ92i812ZBebvIXsFeqD4Wa6MPKIwyDa4cnCREc9tCRocCN LDADhw0pT/DmpUt/0F0OUcYKMg0n+YB0OZR1xcr2Ne8p+CKsVzNS0wjY5dh+CXN0kCQQ 7XR+P8I4tKIX9FBaDA4qUqzilQ7vGgBjDnZoBfWo+OQd0W5wtOSL5Q9lOpnoYrGlezQx eyvSW+SUCRWEFU70V+Sj2nWRf8D7yH6hdaXj6AJqixwZYKY7ObMXlxnVZLBiOIYCKkYY aDiuaeMLlJvowz0v+Bo/RufkDQcfX9K3pzKiTHX6D+FxR59S3+LsUjrqCir/2+aJ6YqK 8ZUg== X-Forwarded-Encrypted: i=1; AJvYcCUzlFbG9gMYYoMLMOf5yU1V7LJoZ7sLWOiNjHacstpKGVN7u3XuRE8MZzkt54cmxU2Ybprg/VZcoi9C1Q==@vger.kernel.org, AJvYcCWMBoZojGuQkQ6ZxQQKKP/ziPzsOvU94/cdT5kUj9F6VtKCvv2opsU55VCIMJTjWEm0Tb+Nk4oKUe8f@vger.kernel.org, AJvYcCWMOXjCGKf20fvOsMcbnIVc5L0uCDRsUUUI/zmsnxdOITyshAyyq9epxGFLJozkQB9ZE3R00fj3sJz8EtU6vko=@vger.kernel.org, AJvYcCXsgvgZDi0iiOz1hAV8kfTBOtSUtRN3vfqnYbhmYQoHoVZbrJKJ+krmrBZi2owPjM0LVueZskhFW42Pem1Q@vger.kernel.org X-Gm-Message-State: AOJu0YzOdmXDZrEcaowj5WPAhNx++c9IEcuuW2QSY4sUVgY9SUkx8YNl x4nG8R0gmMad17Zy4lpMh7yqdoUf/rfZjl72IPu0IjlSakAPtRnc X-Google-Smtp-Source: AGHT+IGJc9K6+XAyG7TzhnIXUf/vOUd+gEXzWdOW3q7WEzSqw/gm879hGuoGPWC3vS6E2GXg4chNXQ== X-Received: by 2002:a17:902:ea06:b0:20b:cae5:dec4 with SMTP id d9443c01a7336-20fa9e4b216mr17874595ad.24.1729658784493; Tue, 22 Oct 2024 21:46:24 -0700 (PDT) Received: from nick-mbp.ust.hk ([182.153.135.7]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-20e7f0de3c3sm49983125ad.207.2024.10.22.21.46.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Oct 2024 21:46:24 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Linus Walleij , Wim Van Sebroeck , Guenter Roeck , Catalin Marinas , Will Deacon , Lorenzo Pieralisi , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Krzysztof Kozlowski Subject: [PATCH v6 RESEND 20/20] arm64: Kconfig: Update help text for CONFIG_ARCH_APPLE Date: Wed, 23 Oct 2024 12:40:55 +0800 Message-ID: <20241023044423.18294-21-towinchenmi@gmail.com> X-Mailer: git-send-email 2.47.0 In-Reply-To: <20241023044423.18294-1-towinchenmi@gmail.com> References: <20241023044423.18294-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-watchdog@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Apple's A7-A11 SoC is now supported, so the original help text is no longer accurate. Acked-by: Krzysztof Kozlowski Signed-off-by: Nick Chan --- arch/arm64/Kconfig.platforms | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 6c6d11536b42..370a9d2b6919 100644 --- a/arch/arm64/Kconfig.platforms +++ b/arch/arm64/Kconfig.platforms @@ -37,8 +37,8 @@ config ARCH_APPLE bool "Apple Silicon SoC family" select APPLE_AIC help - This enables support for Apple's in-house ARM SoC family, starting - with the Apple M1. + This enables support for Apple's in-house ARM SoC family, such + as the Apple M1. menuconfig ARCH_BCM bool "Broadcom SoC Support"