From patchwork Sat Sep 14 05:17:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 828793 Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.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 F1B0119BA6; Sat, 14 Sep 2024 05:24:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291493; cv=none; b=Yxbe3lFEyIw+T+M6/MNDx34sI9p4JF0fR5fOuH30H7jNFS0U2BmXT/fH9V8a2KJM2gwpj3irfWtTmo6+iY1c+0MaFLHfsMukn0+E9eu9S8qSDzvl8zCFLOHDlgF1lZUHNWRybUvBW24d7/wIQe3KM88YYRV+lRhOELlOji11KAw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291493; c=relaxed/simple; bh=D9QNipp2Cu8jdxZF2ATT6QNQY1AaJfGlXa9a8v3AUeI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=nCvF2UGCUZRzWn9bR+sARS1CNZgkeJ2rK3fFMTqaLIMdIcAKb+rkAxDYtHmHryCMTXaOHbkR5vMv0ju6HwMn8EMLMLjXsS+R1IJNeNZo06xJjhfDwh3U5kcZoZjVcaZ8Fx/THdVrVYAvMLUzKvYdT3gR5QiPQ/svS2pLqsKELLc= 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=eoVSVQP/; arc=none smtp.client-ip=209.85.215.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="eoVSVQP/" Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-7cd8803fe0aso2112992a12.0; Fri, 13 Sep 2024 22:24:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291491; x=1726896291; 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=yMfm635R2ZedUv0K9CBomURZ5/GwgVeWzLysAHmmerM=; b=eoVSVQP/4PZCF7sCaFmgI9aJORT/UWvCzJUxDe7laQMA5+TVOCoxPeFYliBqaBOt9J +k6Au1nc8vSTKmXtHb9G5reT2TX6vf7XpIgO79muMXcrGuHCmKzNeyRrM1SRg+1bNO2/ ud4Cshy6Gx4MLC69s75d7TpBMR+yRQSMsxC6izKjy0eiXVM1w8wWjUFlWzLMG8s0gYzh H6lzbPILsBss79wtx0w1r5eYn4JMke/DuhC53KxQQH1l7B3YilVRvcvaMYXq90wgseIC V2mLKHBLZQTgjuLjX/hq31lbQuC8i6r7LCCM1Q3a2YlyZZ0diFpi4JHLhrZssv2qjzUX Xzew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291491; x=1726896291; 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=yMfm635R2ZedUv0K9CBomURZ5/GwgVeWzLysAHmmerM=; b=q0ikoYkhnBubnXPjx3xql7n0L6cAhMNm2L1l5Gcrc9lzH34sQp2ZTsUJR2ney0Poe2 kGDjBr6tUIvkP69O/hFCU93k4jI4Yt4h/VY17MsBNUkWeHnzGqXPzjQQ2xYs9AJHgmNa hr/LIQp2Pw/VaHlGrbF9qH92fFWbh4kkPE4De6ajwXAL4ZTL22wgM4OGu9o8qRWzeLgC n66kUtacpM65AN38ZcZRINo9XprP9uDluntFt2LrhuNdu6TjSheSkT4MeTabz1K41X9f 7ECzL84Dw+JBf1+MdZ0uBzEFQ9dSNmIJLbnlsVmCdSGAKAlM4Yz/DPLB8tXasgvdrEsW AI+g== X-Forwarded-Encrypted: i=1; AJvYcCUf2zpqNE6m7QNqY9fLbemzFHh/OD1nfju7rOGUKCVLfR191zz4RHLYuH5Hais3uQyZQR+gF1QP4CniUg==@vger.kernel.org, AJvYcCV1Lbw6F91xOqBErCHTafwZxHWUsEUeB1PA0CVui41hOkBN1pU5rFW4M0ND5oDflBvQXKQMunboF91r@vger.kernel.org, AJvYcCVOg4j+MUrAUDJTgoU0PDF1yxeRiMJuIxsKICOwcwNu7JdHnLHQMeL4gzz56ERtV2xYTDqE6UnLBh8B6kXm@vger.kernel.org, AJvYcCWskrHl+mCCz48pQKdbznn0ESl2U57jJEyl+43FcbO4GRYraWkV2FXNxWqBUDZFphCBRaFK1fcfgWphAmKXxaw=@vger.kernel.org, AJvYcCXf5m4YYFUG3RUxs9JvvKcZN1+dzADT+e3XQ9Ou1ayxSjbiMe8d5DEp3nLb9uaCbjBJx/OcP7+v8ME=@vger.kernel.org X-Gm-Message-State: AOJu0Yxi7HFYWJkptuAuXu4au0hmY4F/r1DzmEj1vlDwWcrYyXIuWpLf Eymn097EZMLem9w2uDviL29SksPkaA76K74Jf+zzKHjRIuNJMkQnac1Rl9Ky X-Google-Smtp-Source: AGHT+IF+p2N/v7D/f9QhDmmsA4T7yTXEkaxEH1zZGQX6ejyxliq9F/Sh3KYea+gDrN6bVgpFOAQffQ== X-Received: by 2002:a05:6a21:58b:b0:1cc:e9bc:2559 with SMTP id adf61e73a8af0-1cf75f0f12emr11241110637.28.1726291491181; Fri, 13 Sep 2024 22:24:51 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.24.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:24:50 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 01/22] dt-bindings: arm: cpus: Add Apple A7-A11 CPU cores Date: Sat, 14 Sep 2024 13:17:07 +0800 Message-ID: <20240914052413.68177-2-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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. This follows the existing newest-first order. Signed-off-by: Nick Chan --- Documentation/devicetree/bindings/arm/cpus.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/cpus.yaml b/Documentation/devicetree/bindings/arm/cpus.yaml index f308ff6c3532..3959e022079f 100644 --- a/Documentation/devicetree/bindings/arm/cpus.yaml +++ b/Documentation/devicetree/bindings/arm/cpus.yaml @@ -89,6 +89,12 @@ properties: - apple,blizzard - apple,icestorm - apple,firestorm + - apple,mistral + - apple,monsoon + - apple,hurricane-zephyr + - apple,twister + - apple,typhoon + - apple,cyclone - arm,arm710t - arm,arm720t - arm,arm740t From patchwork Sat Sep 14 05:17:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 829195 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.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 3A13A20328; Sat, 14 Sep 2024 05:25:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291509; cv=none; b=IIhcN/M+NK9QGJw93RvVfwy7mLWeKT7sevK5KzWH86ThLV+5N3crn3A75hV9F8BJIqdLGebpyLB2TzRi3k9D9ibym+0oHt+mmCCPKY53cm5JgxXEiiyOJmRClWR0TX4kB33iSN2208V7DBhU9AovXAuS0VmSTX5Kz/313ZC4/SU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291509; c=relaxed/simple; bh=wjv7S2defJHb4w2LIijyyI7ICLEtDGHr6+Y7Ed98jvI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ELa4hY23GWtaF9sF9CUwTCdFG1xQM47TZDG43Hc0c64XLfcrwrWQuJfkdEQ9BYakdvJ2IOXzP0ngrZeWzxxhU5JtJ7xupuVaOQOH/UkA9K5u5csx8dEg931smwA8bpQCvjAlkFTA5VR9MWiXp0PyswIQh2JsKpQhsyMDJgXN8dE= 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=XTTL8Nkb; arc=none smtp.client-ip=209.85.210.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="XTTL8Nkb" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-718da0821cbso2238999b3a.0; Fri, 13 Sep 2024 22:25:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291507; x=1726896307; 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=drlfe7ijxNosG2VKP6kf49hdRW10I7zx+SACXHP4QNc=; b=XTTL8NkbPDsDDQI2nJYP0s0RK2TGumUGM7753YcMANWDVSqaf3xPWHyxvyGHwoBgAN aEiJeovLU6Gp1//zmKanx3dOHQmel/FADr3IMGgN9hhBa9mQnf4sYZUgKuUKSNlu5I3+ C0BpuZtulvxZyuWr9a2NctiDoU7oPOLhU7A4ETJ+iDIL/aMHY7zCiDiXRczOrWkEyU/2 7KU+5cICZ3UMK8XQI5orqGxO51raRR0Fea9k3RdH1NdTmUJQ6SGS7BiklrvKklvLTZG/ W8FdYfZC4ybvvl6pvnGb7XZVI/hqYjDrqZoOhWjegkzUEpymn9uFAYbWy1isCSb23Qyy R8Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291507; x=1726896307; 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=drlfe7ijxNosG2VKP6kf49hdRW10I7zx+SACXHP4QNc=; b=wNYU+4cevgOUejMJNPunAysR9ctt2LJNfxMY5cDUTleSsYBO2O0exWvOgAMTjDYTC2 dsPuNnOsKp/ns36wJCgGQMQqVLJqnU/W0+Z49fAl1SXVNkTA8z2yZXXlUBGAK3Sxn5Bw Q/iXHRT/ZF34qUgbiy4H/IuCMJ33rgJdkzEJWdBFm2hs70D0O3hkMR79iEP5DtE0AONj oz0n3Y09nGS74USL7EnQUADv8BYO/JpvZaqN+SQy6gKQ6JOAt9dE0lH09xIbK6RLtCoV fl4ed7XBWqabOQdzy2+JmJ4KmwOa4oaADUOf/jXOtTnpm67CK0z3GVsRmROBz4tkr9bh 5MoQ== X-Forwarded-Encrypted: i=1; AJvYcCVz4Aolf4m1VNhzx8Z4/+AKBguUcQMrmXtkI0oChPHYjDwqUg96LdoOX884vZlxkjPE110oNwSWNiEa@vger.kernel.org, AJvYcCWKzXBcFxRZ295Gdffyzo6Uz36p3XIcM71pRYVnhb6pZn+E3cfLq72w0IztObmHVK5d5ZIRE7yrjps=@vger.kernel.org, AJvYcCWTFgcF6V+zSS3ixlJAI8q15bT+DUDlGftDnowSvAC3kZ0EaleHMAs8XDJ9RiuyIVYFWLtgkT+Gser/Dw==@vger.kernel.org, AJvYcCXDAXeHtMJTygMKdK75nL3XPXlu6qHPUh56sH1YijQJIVaL+rBI5LxdDFRvSV/xT4YtOqw3vDuT2dOk6YjEIwY=@vger.kernel.org, AJvYcCXh6foShaEU8WwFbPlqOnLV51ZG3LE1dxu5p7eD2rntv+sNnCqPizOjqNfuTqGxxII3nVzXvTkx1l5AhUfh@vger.kernel.org X-Gm-Message-State: AOJu0YyEFBnPqCZgz6MXXPG+gpSIGfg8hwhegSzoFLjEpV+5+ccm/C9i gnt/PgT8Ds2mEaxOQ94byfKFsRkNM0ajhrnFCN8BYGQ42xyicMhB X-Google-Smtp-Source: AGHT+IHkKmn2lhDEjah/IlC7WZ3jWd76fP6Gw2PZutOZX4q0PpkGixHypso1ex28/diQ2yFIXgMejA== X-Received: by 2002:a05:6a00:1906:b0:705:c0a1:61c9 with SMTP id d2e1a72fcca58-719260826aamr11109442b3a.9.1726291507338; Fri, 13 Sep 2024 22:25:07 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.25.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:25:07 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 02/22] dt-bindings: watchdog: apple,wdt: Add A7-A11 compatibles Date: Sat, 14 Sep 2024 13:17:09 +0800 Message-ID: <20240914052413.68177-4-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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. 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 Sat Sep 14 05:17:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 828792 Received: from mail-pg1-f174.google.com (mail-pg1-f174.google.com [209.85.215.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 18FDB433D5; Sat, 14 Sep 2024 05:25:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291521; cv=none; b=gIsDEJAdIY6Cvd8d/UL0KnG5GzAKRdf7wq/+5yxgydzCOVipwRMiLwBVK7zpenEtzwiBV5r+3b5JPCGqXXtbJLPFPURv8zj0r398mGqu84/Hy8DRd8b5mqfKL7+1Ofld07GPxwUlnvN8wtvjCtp0cPRo/VN+QDy5RloL6Gc+MGo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291521; c=relaxed/simple; bh=/TZwa1P5GOi0weNisvEEpeoua8fx09BY++vgJdF9ecA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=g+yNPVbMGrp2R/SplYX1Tgp2Ma0szjpaKy1/dP6fs5tupG0GAFz5Y9WH5wpJwqpg3UqeH4khLJ17WHuJiMeYKIt8rYhGoz1EYClUnqiwTG4xLn9Yrb6kknViCAZ27e+1vdOtCgIGb7ch30XF5cEtV0X9Hv6jXFggqEI1yYiRF7I= 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=Lpob2ei+; arc=none smtp.client-ip=209.85.215.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="Lpob2ei+" Received: by mail-pg1-f174.google.com with SMTP id 41be03b00d2f7-7db238d07b3so2219819a12.2; Fri, 13 Sep 2024 22:25:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291519; x=1726896319; 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=IeDHamkVCqUamIh6SnSmGPyPT7GfV2/5V36/vymSx7s=; b=Lpob2ei+AZ7Adp2VRRoVZpLdSQk6tpotouGIQOfJV/3AlDzeOnRlPZuxxDokppPcmY vCJ85fF76dgKUqpeuCUzjVHmE7xAh7FAoIPOUbPbAMIx3X21SZQZSNf3PMvCJx7aKSbD j02ggYkhPXyJNYg0xlotRroZwxWV663gwVnkzXz/F1h3gbTJhxvn7PgXNKEfOmEV04Eg k32V937HJMXzElEWbElERbHZZwvhw7qB9dvUUxIEAsNpuuDlLP6nGi6U2i0Btyl42e2M dWnJ9+ZpcQrmqlnYnzPfAgNERG3DLDVBgEcBXVmLPsBhAes2AXqEEu1y8g7OOfUNlMMJ TjlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291519; x=1726896319; 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=IeDHamkVCqUamIh6SnSmGPyPT7GfV2/5V36/vymSx7s=; b=J/8RMmRYfQaX4tmH+hER7+U1ljabevA0zbMY+yZSvr6n2YLVtoi2D8KUXj+hkWJCOA ixJfttCWpytAPY78oyP8VzskVZ+ds/y9cps58CSPRj11Wk6sSwACuwLySAz14RhiuT2q +ENyxrF61OzIC1vQhglm5xKDFmPaVnmSOjK+yhuh9F0Hd2od5oQKkVN8mp2FevzVLq+/ TKwYysGFC+KKezWTBQjQ4wZnF8jFwz6o8Sco/vVJQ/RtiYIHGEuRHe7643js2mog6bt/ mGvZVvsAzO0zVdNt2A/Oy10ahZIvw0gUoDip90orUWBVmA+ylTwk2seq9RZn2WHAi+b/ BfBA== X-Forwarded-Encrypted: i=1; AJvYcCU7NWMlx7y39fGlTAWElNbk5H97QXz9BDhDoDjUVhMMujX4G5SIa+bLqjh4GVGshGHN3FXJBkE38iRp4sCXj8U=@vger.kernel.org, AJvYcCUDXhl8hBQYU4mbHjbl0TPeVkRkQvOrSGKLzr4R8bpJ26ViO/c0bs7UADwi/wvn0VQHPmsVq2qgEwqara1H@vger.kernel.org, AJvYcCUUuumtm7QzDCf9E4VxcjWwTdYFpQCZfL4EQJDoO2/QrYVcNz8dqM4wrjV314I5GDhMehE1mIGsTPE=@vger.kernel.org, AJvYcCWz4AP9isvbhPN3twPZb1x2vU75hwgQSYDrp8Wjus6PU6ylCu+JxuDAHPuGbBcrMSiNHbt7ARYvTnVt@vger.kernel.org, AJvYcCX0Y5wTcw7SRLgYDuxiwOId8qIrUqvUTSK1QalTXVVIsZpTrsuxxkDaj0Uj9UN+BqSGQIPN4ueh0xNcCw==@vger.kernel.org X-Gm-Message-State: AOJu0Yy3WzYY4vXAce0EmMMW2oaGdGmS95S3tzjlZkLPbfwCxuUfa+M3 4hkPPckIpEXR1KPTDHyoN3GETEPfZVg+ZyXpZXieoN/4jGfdvHKN X-Google-Smtp-Source: AGHT+IEeFol8fr11Klxd7ngVl07qcK9mskrnyYRncSe3V7C2OUexW3oojx4o4eqOFCi1cDiEQtFcLg== X-Received: by 2002:a05:6a21:3982:b0:1cf:2931:727f with SMTP id adf61e73a8af0-1cf75f005demr14139271637.18.1726291519342; Fri, 13 Sep 2024 22:25:19 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.25.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:25:19 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 03/22] dt-bindings: cpufreq: apple, cluster-cpufreq: Add A10 compatible Date: Sat, 14 Sep 2024 13:17:11 +0800 Message-ID: <20240914052413.68177-6-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The block found on the Apple A10 SoC is compatible with the existing driver so just add its per-SoC compatible. Signed-off-by: Nick Chan --- .../devicetree/bindings/cpufreq/apple,cluster-cpufreq.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/cpufreq/apple,cluster-cpufreq.yaml b/Documentation/devicetree/bindings/cpufreq/apple,cluster-cpufreq.yaml index 76cb9726660e..e0d1a9813696 100644 --- a/Documentation/devicetree/bindings/cpufreq/apple,cluster-cpufreq.yaml +++ b/Documentation/devicetree/bindings/cpufreq/apple,cluster-cpufreq.yaml @@ -24,7 +24,9 @@ properties: - apple,t8112-cluster-cpufreq - const: apple,cluster-cpufreq - items: - - const: apple,t6000-cluster-cpufreq + - enum: + - apple,t8010-cluster-cpufreq + - apple,t6000-cluster-cpufreq - const: apple,t8103-cluster-cpufreq - const: apple,cluster-cpufreq From patchwork Sat Sep 14 05:17:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 829194 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.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 C99652B2F2; Sat, 14 Sep 2024 05:25:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291533; cv=none; b=Zvdmzsind93oxpX/+QDPfqR2nY/giLVyRA94CVtQDQokXl8ynCLmy/mEzghJiBi3r5FinRRLmECKDSr7URRj60II4SV44Lmoge78qYNdV9ggJsy22jRzLZe1jVt/6jcTlBKDNxg78wORVJez9HZaHlR3NFwqQBcmbbocP4XoL4Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291533; c=relaxed/simple; bh=F+fvD8tj9Q89DXXtcIua1ke1r+dlwF7u6BI3SFUU4HM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qgmddjgNpDFBwc8bW7r7Ql2U9zKbltPTqFIGnhxUQNTCvo9/66nh6WoP4ptTO6izjOGnfKOxe7vNrCnwU5KzFm5b5jkmvQLlBemInh0cAATAYAnDDX6aWEYZmE0FfLfW+I5Yl0DyZ1k3k60wZn4sDNvNRco6EkuBnZzaUfb6xFY= 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=Uz909u8+; arc=none smtp.client-ip=209.85.210.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="Uz909u8+" Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-718816be6cbso2252874b3a.1; Fri, 13 Sep 2024 22:25:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291531; x=1726896331; 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=g//YBvaXm4NDbD/O/tpcG0z+ryfJ+nqPnLFYEOt6ung=; b=Uz909u8+jLFCGV66dAsTJRkpcxW/p326pQZOFFbYQeM+IJbl98XfZlC0z6md/qhpAa I0KIfupaNAh1q6y1Ur8sBDVSX2Z+ZzPzf4GC+KjkiSxGEehMUm9jYJx/JpCSU8+j3+6E 3WvH/krbHrXJF0lWFjYkH5hnz74i7OulguUYsq0RGqoQMdv1CtlfzwAQO+JN1PP7GSkZ efruUGywUFclEqJbVEUNzKH8vmvHJGr+9T7u8sqqJt43Vp7LDRDdoASo2L7fDixv/rdb KzwLkCFrKTCSNg8QryRhogfgFHcSJNNvn45VO1CejYoXospki1v5H5s5GC5OuKhdeXQi SwHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291531; x=1726896331; 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=g//YBvaXm4NDbD/O/tpcG0z+ryfJ+nqPnLFYEOt6ung=; b=SaVMA2JyjoLJOQ6rXxV3T9N9/eCUi1Ej9fwLTd2doaV5a5AUEEea9Uv00EwkMp7O/s EN0muzNsJ0xI+2pqeEIyF1YTDi6VqJounRZ2avADIT5E0NXeNfi2lYvnYie1VEsVN5vj KTuBOD6xAkXQxORhFKMsv8T1OJCXXki35LvUb5IcNBPGuFxM7TTmw61NiwBfMLdMXfhd Z1gTzvWzi9V6sDAFM1ZJrscCVtajO5jvPJpjrhqC1PEAyDdbp4/sh3ig7/VPnm82Ph7/ Yo2n2eeVWilm77+wKns/2ju18jBz4WQzUFyoSWQ0IAegviFYM29C9ROjHXsGF8TWWctC xdQw== X-Forwarded-Encrypted: i=1; AJvYcCUYj1Xder8OcI2C/weQLgrbMO0PLrNqZP9/uJYgq5KOnVfNkIu77ajsSx4AHUTko95Fep4LwSchZ2wq24cL@vger.kernel.org, AJvYcCVNzmrlhsG3TXybnPbSoQC5zpBOYzNIdlUTxM3NijLy/y3Cn8VPVEwNfiC++y+IkkSoV7DQyTl1ttg=@vger.kernel.org, AJvYcCW3RVeyCZFTNWxwrTuygUJ5YYj1caNPiMCfl2gGUBDG2Q7mE3GoxPWI8C4itrTiDHMZwFi2oKeuLw+Fzo67IrE=@vger.kernel.org, AJvYcCWEQ0THNEYbza0KllQwmHcMDlgm+Rr/ls2Wxkkrvx5f43KQklCoEcE9RgqQpuE6Cad/WqBmere8HHyK2A==@vger.kernel.org, AJvYcCWH0tzJ3gI21U/mKLsnogrAngErIB70i9nAsCuHyemvnCkvTgjs0nZTBcg24FfoajMcCQ+cRIIARsf4@vger.kernel.org X-Gm-Message-State: AOJu0YzpWT2hhI4WEHt6QoAjiR+HZkfFvSUUnVaxK3iAIXi2iGaBrE2O 53uiwOKtGdHsvshFhPRk2j7/JIEZgR0W2vDvhXqLl15Uw3v4nXM4 X-Google-Smtp-Source: AGHT+IGQSFu6QY66e69mAhTPIHg3eNOkel13pASKa6+pvmxCzW50S4DffsbQlwvOy6w9642wKkbLuA== X-Received: by 2002:aa7:8895:0:b0:718:da06:a4bf with SMTP id d2e1a72fcca58-71926067e21mr11597097b3a.2.1726291530977; Fri, 13 Sep 2024 22:25:30 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.25.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:25:30 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 04/22] dt-bindings: pinctrl: apple,pinctrl: Add A7-A11 compatibles Date: Sat, 14 Sep 2024 13:17:13 +0800 Message-ID: <20240914052413.68177-8-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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. 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 Sat Sep 14 05:17:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 828791 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.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 22471148317; Sat, 14 Sep 2024 05:25:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291539; cv=none; b=k060PpxIBjpYjsl/BDVn3HlqI0uG5cIob/niS5Se5NbOOG49JMSFEgDYzMyewZkNlQQiWThPCm/K3yh5effWsrg7eiUO9N8nzQed9G/JKGDBTz4nDUNg6FhJT7a12KgG6MjGKJe5SOwcInDcppp2bQ8EEVMKuG2RmwYXMhn17zc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291539; c=relaxed/simple; bh=3+weNr3YHXXle+uvM36RE/m2aNy1s05BypLmiMF5zgA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rOdwmxmbrFg8/2XRQeBiq/xrQfZOyAT9H1hcYy88W2vPDHZFalLQF4U50rWBYy/xEOGzvEhBvQCQwLjY+hLz23BzWSMVnKXb/9YbpBhcThu+vNaWYyEPObkjtog6LGFyLiV/WxbM+Ou/fKYaevBYVpdhJcfe5CPeC28ZH/uH2aQ= 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=ZPS31ki3; arc=none smtp.client-ip=209.85.210.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="ZPS31ki3" Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-718e56d7469so1310972b3a.0; Fri, 13 Sep 2024 22:25:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291537; x=1726896337; 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=A4+YQsSwFfB4huKc7g5jUWuJSmEqvrijMAe7lXahRno=; b=ZPS31ki3MEVjfSK2GCGWdELiTcQME2UNd8OX3Deiyb3ncub/88+2zHSS5rPnZkpR2P GVvX7JyIIXEbkAnSyS5ZND3rQmp1jmfzPVQfjkDR4wKLlW422VagHBuHH8MSa/BLWH6T m/KOsyuOQMQmCD7XpwhO9/WRVfPQlPI8FUsHKE7GGYDADSdamUcSroKQe9Ubf8uSpcxj 3QRpc71Ba1zmVSbQRspk69ALd8GPoAMB7lnt41CG1UMyh3Yy6RBWxGojoXbHogoKEpV/ PlN8JO+qLWS7A2yb6HbMRADLmiDqQrfmYxdACM4sfCPo25QfkBo1PkCfShGX8BiYu+P0 HHxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291537; x=1726896337; 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=A4+YQsSwFfB4huKc7g5jUWuJSmEqvrijMAe7lXahRno=; b=dYeK0DoyVstpQXBtRHntyuQWZZFpKc2pAzSbq/9nRIMnokIkoX0F8qjxvT+kiEJWrm aRPkurpHnZsyODr48/ifr3+41vsbsD9yEngv6W76EUiKQDTp+zeqMkkSosZ/Ko6OfpZc rZamO4uMx/ab84zwgojmjWxGyK+rwTdwBVckcam3ibS+zSDDhCUnj2JYqcqzDxTvDteW lLnUsnYmMfOOIxqWn1bwKEqS8YuvvCpjE9+tSxvB5758Q7yI0ho6XWUNNw8XCV5Hd6Ke jffP64f2lxoL5kbMToYLLI6hjrHAVp1RTQgK8llnsl1SUiQm5Fwy9BHhCvAnemjDw2jX FCLw== X-Forwarded-Encrypted: i=1; AJvYcCUcFgArD141bFoxTJUfpjsxSIIMPJzGZ9HHBuSqIqCnhykJEsDzrx3OgA/HiOD5DVdAZm/RLE1ojNzbAQ==@vger.kernel.org, AJvYcCVKVRfNSHyeM7WpmIhgEb0Lu58TAipdNAjcmbUdW1KVJbd3AWkCzzCjkSu7qFVhiCg0gEnbvLqIFc+bck5i@vger.kernel.org, AJvYcCWKfDjSP++zKqeEwvO5ohrGW0bq41ieTK3OYoerAgn2dAPg6tjT/LFCxodZdb+40TvGnAASWAzeZXs=@vger.kernel.org, AJvYcCX6d2j3iSp3zXuNseyJwJKXEvuDM+xrPjebnj7b4JMvAm7UGdYv/8+xOq3rukA0VYrEAnZLEhTcUfi0adm6TUo=@vger.kernel.org, AJvYcCXdUZJPDOp/iT4rm8D3WkN7SkfMNHF45CTtViqnazLAsKWuNAPZRd8HV9gNi8pSBNxgCMdSjNhw6bPH@vger.kernel.org X-Gm-Message-State: AOJu0YzNqU1YpJ9y12eSnK/HT1FUhZplC7GPUF+JOXCov6RJHP7RuZQ9 xqR36RiwoXtvTwcgdMHZva22lCY+4L+IZTt52pvj60qKehlmm8zB X-Google-Smtp-Source: AGHT+IGZb4Zp6+TBGYQNTbPKIKUjyE0uB69aRNQKjhc1x4drSXerk5mTA2UjozVOqqCR/y1Ijl5Abg== X-Received: by 2002:a05:6a20:304a:b0:1d1:1795:4b43 with SMTP id adf61e73a8af0-1d117954cb8mr4443812637.26.1726291537352; Fri, 13 Sep 2024 22:25:37 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.25.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:25:37 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 05/22] dt-bindings: arm: apple: Add A7 devices Date: Sat, 14 Sep 2024 13:17:14 +0800 Message-ID: <20240914052413.68177-9-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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 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..59f5be84aedf 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 # Apple iPad mini 2 (Cellular, China) + - apple,j87m # Apple 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 Sat Sep 14 05:17:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 829193 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (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 7B544149E0E; Sat, 14 Sep 2024 05:25:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291543; cv=none; b=j5EdfuLPvW6R6wlld7IrQt3Nfvnx+ewJwIx7HYc484AkGpzzEzVMuMpWkDc/2StPH8ZkfDGVnmtXQeEDOsFTBG8FpPavwq1rKEd+xXxLYh9zjDkkfikqMWYP9c9V3mB7SbinsCA2W6TwtskvdAaSw0Ue2gTutHctb30XtJJZ+A8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291543; c=relaxed/simple; bh=OlUaaTcJopX4ImU/3+mDs+QLmMEXACQQudQfC4ZPFbQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=tsdXQ7GPvDHJDW1row/DKD5sSlH14/AZHncpa8K8f3jdJ+U1hUbu9ogNTdwwhAlgwQSNw5+e57Go18oMyzo0UJkQrsSvOeTLgIWFQC8ncwEd0/vWqpENaWmbJeJ4vJkb27B9u6OlmVDw1Le9BeXADiFlkR94bo6+Luyt6rGubnY= 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=SsybKzgH; arc=none smtp.client-ip=209.85.210.173 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="SsybKzgH" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-7191df6b5f5so2072213b3a.0; Fri, 13 Sep 2024 22:25:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291542; x=1726896342; 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=ntbAqOWLE9Au/hBzMqkK764zm8fpYo/AOME1Agv7PAo=; b=SsybKzgHE7VRmqDrWX6pGsup4u0thRB2+VCCqPiX+66M1iHaQYiZAcn8fNQoN4Hz/L AxLxi0K6rKMz/K5dLapPPXdFHCx+XtvD7aab+hvqENajhjahygjZp+lfAajR9wTsIgcE mCter4ahLMUi5L+Sa5PsqDRf0hAnzevEXZ6DtMzz3joFsA7Jno5CJ/ZpDIj+E6HdqTMw hHrknCA5gzd6AhRrPsqgP6g+4ftqaubZna7zzI+Cd7Rt8g3KDKb/507kw6KwrJCr8St6 nRE9WutXysz85mze2PeKWrX5FHaKYiwqk91iHUrDsfEPEALOQZqlmPB8jzBtzPGI49Wv NHxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291542; x=1726896342; 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=ntbAqOWLE9Au/hBzMqkK764zm8fpYo/AOME1Agv7PAo=; b=sJsNrB6jwFbE7IGBn+QvJXdaGEIeOAM6fd9XVlIAftZiOag1T9HmLLs6KKM94qFsAD jOcLVliYZNeVYOgE0WO/HD4IhmTjkF/LUr8t9wajMHhwBhfCMCgCEz1yYPlRT/xOwLus 0Ts57wqwU0euiwdN4Ulddi9i3Fgk+HlZPHLeUgrTAwMkQrVmcbnUsd4MkhbL/dd6m6lE YAy45liqSXjTfeNh5YqaG2UOq45xMfgWgDZYuX4qs13p2MLs9Cqb+/q0SJjdBKwt19aW l6LeHCOwmMR2MgOKfTXBulCiAfHz5ZrapN8fc/M8Bz8LX5BpG0i3OU71x27Ik7iAv+xJ KpJg== X-Forwarded-Encrypted: i=1; AJvYcCUha1ZwffEXVWgAd6woSYjZ6Kuz20OzhF+BbcEOFOvsV6e91h9osaOV7fldvP6JGB2z5qBInYB9GChWRbdk@vger.kernel.org, AJvYcCUlAabxWeicIjMFwBHyIdTp8QoXRijW7m57rj4+qYQf7TSLyQnzxmEh15UyuXW2f2Ssm4U5B6ZAtQ7nR8PtsQ0=@vger.kernel.org, AJvYcCVearCpXz7XvEHNSnMb8mdjCg3BTGK5q/0Wnak1l5BsniG5lPAmxPDAKO6knqpbXtcR7cKodzNlDug=@vger.kernel.org, AJvYcCW9eAT+GYncDMNDQjhPmQpgK/4yUDCw9GqsNua0mOC1xnEEUXovRhNyIyseLYqr6ByYvClVyJaxnJPR@vger.kernel.org, AJvYcCWOHqflsqU5bf4j5CGWqUgHO8GG0DXYea0ksjqno/bkR8AvO2oYdKNnCfGLHl5ICliJzJHHDWp4z16KEA==@vger.kernel.org X-Gm-Message-State: AOJu0Yz7P1NfwIa7SrofbXiOlyCPSVsvxKrSF8qc3r+taHJjtjSfJQbu Eh+4EgL/vnmdU3lJSHZYBHexFbZ6x0+zPvPqA8qC0wOp/fPt2Cbf X-Google-Smtp-Source: AGHT+IHUCDMF0XJkmpK9w39MJw1j+WBVI/KKw6WJabD93/gkagaR8BS4v4H9pSU7zGPGaXPd3iORnw== X-Received: by 2002:a05:6a20:e30b:b0:1cf:6d67:c078 with SMTP id adf61e73a8af0-1cf76237989mr12510902637.42.1726291541763; Fri, 13 Sep 2024 22:25:41 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.25.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:25:41 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 06/22] dt-bindings: arm: apple: Add A8 devices Date: Sat, 14 Sep 2024 13:17:15 +0800 Message-ID: <20240914052413.68177-10-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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. 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 59f5be84aedf..691f3af19622 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 Sat Sep 14 05:17:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 828790 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.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 B08B714F132; Sat, 14 Sep 2024 05:25:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291549; cv=none; b=tsCjb+E38yTT15Z0KXn8etl1t49CHTGIKnPq6IC+3rWo01w2SgQiXfvEs0ZQgFQt9tjtIW0LryZk1m13MoIWXoOqG4NF1xXyXN8DA8d3LNkSd1bB8gBcXSRFndW3nu1hwCclLC6PwP/FMcNNPh98vDPOXztqT2imN1LA38XB4iQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291549; c=relaxed/simple; bh=zpZe6xZCfSGF7rqzh/aDNFZKpuhqDtvGqPzTaqzxLlU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Vk6xM0Cc5VUM2u2cx6jreahZC6GxrK236a7svNrnJFAcomImaAY6xMqEBQR6PDQ2Dqch9t1/Sk+0kdaehPWoI82NUV42EoAhFBdLGjw1LX8b7SOm09W2gCg5jKlDzW8YgBV7bFMs8GNl201mIPMDqTZC4l8PuiYjV4D5ceun/MM= 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=BgN+rsOX; arc=none smtp.client-ip=209.85.215.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="BgN+rsOX" Received: by mail-pg1-f176.google.com with SMTP id 41be03b00d2f7-7db19de6346so1778330a12.2; Fri, 13 Sep 2024 22:25:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291546; x=1726896346; 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=mKnY2tYCpQX1BHWQ11UETog6WmuVGfr1qz3Xgo6tJ4U=; b=BgN+rsOXSjWLtB9tXEJObXvxxZiugCqMrC370M0kcFW2TA+SDm7WwUDd0qfyso1Oo+ 5zVESM/mXmnb2gPUhJgU+5N2aIdKVI8N9JKG/Pw2e2pQz2IEBHdVBP8yluzziO8AXbHv f21mPSgh0bUQ69DOpjNfZQRafe/g4Zrp4XzjhKAPp9DbfBDwXatxaPAqqhpgfqRgZbUq +PFLvfgqv9M+XCGbx/fgfgGL8myTzO50ZwNG5xrIo0GUGjSwAtQF+iNs8Pvh76669I8e ZbkdFTKy4xc/sJBQyM6WL4dU9Yu/4+N7a5Wn0uWh4MG5qkR4UrXuFlGjdQhlOIJkuqzd 9BDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291546; x=1726896346; 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=mKnY2tYCpQX1BHWQ11UETog6WmuVGfr1qz3Xgo6tJ4U=; b=xG1O0wIsp9hvZqUAbq5XedV1UKPxSBMbma+STOSiRQ+gxZ0harcrICBy5e0pQpHpC8 Y0G89XQFrUgVtwPBuSSSUZ6z/tpmxAbGy/GKp6eerU9kJldfhFtxuQuKs5hcW8Dz2ftf 7uTABabWR6WPjfO9jCYfodaIjNieqQVd0U/xlCfVOAHpa3sz/EKNw57dgaOBVzX6Vq6/ gR3xSPMqnYnCJAAxZLKUgpDfnsQjBNSGyIIfuAeRUE9kww1xXtXfey8mwsEJd/+ivvR6 fPi67y9JHY4SdqXKkZMHGcINld9sp8TIRAFlkdEeoGDgUf2MMB6rklG7CYhqGIPeJnwq 5mqQ== X-Forwarded-Encrypted: i=1; AJvYcCUKB9kkNUCjkxHAv1q9Tix4aqUn2+O2Na+Zh62gLMmhRJy6SySw1/98+teIMvN1NCHccQHw18Xh4QP0fWfD@vger.kernel.org, AJvYcCVZMCKv77cKHd94swH6EKHac29DREkPDicyeaotqy9TMF6/xWaCN8zPSXQ60W1fbfzu2VvqVGwgy65vmA==@vger.kernel.org, AJvYcCWXT/26uIrU+F3uS/HccWPMFUpbhKj7hPe7QylOaqak9EbiLHByH6sK56/zBLMgvorrGkpPYE4+RT4tD3Lifek=@vger.kernel.org, AJvYcCWcqcUFme0c1MhZAvPiDa/d0cOSR/wO0VfC2jwVADeEHBMggW9Mxv5e16EzBDCvw5u6KBzV8vo5p4r/@vger.kernel.org, AJvYcCXJ3puhtKNu/UjDCfwcSl2zypmkat7DIN+RaGdBHCr/XmO5j+cjFzFUljC+4EInhagsqceDSa/SqnA=@vger.kernel.org X-Gm-Message-State: AOJu0YxZZw2tP4IK9j+Z480rKP2FVoVMdAfaNg5rlMK+iVuCvMMPeA6+ FifrBznw9Xcf+PtrlNV1kFpMnnU9JfonokXhOW+K2rMPP+79sC/7 X-Google-Smtp-Source: AGHT+IH9nRZfznFybfbPMBOkFdFbVQJJrzXWZhqJ6/jdwYElHzC3dy6jikge0iEfZkznzI0FlsDzxQ== X-Received: by 2002:a05:6a20:e607:b0:1cf:4932:aaa with SMTP id adf61e73a8af0-1cf761e58e0mr10573497637.33.1726291546154; Fri, 13 Sep 2024 22:25:46 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.25.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:25:45 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 07/22] dt-bindings: arm: apple: Add A8X devices Date: Sat, 14 Sep 2024 13:17:16 +0800 Message-ID: <20240914052413.68177-11-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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. 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 691f3af19622..0e6a51fad2fc 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 Sat Sep 14 05:17:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 829192 Received: from mail-pg1-f179.google.com (mail-pg1-f179.google.com [209.85.215.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 2FF97154452; Sat, 14 Sep 2024 05:25:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.179 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291552; cv=none; b=S56fA3K5RQ+8LZE1ko5H9GBPB8n5oez4T6lu9TjRW25Jc8BARcqDGK7/9XjNd8x+C5boyQchgu6BwpTYXx9Q365v6L5ifUAD4qFveRaMFcoaUrpzvdQ9hz0lreSGxN5BemK9lNweoIl3rtn/HeVLl5ffGp4sP0t/0cp1Ktj4Hu0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291552; c=relaxed/simple; bh=H7nQJyFzW8irtHgkfEKc3loIPXzwU0X7CnNA7CmXOoc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KF8t63IooyXxJIvydgNRxvFSd1VrubHjAgurQQEGdqimZu26mdTvTOmz6N1jVZMpbfX592PLcn6pJkpgMlwQI5PSu0/G1l+BLYke5A4uHJJnkCOOwnX2NB58aKmDeRrm/y+guQivIv/ugVhK5eHf3jCTtkis8XkeWedfcmvYvh4= 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=HkzICgeq; arc=none smtp.client-ip=209.85.215.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="HkzICgeq" Received: by mail-pg1-f179.google.com with SMTP id 41be03b00d2f7-7d4f8a1626cso1242458a12.3; Fri, 13 Sep 2024 22:25:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291550; x=1726896350; 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=8dRPdb1DUSAE0eGOvVsLMam6fepF10fMmDJkxTXGz1I=; b=HkzICgeq+Vgu0eLqF6nmah6/pJYqGytbOV0zRS16yFIZVteerHGZ9Aewfzh/RhKtyl N8ddWia4XNMiv7NMMZ2aQ30KePneCP54K+9o/9YOnHGdEPyPDdZecm7rjKNoLfra6+LF CfXeDw62tMYV6AiRWkhZEE6JY2nAziYuIV4qWTo8j4GbsNHP20GQg4G8onyLPmek3xIJ 0RLVcs9DmoI0WyRiikicoDX+H+ENuGP+XhjaCqlkGVHU3vgybfjkN7kxUKCi9NM/BCKR q/Cc5WExgIrjZkhZBNE8o5vI4f1Uh81x+mGjjT4ugSRxezG2d+BojTdxNyaJWi5gg9Ik 11Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291550; x=1726896350; 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=8dRPdb1DUSAE0eGOvVsLMam6fepF10fMmDJkxTXGz1I=; b=HdvG1gHVjtCAQsdtK71rGQOhrzavIaptfJM/MWkkRUFfRPR7Dp01tPotbU1bYnx9rt d8pnndERM3abdNX5nSODsie6/6jAHZbMy4Jevp2vyxxC7UxCeU8gB2ZZvGEg6dz4VT/4 KN8wM+JX7EdPE65qXibLIJHjTiN2rNX2Grvjgha8xKCRZLMtr+IAuBgrONdXCH2XIEeN M7NX7zAxQeCu71UD/JqNUeW5J0uZPFD1bzkxjlbNOS7mIInqeYNHO2zJqwFCa4968w2L zAxQB4y7CdfD49wxQhiKE2MAf0N/RZmcI2WoEF6yBHVfyb6zWOtCxZOC2K/cGs3tm1lE 270g== X-Forwarded-Encrypted: i=1; AJvYcCUSc66hzaDpq0lM635K+mUnNNZXq/S2F65hHu8zH9uGih8+rNhqBwFXHgU7jBfgVfJO7yJMEUawDgTz2ll4@vger.kernel.org, AJvYcCVxrkxQb1ta1fz9F4iz060Pg3HxqvfvHoKoWnvC5Nk+6WGjDTd4Dh1Rx1sk8CC4kgHaG9Jkde4NWXagwcKeLck=@vger.kernel.org, AJvYcCXQ93k8//go4xp5zKDXf7Ln2MLXL5QOUMgQ/XPgtiAr/tqkInhDrmQB9UYpRUFoJ6q0aceRjw/gFUU=@vger.kernel.org, AJvYcCXShd06LzjKX0uqv6fBsnYINOSZnFoKL1itf1q1dPzuIrkBONORsNvDIZOBvxiQa6oYnwrlxkQ8qh4CfQ==@vger.kernel.org, AJvYcCXtZnWx2IAldOUlCpMXI0pgF/1cj/4A9IKIKFRT0f94qGzpfzdkEWuWNeTIiGNZsA31kkjuLUCRP2VF@vger.kernel.org X-Gm-Message-State: AOJu0YwttGW/JWDCv1dk/ZKWNiCh11GwaGGbjPy0HipXnguXwlvBbkG2 YFZwTvDFndzUbZhbg6wp60PZ7cV3C7FIcH/55yM64Fiq9l1SvFyx X-Google-Smtp-Source: AGHT+IE3vGhI8pjucNbbwbxrDykfqnEFixVSB+R94RGRk7HIBhBBek4yxU+zR5U5cppdjic22bhwyw== X-Received: by 2002:a05:6a21:a4c4:b0:1cf:590f:ddad with SMTP id adf61e73a8af0-1d112b60f07mr8963836637.15.1726291550547; Fri, 13 Sep 2024 22:25:50 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.25.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:25:50 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 08/22] dt-bindings: arm: apple: Add A9 devices Date: Sat, 14 Sep 2024 13:17:17 +0800 Message-ID: <20240914052413.68177-12-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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. 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 0e6a51fad2fc..baf0ef632231 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 Sat Sep 14 05:17:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 828789 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.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 B18D3156225; Sat, 14 Sep 2024 05:25:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291557; cv=none; b=oRDtEglPdKsKGQDNAIjzsD25JzBJ+00QiQ4ZyexS2+BRaGj6IN33whMTdsPHwQS7SBsCFTIBbvwOZjEEQlHkK7kPlh373mUvxFkrcXx6p32YcET/0Bnkzs9FpvdCUFDGrq/50WJezdP+d39ahRDKhVHYY1hmzAwWQioigXICxE4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291557; c=relaxed/simple; bh=Ol6jk5QblITohJFz2fUul+jrAnYdlIQVymi/NwT8lpo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=n+gt+/xHgWr+X8WZe/2oGpiLu8gYThh81O4SBzsrGkHRmVBECgAdsDdHxL9yIbG257n1yRK3L0Bw0HHr9ISMxj8KniGz3BEV0faz/PV/hRZtOQh2e7T9QYHReUD+Vbtf6LGfmQmVD2egKPlhG9GQdWl265NKRgkf+9hgSvVn7VM= 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=JuZRMsbH; arc=none smtp.client-ip=209.85.210.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="JuZRMsbH" Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-71798661a52so2160138b3a.0; Fri, 13 Sep 2024 22:25:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291555; x=1726896355; 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=ov/z3kQKwuY1dKrf8PnilixoqOfE5RUmtJyOePMWLLc=; b=JuZRMsbHL3We9fweSo4W83Tcl4LT/opks5jBFRlJyj/6A2E8X9trxJz7Cz/qnuTION z6jW8evd5h40qLTXgthOYZfZDVpGL8m4il+txHuyPiaPNfPZja9NUPQ5wJvH5EqLZNhP 3B+XjZTkSH5Hax1yAZ/HEdMdUIri8b04ixCWsq1VN9ZpDbJjinXxLJpe1WnXWyj+M9Yl XdymZdg8sLSk+aYjwIA/aO5m0y6FJcRMdJk7LuS7RimvGlg5DHEj+JdWoMViifs6TtS2 J1f+1OaR005DmFST+lO8KViIJdL4sfk54JuBfMUIuULA1jToLxtieSUZUksmy51O/Mhq FYUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291555; x=1726896355; 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=ov/z3kQKwuY1dKrf8PnilixoqOfE5RUmtJyOePMWLLc=; b=g5+/ELJz6vilrD0X+mWMszWlOey84S2nz8RO6KjoFhQleXHMv2xVhsAt/UYEA9VeJu AdtyUgXmC8abpVFeLyp7KfBfaMilABDYB18+rcLveEHkdGxwyYe84MQgmwAE45a4mmtN +B8r20xdAZ1CGp6lGkAjcsVb8n5w7jALy+kMOm9o2PwVwOxADdm8afMheUQc56WcRQqX mZVn0l94PjO6RVx3M6QFYHtcZJQCySpqCLrw7Dc20EwMK/UGnaZ1iC0tIlPuDff2Zur/ LoST/goT9aRS6Jm+syedVi5TUB3Q3X4YOM2a/1dc+A/SUyr4SQsY2BDl7SVgw+y7EWIW GsDw== X-Forwarded-Encrypted: i=1; AJvYcCUh7Vy6D03skhxDlr3GWINoWPnEcdosxK47XUwKgdHV7fwzE2vFG1dqbjWsLeAcqebeMZq3XtAr12/nuiI3@vger.kernel.org, AJvYcCV098EZYMIq32afL4MUVYXRsIvgVkz9zNB7EMI9j8g6omGjm3xFgn8YRZD29jk29DMdT3r7ae/VpTyAFw==@vger.kernel.org, AJvYcCV1bBTC55iu81f3hCNvBrGaewtisxMEuYqyf8JWKmJ97TaoUbaLrO7N3gPcAw09n6JfAOUEDBjZpaLW@vger.kernel.org, AJvYcCVSL00ik9YbdAiT/MuQg5kivzGSn05Q58RdDjXYZuanKLWEdYpaXRT/h0BSEe6Kt/0oeKHQnr89C9c=@vger.kernel.org, AJvYcCXrdVl/TAZ6vp4OHL5MB13Zom9oCOP3H7fNJsRCZ89LgzcoXSkLPNbjJKmIgv29pt4gzYeJMjsU64sAaR1mqPg=@vger.kernel.org X-Gm-Message-State: AOJu0Yyz7seSlITHg1PCNBJJIAw0BQ936vc7P0jrgvK0YI/IqKB7z0U5 WFUjlwnVYCuanVVb4tkCJE2m8/PGVOHkZDyoSVrhG+Qd2rDinYLf X-Google-Smtp-Source: AGHT+IFIA/8fSoKR1ME+95F6ZI/st19HfcPTmRKqgyxSxqYmWUIfRmCy7rU0G9QWYOYBGXWyB6rB4g== X-Received: by 2002:a05:6a00:2d87:b0:70d:36ad:3f67 with SMTP id d2e1a72fcca58-7192643c3ddmr12846073b3a.11.1726291554984; Fri, 13 Sep 2024 22:25:54 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.25.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:25:54 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 09/22] dt-bindings: arm: apple: Add A9X devices Date: Sat, 14 Sep 2024 13:17:18 +0800 Message-ID: <20240914052413.68177-13-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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) 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 baf0ef632231..11873b2a9421 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 Sat Sep 14 05:17:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 829191 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.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 4BB81156886; Sat, 14 Sep 2024 05:26:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.178 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291561; cv=none; b=EvfQPDpBAmkjqymRE9xcSIrFsl1hj6tIuwreckBfg77Z36Q5bDmrtG0foew1ap9L+6JHGarPsCs/jDBz8uOXPSbVwbxhFRidly+uRlnarK+g4kS/vpDY3i9XJDbaiPGC+1syLs1mcXIyQYDRUeiJu3T29kuP6Ow4V0f8zDshnXM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291561; c=relaxed/simple; bh=Ip2tb3iy7JRH2Qjba0QEVmokUA/nKu6k64UrMnAWYDs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=q4Dlb2Q68FcTgjm/3AFPwKbewHXhT7aID98xBjrg69uPwOjzXHPzTLISNwqrWnbdbBgXvIklvbgGIr4vmSSazr4qNDCDHTB/SFgDeOfQvrNM0fUiVXtKyxQezrwEc6ERBiSYk2Mpba+B2HUvA6Y3oYfW0HKJrzFc5MVrDrzpoaw= 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=VQnFFpsL; arc=none smtp.client-ip=209.85.210.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="VQnFFpsL" Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-71788bfe60eso2135759b3a.1; Fri, 13 Sep 2024 22:26:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291559; x=1726896359; 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=XASDwZWUX+C1//Vw0xrpdBLG8ljIMrpmRJ18G2XwTwU=; b=VQnFFpsLLNz2GmV9aUpGeuswySXrUQLuUlNRrPdCYYbFwsF7tGojvJ6GyALBXPj/eb 9T1sWeLhIlHJXfaOGnRlRx7yiwELZnpgmJq8kuF0lsJOoQYiWQYQqv3aXJUFSJcdYFD9 EHSLrF3o9Z9gLmfnEzTZxurxLVWo1T+Bu9lvYFp652SpWT8StUEhyjap5qv0rMcUnRwo w2y3sMf47DaR434HDFMBPdIx8x9nD/RvDjXhTzfsFE1DlO5rxMMQMyze8g5hpJVunkfM 5YegTGLyjc9GBnCu2vIvm1ykKUynZPQvUEToaPH7+tQ6Bs9NcKCWXcE9kmnl0dJHucL7 itWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291559; x=1726896359; 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=XASDwZWUX+C1//Vw0xrpdBLG8ljIMrpmRJ18G2XwTwU=; b=W0DDmNFHHgBejVZd31qNpfTQL0cwZogtd6WNtOkX4tVFlXnBub2XdNCzHCp40dZZCE RuZNjol+53t1+Jq1zwTuRHDAQ80mElFjR3xxIgqeMBM5vosSzCTW94ZMBnFXcbg7p9Hx rbbRHG6nXNw3llFAo8XQeGDhQGNiYU6BMFpqyMAWdHETQ88dnZQUlWZvtmnfqx92IXTV dDgZbCAF7xwFnew1IEHQlljBElCNEGk6CFFqem1JFVy2GSPEkbI+xrJe5rGWDqzb/bKu 785s5Psuz2hsn99nAD5+csxpNFc8kT4AzXo5kj6CwZyHwWxfP2kfUx8kDjh4o46eNX7L fs/Q== X-Forwarded-Encrypted: i=1; AJvYcCVW/oiUM+6ZxtHTjGc0T+m05G/ORg9W+k0DBFAny7lmvruForFtET8oU9x/ZAF7OgDESkwNieA5Wr4=@vger.kernel.org, AJvYcCVXZX+QSt48uLYNOE1VRb7zcssG4IMlaFDeh4FzSomxdzUCnuF4SxKvvQCtREo0A7Tq4gO6Jsd7yRL2pCO7GYk=@vger.kernel.org, AJvYcCWPkKfSaRu1guB3asqrOhpmFNWhTCPzbibCbzGkbmENpUBsLOlQ+v7XATRA5YXlvBydOdZdSn97WQCmykgL@vger.kernel.org, AJvYcCXPrTOUjxF7SWBVKC9TNpX6rbgGtPrfYYRJ1+abYz40b/YWOElXIlV2PiIo+3mPByXjogNUGFGLOD4n@vger.kernel.org, AJvYcCXid1yKj2URvbEyY/sYa/KSET+LvU30Lx81D78hv1YkSeV+Rc8fHXnUoy6TnaOUbgZBO/AC+SPODTcL5w==@vger.kernel.org X-Gm-Message-State: AOJu0Yzer6/wJm1ESr2gLV3x47n+GUJpXqKbov5/xDygo2ie8O97RNpD eh7nEw0PdmTK+dtlIbB/bHNY1EkxI5lt6STnu236JUtPeCJ8n4rZ X-Google-Smtp-Source: AGHT+IGZUn5gSNpsB3krCasHpMWXOgM2hsTIduT6Log7/dlk8WDYq1PZYEh0VB0wLcsuIsqGbHliwQ== X-Received: by 2002:a05:6a00:acf:b0:714:241d:a323 with SMTP id d2e1a72fcca58-719261e0ebdmr14007202b3a.17.1726291559499; Fri, 13 Sep 2024 22:25:59 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.25.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:25:59 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 10/22] dt-bindings: arm: apple: Add A10 devices Date: Sat, 14 Sep 2024 13:17:19 +0800 Message-ID: <20240914052413.68177-14-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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 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 11873b2a9421..cb33bd1e7a2c 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 Sat Sep 14 05:17:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 828788 Received: from mail-pf1-f180.google.com (mail-pf1-f180.google.com [209.85.210.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 60A498063C; Sat, 14 Sep 2024 05:26:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291565; cv=none; b=KZoci8b1xlfycwrqMhgQbZNhkg6l37KQes6OccMBqgtRSo9McupB+7ptSMIdgf9YXsit+tNGp8CszThN+HcWoP3iYHjeFxI5YUi2nNRDSTyhn65DJR4fY4YPrsdxt4s1pWaHuonHYFoO5q9NCLRJkXPv+cTx2uFy0T4SbtLNzR0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291565; c=relaxed/simple; bh=FeY5rH2Qiz+FAfwmm6AVDJ21Mv5JbNCvSdeGNgfNLX4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=bwFSXy8Ki8h0Up4YHFMwc0t84LVvc29PPmdcdX1PcOzGgh28PiH8+QMkyW3mMGFG51kaLNw6Yq/9ujD9L/XsWtzb91EdwTTMx9nBgz7AvZWafHK29eTB4wNxcMJUO++XC4wwkwSywjEX6XfcQ4PHlqEiCnN2SXFI/ysjSJP2608= 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=Fq6gSv0f; arc=none smtp.client-ip=209.85.210.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="Fq6gSv0f" Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-718e285544fso1326809b3a.1; Fri, 13 Sep 2024 22:26:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291564; x=1726896364; 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=yVu1SjDRNaTLjEcb9gqcIIxYP7YMiACMFhnku4atreU=; b=Fq6gSv0fBc/CGa2usMfZyhnGSStPUc8RVsghJbaTSLqoQBocJiI7xV2/nmlwB8gXEh S8wTWYW42JlhLJteWfrBQ0gP0FblBYFcatifcRTZ/ue+Z2D0ylXVA9BsTe0+5rs1tXa/ IVp9oBmwC0nyCkky1kyl+1HnoLgSO7W1xmYdDfRXM6SQGvGTO5mG/iS+SidJ60mqKf03 fCAb2cmFZ9EZBdjzLE6WCokiSfC6Eb1A31+EtEPApuCpDEkxWn+9eXh8a1h1EHXOzULN 9Qn9UIsUHxSijCpFjG2m4Vx6Obph8wyQCZkaESLQ4Nx/EKwyaZoBJHeWVDNoVzPIWy1i XHLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291564; x=1726896364; 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=yVu1SjDRNaTLjEcb9gqcIIxYP7YMiACMFhnku4atreU=; b=degDEqYqOKF+EcLHDbqKmo3yT1oeR/Tm9QpBec9GOKoEtpBfLJx4Yn/QNdWjIUkaG8 1g+0LZV9ZLwW9XcvRbRqBRl+s0TNSppJtVAlMNYLKwAJHtzoPYi+KPVy7lRHTbzwt0xl D+bfJlKi7+U6oIiKc7Vvu9Ik5dzZjauQnuGoHNQl/tfqfZ+tyiWzQEwDlR87xAeTjwI1 yO7HOkGoaOCIvXpojv539LAqcxUA4AjL9/LuQMy4ULwpVcRV+SOGLz0kR1vsWb4NC4e2 kzU5iyeQdCp7UbATck1Yjc3absTX68somS9o0vZo/RShKSfz5/doKKq/0MdTL7BrpCjd 9okQ== X-Forwarded-Encrypted: i=1; AJvYcCUhFJKp0VPZhEvg3r6xwcfzSByhilCWPsj7miKCeAdRNQQ1Zawt4W6WvJ/rYoGekMpia99M5GMFQTXwriT7yPM=@vger.kernel.org, AJvYcCUyYFtjHJ3Hpu1VSW7aBI6A7kWbJB7OjsKy9+4FrBwhUhlxp9Inftpb36e1hc5pJUxOtmPiE50bsy02@vger.kernel.org, AJvYcCWQwekCqOS3mHw1CWdBBjqO/WQ2z2magKKJ/uKVHwuKs6n+6hRz7uoAjeiVwapo6iMhIzz1TMy68Kt5kg==@vger.kernel.org, AJvYcCXPa53MQzCDJ8toRvbmlqhScRi/kcSTQwdTZXxF1VwnuG+PmBOGK2uZBnzA8g/rspKYR/e9JYbxcFc=@vger.kernel.org, AJvYcCXns5SXty7S02QBHv3vK4jOngVyQkaL3KCItad1JxEuBO+gn8ZUmCmT3y4Kc28Ufj8ZYIoTEr2fKoobCjTs@vger.kernel.org X-Gm-Message-State: AOJu0YwZRuTvxCvJvQDeeTG5Zn+tQqSU8sXWchH1McXndU4r7srfgytd xVmKWAzUAJ8G9O0ylVFKn5U3cFWEuToVnCTRvZ2GSbbfnJan+xna X-Google-Smtp-Source: AGHT+IFcuKsB4caXjpEXM2wDj1LEyR4AEu2lgTGmde7vP+Ph0/AD48c7IH53OChI2N4UCrHaoB+JJA== X-Received: by 2002:a05:6a00:13a9:b0:714:173f:7e6b with SMTP id d2e1a72fcca58-71936a3abdemr7922571b3a.2.1726291563917; Fri, 13 Sep 2024 22:26:03 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.25.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:26:03 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 11/22] dt-bindings: arm: apple: Add A10X devices Date: Sat, 14 Sep 2024 13:17:20 +0800 Message-ID: <20240914052413.68177-15-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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) 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 cb33bd1e7a2c..92fb48aafc39 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 # Apple iPad Pro 2 (12.9-inch) (Wi-Fi) + - apple,j121 # Apple iPad Pro 2 (12.9-inch) (Cellular) + - apple,j207 # Apple iPad Pro 2 (10.5-inch) (Wi-Fi) + - apple,j208 # Apple iPad Pro 2 (10.5-inch) (Cellular) + - const: apple,t8011 + - const: apple,arm-platform + - description: Apple M1 SoC based platforms items: - enum: From patchwork Sat Sep 14 05:17:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 829190 Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.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 04A25823DD; Sat, 14 Sep 2024 05:26:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.176 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291570; cv=none; b=VAFUGRAi9O72VLfqVcBODZEBxc+Nxy/EUnYL9Gd3YHJmxcLV/a8ATNaEMHsu5LS+tZWBmclWWVqv2aj3Ima0rEL1haQ5b9YmcXee4Rl8TKR5Xvsg1SGUU755UhP7kFlthKzzX8Z9CNXwLBNCEhLuTcJuIPnLZe0J4WntI32Jer4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291570; c=relaxed/simple; bh=LFzv+ybZl24X73SDlUeoq7DGJPVkl9oa6qIMbQ5kWi8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fENE44QapfoKZ/ZvdrbuDdzaKJLiy9FVsRZYc9Debws4tFf/wNzJEFPMFso/bG55hdbiT+dyK+0zbI7Ij3hG/GMbEH7QX0+DkmnhxqGWvfSTyRTQAiym6JmDe+USh6RNrmIx7WpdoZyorx1n++gq5qcOlQc0W2OsVvjm9MXSZ5c= 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=HW67/kej; arc=none smtp.client-ip=209.85.210.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="HW67/kej" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-7191fb54147so2019417b3a.2; Fri, 13 Sep 2024 22:26:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291568; x=1726896368; 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=PxmkdiRq54N1MFYxhlP5pg6YjtYKAD9J3M+YFYas/2E=; b=HW67/kejW2RiwJ+hVluF0JvZjc5SBz2qMX6EC9p0p3e+hCCpILvdU82RLJ6dUZDVk8 YJh2c4c+CV6C9bDqW1L0T5AzUzVB1BjPG9QPVixKLWwje3cWh8xepjgGgVjYBMzFqkiM wiEA80+8RXfR058elwca+CxzAfnTNKM3gi/QU25UKAZ8OSQ8lzQppzTgzjgK9nGIaOAB 97kGQx0QugEIcq8RrReWxSPfvHv9yOKxzH1p5iUXwssvSEiJatNXn1AvHNzTmYIy/N18 7VDEHD7Fvc9j5iFas1P+sCKmKh1Wkf+TMDbI7YeNG8IaipxdMZjbqxxB1HGrs9aLimAS 9nnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291568; x=1726896368; 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=PxmkdiRq54N1MFYxhlP5pg6YjtYKAD9J3M+YFYas/2E=; b=qL2Xq2p+m+lA1rCtBUk6rIvoShID3+/2MBftwDULlDwTcTG+KmOz+sHN/Zo7sptxwA MPL1LG8d2HaWPkj0MlM9nAoJ1k6vXc5rw+4h5QaMCg4d0mODFzFFPrKNnTCPfAHF3y3/ 5Na/hei49q2gbFEN9bQ937/sEPPIYZBEq+r3CHcgl2TSYlYuRIlE7r6RTFPpM/vcPvc+ 5I0hRwcxwCS2393KSadgg7iznq6QXI9pwU/JR0rYRXhHIbN7bQ8QpNvaG4ggZOJ18cZT EdnRpqUnnANJs9O4CKK5nt+P2q+xmzDT+iADKSeEbAeAZ+7bqs4+mAT8SExSOfK5K3Wk syiw== X-Forwarded-Encrypted: i=1; AJvYcCUZR9uFiSayYqgPXboForXrz6xVEZsaNzwycHjgioRpKNTT1fRDhGX6Au3yRUWcb11uw536ZKVDgXN15j7u@vger.kernel.org, AJvYcCUtYYWPmbryvbdqQ2MDxP0jQhxdeQq9g5FVs20tmxk48nu794y9+9GXivl+BBlwZIiyn/noCEg3Lpw=@vger.kernel.org, AJvYcCWKX50Pa+hNx1sIrSV5liTHpcby90vv+UXzpMcLvdsLHCmLi/viB0Ro8bSKofMjoj+n5QWzYQ974b1n@vger.kernel.org, AJvYcCWatrbPbvrWEnhqMhFqjnDPhU61DQpaWVDTFmPTA21ZMYs69mz30PzBlGfvBic2lzvuTJX4tDQTe3UEpW/YMqo=@vger.kernel.org, AJvYcCXmhtpZJfzmhAtV1GMVtWVlhOBtXck5bLOAFhwkC011TQqik6wPEM5jPHGgndZIRwsCPRzOPZFaJz/Cpw==@vger.kernel.org X-Gm-Message-State: AOJu0YwEur9CdSGnRcPOTSusI6piNYaAhmqTYwKuVCzANvBBzjqt2+ru 6Ed9hUMJsJ6XHykeL7Pz8gzt2DspPgn7A+yoAZCpRPMTNSAIHfsB X-Google-Smtp-Source: AGHT+IFjCQdTCgKHorV+PEdvKRykkSx/Nf7CjbwpllATeXQDdK8UoGhSnTQE0aLfguSQ90/rKj8SUQ== X-Received: by 2002:a05:6a00:14d0:b0:717:9768:a4ed with SMTP id d2e1a72fcca58-7192609318dmr15345794b3a.16.1726291568317; Fri, 13 Sep 2024 22:26:08 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.26.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:26:08 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 12/22] dt-bindings: arm: apple: Add A11 devices Date: Sat, 14 Sep 2024 13:17:21 +0800 Message-ID: <20240914052413.68177-16-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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 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 92fb48aafc39..c39fb665a4bd 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 Sat Sep 14 05:17:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 828787 Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.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 97AC9185B52; Sat, 14 Sep 2024 05:26:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291575; cv=none; b=KTrjRo1ZUDeRy+g9szKaBWj/zXY+uoCMof4biMT5bOyFefcX0TYm6E/zmW9zvxNzxy38TseqSvYDwLCoKtc1d8HcqlY2bA9KZ1SEhDfCYIZGaa3Nzvsowj1eR+9uGNLQEYQISR4Awo7ZsEMlF3UPcbcg8/pnDPuq6j/+sgfX3iA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291575; c=relaxed/simple; bh=eVkXQZAEIH8Iolukyt+/fIxhMe0IktyxyHHKQ2aBrjM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=aABulvQIvM6Y1iUyDe89TXZfJiXZzNAMctevc5EYqAh9ePNh+kewrzE4J/5olQJ+BxwEGJ6G6MfnTNFaHKXPUEDekKqNzbbAHiiJNeeP2Dir3bbB9tanfU+LJXlunEmqBTj57TRL1NMeUef5ICDeDE+EOpKqFkcomCCvSaUZBi0= 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=KfXujGP/; arc=none smtp.client-ip=209.85.215.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="KfXujGP/" Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-7db1f13b14aso2573469a12.1; Fri, 13 Sep 2024 22:26:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291573; x=1726896373; 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=qZ5g+rZceq2sd9R8Rbk7PSzJd79RQKIw0Hvg0zFVTCs=; b=KfXujGP/ZL+S+KZEBqlygdjIyk4LCyPMAMP/YTxm8KfhWZ8qyaUbQPYQEj1LHr2si1 Xxp4qfkvx6iKkWQtafv/xjb6GVB8fHLa8666HhCIZI5YuZBtyN/hsj8HyuR2ZDHD8kWN u49yZ3PAEKiMY34I55yTsslar5tMM6UptKIQV7mSdwHdOEvk0Uu1ajUNdbPtsahBOv+9 RbID5LbHNTs8VCJJk6t5fYgbbFURYcbadBlhmEJCBGQjYBD2dAYbCjKOaL7HWl/OKdGe Q3390cy7mNMOLV49kxopdopiLabSyF+jMF3zgQfuEVjSrYVX5q2KcRra3FTEu/OaTKds I4cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291573; x=1726896373; 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=qZ5g+rZceq2sd9R8Rbk7PSzJd79RQKIw0Hvg0zFVTCs=; b=I0oQqEu1MVjJ6PHBwxzwAXLRE1BElF9UPO/Gjx/3bYGnOLTQAsftI32+TkH8wFeiX5 S/MzV52a0PXwwPjbeM1n6ysG4tayRZXyvacLbGc2wXoI/yvGelIz4UY8I1XAWWAVzm9B ueUW6atkMFvNTKu3x/Bt4E65p7uGs4BAKOMeNdpo9IZtBUMwuDUzclq3FABV5rQFhZMi pvIGu3VqQo5ftmawnEGD0eimG9mysqbEziMfrkfM1uf29LjUliQKrFC0MxjqL1lidoa9 +DwN3ggtK+9/6h5xEVGoClGnzn8w0yAvBojlJVt3Ij5wGPl5pe2Xy75Q8sxJNw8yY0N8 3V8A== X-Forwarded-Encrypted: i=1; AJvYcCUC7hU2Z4DYwRHvqCzUQOTuXFSptzcDTm4nRDyPgF1l+6php11InD6XpIcGolyOR7uEfj+VHmQnJgqRRjFomAI=@vger.kernel.org, AJvYcCVb1eXFBM5W1miIQdrrxF3Vf6IHlyHMwQRQKBLRhQ8oPDooyx2EtARhu8rIq8+uPI70QWGZ3QnwmQJFKQ==@vger.kernel.org, AJvYcCVvttopL953fGjIqv5yYFvw6yqBYwjyLlhvyZwV10flKmIWYTx6rkgM55MpoF1ZeFHrfpqaDSA93DY=@vger.kernel.org, AJvYcCVwIc3MtreNG6AEWq98mFf5+d3aZ6+cwxbwCX0Sn87k0AutGd2U7UQcsVzC8F5YAVjM8pvPQeRKL4dW@vger.kernel.org, AJvYcCXOm0EpaGrVT2fVy6w02UHID/GMIqZT7q0PFHpFA8vEaqObB5opPIDFcYJWblcuNB4nDeg4EkMm9SOuiVoF@vger.kernel.org X-Gm-Message-State: AOJu0Yxn5DzBaMAXf+sM8+p7YssXKVPOuZqrOHVXTPoY0m9yaERUh6T7 6qcRozixIYuseX5SolR3QOFgmX+8hl/GDT6/W8jHJykeL5ZpHIsp X-Google-Smtp-Source: AGHT+IGY8CKIMdWL9Gsc/Dp5tu+Gz3BZoU+A28OiqyeLP/NaxrRK6UREdRXwq04Hmu8rgIgKe3AtPQ== X-Received: by 2002:a05:6a20:c90d:b0:1d0:80d:665c with SMTP id adf61e73a8af0-1d0080d6713mr12495061637.7.1726291572801; Fri, 13 Sep 2024 22:26:12 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.26.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:26:12 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 13/22] arm64: dts: apple: Add A7 devices Date: Sat, 14 Sep 2024 13:17:22 +0800 Message-ID: <20240914052413.68177-17-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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 | 54 +++++++ arch/arm64/boot/dts/apple/s5l8960x-air1.dtsi | 54 +++++++ 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 | 54 +++++++ arch/arm64/boot/dts/apple/s5l8960x-mini3.dtsi | 13 ++ 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 | 146 ++++++++++++++++++ 17 files changed, 486 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-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..4da68f610747 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi @@ -0,0 +1,54 @@ +// 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 + +/ { + 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 = ; + }; + }; +}; + +&serial0 { + status = "okay"; +}; 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..9afc1b0600b8 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-air1.dtsi @@ -0,0 +1,54 @@ +// 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 + +/ { + 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 = ; + }; + }; +}; + +&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..778f470b5fd9 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-mini2.dtsi @@ -0,0 +1,54 @@ +// 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 + +/ { + 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 = ; + }; + }; +}; + +&serial0 { + status = "okay"; +}; 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..5c2e1b838af2 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-mini3.dtsi @@ -0,0 +1,13 @@ +// 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..b36c06a6d96c --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x.dtsi @@ -0,0 +1,146 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple S5L8960X "A7" 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; + }; + + 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"; + }; + }; + + 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"; + }; + }; + + memory@800000000 { + device_type = "memory"; + reg = <0x8 0 0 0>; /* To be filled by loader */ + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* + * The bootloader reserves a region for the (varying-address, depending + * on what FW your device runs AND model) framebuffer under this node. + */ + }; + + 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 Sat Sep 14 05:17:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 829189 Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.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 F3F8E186E47; Sat, 14 Sep 2024 05:26:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.181 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291579; cv=none; b=ggzpSwbcPva+FzfeP40S0YLVOvlJ3KUqpfy4emPinz+Wq0faZ8D0i+HVZC2b2q0fum+NletUgofmnxem+Bg3f7U5CVHVv+WxE4uCQfmF4qquY47NhJkiMmmRZEjt0hILn1LSPjIL8u0Wem9XXINem6yDw6gu5yjxEqOyZqOrEno= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291579; c=relaxed/simple; bh=/UwfqXhivwWOFPln36L2jqERm8pwkyaUlda7cHIUrTk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VGsAg9auH8vbmZY1xoJGTnLurktkXQuEgznqErDMTbuLK8/Kqn/LXMazTbR0jbZYY1uotnssmUvAiCkEBa8vXgCIDpBQMlhXBWa17+7M909ISV/CKJfi/r6c8ef5Zi/j0tTcotaSDE4wTzjEoPoy76edodjTJnGveJMdI3ZFCyE= 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=Zndb6ndS; arc=none smtp.client-ip=209.85.210.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="Zndb6ndS" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-71923d87be4so1243346b3a.0; Fri, 13 Sep 2024 22:26:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291577; x=1726896377; 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=W/3KV47ziEBBZC/y1RFBXW9LjMIFFLMDCfq/UMfNL3E=; b=Zndb6ndSOh1Ve2T9IWi0FaJhDXiYMrztzun7h3c2pYVFJesuy/9zVO36nx4nBe+gSe DTgF6xb7eCGkClYfMc2Up9zs1aK9OJeqX1NxIqye4AIdzXOs1BNN0KutvAwHii3pnFtV VbOoEAXsIFxgJMmPSSGDmR8PymlNx2NLu5QfNslSWe5ligtm8ei/EZ/Z68yisOkZc9e9 HXArLmzNH1B7NB/7sN9X7Cva/QD23gJaI79LFLtRiBQ32n2cQzMCHqgCZFzc4A9MLmx1 Y4oNADFUhrqnWXeMdWGkMh3gH/Nn83Q6qSV+DR4OnPZPkeddHEI3aaDvtHusSPffemBH DdDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291577; x=1726896377; 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=W/3KV47ziEBBZC/y1RFBXW9LjMIFFLMDCfq/UMfNL3E=; b=p26W0lrwmI1Em3QfzbS5XJ/Wt4DefCTV696Sag27SscYCryFk8Y22w8t5BatKlxlVd 8tOD2kIRmPKJ+0fAQfjNzvBfLIy1pp1GNLucCezCOOlf5E1kS9Gglldr3psd65MeKPEg AG/9sP5s8Yy+Pr/xrEYnFDcnhTEtTRG1wKuU8zLf/JgdgqXXWGon3K7IRK29gPe8ffnZ x1HKX0kaMC1HvAZeabBLYDfQMipsouZ6hwYxN2xgfNMV2nsTtzF2RchAQdepahfOaNwh 35MPcmvsGbxW+bl7frwLBZhbvyRTQvRENCK+n3WIYn9UzDm0X6v0WQy4BL12RL+BRhLS LXdg== X-Forwarded-Encrypted: i=1; AJvYcCV0nV1HfJfF3vZyWtwRZZiBBxZG2JlWO/XBLoEWpOaf6KX8JBd7R8jI+nDJWWaEG1DBgBPmWrWz2Hs=@vger.kernel.org, AJvYcCVTg9gryhbPo7YXwoI/tULRi5/DljE86/PXLow/13TgBiZRv0vn/pmpfGh8MfPid6IaIr8xTxyPdvEJx4i2@vger.kernel.org, AJvYcCVheIqZuRHNdcRhaJrt0RzYxAgfmb3/LJyFOLp0MC0qZvC8GDQ7Kjnc6yN1vg1h59S//XYwtFaP0/Xe@vger.kernel.org, AJvYcCVmaEbmpkYJa7Pin9yuuF31J0mTE6R5iu7oKF4xyFHdaw4wXrA5zyuxCf3XTxHR05wigZChq8I1IBbWoQ==@vger.kernel.org, AJvYcCXseJzZwkxPe5aU1YMLsD/ic5jRCBueBFvDUpQpfeM991Y9bZbxKNamF2YrQ8u6avEJsCh7qXffHDMdabr5COE=@vger.kernel.org X-Gm-Message-State: AOJu0Yz3t0VLz43wYZgrT8HPfKDn3eGTflcStTpbNK89ISB+NG9aeWp7 XqcdysQFm6/iI5OSUXWbeVZigoSu5HmW73kVjtvQIAFUw+2ihlSX X-Google-Smtp-Source: AGHT+IG5vyukhGc7WBUcD3BWY4QdsTNMAHJqa2srziEcmw3fyk1vrhztKuwjSX3cMCFbXdVjHkxXzg== X-Received: by 2002:a05:6a20:c90e:b0:1cf:4197:6697 with SMTP id adf61e73a8af0-1d112db3766mr7578092637.23.1726291577288; Fri, 13 Sep 2024 22:26:17 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.26.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:26:16 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 14/22] arm64: dts: apple: Add A8 devices Date: Sat, 14 Sep 2024 13:17:23 +0800 Message-ID: <20240914052413.68177-18-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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 [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 | 52 ++++++++ arch/arm64/boot/dts/apple/t7000-j42d.dts | 19 +++ 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 | 53 ++++++++ arch/arm64/boot/dts/apple/t7000-n102.dts | 50 +++++++ 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 | 146 +++++++++++++++++++++ 10 files changed, 382 insertions(+) create mode 100644 arch/arm64/boot/dts/apple/t7000-6.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..3802e853af42 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000-6.dtsi @@ -0,0 +1,52 @@ +// 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" + +/ { + 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 = ; + }; + }; +}; + +&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..88bc6ff68f25 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000-j42d.dts @@ -0,0 +1,19 @@ +// 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" + +/ { + compatible = "apple,j42d", "apple,t7000", "apple,arm-platform"; + model = "Apple TV HD"; + chassis-type = "television"; +}; + +&serial0 { + 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..c0fcdc900d01 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000-mini4.dtsi @@ -0,0 +1,53 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad mini 4 common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t7000.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 = ; + }; + }; +}; + +&serial0 { + status = "okay"; +}; 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..81fb62dce5bc --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000-n102.dts @@ -0,0 +1,50 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPod touch 6, N102, iPod7,1 (A1574) + * Copyright (c) 2022, Konrad Dybcio + */ + +/dts-v1/; + +#include +#include "t7000.dtsi" + +/ { + 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 = ; + }; + }; +}; + +&serial0 { + status = "okay"; +}; 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..b766129ad472 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000.dtsi @@ -0,0 +1,146 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple T7000 "A8" 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; + }; + + 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"; + }; + }; + + 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"; + }; + }; + + memory@800000000 { + device_type = "memory"; + reg = <0x8 0 0 0>; /* To be filled by loader */ + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* + * The bootloader reserves a region for the (varying-address, depending + * on what FW your device runs AND model) framebuffer under this node. + */ + }; + + 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 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 Sat Sep 14 05:17:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 828786 Received: from mail-pf1-f171.google.com (mail-pf1-f171.google.com [209.85.210.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 7CF32188934; Sat, 14 Sep 2024 05:26:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291584; cv=none; b=fDvJwiLJaXEehriIzA5/FZIM2zsTKo57pGA5kXFengMT44EKikUvbJfEz9ArP47CPkS+XH3PgboRYFiZXHzNQKrA0+rIyzrMHlwXOTbJfdsePm5k1tmOviMvcyGCINnFiJDTBFRMuHsDl9QaaaBk1//C+DvKqXgTj0K3nJYyNQY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291584; c=relaxed/simple; bh=72JwKxsOiQ9ATwBxQc5idMxg+wu2dRcm5FUheKCg9zY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=cCAJBDLTQWYBjYB99UHx5Bc6jULc6pQgLY6OSHFHRg2SZrm4ojfnt8vicjt2CI/OM9sXAsuAocZvSDc662kU3WWPT0iLxRpcVDOkwmQeW2KeALrjv538LY3ykKp2wnA8KjXg2WqxTKwLY0P50GulNm0bPQ0vUJ2jTN15NCZRXFg= 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=Hhn4gthJ; arc=none smtp.client-ip=209.85.210.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="Hhn4gthJ" Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-718d962ad64so2383699b3a.0; Fri, 13 Sep 2024 22:26:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291582; x=1726896382; 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=0VwGFb5jnroPV5oNGC7ai+uUg9dX6Uu4B+zhzmxSREk=; b=Hhn4gthJ8/bGQNDL934tiSn7ViG36wD+yDRcCYTkBsMG1qiOuRafzyheKf91FBbS4A qIB9yOWngMRACvvAbCg2k5OxZJJDX4/pFPMrXk6xzDkb3MKhbgLCG8m920O0QtKDNrgC k81Urrl8lvmMFyIFAWfMD7oFLC2QiNMD+qImNoduevEhR8WXjsDU/tyNk7HMa7KM0KKg wMvfnnsVaZd2C+z9WTSykIFcq3GDCFcVJiwqhO3gio0rk17jNTS6gbeS8IEWY7fsjhBA iCvxL9D7FcQgyrWJ8U+YyAKbXNzqJ1qG/N99CIBi5idfFl6DM0fFH97Lnt/xZ27+6d0g 2S1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291582; x=1726896382; 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=0VwGFb5jnroPV5oNGC7ai+uUg9dX6Uu4B+zhzmxSREk=; b=u7AN72VdCgnmY11eyYJHwS2Ul/s0KZb8YRfWhacf8AlC2jZzu1cNlsqaxlvr8EBVBL 0QXnnQVwVl3mT4vamFv8HXB4k7AP9rscTSm4HZ9pbGS9vLP8muDeBaM9tBqyIZjCDegi Cm5PwWELsbadjK7RUWbsQsKvqDzjmyNyXpPG4D/Fx+1j4h5TyceEqy6sSZCd60QQo5ks HUdrNpoiFQqhRJ8+pNmK3ClqEJWmYaja37gY3jIUxOpM20IQbv199clWGHLbJrt7xu6V NhEH8Vz7aSP7mbj/MwVeFjJ6GytzmoAh09KpmGWj65rlA+m7fXRF04fWmqlalb1E2f6T L2rg== X-Forwarded-Encrypted: i=1; AJvYcCUOIkKgrN90x8EPr7mbhr3YaG7ngsukkvom0yJwIucEbWFyQj5kGEM8EUiniefkQG051Bv4NP7zSgx4@vger.kernel.org, AJvYcCUqbaPnoZv80pajCSOTLYOfGP+gevlt6Zd1OIXU1nl8EjMRIlm5UuWvXsEXH9vNcoCel8DhMYUzieCsq9wbjeA=@vger.kernel.org, AJvYcCVbmqlZu5x9phSHXRP88Zk5XmjYoStbimZXhsmLQTVxmP50Hc3rVX1bsn24nS5yeCrChflLg9ILh0c=@vger.kernel.org, AJvYcCVp2oi2MCqVmxM9/DO36Bgu2NJKMA3M4mCh5O/WS3FqDkeO3mlqfIbfO2ll6Q5KGJnhryfYBk0lEVDEhMZW@vger.kernel.org, AJvYcCWCcOM7KW9ieNc4RIj05RUgfTtxMxXDhaxmhP1lr2ZaCEhb/4IsQ7djJ9kWYA/KpzjyjmorFGMnILduvw==@vger.kernel.org X-Gm-Message-State: AOJu0YwxF0iyFUexTTvjm8Ky1AWTlFGm20EQIoaoPSWOnur9lufK4BC9 MXun/SzPP68TSMJB5bNop8RENVVmwm4b9y+/K6AhT8GLVepMyn1p X-Google-Smtp-Source: AGHT+IHd9rUwx1vPgvau2mRCMsPu7jFuom4TlKP3Iryw6hYBdaK/Ga2xceDhsm6Lvgbdk60eJznQIQ== X-Received: by 2002:a05:6300:6681:b0:1cf:22d4:382e with SMTP id adf61e73a8af0-1cf7624b255mr13716445637.37.1726291581862; Fri, 13 Sep 2024 22:26:21 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.26.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:26:21 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 15/22] arm64: dts: apple: Add A8X devices Date: Sat, 14 Sep 2024 13:17:24 +0800 Message-ID: <20240914052413.68177-19-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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 [Ivalyo: system memory bits] Co-developed-by: Ivaylo Ivanov Signed-off-by: Ivaylo Ivanov [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 | 46 +++++++ 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 | 154 ++++++++++++++++++++++ 5 files changed, 230 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..8ecf2842e8e5 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7001-air2.dtsi @@ -0,0 +1,46 @@ +// 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"; + + 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 = ; + }; + }; +}; + +&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..9a5f0a4bde52 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7001.dtsi @@ -0,0 +1,154 @@ +// 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; + }; + + 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"; + }; + }; + + 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"; + }; + }; + + memory@800000000 { + device_type = "memory"; + reg = <0x8 0 0 0>; /* To be filled in by loader */ + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* + * The bootloader reserves a region for the (varying-address, depending + * on what FW your device runs AND model) framebuffer under this node. + */ + }; + + 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 Sat Sep 14 05:17:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 829188 Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) (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 21B3F189508; Sat, 14 Sep 2024 05:26:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291589; cv=none; b=IsCT1wpAeYiuKe2TR/Yef1Cjis4afau5EwxYp9b1a1a5rTJY+z4XZjeIF0MvFYV3RBeu1fabIsn687V0l3bBfo3hkSem6nxmmKSHR2CItWZEGNrQZfc0dr5Jssoxp1wtYVv6mDhCPUjwqiAzWrrvfxhBRBKMm8Wk4Ss25XH3Qtw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291589; c=relaxed/simple; bh=T5bc+2EEMpwWR9gMnt+KgpPAx4FmWo1Gg77h6CWR+yg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pOupCzYuNtBe8drhw5hXaO7sM4WazXutBe6HfLdmpJJyYHEyZ93BN2C2jJj4YOS3AIUelAcjLCWC2iXhKC99SUQNB2kbj0bTpHm7x+v7RLaXz5qwfWaimsvB9T4RQylZDMyxN7ZOTQHnGQMmJ0bJZS7nJ7UIj8qvXCbpx+XXqiA= 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=j97NTvXo; arc=none smtp.client-ip=209.85.210.169 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="j97NTvXo" Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-71923d87be4so1243366b3a.0; Fri, 13 Sep 2024 22:26:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291586; x=1726896386; 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=0wlvrz0d4Sg9n0wIu368n1nhmE+F0zH2AADRG128tbs=; b=j97NTvXoa30G5EzoIRryfGSwQwH42i28P5MprZDDjbDu9h6zZdAnT4Urq7l99ds3xJ cszGSBdnJO+k4VVGTKayiark+XXpMs5BRDROT+unqf+z+UIeQ4eCSdSowja0zJ9POGFz WksdOfTL/hU8di/UxD1KkmpG3uGanpxQ0TtVwgj8+9jpV1y7p48+s25gE3yaG58ALIrC AgsmMI+eJmxNWK5tldxOgzZJDhIrYDBfXhQlIoe5OEwBwH/nmVMqfb80KLqrXE9AdWdo WoRsUQo/+XDTe1Akr1uH8V6XnMKEed5J1u5A1caowP0ObYlmMI9rQ+Hsi/rtfw4kZ4Ry itNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291586; x=1726896386; 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=0wlvrz0d4Sg9n0wIu368n1nhmE+F0zH2AADRG128tbs=; b=DIPVSCuri18XIwEXtZVOwS3z4lxE3rYfcvsahdPKgYyPc8OV+0sPJsb2M28yAYJmb6 ZvPJ8hOvu7SeSM5HzCbkwo0qH/pk7j8032V+z9BSA2PcqPP+BMi43m3ghMNGROR35u2/ ppqol0LEYdIL/UpEmpYQZE9ZPC2LtLuePPTTDK/ELgE3+Ct+r6Kmoac/dkzM3M/lAHLE 78hXFJ1ENmggZG9qQ16cNf380libadFMyiPv76qNwNBXZ4X7oqTeS2U2mzks2+udzqZZ /xqnIf0DcKbXBfriwYAvWPYJ2RC+W/+tZuOEXIWLOkdUO17PDDgKDEf+lGrJhiOTN8yt NbGA== X-Forwarded-Encrypted: i=1; AJvYcCUszFvb2IVWVJfkOsaIYBw/gxWEmg5Nd/KJhKlF0MGDJitjQIPT6APJ+jbPgp38sfHVdCXoFppEMcVLxnVU@vger.kernel.org, AJvYcCVjUyzeY1mAmUc6DbqKy2MrGhMUP1QnR7zgvaJK7Ezoi7pqzVrBm7F25oJu8SZh7JT6BYAT0kV8/Um8@vger.kernel.org, AJvYcCVuj8seFscXPN56HgvM8ibExkqa8llYxDivBbz3a92XcabGpms4yP4NEIHwvfyllEoV1maFhTP8IlBYwVT/b9Y=@vger.kernel.org, AJvYcCWO+41CQarJIjwHaKIw1mhVuJp9h7hIABfTlmhUVomhc7F3kIZb63cTWNI7gzCJlyi5sktrPMexez8IwQ==@vger.kernel.org, AJvYcCWl7MTm0Z2YiI0dHRxcOD3p26zfQ2roMND3XAc9Q8p0EZbY+LZWd713de40GTEgQ7U0OKh7LHcPcuI=@vger.kernel.org X-Gm-Message-State: AOJu0YzU/quLfqowcXNqwQzQgJBzu+mkHXmfoEzJyxabIZcBiOtyO4ce +T7hGL0hSRQwpRSDbLYWBTF/5eaKAdDnzmzIZypUNUN9E+dBp7MN X-Google-Smtp-Source: AGHT+IFc4fH2nFu3QAZU4F1o0SdC90vp2m1DHboqB5mKYnsNIFLa42id2xQG61BHJUBbQdTvtRNy/A== X-Received: by 2002:aa7:88cd:0:b0:718:dd1e:de1a with SMTP id d2e1a72fcca58-71936b42d60mr7958431b3a.28.1726291586345; Fri, 13 Sep 2024 22:26:26 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.26.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:26:26 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 16/22] arm64: dts: apple: Add A9 devices Date: Sat, 14 Sep 2024 13:17:25 +0800 Message-ID: <20240914052413.68177-20-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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 ++ 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 | 178 +++++++++++++++++++++ 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 | 19 +++ arch/arm64/boot/dts/apple/s800x-6s.dtsi | 52 ++++++ arch/arm64/boot/dts/apple/s800x-ipad5.dtsi | 46 ++++++ arch/arm64/boot/dts/apple/s800x-se.dtsi | 52 ++++++ 16 files changed, 507 insertions(+) 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/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..18488f71a5c8 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8000.dtsi @@ -0,0 +1,178 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple S8000 "A9 (Samsung)" 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; + }; + + 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"; + }; + }; + + 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"; + }; + }; + + memory@800000000 { + device_type = "memory"; + reg = <0x8 0 0 0>; /* To be filled by loader */ + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* + * The bootloader reserves a region for the (varying-address, depending + * on what FW your device runs AND model) framebuffer under this node. + */ + }; + + 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..52094a634678 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8003.dtsi @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple S8003 "A9 (TSMC)" SoC + * + * 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..b5610258da25 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s800x-6s.dtsi @@ -0,0 +1,52 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 6s / 6S Plus common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#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 = ; + }; + }; +}; + +&serial0 { + status = "okay"; +}; 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..a831131f16f3 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s800x-ipad5.dtsi @@ -0,0 +1,46 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad 5 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 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 = ; + }; + }; +}; + +&serial0 { + status = "okay"; +}; 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..3699114188a8 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s800x-se.dtsi @@ -0,0 +1,52 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone SE common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#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 = ; + }; + }; +}; + +&serial0 { + status = "okay"; +}; From patchwork Sat Sep 14 05:17:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 828785 Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com [209.85.210.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 B6005189BA8; Sat, 14 Sep 2024 05:26:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291593; cv=none; b=e2VYAZOXOffdV3lRZ/E6AFyGCd1VjI8BsYpG01ql8EBHtczmIV8dptnNV47t6ymRjK82Qo/HxuO6GciK5OXZKAzp5W6y1pS+I8zDXSfLr5OODkShp3J4Mf3rJrMV8QTHvROImwFpARrCdcgS89ebmHXbe91hDvkk+NTAX9UCnP4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291593; c=relaxed/simple; bh=TAT79Xnzl1oNNV5FROigdgNXLb2Cybp4CLgUCT939cw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JnF7gLPEog15nSFFcs5InvdsCZbKv+vhwV75swgZ8EPeeik0APP9kcUuPG4xezj2k+tpZLTENYxd53t1GNFkLzzJf9tnTv9XyTaLeJjQMjzNilCnqQ+O047WvdtlITs6NuTat5si0FsGQVCrTVwRj6VQ8DilhloeVY74ulAk+X0= 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=Gwq/M2xH; arc=none smtp.client-ip=209.85.210.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="Gwq/M2xH" Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-7191df6b5f5so2072426b3a.0; Fri, 13 Sep 2024 22:26:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291591; x=1726896391; 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=zyWUpX9SDl0pBa3ZzU7qUw9/ZE6s9qUhKf2MUIrA7EE=; b=Gwq/M2xH1+I6A+0LIt6vAI25WuVCfxzSTWwFVK8SmdrI2Dj2v+DuuIOlX03ra/G5Za Y9fas7Y4kpiVLJgEYdla4IgfXVGJ8jBbN8xP+sV2M0hV+uaZvXaxn4WdJaBEvd0tff4D i/E2991zbviB4sDafIIXlP80/pISzwuYrZqtRs4aIIdnTYomKCXCF1ifXF7uGxSj3OB9 3omerWfFOCGswrogcN4E+W29LdA0ih8eO9869Y1AhuF+wCdYYbzZU7snWy6cDnPwZHRL XIeEQTZBG9jLc+e7Z/N1hRuC/90z8IoHA7SBaiA/v5IJjVGEdG1uBBxwg8t0ZIHqS4bq H0mw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291591; x=1726896391; 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=zyWUpX9SDl0pBa3ZzU7qUw9/ZE6s9qUhKf2MUIrA7EE=; b=PWcTWkKE4qb+lZUk4AYS5rdnpPvjsTuId1owtwIhGJ7QjG0SFnB28ZyYrQMXZPIcJ+ /7l7h9FD8jnR6CIk107Zzt4jHz4XjntDPaE+xfNRCgR/tfFsjDmbNtkrDQe8T1ms9wVs ej5/2ovqIXYxeCnRHjGKZhB1Bz3jnz/nZoYz1GctepIen5/nZjfvnTr8EytGiK6XsLbC 21UpZ9JCzaKusfo0ndb/o8WdjKlbUa/nwXO+NNS3goP+JArF3364TSpgHIucP2TC4bGW 71FScldIM2rVxTv8mg2TAyc9ZWtgeSGmDYcjWW1r2r5ZSH60213Plxg7clbBoElypKAO 638g== X-Forwarded-Encrypted: i=1; AJvYcCUAdAKYykIIJikVvCrzertPpB6EihwrmaZ5hJnBowTxkB0Mpn1eDEbje3/9gtWmfLa/+jyGTxshEfZLYw==@vger.kernel.org, AJvYcCUjuDfxlOJedaOWKX22uHviAHfSC1C66YKXmX6ysH5wlleSIGqAKhjfaHkRFoTIDdZux8uljV2syFNWPGFG@vger.kernel.org, AJvYcCX8mSJ9eEtLYE9uRBBxAn9Skb/ylYDKPnqhkUmJs7onjr5KMXhO1chRGxGNCCXKzHTvuymu66mpIHdr@vger.kernel.org, AJvYcCXO48SqRJvPFTdgcoyqVtCYu4RJRy4gzQmT9quBPJJQHN0nXxW2y20BxIgCKGIFlnnCAyRmx2XDm+07d3Zepm4=@vger.kernel.org, AJvYcCXUJ4CKyrYSCfS828uzVgSBOwp98sjh89aeS28sIgWlaef7NwHCuUh3pVZM/6ETjDHL8t9KUYvMuC4=@vger.kernel.org X-Gm-Message-State: AOJu0YwVD5hNrlO/9CX0UzdG+yIEm5OyJqhGHLyHqq7pByTWfKomhKcB iwdY7WvElkMmksyqOg26xjGqXeTNwrfvfR94Qb/ks9z+1HZ592/O X-Google-Smtp-Source: AGHT+IH3zVd0MsQtVAn28PYAWgvpDdnfz+2GfTFH0wyaRF7ncUJEboGdbAtP0fEa7OuBSXI9Ga3vBQ== X-Received: by 2002:a05:6a00:2196:b0:717:9768:a4f0 with SMTP id d2e1a72fcca58-71925f9d846mr15037094b3a.0.1726291590786; Fri, 13 Sep 2024 22:26:30 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.26.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:26:30 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 17/22] arm64: dts: apple: Add A9X devices Date: Sat, 14 Sep 2024 13:17:26 +0800 Message-ID: <20240914052413.68177-21-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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-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 | 47 +++++++ arch/arm64/boot/dts/apple/s8001.dtsi | 167 +++++++++++++++++++++++ 7 files changed, 274 insertions(+) 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-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..214fbbcf66fd --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8001-pro.dtsi @@ -0,0 +1,47 @@ +// 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 + +/ { + 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 = ; + }; + }; +}; + +&serial0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/apple/s8001.dtsi b/arch/arm64/boot/dts/apple/s8001.dtsi new file mode 100644 index 000000000000..ab22d7948f62 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8001.dtsi @@ -0,0 +1,167 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple S8001 "A9X" 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; + }; + + 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"; + }; + }; + + 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"; + }; + }; + + memory@800000000 { + device_type = "memory"; + reg = <0x8 0 0 0>; /* To be filled in by loader */ + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* + * The bootloader reserves a region for the (varying-address, depending + * on what FW your device runs AND model) framebuffer under this node. + */ + }; + + 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 Sat Sep 14 05:17:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 829187 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.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 2B9CB18BC03; Sat, 14 Sep 2024 05:26:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291598; cv=none; b=TvAABp3Yj/z+e4Y9ozXA6bcGuijHbCs9xTr4vJ9P4P1zXyYAMuvPPuLvZo7W9gQgh/SaMW+w/Lnkm+H8YwD4FgkmX0wcjLmnKdC5ja/bbW3E290VOArq4BGgIj8eEejWDIj2T+vFZmuVYIpwzy0XZqXWQdROpNQFnEYglxHCwx8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291598; c=relaxed/simple; bh=m2QzIrGzRuHMxOcxEBLPNwkSdM7Gpz3WIeQMAH0o1Eg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EGa0HjkQOzOnXL7WviGJD39JqxdY7l7hK/q5NWbRVLzIJ+8Ij8/CQ3J3A+GUcQvyuhGvfpr+IF/rme/4AEk2b+fhY8OHfhmAOMAmKRbnAFtc4N3hN27vTErsoZE9cosjyzuzLoCHTsG6+q7OG6BmEVRZVFHwcGdW+U+KqdI+/7o= 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=kjTM/vlp; arc=none smtp.client-ip=209.85.210.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="kjTM/vlp" Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-7179802b8fcso1191148b3a.1; Fri, 13 Sep 2024 22:26:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291595; x=1726896395; 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=BrlmhLHoFiV6dzphr3jDKtj7YwSTdFgGGEDOhLPKMgc=; b=kjTM/vlpkUDmpWAqN6SmP9f3Z8eyu0FzZhh54/DqauqT+UD1E4wVClapHOs+/NIxk5 +9tWZwOqAm9RqZ0eTVv+UgC/F9MVvX1YIdIG28gTfiSe4ySvghyvAIZcgf/jZBCTPx7k OaiLSmzpCSjXqgdmdHm7H6MOA98IUWPb1mMvTB+6OE9zE9G/dkoaB+33F3HAIg6F8pcL 3B8ND/fg4HEdMP4Do98Z1TW2SrYJSh7q2h39go482d1mFMEPBJ1kYlx93v59+SfKHiCL UiKwo/ApMVu8WtmYNV8Dt7M0Vxbsd9phULof8p0/JBULaFM9ocbiLvhCRolDJ3xup7is b7Kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291595; x=1726896395; 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=BrlmhLHoFiV6dzphr3jDKtj7YwSTdFgGGEDOhLPKMgc=; b=R9KViubj3aOD9Eo7PYNLgJkeyBto/lcY6NUcjaNGmzFD0jhM0FExMcAWVY3uiHeLr4 ZiJzL/3hPoavBr0c+x019sEDQUY+ygDu/UhB2+kcw1Z4onnk2wLxCVZlNk0J8AsB1j0F mcciCaGHEJQF0DaSLYNdY8+hNM4MI/HEoTO/zuKOw2NUi6HYFm7SDCP3A1nijQnh/uKT JWfbtzt5OyKyDjX2gkn6qaE5vny+wVTO09pboVl4xKnYthUt5Q9SmCzvfVAK80Kgm2GG fyITHlvi7DbKxYRCwG0lSETdASKI+RXJFX8Kx6ZL4RxeZ5sHj08H3yp7lSdPwKzCP6YL HXwQ== X-Forwarded-Encrypted: i=1; AJvYcCU6465Dw6aCZm8n7XWDQrU4vBjurIurglCUTcRdyaKAWcigoxuYGAO5ee/u029NZcmmWu/nNKFnIkU=@vger.kernel.org, AJvYcCUb4yTPoit4Rwd0yg8bNz9cFknitmFtGtwamBWB5XfmNtN4wolfg8+/u4FMXFIwmWCfYx8cfp6SDxphpq4k@vger.kernel.org, AJvYcCV9lOmFukYTkJzHzu2X/8nXTpFCGgglvClZaK9+exzC6pzEoMA5PsBTS6Ich7q3J2mBAGTmYXpNHEemeDyTtO8=@vger.kernel.org, AJvYcCX1j6ZhiIZ2EwAGpllFYEXIPhHXB0nH8WXpiPTUKMcn4MfPpBhKNUTFSKgUw3QPNh5YTwE6cqi9IDHFOQ==@vger.kernel.org, AJvYcCXAINA+qlc8U3o0LUOP4LR9desXAWb76zywkOxFBVCBHER7/tO9FMC7AJneBnHvKYhV7Iu5NoTApTth@vger.kernel.org X-Gm-Message-State: AOJu0Yzbi3Ai2c6BVupusFq5+010brgs0Iw64crSf1ZssbC6rwR1T9Wr 3TtLLAGgXbOoYFe5YMPccntQ/RP3dO2zKDW0GLTgFkEdIJT4f99/ X-Google-Smtp-Source: AGHT+IGZYalmuGqDEiFN2RhkaNvR3CBf2FJwGm6pXUoIeTx0zwnE0238uwjOM9fYkFHMgO0BS2ZdWg== X-Received: by 2002:a05:6a00:3d44:b0:714:1c0e:1336 with SMTP id d2e1a72fcca58-71936a2f7d0mr7728323b3a.4.1726291595327; Fri, 13 Sep 2024 22:26:35 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.26.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:26:34 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 18/22] arm64: dts: apple: Add A10 devices Date: Sat, 14 Sep 2024 13:17:27 +0800 Message-ID: <20240914052413.68177-22-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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 iPod Touch 7 only supports up to 1.64 GHz, so it includes t8010.dtsi directly, and other devices will include t8010-fast.dtsi. 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 | 47 ++++++ 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-fast.dtsi | 8 + arch/arm64/boot/dts/apple/t8010-ipad6.dtsi | 47 ++++++ arch/arm64/boot/dts/apple/t8010-ipad7.dtsi | 15 ++ 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 | 50 ++++++ arch/arm64/boot/dts/apple/t8010.dtsi | 167 +++++++++++++++++++++ 15 files changed, 455 insertions(+) create mode 100644 arch/arm64/boot/dts/apple/t8010-7.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-fast.dtsi 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..965c5be262d2 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-7.dtsi @@ -0,0 +1,47 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 7 / 7 Plus common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t8010-fast.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 = ; + }; + }; +}; + + +&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-fast.dtsi b/arch/arm64/boot/dts/apple/t8010-fast.dtsi new file mode 100644 index 000000000000..4bdf1c3eccfe --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-fast.dtsi @@ -0,0 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Apple T8010 "A10" common device tree for non-iPod touch 7 devices + * + * Copyright (c) 2024, Nick Chan + */ + +#include "t8010.dtsi" 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..d2ca19466d5e --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-ipad6.dtsi @@ -0,0 +1,47 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad 6 common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t8010-fast.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 = ; + }; + }; +}; + +&serial0 { + status = "okay"; +}; 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..3ff93a2b5b37 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-ipad7.dtsi @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad 7 common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t8010-fast.dtsi" + +/* + * 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..94b67bf5cf64 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-n112.dts @@ -0,0 +1,50 @@ +// 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 + +/ { + 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 = ; + }; + }; +}; + +&serial0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/apple/t8010.dtsi b/arch/arm64/boot/dts/apple/t8010.dtsi new file mode 100644 index 000000000000..926a0f501477 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010.dtsi @@ -0,0 +1,167 @@ +// SPDX-License-Identifier: GPL-2.0 OR MIT +/* + * Apple T8010 "A10" 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; + }; + + 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"; + }; + }; + + 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"; + }; + }; + + memory@800000000 { + device_type = "memory"; + reg = <0x8 0 0 0>; /* To be filled by loader */ + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* + * The bootloader reserves a region for the (varying-address, depending + * on what FW your device runs AND model) framebuffer under this node. + */ + }; + + 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 Sat Sep 14 05:17:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 828784 Received: from mail-pf1-f177.google.com (mail-pf1-f177.google.com [209.85.210.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 85F5818DF78; Sat, 14 Sep 2024 05:26:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291602; cv=none; b=f9/FM4J06wFyTscKu33AShSuPuo7s/T36wT7Lt8+/95Fhp9Y+Dd65eKA9pcKOY+rOJcA3/CDxXbJfWT6MMkul5Kkweu1nn+Q7jpUJApPfsauHDfE9TaSIIL+WydQA0bvXtY5ZXpHWhpDnrGsGcWilDXezuUmg4Mxd5hLIC4yyR4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291602; c=relaxed/simple; bh=J5SEPolgAawSH5c+wA7Z9Ao9L7d2oXkDAmd1T2EK/Cs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kpgcwUn8udlNIIhKSyI/7XIdNoQXUNhf9uZuTvzUksGptdwux90nX6LXI+HIleic06i1YHT8IR5R1s8drfJcucUs65UHRj/i8bVGJSZIgzqThvrKDdC46yvV00VvIKmDwv+kn4y8uZoJSN7yDyA7ntRZzGkcPiL/MtxWn1EXGOk= 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=U86bhICt; arc=none smtp.client-ip=209.85.210.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="U86bhICt" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-718e3c98b5aso1955234b3a.0; Fri, 13 Sep 2024 22:26:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291600; x=1726896400; 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=rfUOSGh3pPERF4l//XzS1dlj9PxGJ9eyoQTy2F1aJ0g=; b=U86bhICtczX0lRXE9kb9oP9sRNDef2yZGV6xArdy08a2rD+eID8BfPBaiMT48e3iH1 09t+R1i8qQOhmBetgR1YKzgw2miBLSPnnF/xRdFbeRuQkR1i6v65r2hEimBr0g3/JTuX Xf0kHFWhsv5vwxNgL6E87Gbmlv2gVGiq8JtYvcLDz+yyoOmUcwhxkudjBvCdC/HCUhb5 tfqiMPrkFBBe31Uy6XIk6JnUxY4B82abgk6frqhVW95UNHA25mdbk6z/D9Z+ybJfaiPD MCh4qjzB09+/hUBPOigE1klagYypGatZglX67WsMKtGZTyIeUo4cXZabHwfCAemLWDoE ZoEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291600; x=1726896400; 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=rfUOSGh3pPERF4l//XzS1dlj9PxGJ9eyoQTy2F1aJ0g=; b=ETrdLtTU4CMljoa3TzWbQfAcYN+aWK/6I3lxSKDK6G6RjxLZOCRw12fJYJinvUlPAc ruzd472kHC44TtfHJOMoNTlO9WvkzZH8Br1CHCUlhWHn0rc9ivA2UvQEwgatEo0HK4uM NqP9V+t68cu9BrQioiWz9lVcATdlhGZk0nB8FXZM7qpI3u8tS0+jgTMfOD5HGzEYXcV9 Pi/T0IGN1TwBwang5Zzd2JME54mc8E5P+An44gX7moQb/Z+j0eJaemM+g5XJM5YR8x6V 8Dg4TL/OjZ17l/C89PFRv9PRIwEZHYQ6XCTh61dF2Jj9jo5oUyT7bUDEDumYhGyNppfB Ghqg== X-Forwarded-Encrypted: i=1; AJvYcCV8bDd9GykHL1gRVRabqNt5GDnkacy/Mf+iA5o0k2cHvfFcfhV8ORcYCYgW4Umi8I9NnQnLUpwEBepjEw==@vger.kernel.org, AJvYcCViIbIo8EDir7Yr5QOB9buMzNfjiKG+KTI5JDN1pUvS7spNcEMfrVVzqfaoOghWIt2PlVkbD9O9nFM=@vger.kernel.org, AJvYcCVzxBqoHHVWCfMP4BSxnFPIzPWeHZ95/4TJhs0DBt8Of0Lb6BExND4qkaw+wvLCt2LC2KlGJoZpAKLLIos3npE=@vger.kernel.org, AJvYcCWPbfTIte26aT2b113j2Q7knTs4QHMI9fXN7hCUHM2z5qwf6tlDlf5ZagAnV+47bHDweMsZT9dmwez92qog@vger.kernel.org, AJvYcCXmwU2TX6qQ1iuEWoONSxVc/XdeMBtwUBa19Qr+bZOtK/LWc7b0d/cAQMXwbE2GgzNt1NPKQ6YGTldO@vger.kernel.org X-Gm-Message-State: AOJu0Yxs5f48lHduah9wFTA10ZKNWsKVyR3fFaICxZ7Les32VhKwv7NF G8MtstDa8JNDW9yZtrTHbCaN0F+Atg2qzloDzAzcAKna6fZ0JRN1 X-Google-Smtp-Source: AGHT+IGmcyY6AiotQBF3f9115zd9WAeL32fGNaZR6nVdcf6H/eYi4goidhnFsYMdxZhVQ9S9l0QtZw== X-Received: by 2002:a05:6a00:993:b0:714:157a:bfc7 with SMTP id d2e1a72fcca58-71926084bb4mr12739699b3a.15.1726291599783; Fri, 13 Sep 2024 22:26:39 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.26.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:26:39 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 19/22] arm64: dts: apple: Add A10X devices Date: Sat, 14 Sep 2024 13:17:28 +0800 Message-ID: <20240914052413.68177-23-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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-j105a.dts | 15 ++ arch/arm64/boot/dts/apple/t8011-j120.dts | 14 ++ arch/arm64/boot/dts/apple/t8011-j121.dts | 14 ++ arch/arm64/boot/dts/apple/t8011-j207.dts | 14 ++ arch/arm64/boot/dts/apple/t8011-j208.dts | 14 ++ arch/arm64/boot/dts/apple/t8011-pro2.dtsi | 47 ++++++ arch/arm64/boot/dts/apple/t8011.dtsi | 175 ++++++++++++++++++++++ 8 files changed, 298 insertions(+) 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-j105a.dts b/arch/arm64/boot/dts/apple/t8011-j105a.dts new file mode 100644 index 000000000000..4efd02725963 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8011-j105a.dts @@ -0,0 +1,15 @@ +// 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" + +/ { + 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..a620d8aaf468 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8011-j120.dts @@ -0,0 +1,14 @@ +// 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-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..dfec25f7d54a --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8011-j121.dts @@ -0,0 +1,14 @@ +// 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-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..12582bfe7532 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8011-j207.dts @@ -0,0 +1,14 @@ +// 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-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..c0cd18e0ab18 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8011-j208.dts @@ -0,0 +1,14 @@ +// 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-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..9f681dd9d463 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8011-pro2.dtsi @@ -0,0 +1,47 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Pro 2 common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t8011.dtsi" +#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 = ; + }; + }; +}; + +&serial0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/apple/t8011.dtsi b/arch/arm64/boot/dts/apple/t8011.dtsi new file mode 100644 index 000000000000..e9f7d54893fe --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8011.dtsi @@ -0,0 +1,175 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple T8011 "A10X" 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; + }; + + 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"; + }; + }; + + 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"; + }; + }; + + memory@800000000 { + device_type = "memory"; + reg = <0x8 0 0 0>; /* To be filled by loader */ + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* + * The bootloader reserves a region for the (varying-address, depending + * on what FW your device runs AND model) framebuffer under this node. + */ + }; + + 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 Sat Sep 14 05:17:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 829186 Received: from mail-pf1-f170.google.com (mail-pf1-f170.google.com [209.85.210.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 1169E1917EB; Sat, 14 Sep 2024 05:26:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.170 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291607; cv=none; b=GECAnuM2LMWzhO8d7L72o/eXnshEPk4RLYCo87XmZt+M6+Nwb5PEvNTp76AzmZYC3BxCN0OaLzW8uLzZulo/UJX9j9os4cu0Krs5/JJxm6YvAU6StzvdrRQjQxk+jC5A/BqJHabaJ8+7kjrLDG54Oe9esag02ku80M6cr2YqB7g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291607; c=relaxed/simple; bh=mFgvftaGnVbdyUEh6fWIh4kiRHpXmHrqXxy1gX4I7GY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hTx8rmrCdBWi5tFi458JFDMf91aN0YjC+BZ1RSvyrongpdqf95Lktk2ZE0l2XBcGk72R8ZrquUNuV2lXbxCRYcaedNGTi9q3KYyMywuidzADYrigynhW6ZehViwWozQ2oUhiyS7ZNJMycN8deAdXOFbAsYyMfS8Qp8ljWcvvTxo= 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=LGGXyocR; arc=none smtp.client-ip=209.85.210.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="LGGXyocR" Received: by mail-pf1-f170.google.com with SMTP id d2e1a72fcca58-7193010d386so1431381b3a.1; Fri, 13 Sep 2024 22:26:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291604; x=1726896404; 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=fq4RZfe57hIURbF6pibrh7SFp8zpik0TAYz6XhgOjek=; b=LGGXyocREiPKc3zvYna/7jIQJzd6zc/dLHS/5u25T3NPVluQALj400mCoNTy5+eHHB r9UCk2SOgpv/TZgn4UJ/lqu4gTsH5eljmpDZeH3mdSZMelmsHb7rW1tumYa9qfaVXS0C JcbQOV1va23n2ObYNYr8GjmuBP21sW40yBetGdbnDXZbb/MbCnfC2kC73KqBgdgw+P1L JrOSxLcJjEK1p51+JscF0NLtjdGU0SUwjwNPo/9xzX/G5q7UrTIejg99h5fzecVnIO8z 38hDsdJfbIqvoXyi/3SvcKN/YxWJIi8z9NsQdnhO59LysAS6uM2LA6ncADeyCBJVM/9+ ckhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291604; x=1726896404; 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=fq4RZfe57hIURbF6pibrh7SFp8zpik0TAYz6XhgOjek=; b=pgXWGa/USImURqlZ9/tNMguDjw64FTl8wqbr7/F4d241GmApbndtXpni7iG+XyWV6O d6s4sQIj7/33MM8biF0SOgXrqBdv+B6lFqk1KILYKXshzsUxyRkGj+Nb8mEukheMii19 zEqYjppHEUTrSLu8fc9C56xCGN/VniElUWjZyA+aqIwNGorVSTRjLy3EXnUNnd/Yak4i yfKrZ5jbD61mVihL3whuYbElG8iYAJ80Z1GG4XB7AiBHTtXuLeujN1QnQWIIB8fepucJ nEluJDanGqrOQfjzgKI2Cm//+SdEei+vwaAAGZCBr4i1IihfPRnymn9lClEebykJf7En GIjg== X-Forwarded-Encrypted: i=1; AJvYcCUSdLusq/vxFa9A2Q5xsLgcD4Y1LJ4m7FqHqvUq6VwJrgpGhc5AA3sltU6nzAnky/auhJd4C9GEIicd@vger.kernel.org, AJvYcCUoxW84s4TKyZmsSMydqwg47xW5XM4G9t49HdPgEG8naPUS0QUStEOgXsOV6VzbJgCBFgYyIt+9vR4=@vger.kernel.org, AJvYcCUpWt+oxrpl8cqTwyaHwfzRvxkf2buothkMQ3XS3dmhv0DsaI/hK/Mrs7hC5GX6F5DeJTyiuana9p2FOoqxejU=@vger.kernel.org, AJvYcCWSCnKJidN0t+8IcAFDn83bZmJTeJe2ERwLYkBB7D47TkeR9oNc267ERkqqorf8p+r5Eakb0RvHC5bvLeHM@vger.kernel.org, AJvYcCX17W2TJEHdxY5d+JI7JmHwvVV97BL/QUTSuxNqW+73n1FuppKTLwHd9fO9OvvmxXw7hnTfiMx1pUy1UQ==@vger.kernel.org X-Gm-Message-State: AOJu0YyIk1UdSxTV+EKiKg6lo1mYbQ+UThUKst09sZ7VdXX6Y+7GRs2j xtj9hBD9KmpU+pRk7qFGcuDdib7SNsmgpFHY9kYcrwj+o4nUJVPwaH8Vm6C1 X-Google-Smtp-Source: AGHT+IHn/52TCnoNV4JqER392aTej4rv4JOHQ2cDbJYLITMr0WuAoFD2TJP4JqaOyTyZ0srWcDlJCg== X-Received: by 2002:a05:6a00:3d49:b0:717:81b3:4c6d with SMTP id d2e1a72fcca58-719366c58f6mr9969032b3a.0.1726291604316; Fri, 13 Sep 2024 22:26:44 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.26.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:26:43 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 20/22] arm64: dts: apple: Add A11 devices Date: Sat, 14 Sep 2024 13:17:29 +0800 Message-ID: <20240914052413.68177-24-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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 | 16 ++ arch/arm64/boot/dts/apple/t8015-8plus.dtsi | 9 + 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 | 16 ++ arch/arm64/boot/dts/apple/t8015.dtsi | 268 +++++++++++++++++++++ 11 files changed, 399 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-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..cac1d47285a1 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8015-8.dtsi @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 8 common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t8015.dtsi" + +/ { + chassis-type = "handset"; +}; + +&serial0 { + status = "okay"; +}; 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-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..afba4944656b --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8015-x.dtsi @@ -0,0 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone X common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t8015.dtsi" + +/ { + chassis-type = "handset"; +}; + +&serial0 { + status = "okay"; +}; diff --git a/arch/arm64/boot/dts/apple/t8015.dtsi b/arch/arm64/boot/dts/apple/t8015.dtsi new file mode 100644 index 000000000000..746acb86fff0 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8015.dtsi @@ -0,0 +1,268 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple T8015 "A11" 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; + }; + + 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"; + }; + }; + + 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"; + }; + }; + + memory@800000000 { + device_type = "memory"; + reg = <0x8 0 0 0>; /* To be filled by loader */ + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + /* + * The bootloader reserves a region for the (varying-address, depending + * on what FW your device runs AND model) framebuffer under this node. + */ + }; + + 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 + * suspeneded 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 Sat Sep 14 05:17:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 828783 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.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 78E4D13FD86; Sat, 14 Sep 2024 05:26:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291610; cv=none; b=up2g51iJoTNY23fyxhRWenWxOj/vqSLqQAw0YGrDq62CRR+EIuXQDuzSBXTAdsXoLFwIKRQu1NrEkZGqOmlWD/Ukx8vg+qHoVCQAmFNwfTVUIVDDXUfbpz88DxP1jo/Myx4C+d7DSzrlnqZGRul7xu/St+eCEZ8tw3sttiX2IM0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291610; c=relaxed/simple; bh=O9df5+TSRybPNiuNQanFRa62ra8ncH90COzkNiwx+1s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VoYx3QDv/Qti5RbKeTEWhH3wsKs2NZS2UxmY4K9z8NU2SM/PPbfeIuIGNaOG8rA3PUhpFy+dNt/sdAwY4ikP9SzAheDE2QQbSL2yZpySIeX0nPIFoSNMrk2oPUoMeg+fLMDqO35PJiRFahrPL9Jl8faAkBracvgaGs37g4mOxeI= 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=X4cYGlvh; arc=none smtp.client-ip=209.85.210.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="X4cYGlvh" Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-718f28f77f4so2684191b3a.1; Fri, 13 Sep 2024 22:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291609; x=1726896409; 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=5AQMnRi88w3YJGkg7kJQI9DF/T3uyFlZ2NbTuH1k+hk=; b=X4cYGlvhSeiSAAQrgmJT8JXz/sNm+8ZTMTDeYGBVOKtRN/HjMRH3jmVWjMaqT210Nv UFQRqqqm165Z2u/nQJXb91Fi9ZJA7vEmQDK53iZOr8yDkZwULGdEGBuxE25fNPYdLzuj nj7oTgVCIeJBG6K2mAxLzlAsdA4maikinrBFFlk6+OvvskJsrYqiK7EK/zoek9fqZx6r 3dmdLkj7VU1/RGiRoKvbQ/ccJte+lUigTQgvnsRXSf2ASFTUk0qKyGYim4keOCq9HjR3 8a4ga+fJjQWrjaFrVfMdhQ0y3HI5bKNQkNCFkPAHpS0Bx1VSfOAMp+pJUQwsrpKCJLQ8 gOKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291609; x=1726896409; 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=5AQMnRi88w3YJGkg7kJQI9DF/T3uyFlZ2NbTuH1k+hk=; b=N93AJbxNWHqB+QJIWXHRs6QS7UESMj6mpU2RYgwuir8Wce5elWKiGTRkRDuAdeVNL9 Qj8VqZJdc3J4UzRWEzQJhwN30AgAfiVWRve1kHoAkePOIKY994ndjtrqNCocqoxCB6oH b9tSb4YJtabW7zaEyPchMrQx03ShxJB33ThFxiNmr57dpE+OGQdsBZdycbt72vDn/w9+ LK3t+oWebinMusfjV5Un1XdL7bqeoinL2hEgg0USxOFF+qY3ourT1DPi9VOV2LMVm01f tRHDwb5cmDs868ea916Sdpc/5wUlSL/MFI0LI359abH+hHYpVsQwBQz3Pwe54o5coN6Z 56zQ== X-Forwarded-Encrypted: i=1; AJvYcCUr1wNiod3h11NuqoBkF/IBCxn3hN/2VctZ2eCs/Nir0+MgXKse+V8DHRb5wJwrV4uaclNAdKz+2sntHV5q@vger.kernel.org, AJvYcCV+y8tNye8zG2UomeiC3y60ke6lUGcq55MqddVMThgCDUbn/BK6g3YJ8FVNnUzLXeK9OnL294uxQ7I=@vger.kernel.org, AJvYcCVXH26aIbsKfKVTyKkWdscyW7kKiDepcfOkUleQOOMoTwIOSAR1YRvugEH20pEPhFmnGqE6muh1+10Heg==@vger.kernel.org, AJvYcCVuYqOLT7jR9s0bgef5JVLknAk3jeILf866ATw+3CGV59+qCBdy2vVUXSXmAyxUSNsb1FB3Yrn1ugyXp3+e9xM=@vger.kernel.org, AJvYcCW7+1PULva09ENGJHwl/aQauueNuFAAzbUv7xY8OS1K6lwyGBu+N3fwpULS43fS1/RVrSyIShffMhvU@vger.kernel.org X-Gm-Message-State: AOJu0YyEv3ZryWzgEcM1BG/xcEPzm5dkDrglqOGWgDVaBHLUHI6COA7o 72zu/raDns1+s/qUTmKoYtNFi2kI3jeXfZfCOdznC0MKACg7KpVy X-Google-Smtp-Source: AGHT+IFMRPU/3Z90LPpdnqu9q34twD0zYSR3G2hw/Ma3NwF31nSjcXiEJ15u+KKYtsfVxWPwtkotag== X-Received: by 2002:aa7:888e:0:b0:717:8aaf:43be with SMTP id d2e1a72fcca58-71925fa9081mr16090951b3a.0.1726291608743; Fri, 13 Sep 2024 22:26:48 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.26.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:26:48 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 21/22] arm64: dts: apple: t8010: Add cpufreq nodes Date: Sat, 14 Sep 2024 13:17:30 +0800 Message-ID: <20240914052413.68177-25-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add cpufreq nodes for the A10 SoC. The Apple iPod touch 7 can only go up to 1.64 GHz, so the higher operating points are in t8010-fast.dtsi. A10 consists of logical cores that switches between E-mode and P-mode depending on the current p-state. Each mode have different capacities so the E-mode frequencies are adjusted to make performance scale linearly with clock speed. Signed-off-by: Nick Chan --- arch/arm64/boot/dts/apple/t8010-fast.dtsi | 22 ++++++++ arch/arm64/boot/dts/apple/t8010.dtsi | 67 +++++++++++++++++++++++ 2 files changed, 89 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t8010-fast.dtsi b/arch/arm64/boot/dts/apple/t8010-fast.dtsi index 4bdf1c3eccfe..b5a2c78ca9e9 100644 --- a/arch/arm64/boot/dts/apple/t8010-fast.dtsi +++ b/arch/arm64/boot/dts/apple/t8010-fast.dtsi @@ -6,3 +6,25 @@ */ #include "t8010.dtsi" + +/ { + opp: opp-table { + opp08 { + opp-hz = /bits/ 64 <1944000000>; + opp-level = <8>; + opp-microvolt = <816000>; + }; + + opp09 { + opp-hz = /bits/ 64 <2244000000>; + opp-level = <9>; + opp-microvolt = <922000>; + }; + + opp10 { + opp-hz = /bits/ 64 <2340000000>; + opp-level = <10>; + opp-microvolt = <922000>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t8010.dtsi b/arch/arm64/boot/dts/apple/t8010.dtsi index 926a0f501477..e27d2b5e3df1 100644 --- a/arch/arm64/boot/dts/apple/t8010.dtsi +++ b/arch/arm64/boot/dts/apple/t8010.dtsi @@ -50,6 +50,8 @@ cpu0: cpu@0 { compatible = "apple,hurricane-zephyr"; reg = <0x0 0x0>; cpu-release-addr = <0 0>; /* To be filled by loader */ + operating-points-v2 = <&opp>; + performance-domains = <&cpufreq>; enable-method = "spin-table"; device_type = "cpu"; }; @@ -58,11 +60,70 @@ cpu1: cpu@1 { compatible = "apple,hurricane-zephyr"; reg = <0x0 0x1>; cpu-release-addr = <0 0>; /* To be filled by loader */ + operating-points-v2 = <&opp>; + performance-domains = <&cpufreq>; enable-method = "spin-table"; device_type = "cpu"; }; }; + opp: opp-table { + compatible = "operating-points-v2"; + + /* + * The E-core frequencies are adjusted so performance scales + * linearly with reported clock speed. + */ + + opp01 { + opp-hz = /bits/ 64 <149000000>; /* 396 MHz, E-core */ + opp-level = <1>; + opp-microvolt = <525000>; + }; + + opp02 { + opp-hz = /bits/ 64 <275000000>; /* 732 MHz, E-core */ + opp-level = <2>; + opp-microvolt = <541000>; + }; + + opp03 { + opp-hz = /bits/ 64 <410000000>; /* 1092 MHz, E-core */ + opp-level = <3>; + opp-microvolt = <603000>; + }; + + /* The following operating points are handled by the P-cores */ + opp04 { + opp-hz = /bits/ 64 <756000000>; + opp-level = <4>; + opp-microvolt = <559000>; + }; + + opp05 { + opp-hz = /bits/ 64 <1056000000>; + opp-level = <5>; + opp-microvolt = <609000>; + }; + + opp06 { + opp-hz = /bits/ 64 <1356000000>; + opp-level = <6>; + opp-microvolt = <650000>; + }; + + opp07 { + opp-hz = /bits/ 64 <1644000000>; + opp-level = <7>; + opp-microvolt = <725000>; + }; + + /* + * The iPod touch 7 supports up to 1.6 GHz, faster operating + * points for other devices are in t8010-fast.dtsi + */ + }; + memory@800000000 { device_type = "memory"; reg = <0x8 0 0 0>; /* To be filled by loader */ @@ -86,6 +147,12 @@ soc { nonposted-mmio; ranges; + cpufreq: performance-controller@202f20000 { + compatible = "apple,t8010-cluster-cpufreq", "apple,t8103-cluster-cpufreq", "apple,cluster-cpufreq"; + reg = <0x2 0x2f20000 0 0x1000>; + #performance-domain-cells = <0>; + }; + serial0: serial@20a0c0000 { compatible = "apple,s5l-uart"; reg = <0x2 0x0a0c0000 0x0 0x4000>; From patchwork Sat Sep 14 05:17:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 829185 Received: from mail-pg1-f182.google.com (mail-pg1-f182.google.com [209.85.215.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 F0747192B63; Sat, 14 Sep 2024 05:26:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291615; cv=none; b=OGHxk8unUQJsQmSTZfreskCCMAeqIz5pVPpoMOwITeu35QDdpDBceF1Z+D6vn9tToH/Q8CFOqFKk4860fMIxpvpfUt8uIRLpZKwcE5BWr8bCvdAkwe1foa9I6Obw5ERt420rmTrJ1OrtZ5HFx0zasfAGc2UI31k/TFEdY61Fkjw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726291615; c=relaxed/simple; bh=IlwfpKeYG1A6lmRpl2J8Js+0dUrkM33rNMIVVPeLcso=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EBcUY/5w7sO44ZjcpBsHXI+Prl7lJGWLmTsOQBQ8qicKuZ5VlAmDSBB2BNo7kdZJDU2YfsIpE3pgy4E/BY1GRjfuHhn41OIHccHbO+pU7KFz/4AgEJl/AZnG0rj2tVtk/aYw/jKsw2uwXzxmkrVfKQfYwV5hoTYpJWxxgIdBE58= 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=cqxSHtIM; arc=none smtp.client-ip=209.85.215.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="cqxSHtIM" Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-7163489149eso1246518a12.1; Fri, 13 Sep 2024 22:26:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726291613; x=1726896413; 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=Zy0C2tn+S+ad9UGMaUozuLH5nIPIOY9VH2lYfYG3DPM=; b=cqxSHtIMhW3IZ0I25qq7R1PMrSYWmTnVo0QCXF8KJ5FKBLHoSReJQldWHt9OertdIE D2IBeh/8ILTYMVbO8+GtaKrzbJhXn9xt3GJNjMziJNM8OIoHiHWwefxdFBV+ExXoUJNn SFelCNyQERnotstjdU6pYA6bXHPno3qgwsrbEMWWNhJ5qG9YfqFdjNBw65JfMxNrGuJJ UPnRWxBJJzTI7ZJbgsqteFyFwBtrR8R3bQqtGkCTk46xh9Tv/TqGxXkk7qUBwwdq3Bti 4S64DZ39NHlK3EXxHYa987H2n3oV69kyVil1u8DOrFxwaOrH7UjZJWoHhitAhGKwlkho EgMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726291613; x=1726896413; 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=Zy0C2tn+S+ad9UGMaUozuLH5nIPIOY9VH2lYfYG3DPM=; b=kCBNFu/w/uEziYq4IknJwP62nbwAsWakN0aL+B9T1PWa1WXHoX0HInrQKj/fsL900e RLHYXn5NueiS4sMVEiL0sknjzqkPyfcAOJmtwygXGalGGa7wJSpehcDpNO/U02PwUpud kzOuCr/b0iPIRlW6yIg7VULV3Vie9OBwTjwq7C+sROSxdwA36Vr37YsjoK6sXkyeJAdR dDVdt7V+x0brhhiSKSgWT1ucIK9IeDujjUFikdbxJ7enE9JwqjPusNvAgsNOKpOj6+D9 Ewiz2iS2GNy9FnfUDQ3m2/FlLgPpzxrCESVtzQbE1+kvkXd8M0lwBx8doqdhaT8B2Z7t LbKQ== X-Forwarded-Encrypted: i=1; AJvYcCVJafuLksu6Ctf6f9z724q+faK5PB1D8jiQ8XKA4ICp36wml5+I2VVdKvWY+vYyCjIwI+iYNyHKZwhMiw==@vger.kernel.org, AJvYcCVjGUcXhT2V3up8xfZWTNyy8EXwN50VcXc0cRxqXdNt7t8CGRQb2eY8rr1urr/RyxmCcWHFeRAfeesElzSVJXY=@vger.kernel.org, AJvYcCW5RmPd75dbWWqNq6bNRgWQ+KnJQIQvNlI1tRe+l6avrqGcA6h3Nn5jkUyx3/h8NOKBcoLfcj2E5/D/nBWJ@vger.kernel.org, AJvYcCWP2AC4HeaWvNY0S+jLy89QxVPIgp36gUVxex675safx3GdW8mM6I4ELfjZTLK7ekTfGzPsLA3HM5I=@vger.kernel.org, AJvYcCXcwNndotA88rzbmoBg+skaEz4I8FgAU0bPGY0ngp52eklShzbEUbInjLTPB8zwS/pbJ/jKp5ygYMqf@vger.kernel.org X-Gm-Message-State: AOJu0YzESYxVdTK9kcgvpPKJNFxCbUlr5IvJW8NDjKf9e/VkiL1Txw2T KI3B/KkOsLEuj2atX9ANoUiM05oKaWusIi7/klK62f4cUI9dEkye X-Google-Smtp-Source: AGHT+IFAx3i0hnBuicVE8YdLzp74NzUBOGZMK0WvmVsGZX4ALFKO/gW3JhnXQICFiSDi3OGKhSwvZQ== X-Received: by 2002:a05:6a20:7b26:b0:1d1:17c6:7a38 with SMTP id adf61e73a8af0-1d117c67a9emr4578281637.9.1726291613169; Fri, 13 Sep 2024 22:26:53 -0700 (PDT) Received: from localhost.localdomain ([59.188.211.160]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71944b7b749sm391223b3a.113.2024.09.13.22.26.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2024 22:26:52 -0700 (PDT) From: Nick Chan To: Hector Martin , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Rafael J . Wysocki" , Viresh Kumar , 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-pm@vger.kernel.org, linux-gpio@vger.kernel.org, linux-watchdog@vger.kernel.org Cc: Nick Chan , Ivaylo Ivanov , Konrad Dybcio Subject: [PATCH v2 22/22] arm64: Kconfig: Update help text for CONFIG_ARCH_APPLE Date: Sat, 14 Sep 2024 13:17:31 +0800 Message-ID: <20240914052413.68177-26-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240914052413.68177-1-towinchenmi@gmail.com> References: <20240914052413.68177-1-towinchenmi@gmail.com> Precedence: bulk X-Mailing-List: linux-pm@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. 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"