From patchwork Wed Sep 11 08:40:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799931 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 8C2DB176FAC; Wed, 11 Sep 2024 08:46:57 +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=1726044419; cv=none; b=DgaHj/lIvgQjA6BUkQYFUKtAlsNBPiJhHuU3jIuHhylpaW1OanwIO2exsxbt9eE9Y20p33fclYaFVvpZkQHXluwDXqgwRrClXb1QoCPKxfXSf/TjzgXfZgi2kvtNBIyBuFGhOwP3Y22KpkFEDA10lKkcRFQIDQ6WA0fs5eR5af8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044419; c=relaxed/simple; bh=ynppOf1zjT5jg8yIuCyBCo3upiHCSvmiR/+jWcV/oII=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SM/Qh+I91leM/M+ZBErn0wR34cG9KI1metFPGUCuHelEfTHsXiqGXLhd9ccifNtpIIWVtZwkmJ3sDnkzDUqhiwk6y+tk96ugmr4OS+uu6cz9e+/8NY2Ld8zmA02JEzYBdKFDkKyojhozRzIzyVKiB1XMxGziKB6cNfkJzxAupmI= 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=PaKE4Ncw; 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="PaKE4Ncw" Received: by mail-pf1-f176.google.com with SMTP id d2e1a72fcca58-71911585911so1147813b3a.3; Wed, 11 Sep 2024 01:46:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044417; x=1726649217; 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=hhM6nn3shddOfQsAbEdajAgYbEDY5o4hk9hxIHLCtR8=; b=PaKE4NcwRrrTLZboVrORVBB2+JZNq5TEGDvPTYR8dbrRfP8UFLPSGhLsB59iNJiO2f inwBV8y1kUG7kddLTPC7NoKLw/f9VLs0dmqp4tqz6g7FcCImGFUlL+Fh/AW3dUgQYC8W SagXwW/kW5NaczEtsouz1lqO3D5+UYFbdeHKhEBT4GH6Sueyujgdw9mQCoJxz9vPZ9P4 fR7DLDM8idqxFDP7GPPYbTfzZEzF2QBenVWWjvlRjLNOg237rRTO6XvPfE9cBBNQlSbK p6NBYknVgL5cGb4l2RYpOdTEEDZvqcD6yRVCYw1itqlyYVtqIoKBw4/03IWq0XEym/F9 768w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044417; x=1726649217; 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=hhM6nn3shddOfQsAbEdajAgYbEDY5o4hk9hxIHLCtR8=; b=A2RFvYksJ/2oS9KXWnPVK0EREi1PqP/i2bpF5HU14fWhGP6TmKJmqlWyrsQHBQ0fMt FD7/JbM0GeHXI8S05z1DDxtqn9tQRtukf16+5MKWDyvoLmhqyfuh6V6op5Xo3OWr1gOH ZnD5thOjIt+yexYmMuecud+fEgDIa+LjwJmv2nU6k8zMV/Vxpf6tlo0VcGqMCBp6bQVQ 0TC9acntu9p8MCfmC13D4/mZjEd/8YO8247fPhEJYtGpuje9L6hMVIiIiPnZFGsy7hXy Qf5MxPxYjyfMM82cWkPk7eS1y4nWaVVsdc9xAGBOs3SaaTaeD8Pxv1yrpCIgtEo5+JLI 0Cxg== X-Forwarded-Encrypted: i=1; AJvYcCVFOH/I22eTPqfzVrf5qlg4UJ2mxoDu21dIJ81ZKiqVsppKV+QSMdz6lMiA5gUrRzfPDSgTbEpJTKQF@vger.kernel.org, AJvYcCW9KFh06i3hE8Qjf9mfJaSXoA1Ored//0Z6Kku6o97t6iOIS2iYhhgPaO5mZZslHXoSh8vWiUSdHiuPnVl5ujM=@vger.kernel.org, AJvYcCWRRMPjeevV6OrXoR9ggqcfEEmUhWRjK2azRz7ckWoNBYOb46Uee/0Y5ZNQHdnOHXrfjIAHdcEhKfE=@vger.kernel.org, AJvYcCXmU1om5rdHiNUfhrRADqbfLllujfKbnFW4xp1rOxmsyvh8zINLHAe11yM4Qjb+4ogGWclMCgsyAjt0fw==@vger.kernel.org, AJvYcCXzo1tO61NI2bCmQxGAqahpdYfLxyoeAUhA0mlCKxkdSnANrnAM8wHUn8q63QKY7c1WuAouX0/wAr/z+UpO@vger.kernel.org X-Gm-Message-State: AOJu0YzZFF/taCYjsElJ5FDku8OrHFwT8ZyjPYJ/jcv/dXYgC87BR4E3 E7TGi1lX1mFJetSoF0f3debJJoG8lJpP3PIWbFtE1PTyP/e21U2q X-Google-Smtp-Source: AGHT+IFywTc+fEKIENWI2Af6Pl92YCnGr+JPtEAffWFuyESOnmaN6fcvn//eL2oTrduP+cJqvFFuqA== X-Received: by 2002:a05:6a00:4fcd:b0:70d:34aa:6d51 with SMTP id d2e1a72fcca58-71916e16cdamr3995606b3a.6.1726044416677; Wed, 11 Sep 2024 01:46:56 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:46:56 -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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 01/22] dt-bindings: arm: cpus: Add Apple A7-A11 CPU cores Date: Wed, 11 Sep 2024 16:40:51 +0800 Message-ID: <20240911084353.28888-3-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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. 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 Wed Sep 11 08:40:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799932 Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 53E5F17DFE7; Wed, 11 Sep 2024 08:47:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044423; cv=none; b=cFE619hCutS/+1ZC0uwIMNDcJif0LiDM0+CLCVcqFhJAyxVJJ1FmCWbiJ8eBs8WC0unLvjwI8KOmd/0JUPuDD+m/b+f7xbCjYvLgYTacVgwBJbdHaPt+ZcLV4EReN5UsKLvHKijm1PP5mEu8+PMc9EYbqxCXssuI+HV8G2zurTA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044423; c=relaxed/simple; bh=wjv7S2defJHb4w2LIijyyI7ICLEtDGHr6+Y7Ed98jvI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=f5aQYIK8VO29X/4UsqZHleds7d7p5YFOGHpr3c7tvHjPo9fh/U1QfZ7KlQBWUZcUjtH1NQPo9N1l8S9IGMQZKWiXDjpxXRKvB+IRrYi5TYcMhIgbyPIgfoib86TcQtkKcaATYdTCXIvRkSfN2yq+1ZxfTM/rITwVYDawFk5ITik= 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=cEpznqDn; arc=none smtp.client-ip=209.85.215.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cEpznqDn" Received: by mail-pg1-f172.google.com with SMTP id 41be03b00d2f7-7d4ed6158bcso4549520a12.1; Wed, 11 Sep 2024 01:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044421; x=1726649221; 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=cEpznqDnnOTJXNEZgiIdGodd/TE5DQWXZFNbfhC0IpKUQoEJ6U5YuMWQwPrAInzAWL Aruo0yp3rFNtSUJEjnI37OTOrNF/J1X73lggC4JKJFfa8MzLIMtf8U+Om33YuUsFzcbS l0oWytDlxVZ4BnMR/xY57fPHddn2Ei3QG4ACn+paOoGZybLZgp4U6mkODDW2iYk+4CLH oMBGCQzlQtJqgqQKbzBWkV2QjO+V7eOggxMG/fqwhAoC/GykTmsROfXmQRx6f4n6QLSq nBSoLXQXoE6uADQrlvsEOXnCm7Jk38TKW9laFWwAsfzDXgx9IOR0lvckVcU8hklpGbN0 3xXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044421; x=1726649221; 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=V0Kszl+QQpvmI4tRUDf85EmOciNGETI8k9fJHqw7uDTfuANdO0INyVu3HL9AFvLZMg 5tCKswj4eUt34mAUyL2wBjYc8wSW88w9moG91yTmbx2xSXGVMbhBl0OzGJR1Tj/39gjh AqI/wRzwPe5/VBsC+8IoUNwISejdxeEEETugHrzFq8gFLe9d0lXLnhw9hx27LcMlLqV5 LvSWQUiW+DXA1vFYQJj52OPJwjMy4juz965HUQmPYTkwVKEYf9z+SrpZQOf7qYs5Z33z Hoqra25Pka9o/GDWlLlcsu4dkFURzv7Y2ovyHce7V291mqzVerxB0j0kw6yesDrkgfux aRvg== X-Forwarded-Encrypted: i=1; AJvYcCUxK1yRay8PvVzd8tatbRGHKhDFGGvnrdYgtufZDGr0fhdWHkvxWDLDLrlufLy+7zfGH7jKu0KeoFGV@vger.kernel.org, AJvYcCVjZKiQo4FhmK6plkO1XMGo4G/dqjhlK4ltakTeiqPPDJKjuxKwt4tvoEMLDIQhjp4BlO0j4B3zWCk5d7oMsM8=@vger.kernel.org, AJvYcCWRB2HB7WiIJjukOxWzC61XwNyY3NFgkI8Jks/VBzgy+fsXLurNReFh9dre/SiUn13aiRZ6sT9Ar4tAgYiJ@vger.kernel.org, AJvYcCX8hbDom4NLfAJFQSrgN1ZOIFYy+6xHubttNlaVAWUo8Vc+nhzos0Kv4/bEjXFAi9J6xjqiLbJOEoK2zw==@vger.kernel.org, AJvYcCXLCQFZc8Mb/m4zn6lHzA4/GA8M+hliuA2ngt7GJ6L0K+Q9nLtCXQBJTcF7qFpa7jOAKqpHq+auIxU=@vger.kernel.org X-Gm-Message-State: AOJu0YyfqmKfBhWOTfRt+LmODpB4GfdMdJpEhb493OeQjCxkx3vNqfyZ gNVx03d0EPTsDyfIY5RKxmLew0hOPWYZ+DG9tkQpLiYDFZm7zGw0t8LaUqndeAY= X-Google-Smtp-Source: AGHT+IEdAb8iPla587CMNYLHmoCGdjQJEE1KnhntFK9s8SAt+VoAwMchj1XQxQ5sg7+JKpi3Zu0qJw== X-Received: by 2002:a05:6a21:2d8a:b0:1cf:5c1d:83dd with SMTP id adf61e73a8af0-1cf5e03238fmr5427708637.2.1726044421370; Wed, 11 Sep 2024 01:47:01 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.46.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:47:01 -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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 02/22] dt-bindings: watchdog: apple,wdt: Add A7-A11 compatibles Date: Wed, 11 Sep 2024 16:40:52 +0800 Message-ID: <20240911084353.28888-4-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 Wed Sep 11 08:40:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799933 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 C2A82181BA8; Wed, 11 Sep 2024 08:47:06 +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=1726044428; cv=none; b=nSAl4iYps3u36JTmQcoWH+Z/0X0LCY13ZxO6U+P1Fj0sdmQou7QsBq5BQiHN9KkAheLh6FR3yhZjQwhWolUUd71hEm8VIo2XhQxZQsBUM6pZZR0DAz0rXbqgTEKWDd0+q6DdJn7mUPOLzmNuav1558FalBCNpnQZu5R1eZCYRqA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044428; c=relaxed/simple; bh=/TZwa1P5GOi0weNisvEEpeoua8fx09BY++vgJdF9ecA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Bq6aW35lGcg6bEuP2EDkEtz5GsAi1eQrG3N3sysZP5yKRMnK0W88BDyTIgCIDAD1IypNDdl0dy0O8dThBLiLi0CBYo7Ks/mij8c3zdPck1QRe1oiXzLej09VWIYHoj/i+arbjJ/AB0/z8jmbEjNWR/RUbF9nR4T+utyI0EqCi9A= 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=QzG+Rqro; 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="QzG+Rqro" Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-7c3e1081804so917854a12.3; Wed, 11 Sep 2024 01:47:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044426; x=1726649226; 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=QzG+Rqro6vaDWiWmwmFbY1nPiQohPQh6K54x4PHzcczycX8Jelm8KBMifiUSLTygaq z68nhwRwH9BtUMrt5z7G2ylIfGXMyApwAZMLq90KDuR5pDBfLi7AMF0RgadlDFyfgfOC 5T4fgYgVScES8BUZAPScDHXr4qQ94eRDoa1nFI+KUyQR51KrC7iush/hufpz0sZxivum 0E+eIbVfr9jBRkdBIOLIAlal6dJYbDAFyYpqNxTM3Te38SVw0CEFgm45K+bxWGXb8Dbx ghUyWBS0625tvr/blSffI3/oqMVBdecEhYfdR4pPY5XENqwBOCG/WfvlgXOCX3S+yvz2 YGfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044426; x=1726649226; 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=VBYTo+E+N3rTdBaYZGjNhxdfloVVsMXpNFrmn+huuC52ufgHmlHWUXzFowDnx/Jmxc 07v9hInC9eUeDZMMc5wgwcF/OEtGMCs/wXRcgzFBmqkgj7dzTnzW8ANdarA01uOxcXfg AItb4jd8Ng4hKy0QvNOK5nttVanRafgiQGeowkECvgXfoJA5NQlBaV/vCBX1ARuJwG16 hPeMRz9REKs9asiVjlDUJESn2mdPMPl7v8/HUYyAqs0JlJLmWeh1DA5BAkIVJL4rgskD h6xjqfypTcoDcLDvZQ1keyROYqLemOJyxoM1f966d51Qjo4PQ6lg/RsAKlp+Lr488aDO s0jw== X-Forwarded-Encrypted: i=1; AJvYcCU2wYMT2SV3ZbQU/XnYifC3ex4pr4iwCmREfJHTCvxMj5G84Ho+BGS+hyeXx3ksYCTVq1tiKpEgoegOUGtP@vger.kernel.org, AJvYcCUgEEK+EY8a1x4rfBJet+PKaQhpSSFI1N97oqrbNXM0zCpL8/7yp81IgCPqXMxrmmTeR2t+YLKCiifE4w==@vger.kernel.org, AJvYcCUm+uAy0dH09Lg6Kc5VnTSfipWHX0VL2oDbeDyd5uzj25zfKSxuKM9Mc8E5mVU7nSE8e0G5Gj3573U=@vger.kernel.org, AJvYcCWCWbBpMKR3YUsQCPtflUpTqIB4YoscLFWVW7h1oe6NtETvPJRMfEpbOuDEqLPlF95ddlhhw9pmfIuo@vger.kernel.org, AJvYcCWeXlnnwhX8keHjYx5AMM/QScix7V8BV5S3B3ibnVyuUzSNNAGd+wvrDCp5EupGSHTAUnWFSQiVjnFrAHUHHhg=@vger.kernel.org X-Gm-Message-State: AOJu0YxS91sgWe+Zevmp4/MGa/tV/ZGwn8aa4B0t+jq2RALb/MEByLyT WgobSlVszwC4lFuKhMXJiR40m4KL7lVavjratN/tnKgqUmoG0QCc X-Google-Smtp-Source: AGHT+IHMTwHhuGM1xzJNE2TMTpnQCgKvCX0aXtXz2sZckro6H0s3Lmt7OmVQ/AFM6EQ0mVB19l2HUQ== X-Received: by 2002:a05:6a21:460c:b0:1cf:2a99:91ec with SMTP id adf61e73a8af0-1cf62cdecbdmr3891676637.28.1726044426062; Wed, 11 Sep 2024 01:47:06 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.47.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:47:05 -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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 03/22] dt-bindings: cpufreq: apple,cluster-cpufreq: Add A10 compatible Date: Wed, 11 Sep 2024 16:40:53 +0800 Message-ID: <20240911084353.28888-5-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 Acked-by: Conor Dooley --- .../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 Wed Sep 11 08:40:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799934 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 9D9D91714DC; Wed, 11 Sep 2024 08:47:11 +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=1726044432; cv=none; b=CuSXSatI6V9O/mxn7E+2MVDYMNm6s4c8myhFhN7hitn8adw10cCqXk0zvwGpKP6Pg3q3iGBv2AEP5PYUkn00YCXC859tgJeVu+HBZruPa1szg8Yt60sL3OR99VOt5cSo4glq50aC4irHADROcdH1oTZEEtMEyXEnyyIa93+9ctg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044432; c=relaxed/simple; bh=F+fvD8tj9Q89DXXtcIua1ke1r+dlwF7u6BI3SFUU4HM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XY6h2dwteuOzmWY2+/sOVIU/Uu61adrMD0U9qF+zYzFA3YDccJ4jap4HZS0lm+53mksNbuPjstoGGdX7TG8JE8vgUhtw7kiLq/AN1UOJzrWCiRUxEMFtFIxWjfM3wwREynuF1YPYsiDex6re5CqF40E32DefPUPTfIPUQDDCa3k= 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=D9gjxPte; 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="D9gjxPte" Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-71798a15ce5so492091b3a.0; Wed, 11 Sep 2024 01:47:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044431; x=1726649231; 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=D9gjxPte45nlYHqAQQyFVZIfX2nDFSnbO2o21T2AcJcJ/LLZzWkmPxZzw58eON3+/q hdFtO29AUA/JdNOFUHrvTbD5nU++jsspCAXejrH9Ay/pOU5PVa4dJPNyhE6xj8YL2dty sze69uZDNIefrrwugkOAiZM5rHxBp9LUNRkSzegr4VRr4G9Bv7zG99s5xBfrkp71ddWD CllRiRoMbeKJj8DGP6357Rg3MWO+JqeZoibIvt54hmF1rfqJBhS8rM2CHU7F3ZqT1mo6 Ro2iEwoeEhhJCgSr0OU4D/vusATbbKDuq2410AE80e3Mq7jKbgJUmrSaBd+4KBDgXkXx vCBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044431; x=1726649231; 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=fOEhFN7GEXiqu7ibebLZUn8+BH+PpTQdvFPDgNZBhIqCirCniUPXw4mE00AzaQ3x4K Er/ql3TSmqQeHO677e0wxMZtQxdtV3NkCj08u8ZGtCl5OzenUIt9Lb/RE+N7JdbpC/YM umn2bWBwOs2NzociOz080ZVbsQj3Q3cmdJTwrdAF/Vu6usoCdx/3yfRtO+uxh+OcWL7D c02rOhI6/t1idbMVuizHJzt0QqbUUMzcFBOXdbdLng3OA+U7+yPSXIbUC/yRkjRI5hIm CdrGEvbjvNeaJohe8vWXObLR4Q4Nc5V6pz6iHz01UgIv36qToG7ZJR4GOqR/DHhfbI3E jc1A== X-Forwarded-Encrypted: i=1; AJvYcCVD2noZIks14BMLkfbHyWYnWwL+7QK9LgyW0Uw3SXCfvBGD9+aolT2Wt6qP4mi4zMw4OLIpQkbB1NZ5@vger.kernel.org, AJvYcCW5NiDP/KYyoSIHi3T1gJZCkRGfpbypplRE7P4UFzUIdHgLN2NqxqbfKwQ7yrTw2E+sRppFjsyLEp8AZENV@vger.kernel.org, AJvYcCWg71s+PBVplR4O8TN7BXv5s/wkRTJwyHQCTPVVRMkaw/f7eSXwJQw62HyY2xx6n36Iug4/ToNT4Ft/ZQXGysc=@vger.kernel.org, AJvYcCXnb4WA+ZtEperyZiI6oxJTTq5lA3xUWG9xtqRuKAytwYj15xXy2UCoWoXPAJioCHCOX+jIZ9hDG5OsQQ==@vger.kernel.org, AJvYcCXtdDej1bXzLygT/ZOhX9246wcMn0mQc197+lpe9AJjxR3q8Zg2t3kZ845004t+wC2m6VcxHI0qopU=@vger.kernel.org X-Gm-Message-State: AOJu0Yw3YYCG5uAwnIDaALHQiZs3sN4VGkdJ/g086Ut0wwBH6S3CeOYX whkQS5qa4vx/dcho0n6RoggXss80iGxI5Gic0w6ziEYJ787+hVTF X-Google-Smtp-Source: AGHT+IH8/nRyylYUAFxI6agtFOCCglAgDxiqi0BoCGB0dcL7Mo+8ZsRc1G6ANoc5BEGZLhb8Gx5qxA== X-Received: by 2002:a05:6a21:3a85:b0:1c0:f114:100c with SMTP id adf61e73a8af0-1cf5e4ae0f6mr5116868637.17.1726044430786; Wed, 11 Sep 2024 01:47:10 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.47.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:47:10 -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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 04/22] dt-bindings: pinctrl: apple,pinctrl: Add A7-A11 compatibles Date: Wed, 11 Sep 2024 16:40:54 +0800 Message-ID: <20240911084353.28888-6-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 Wed Sep 11 08:40:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799935 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 978FF1714DC; Wed, 11 Sep 2024 08:47:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044438; cv=none; b=oWJibx8oZC9DXR61h9wcNsFuyTGYeg8YfvfQ+FV4mG7UQ8pzoK20hQglyY+wM75RZ3eCtpabvEy/UmtQZ1sfpgEmkXtcLqH7NfpIxYME8lqxl54KeiscM5G24MpiItJM4TxihzbGbZHG9IswxIKT6eiP9kMaOFULG1BDPO1/Czo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044438; c=relaxed/simple; bh=l3S98+tHOd0H1b7zLM7OaUtryDKYJ3rLNdUtyLsM+EI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gQnKMX1d330CmMqdilAcg/CNfI6g89UzvrPiN5Uv3uy3sfwpaZKaHTLUfg2QXlxMxH5ob3Hayi0kAwG6u8CkIheAN2lIGpJU2yRryF9gI4r2wKvY6qKfAToApn3sQGh334sOr4fuhF2V8uvdWmma+H/SogMST4+E/t//E2397kQ= 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=jISJ/f4q; arc=none smtp.client-ip=209.85.210.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jISJ/f4q" Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-71790ed8c2dso5625954b3a.3; Wed, 11 Sep 2024 01:47:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044436; x=1726649236; 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=Cn5sYAux5rTxj4pwmfhtHMdioh011tWYhtxi8uWrWtg=; b=jISJ/f4qxIA88cvnZtyCGyCLN5wzotGwAA84XYVlWpB3BNG2gxNNqQ+oivX7K5gDhO Zvm92ksxJTukc/Ykhx3RX3+cCT+G+S5pAMeqTcNSp2ImnKFaylZZvFuzo2LQzW+BAIwi MLuq0B3f4ernNCPh3MrgX4TFBeJfhSAT7GTM10RQ2oHT5N4UiMT+rDvwHzqvVsr1agf2 Wzv5y2txe/vGHB3GAunds01kObgVVfompJS4lMhtayIKZXkY9jcKlKqb+UuhISBlqngT GSGtHRSOEs8o6FXo4WyehH/WJU8b6GsbIJWCHlVQse3Aa5LQW4TFsf5lgTM8RzSTwGb+ LsCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044436; x=1726649236; 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=Cn5sYAux5rTxj4pwmfhtHMdioh011tWYhtxi8uWrWtg=; b=Gp6Vhw2coRm61Sm1yOw4Gs1ZWB1sZ+uZDl0hye7q7BiEQnGqut83rUubML4h+udstl FRY6KSfOxJxcYAkjm7aRLAe3JPeoDuwZe4X9YnsGOyx8w+MVc/6Jj/dkMlXRHkgPyPFf lvgyc9nnOSxjEY6oV/M9tpqREjyV7uYKfonBv9rd+nWe+AgbegHoiYJVwdw3lvoO4tWc 0J0iatwukp4uL8xGYOYiwzpCf8Tw2xs+J0/eX/TMm7bRObZF8trk0z5XXRzKej/l/gHi 0Xq2bKcihN8VOEtA1XjiVX6qqCGR/6m/GNWvzEkymvMsWLVyyo8K/qaVsvWWwVO7zNXw vIiw== X-Forwarded-Encrypted: i=1; AJvYcCUpC5A/0dhq1xW87vWxI3ARpr1YA55J3Vxr4mEMZUNDbSc3RRvxIMLQ16YaM/A40DmtTyzqw4eTUUg=@vger.kernel.org, AJvYcCWM97d+0KAtS/Oy32cYR22MZOHPSjmovt3SQ6ls1Ud5dSzjxQuC1k8G2o9fu4AGAfAs5XCtqp5GmGS//nZe@vger.kernel.org, AJvYcCXCzMIvLvlQxSwccBj1FyqASp+flcPKkJd5s+V7V0JAqO+DfywIE5LC9s+IRn8HaE+mjJgtTjf/lm8Fdw==@vger.kernel.org, AJvYcCXZtc+KrVdH1hPXmwG7lvNdODQfsYWAfRAvFK7gdwVqGiqNNLqo7fL0RBKqLgc+QOjrWu4FBlM5998gvwYy7po=@vger.kernel.org, AJvYcCXoIiMRYCsS3BCEudMTPnx0r3VKo3X4KhWX4WQK/LByIio5GXSA9JpQgbg2aqqOrC5GPvbhzDwbRkew@vger.kernel.org X-Gm-Message-State: AOJu0Yy2X7Xg48/89VyT/6bdxNAWZ0LlQv5BTQ05G4U3rH2+wXmOhuk2 m3iZ976JpXE998JAUqQS08xzrXx3M8kLliBGzFuY5PD/skjVs5zQ X-Google-Smtp-Source: AGHT+IH8Ukzpm5G0XVPbr+BqKX3Ni9mTPZT1q2gvljK4KvBtB+LlCuVKaT281dm2/Fohu1/e+dVptQ== X-Received: by 2002:a05:6a20:d80a:b0:1cf:5c1d:83e2 with SMTP id adf61e73a8af0-1cf5e19e36amr4987577637.39.1726044435788; Wed, 11 Sep 2024 01:47:15 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.47.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:47:15 -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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 05/22] dt-bindings: arm: apple: Add A7 devices Date: Wed, 11 Sep 2024 16:40:55 +0800 Message-ID: <20240911084353.28888-7-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 Acked-by: Conor Dooley --- .../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..3c81008f0e96 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 Wed Sep 11 08:40:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799936 Received: from mail-oo1-f51.google.com (mail-oo1-f51.google.com [209.85.161.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7B24315C13F; Wed, 11 Sep 2024 08:47:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044442; cv=none; b=NLV0Z9b/q8unyCGKwS4QQOHOms9/bPoBxvuJO8YQKLIXoME9CNfk67X8Sz3baguoXqfF86b7ZyzNdTlLzBfFQMhP5iOoOM4743w/zq65oH3IBhCv/WcB/mkbPk2304wOeotxIfgq24tK+Lm2+/LGmY2KpBG49TKXgyOJXKxntrE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044442; c=relaxed/simple; bh=pn0dBKtZ/6XIFiLt29sYpVdPgmjVJwfbAGYQjqz2sSY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=McTByw5eRhTy+/iDorrMuUGXpAubdBQyMXaWG5LilGVY2cxMsohZI1FdcPNB7NfSZafiiQYCEo/eeILeG51ZF4FfzixV76mp4W3fiLdwWxFzrNQtSf27WY2xiAX/izpSAtYwYvYe7v8YUFLdiGwFRGxYatSF+98boDK+KJjvu/E= 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=Msd0bO80; arc=none smtp.client-ip=209.85.161.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Msd0bO80" Received: by mail-oo1-f51.google.com with SMTP id 006d021491bc7-5daa93677e1so3796543eaf.3; Wed, 11 Sep 2024 01:47:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044440; x=1726649240; 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=tzKuObdjjifIV6p4p1YvXXo1tsy2evI5DY5jece87LM=; b=Msd0bO80hzJ90VPHw2nK3RwBj6590p6V1gI9BoezsJR1Wvp0U9MQ84qlN1nVPD1kvR VVq138zM0qFamt237omT1kYdmdFWxo9DZL7tqPYjWnlPPznJjmJkYmBBDabBGOoW0qma dnfpWlSbf1lvCl8gCocPJpQhPr4gkEl5zbXb4vvxDzGyNJZJPtri51VOMAaB7HAgt9Qt E/mziYEPwrMUuq+TRgGGtXVA5Hr/XZmzpFx6Gy7CpGD+d2hIAAx0GxZyeD/u7320LJda 2UC9gDfEfeP9QHynzWAV6zDiFytgzxXHYsF5BTHDKV7VNlohR0DBAveXNDadaQAgDQK1 U1jQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044440; x=1726649240; 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=tzKuObdjjifIV6p4p1YvXXo1tsy2evI5DY5jece87LM=; b=dPX3Iow2cN4yLpGoxOOXsEN6camDqPBqIrX/gnfBFbGt/+LDirCu+9pfCoJT7tdxkD L+UuSxzugCa5zqki6SgWEXLwCoQzDkMZiMAXZ1S7Qx10N7Hs7uBZ9wazEJV4igBAwIwe plZqp7tMUKlpI3urVIg7mOCHn/S6Gc9MA2QAvLLaMqpA1Yk/vbsdeyTGhJT100htSQnI wHx2Z++p/bxjRuwgf+1Bm6coCz8p2kWePAMBfzI/jJuYYdhC02UuI19GbTYFUynF54KS CpI4NytYr/wytdMuRRo53UjoBQ4HFHyGbWIZc2sTuIYHu0ClsoR4WWuz1YnryEQs+MZC uY1g== X-Forwarded-Encrypted: i=1; AJvYcCUvPrn5KxcIUJtx/S0fqG/AB0GGxcZf5NzvpUbtq4r7ku4MDW+NI7mKqlVwfn46vdz1HoPWol/2G0U=@vger.kernel.org, AJvYcCVGPBZPS00Ik2U19zyQqyCjwTVh+FVhFHfbvtYTNSa3agzd9g2Siepwy95C5OKo1duMkdbBgSuSTRiZ@vger.kernel.org, AJvYcCW6wzGSfyMJQehGrKQLUmEk6Evii0FsHyJBX/9pK/f8P4cq2oPVtv7o6ok9pA8z5ke3BPVcQdBu56Zkhu6G@vger.kernel.org, AJvYcCWfBKxymVtNYwheRm9wUMS34ZgqecWBewK4qjqaLyyTtJFEdPo1pvnwl0HodGP7vk+IzBTCWZ4128jnAd/jD4A=@vger.kernel.org, AJvYcCXCy7x2DfzZJO6cMx2Y1QE9sMmFzSyf6CFymRRFVYlVC3UfjKBtULoLfUMHPIWB7vbGf+AfHlS3eVHn1Q==@vger.kernel.org X-Gm-Message-State: AOJu0YzPOeWqUd3hRFbCoTGrw+82KYeDsu2Rblp4qvGA067TP/3X84FT YSZEVXRAVDGsVTdYeZkn0dou9rm049cxJJdgJ58BHIQgpkcP2WAZ X-Google-Smtp-Source: AGHT+IFVGTKfjROcC2dmcDyR3+3zulhvPISRva2vpsWPrxA6OsWKXTSlxZPTNB9nldnbZOUYIt0JaA== X-Received: by 2002:a05:6871:3786:b0:278:7ea:99d with SMTP id 586e51a60fabf-27b9dc85c23mr7226021fac.41.1726044440522; Wed, 11 Sep 2024 01:47:20 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.47.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:47:20 -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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 06/22] dt-bindings: arm: apple: Add A8 devices Date: Wed, 11 Sep 2024 16:40:56 +0800 Message-ID: <20240911084353.28888-8-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 3c81008f0e96..cf4f5d6db1d3 100644 --- a/Documentation/devicetree/bindings/arm/apple.yaml +++ b/Documentation/devicetree/bindings/arm/apple.yaml @@ -19,6 +19,14 @@ description: | - iPad Mini 2 - iPad Mini 3 + Devices based on the "A8" SoC: + + - iPhone 6 + - iPhone 6 Plus + - iPad Mini 4 + - iPod Touch 6 + - Apple TV HD + Devices based on the "M1" SoC: - Mac mini (M1, 2020) @@ -89,6 +97,18 @@ properties: - const: apple,s5l8960x - const: apple,arm-platform + - description: Apple A8 SoC based platforms + items: + - enum: + - apple,j42d # Apple TV HD + - apple,j96 # iPad mini 4 (Wi-Fi) + - apple,j97 # iPad mini 4 (Cellular) + - apple,n56 # iPhone 6 Plus + - apple,n61 # iPhone 6 + - apple,n102 # iPod Touch 6 + - const: apple,t7000 + - const: apple,arm-platform + - description: Apple M1 SoC based platforms items: - enum: From patchwork Wed Sep 11 08:40:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799937 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C9D8F176AC8; Wed, 11 Sep 2024 08:47:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044448; cv=none; b=f9RXrBKnBlJT7cMCVhIkH36YSxQ21UdI0Y2fqAHeeF57wKGsjZB7Vq5dYuXZxWh8hiYspwYwyMKHfLWJ3H+1EC+V20QA41yO9RBXBYJWrdAogonNcsDZVGUPX9Mp/2uticsMSVv3WpnAKANzuO4+sfEiF+vQNlsyTXvIfi0sZgI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044448; c=relaxed/simple; bh=P9Pk9/2emirw+58JE8VBpSpv2YhF1/SPfHlNxzzMWCM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=a16R88tF1MAbIu28UVo4/EtE0/0F9C7pK73u7xEvcN8ByaQfiA3gZzoFHfOY2mOi4RMkJ3TEUfmIdzr2v96wiSmfKrKe5rReZawN8gfU+Wc7uQ6076c2ggJtoLaNcQdiHdXilgDDIcG4Imy+6ecxBzs1tGK8T4WDY+VD7Gd3Zic= 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=Bphm2Him; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Bphm2Him" Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-718d985b6bbso4678436b3a.2; Wed, 11 Sep 2024 01:47:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044445; x=1726649245; 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=tjvlfmxw0wmD05gyjgPqQBjumudhjLKhpNjbMgXc0gg=; b=Bphm2HimP8nDY7p2fJaGDxEgAsE1rShy46lWFroB3JkL0h9HAytu0ixitNQm2H0sUF Hn4JGfYPd8t5BKbviaV/cNiju+rV3U07J+yXZqzTUtyKydhGfzXs/vxtwL3LxSUsKYpX pPE98dC98W/JQlM4WL5WiUzttslWVxl9OGi9/wetJd5mUVJbW+if+ktxRqdRIVKmgBmE 3suEguQbs8ZisiNk/lIbmXCcWjmmOKdyGxpdUFtMvmF6K7DMiWWkQum3HrIKQeTHH9Fx 6Yfs24IiNcXSqqroeN0Zv1JIzVfxOsFRtIfgCZ7cT4o/IHNuWqC7xCtZfbn+k29EreY0 pzHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044445; x=1726649245; 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=tjvlfmxw0wmD05gyjgPqQBjumudhjLKhpNjbMgXc0gg=; b=Pt3BuoGB702IDAYFXJy84hiJ35fW6xiRwBhdyXAc4l0Vf3zGvsRPtT9/Mb37fCpvCR 3AJ8Vu6xYR2+F0uvaLdlRYZTHqgkU4OsKuX1AOqR4snz/oo7jLwtJFaRmnLGEx0Uuwd8 YYjUctizWvHF57tuYaB9E8cZ0yq1JmDGbrRH0N281sNIzU42ebtnc5fAeu5H5+djERnK xT0nhsEaFMWqSCPG2CpzW+r9IsLPxj1nJ7j1k6YxNPajyiFJty8c7XuoIxX7Z496feGe 3VLxqRg3CDIoAcce8RxOeplYsYGxtESvJ93UXcz75AAE3oliy7dz+iBCQrRwWZk015bQ 7fZA== X-Forwarded-Encrypted: i=1; AJvYcCUYri/UU4W3UIqxgo4Zu6oj+S/HxODxz1fWn5/B8US2F7/RTEINMwvB99cH2yR9l5pcdp9wusnvd13HX1iKLtE=@vger.kernel.org, AJvYcCVnDc8IYb13Sv35ISF8dswjsXfmE/EHvEbmYdBVVu94ZrctEdhB+dcOY7m6/LIMifjHTYIX3I8oqtQ=@vger.kernel.org, AJvYcCVssaObtfuHrJDMiMhHQ5U27WoUzHhp6ZbG0kAx0r4aI8r12wYCW4aD7arizBoBhc0NWa6prATjTM8EuA==@vger.kernel.org, AJvYcCX58PiYmNAwd4Yn5k2GpWSDA1FfjHaseAOhshGyV8AEj7lFHbYWGcifRS4pfCANEn9LOqIHJUaMZbmQxhLU@vger.kernel.org, AJvYcCXPxlUKw0Xb4clZxpvj3CTk8FUxRaPegQOvaWvoYsh3Wtf1Z7H/cvsteQKVyJVuiNRsR7hQUclQBhOV@vger.kernel.org X-Gm-Message-State: AOJu0YwdcuqxAtgd7rIDEhJFyGzhpXIMAk/4fK0AWyEAUyfPKQoYyrDL Zt2nsL10D1A5qf/SinW2e1S9wfIe8y1RS39w7TgyLhdUqiU7czhe X-Google-Smtp-Source: AGHT+IGmsJr6r+oK8+NWZ2Lm9pjTz6VxGYA2MokykqymrLP97fXtIw63Lcg8YccJp/K+uK85FctN/w== X-Received: by 2002:a05:6a20:b40a:b0:1cf:53ea:7fb6 with SMTP id adf61e73a8af0-1cf5e09835bmr4841877637.8.1726044445299; Wed, 11 Sep 2024 01:47:25 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.47.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:47:24 -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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 07/22] dt-bindings: arm: apple: Add A8X devices Date: Wed, 11 Sep 2024 16:40:57 +0800 Message-ID: <20240911084353.28888-9-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 cf4f5d6db1d3..dd5f0f6eb52b 100644 --- a/Documentation/devicetree/bindings/arm/apple.yaml +++ b/Documentation/devicetree/bindings/arm/apple.yaml @@ -27,6 +27,10 @@ description: | - iPod Touch 6 - Apple TV HD + Device based on the "A8X" SoC: + + - iPad Air 2 + Devices based on the "M1" SoC: - Mac mini (M1, 2020) @@ -109,6 +113,14 @@ properties: - const: apple,t7000 - const: apple,arm-platform + - description: Apple A8X SoC based platforms + items: + - enum: + - apple,j81 # iPad Air 2 (Wi-Fi) + - apple,j82 # iPad Air 2 (Cellular) + - const: apple,t7001 + - const: apple,arm-platform + - description: Apple M1 SoC based platforms items: - enum: From patchwork Wed Sep 11 08:40:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799938 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 D5F571865E5; Wed, 11 Sep 2024 08:47:30 +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=1726044452; cv=none; b=T5HaKQQgmHFKQMqSU3nn6+DTJDB7AGU2YSVHFQUS/bDpnLzqYVot6fB8ch/V1SU9kE58AlDzo0l/aQBCoiH0hoTTLmhPt7lJx+WvLBBpyL7k/lWaCcKOeL2BWKLodMKfA79VDBCqNzjqMrmfM2cSnHaF/MwU6RSi5EguWr+Ahvw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044452; c=relaxed/simple; bh=UhU7//LLPdJwfMnsrPFXCgGaL4nYzWl6Sy0XKuREjU4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=pKOXiGtYy7uFQGZ4nvytB+bx/ZKMgv3GLX+yFR9UHNypfYER3w1il9iChxCoshrMnZxOAsB8/o+WvrceD6owGy/0Vlxlg7R2dIIFqmaJWXCrUVTX2t4qpeannE2POLNhAiml1DkDJ96he4qZl/YiLpXb2E54MWxNflL5jiavFnQ= 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=jH0+x0PF; 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="jH0+x0PF" Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-71911585911so1148267b3a.3; Wed, 11 Sep 2024 01:47:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044450; x=1726649250; 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=XGIw9gVC7lsgAYuQP3STO88xNXXw/JJZyndkt0vNvtc=; b=jH0+x0PFl5qksz2MEAn00l5ykkdyGG3fHTxLqM6edCX74y1+zp+hTDWXbs7afsLd+E evSls7vQiBlbAGcv+m1O+V8N7S4bLQZlBbYxJC7iiZXm8SeIKCKS5HO63inNifGOlftG f7OS5v6EquraW5GnM0brxTFiq0sIqL+C29lGPmH2VwCcX6VTGmEQcggDBILzznG1Fiat SA1Jf0d/MKSf6rqKuz1pCK3vhNZRLTw9u9yM9CDcrmjoVI8bpF2ErJkWIj783Dho9Zge OSYjwDuQYpN56dEVPPv9vf8R8pSWIkfOO+rjH2biONK3BJ8pAnukjGiqFPyP/Rn2eG2w Fu6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044450; x=1726649250; 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=XGIw9gVC7lsgAYuQP3STO88xNXXw/JJZyndkt0vNvtc=; b=F7sqkVI4+L4jSQ1Dqqz65eRG9ayrTC/a34yjEinbHwq0qlKwnXrtNd/GahuJpPforc GweFCZPb9TqZKigqcBVyguKsxYWQ4hHEg9HPJ9gWAGknL/F8ropq0eVk0F1RTe6x8lOw ZPM8ovcjZyiHqmDuhaEUv2811sv0dlgAFLWSZk8GKLBZTj4+iLHAS/MTKpgU3MRRO3fY /FYWaUzDqJAAWuXfMMK6htiEQyaCjshToR0yijIhdDrxZp/HsPhOrtgxz3BAHmK3CxFD DXeYC/0C4m527j4OnMSTxxggVYamfZLwnBDPzwdzh6dX0fE/uxYIpTtniAJ2deyCtkrF tDNQ== X-Forwarded-Encrypted: i=1; AJvYcCUVM+gw5paXtTqKOta8wLCQ/F9LwAXGVivCxNBexZpNQxaamxTxpEq+7GqcRUKn4UuIcO2m5HNJg7Y=@vger.kernel.org, AJvYcCVBXO4WqAlaIEVunb9IqI4DjzftagRRUzWYyx7W1IQhEJQ5NkSu5QnJAxNCmAm1uGePQD1CAE5gnrLT@vger.kernel.org, AJvYcCWdJLOmoNxBn5gGJ5oXKiPKL6qQJtJ7Vge3ugAbrRKANAUBl7sracdRP/6VUV0UGJtprR7VfplcXURHUNgv@vger.kernel.org, AJvYcCWppOaxkycF5qUw9h5zK3BK5GzdZKRaRzPcWIY6ZfcJRKKF3M78Y4Gw17ymantzWqZGNJXVIbkivMmm1g==@vger.kernel.org, AJvYcCXyy4qaclWesraYuJ2aZ4hPPjQl0BnSah1ofpGSdRR8dmhMr4eDxovn3nZozQB2n2mHnm5oWNAfSzAUeCILGuE=@vger.kernel.org X-Gm-Message-State: AOJu0YwtK0NxClD5ya2/Lu2mzPFSiVSmwFer+oPh8cTuQr9/4k7Vs9q1 HNlEjfpOhcorknWMJVzevw152SnoKxlbF8SkMJmNvJsqeasTFlJI X-Google-Smtp-Source: AGHT+IF0wh/4ve5zW3DQwRA88FpDWlUvKJZ0MPzTYhVqYgh0gGlRFOCd56bPec4nO9iXMD5ZBj7dOw== X-Received: by 2002:a05:6a21:2d8f:b0:1cf:440a:d785 with SMTP id adf61e73a8af0-1cf62cba095mr3438507637.11.1726044450055; Wed, 11 Sep 2024 01:47:30 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.47.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:47:29 -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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 08/22] dt-bindings: arm: apple: Add A9 devices Date: Wed, 11 Sep 2024 16:40:58 +0800 Message-ID: <20240911084353.28888-10-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 dd5f0f6eb52b..f3f100ce8072 100644 --- a/Documentation/devicetree/bindings/arm/apple.yaml +++ b/Documentation/devicetree/bindings/arm/apple.yaml @@ -31,6 +31,13 @@ description: | - iPad Air 2 + Devices based on the "A9" SoC: + + - iPhone 6s + - iPhone 6s Plus + - iPhone SE (2016) + - iPad 5 + Devices based on the "M1" SoC: - Mac mini (M1, 2020) @@ -121,6 +128,28 @@ properties: - const: apple,t7001 - const: apple,arm-platform + - description: Apple Samsung A9 SoC based platforms + items: + - enum: + - apple,j71s # iPad 5 (Wi-Fi) (S8000) + - apple,j72s # iPad 5 (Cellular) (S8000) + - apple,n66 # iPhone 6s Plus (S8000) + - apple,n69u # iPhone SE (S8000) + - apple,n71 # iPhone 6S (S8000) + - const: apple,s8000 + - const: apple,arm-platform + + - description: Apple TSMC A9 SoC based platforms + items: + - enum: + - apple,j71t # iPad 5 (Wi-Fi) (S8003) + - apple,j72t # iPad 5 (Cellular) (S8003) + - apple,n66m # iPhone 6s Plus (S8003) + - apple,n69 # iPhone SE (S8003) + - apple,n71m # iPhone 6S (S8003) + - const: apple,s8003 + - const: apple,arm-platform + - description: Apple M1 SoC based platforms items: - enum: From patchwork Wed Sep 11 08:40:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799939 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 E9A85186E29; Wed, 11 Sep 2024 08:47:35 +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=1726044457; cv=none; b=rpA+WOdOEXazzCCmxgPPeWEzgKX1h1C5U4TsMfaO9LzuKJeT9y7wf4biJSP2VO07YnMy90HWLk25BVrt9+kacFRpFgzv+Pi5Mj513m3b6f8QXpdmpzP6djWZiHopjNCqnI9GZH9B4yHl71pU/ySMr23Pyyk86wwAt3woncaucIA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044457; c=relaxed/simple; bh=rlWe3x1oIfwBFP82rKxvCeoNstM7m0ilhyiMtpKm2J0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=XitaRTf1E8Pb1i7ofRrFhZz2osq4oX26/bg3OB8bUdvPxrioXaPN+bfUJ9W8oOMlmBDxPbTUh3S7ABroJRlc7mKo3xeok2QZyfqONZzVImCoZ0WGq70YOphbICgyQ3BG3jb+hmceDNzJZhROAS9sYDLe7PAXmZIGZd6iqgYjvnc= 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=LDbYhGbP; 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="LDbYhGbP" Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-71790ed8c2dso5626244b3a.3; Wed, 11 Sep 2024 01:47:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044455; x=1726649255; 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=wsMK5dZnZxr5aimciutwu7vmsAuU926u5lK8CD2rBnM=; b=LDbYhGbPtj1ECPmefR0OHMrOmJUfTEjzV+ctrM0k6zt9SqRb2LTSMR/Sd8uIyufAZT a/EBixba0Naea4fIs3z1z3F3oeDNYj/FB05ouAKfbouh4o/xRrMrXh2vwcBvBjVEF1cF J1s2CKhb5CQjLJniK0ahaL02xNIGy8zAooLynfZpYb1mn05/YtfCRDMU1PJNWFhYxVt4 p3kBvegJa0f8Ud3LFR+03Kxto4Kazhg87BLO+4UwpRwG4gwm8a+9bEt+GwBubR4E8k/c 7JOOhD0jIRCGr+VeLLs2iCnxP0qsNMvI9imqrHb9AwhqxpOBEBu5XzbUyGKn6yaLrxEO yFBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044455; x=1726649255; 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=wsMK5dZnZxr5aimciutwu7vmsAuU926u5lK8CD2rBnM=; b=oaBez+fF55jiGDnnTDBMhCVPFu6wLNm31co6ZOJmb3oNXEryI2XhOCCCsAednoKxph hOVYGXMiWlcPZHs/drSlSrQsGlmDS46lk3mSyLysySQ7mgTikhGye+xZwW1DQmk59Y47 7MMkPKXJ6ECDmQLpPzA6Cu2wadFWWQMsX/WoyyzEgMIXC4PkzCb4CoMsKGnK2Sd0DsWQ RlqBSg+ATgej8U/2Jh5OhH26yESIi/23uAGpzznVcbQW1RZZABU9eBwlDkr8fM2QZ8eh BAtOGI7cX3rgNRbpxYnTI3F0yA2dD4E0q6rWPSRndewpVjq6PCFTXHd4AescPHoCQwhk FRQA== X-Forwarded-Encrypted: i=1; AJvYcCUCkWd24z9sAlrQLQkTyR7ZmtGeGUqM3IK8OaktVdFmaQDnBJ3oXOJtCRDIqVs3svfvfbHA/4h+ZmzJqg==@vger.kernel.org, AJvYcCUc6YUo5KHhAkPK4SEbRFQjLGjBj5K5NL78SKNxKpUQtE3b7rOac5H806LtSeqxcYMbvB9kAzltx03uxJCoZKM=@vger.kernel.org, AJvYcCVFkMXshFrr1kt4Sbfz429yI7TdYaddoPd3nSXfQrt36OJFWhVkL4EP+FGlIa0pot3bi8Wo7m2OV3+qJxbC@vger.kernel.org, AJvYcCVNt5TGLNrlBMtQvOxLevq/41bZ2kcLOmvMBoniJ/at9zQMsQcexvGntq1h9H0B4y9QmYETu9N6mcQ=@vger.kernel.org, AJvYcCVkzDynJdXBkePPAsv9FvbcWYl1nPYczWWrZVZx9XflFdCPKJVxvambnb6dJD9tr2OO7Ax9DsHnxZTr@vger.kernel.org X-Gm-Message-State: AOJu0Yz5bl8y55edPtBQylDDp0XrKgt8WUP/WI480IdU3HPuWJiNg20v gqPKyg9bJGlvJ0Cd3kGdaIO0CWj9jQYbRkNK2K10/o25J6Ibbndj X-Google-Smtp-Source: AGHT+IERnHemvoP5by0tnHvzp2xdkPOo0seCRQgLQ0okm2hEjw0ezJ5MPH2AYtaklWcPO3AzarI53Q== X-Received: by 2002:a05:6a00:244e:b0:70d:2b95:d9c0 with SMTP id d2e1a72fcca58-718d5e55d73mr28265695b3a.14.1726044455161; Wed, 11 Sep 2024 01:47:35 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.47.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:47: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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 09/22] dt-bindings: arm: apple: Add A9X devices Date: Wed, 11 Sep 2024 16:40:59 +0800 Message-ID: <20240911084353.28888-11-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 f3f100ce8072..27311c75faad 100644 --- a/Documentation/devicetree/bindings/arm/apple.yaml +++ b/Documentation/devicetree/bindings/arm/apple.yaml @@ -38,6 +38,11 @@ description: | - iPhone SE (2016) - iPad 5 + Devices based on the "A9X" SoC: + + - iPad Pro (9.7-inch) + - iPad Pro (12.9-inch) + Devices based on the "M1" SoC: - Mac mini (M1, 2020) @@ -150,6 +155,16 @@ properties: - const: apple,s8003 - const: apple,arm-platform + - description: Apple A9X SoC based platforms + items: + - enum: + - apple,j127 # iPad Pro (9.7-inch) (Wi-Fi) + - apple,j128 # iPad Pro (9.7-inch) (Cellular) + - apple,j98a # iPad Pro (12.9-inch) (Wi-Fi) + - apple,j99a # iPad Pro (12.9-inch) (Cellular) + - const: apple,s8001 + - const: apple,arm-platform + - description: Apple M1 SoC based platforms items: - enum: From patchwork Wed Sep 11 08:41:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799940 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B343618732A; Wed, 11 Sep 2024 08:47:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044462; cv=none; b=Ox09LPrr9qT/jhn/Y8beMZEjK5sE5anCfmwwDvPYGGJvIg6yn9oH8jsobKNRztDWb+n1JaYfCAc8nYZKU4F+aBQhxaEOHSe5m5JWiRJ8KK0n+jfgzlfuVHWbzakP33+vmltNIve8YusdiqjorgBi+x0kYLR2BWLBR5iLxrJyvfc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044462; c=relaxed/simple; bh=PxOC33i0Rsl2lUZhdV9oiRVYZC88KWzOhKL37rPt97U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=No0Q7YI7lSecsISWAcV4QBsbkZNX3R9IT82t354gwqIrttqzYFNtzsGjE4tnI33Q5mnqmBB1vwq2vVvkcxJt8z5EwESn3vUAvCwfRnq5mijX2NABlpzGkVG3TqVRc2wqHQJw8BHdXAqTs5116ng7wgD2h4WfSn6j6vl7qV8Kyjs= 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=aTi7flKf; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aTi7flKf" Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-71790ed8c2dso5626314b3a.3; Wed, 11 Sep 2024 01:47:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044460; x=1726649260; 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=P+/aZHkh5FNnLm5U5M09ijcJHqZIVes5WSergbQUG0M=; b=aTi7flKfi5iBporkqdaXSKs/zY0OdRi0b98H6/bWi+sCa/UgDgh1I+xPhdJWzBEltq 3WQabvOv35TBkEDgUHw1VaoGF72l3SewsIeFBHEruGhrcbrAOvsab2B5t16KKhndMdaf Wl1xAtFE8Qtr3YPY0iXQFYjInx8p4mw6PPM66vfRWAlG3hfqpG8hArwc+SSSUhK4oU3k VUKd8zvSVGCV/s/gLwt6C9/jY/5PY3Kchv1P/4QQWIAJs01/TAdrmDmydoMug5t2oQ3/ j0WG6mEjpDeXgEgatF7+fO9jKpJYLalywb54JYNfo3Ro+37hXr9IAUTSr9oMp/wiKq2T iBhA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044460; x=1726649260; 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=P+/aZHkh5FNnLm5U5M09ijcJHqZIVes5WSergbQUG0M=; b=JVyZ8KBSUDMc4bwk9ZrFVRA6jjR/H0xA4ye0VehSc9F9QxS1jslzKTngPBWTlegl+T MBpW6amkxYkawbCbQRiGSOdUMx59sS9B4k4rKEV5FogFTDrYeJCnwLiIqcMUm5xHaBG1 0F4ZowYLMb6FmDiVvIpvTkkHct4n2Wv/d+KVTeBJbk99QrF8Y8TlKMgvrNslLGroi0od XSMahUQE116ZRHwO7j6B84VCU1IUXiFkSCqC5XWfDkJ+R5EsSKYcCudwRJDfhgHRsdys 6zv7J53/Pnyyw3C0d8ScqKODT9n0FPkiR9Ou450muTnNqNI3pm4o8HIOaqRgXoa37ybg cYiA== X-Forwarded-Encrypted: i=1; AJvYcCUC/1UW9vuQHUU6Lk6lpc51Gi4l24YG1Dv1c9PQrQGxRr+RvY02qMX3jpdPBE0BrJ+BLYnQeYsZzW7How==@vger.kernel.org, AJvYcCUuptHey8ZYZNJhwWJ4lZY3WjmjmAvEwFhh9vt/hfaktmpFpC0SofbX1g/jr426uaLsWL/cPRkFELRv@vger.kernel.org, AJvYcCVNK9/2bw2go0i7z5RtdVawPgOeDdcXxHXaSjAf6KPKnRLbVHJwdyaZ8BwBanUvSI2v2GPNMC7NQtLrIgYw4ts=@vger.kernel.org, AJvYcCX0DP8KaL5ACFy4jqgNcX5WS6FVqF7ob3sEhbzxcJBTw/AklQkA9Uv4wiJ4LohZ5ebIGjeKOv2G+NLJ+DOC@vger.kernel.org, AJvYcCXIYXTS6KJjZ5/FEI5xaoxQghdrnonc+r1/nlHOK8VWnJnO+/0gxIRtLHNQmjweRMtfxuDJn1xgMKM=@vger.kernel.org X-Gm-Message-State: AOJu0YwC5H8hwS4bzONezX6mpqDh7ETiPiIJabeLGukAe78Q2HNz++qz Ed62B2DE3GvEqyMQb/fDPZbHIdC2CglM3vSXiI6CcNEFYbBIxA+O X-Google-Smtp-Source: AGHT+IFWm+lBeW7Fn0wnv9eqQIov8poKTN3KAm+U4yVC5EqrImWQGILS/ta6tYOmIbYfpse5ZrzOdQ== X-Received: by 2002:a05:6a00:23ca:b0:719:2046:5d69 with SMTP id d2e1a72fcca58-71920466977mr861707b3a.22.1726044459800; Wed, 11 Sep 2024 01:47:39 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.47.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:47: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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 10/22] dt-bindings: arm: apple: Add A10 devices Date: Wed, 11 Sep 2024 16:41:00 +0800 Message-ID: <20240911084353.28888-12-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 27311c75faad..873b62035bc4 100644 --- a/Documentation/devicetree/bindings/arm/apple.yaml +++ b/Documentation/devicetree/bindings/arm/apple.yaml @@ -43,6 +43,14 @@ description: | - iPad Pro (9.7-inch) - iPad Pro (12.9-inch) + Devices based on the "A10" SoC: + + - iPhone 7 + - iPhone 7 Plus + - iPod Touch 7 + - iPad 6 + - iPad 7 + Devices based on the "M1" SoC: - Mac mini (M1, 2020) @@ -165,6 +173,21 @@ properties: - const: apple,s8001 - const: apple,arm-platform + - description: Apple A10 SoC based platforms + items: + - enum: + - apple,d10 # iPhone 7 (Qualcomm) + - apple,d11 # iPhone 7 (Intel) + - apple,d101 # iPhone 7 Plus (Qualcomm) + - apple,d111 # iPhone 7 Plus (Intel) + - apple,j71b # iPad 6 (Wi-Fi) + - apple,j72b # iPad 6 (Cellular) + - apple,j171 # iPad 7 (Wi-Fi) + - apple,j172 # iPad 7 (Cellular) + - apple,n112 # iPod Touch 7 + - const: apple,t8010 + - const: apple,arm-platform + - description: Apple M1 SoC based platforms items: - enum: From patchwork Wed Sep 11 08:41:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799941 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 15B63187345; Wed, 11 Sep 2024 08:47:44 +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=1726044466; cv=none; b=KcUoyCGdwnVgyoVHIR3UVSUf5W0Uld3suS4rKO9BmSb8IoyLSvhUoI7vjiRKCmzoD5APKnGyT1e7Q0Y/1r4y3gxuPpM7axqfxyokSJTxFA9ctCnJk+sCa0y2rsuoLuYeOdqLkg24d+7uLAU7ajaaUMY+EXQ/vBKH+rgIKac1mQU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044466; c=relaxed/simple; bh=e+RwqZ0KKDj0FMI96kxmn78KGmId4jrdpNHTTf1PFeM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=jFVtV2c8cCEtjTKk41a12xTcEXyzRFFfmRMU8ofRY5E9r9SUsHUtocpWVtUsEUhvvDCObioiGh3r+N+o1GcsrnJR+GRHucY4w1bblgRfgWkTclFJ7bVRoIzbqwboPm73YJvhp0+elFdO/PJUuhQynBvUY75So0zVum3K4Duy1tA= 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=hsDvA4GR; 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="hsDvA4GR" Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-718e11e4186so1637962b3a.2; Wed, 11 Sep 2024 01:47:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044464; x=1726649264; 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=AmXdf6OWZ+6DgSIhVYS2VQN3ZnSKQAowmzyE0LCVjPI=; b=hsDvA4GR/p8xsokoa9hgZiNW3PMWXxcbDTT8Fdq54aR9Rpp+m45AjamsK61xJYfv6H He56DarxMnkEgxopnIojp9l6o6zU6qz+qJkNa6cxsOQNQaW5XV5rB0TfzzU90WF2ofOZ nLymzD6Z51cS70Tr9FPFIFhQkraIQE0ULZQ6t4d1P3o+Ia2kDMzmO2EjeNgoX0bGeKU+ ixsa/kUHGKk502mFpvC/YefoZazSh6Mu2ruLwo/lNhODMuoyDrxfqhY8ZJ/tzyh5zXmX 6NrQEvnVfn/HN0LgW4FEtCj9Qqnl3FkG2F72aFNV1vRrq1ZdB1tgNnUuppnzZX5NCoPA Lr3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044464; x=1726649264; 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=AmXdf6OWZ+6DgSIhVYS2VQN3ZnSKQAowmzyE0LCVjPI=; b=uh/xCnt3+ZU0n74ZAHZA62+Bv3KLiV7RfQ7fXzoLnsgLxzAJHVCsbWLMojCVufJRkg 7oDEaX72cuOZXFkMoDFI639ORIQFuR4CNzxaJVKjdgqEnHhhhsV9jgnjaYNgC4gwiCwg 9gUPx0cEpM1dJTpwEjKoTZaKVZe2b2ElZPs+rpnddOlFWRNLzoJtZwR97D93y3oQWgU3 ZsYk+ZWruLMTkSfztOolwJutkZYFhFQ7PVEZFd6vDLY+aNMXBmdm5GHQCYQ8rA8G+fmA 1BFLN8VVR4vdfv7jQPGX8NTTFeHAqAB4WyY1B0OgIaGxgRuNxOUkZln7mj5zI1q27JIt ofyw== X-Forwarded-Encrypted: i=1; AJvYcCU0XQFeKweMIhkHGwlIleJ9FwB6bENP62UNNcbtMoJJj+IadEqbbRgG28j/sXwZmkqsN0ELqjNa/F+d2qLz@vger.kernel.org, AJvYcCUEkskz5m3J3O5o916O5S4BRL94M2p0HL5NTzWu/2UqF0ghBNAlNn09Q3/IOwthl75j7MPQil61cu4=@vger.kernel.org, AJvYcCVgPf5j0FMCpyeRTToj4VTHUyyh6XsfkFdJJr+/HxMEBhP+LcTkMHrbLSY/DcQhzyzLCQKRH7zwpbCirw==@vger.kernel.org, AJvYcCVw1tqto7rktW9IF2oPNdL5s1vZ2AveLEcwEM0bZjOQjzBr/DuVsImeIsK1OP8vlmC9GvCioWdYpr0f@vger.kernel.org, AJvYcCXcaRLSio3VG+2bRg21TV6EfWd1f3/ybtxXIx1OxmM69eD9hbLIZ/nrXHL9X5wzd5cyhk/p/cYjzahFb2PtgbY=@vger.kernel.org X-Gm-Message-State: AOJu0Yx6pHr+nYDEuaiveeC/ZjEp4Ds/MCkfPWZBmf78XUFTDiM+GDLR qIZBbuJ9EJASrfi4E02FjjPkcQeITe7bYIzPMQbRWe06+JGT6jax X-Google-Smtp-Source: AGHT+IE5ml0se5Ym/mHN+1lct8Gh6o22KIxJaN+WlMCEv67cVuSqhlXchJvBOtUM8B5UPM4aL6o2kA== X-Received: by 2002:a05:6a00:945a:b0:714:15ff:a2a4 with SMTP id d2e1a72fcca58-71916df43f7mr3070313b3a.13.1726044464385; Wed, 11 Sep 2024 01:47:44 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.47.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:47: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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 11/22] dt-bindings: arm: apple: Add A10X devices Date: Wed, 11 Sep 2024 16:41:01 +0800 Message-ID: <20240911084353.28888-13-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 873b62035bc4..2831a662f5d5 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 Wed Sep 11 08:41:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799942 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 9AF341885A3; Wed, 11 Sep 2024 08:47:49 +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=1726044470; cv=none; b=mSrYYR1oYE3ICd+nYCyuNGGemtd5HoZDKuHHzs8h6wKvCUfYZJe3PT9hINh/qIgMdos6us/m9TYFi8NPZfy5EyKoEmQIvsBRb97UusWx/jtK4RRxYmGzmZZ53f1bkpT8o8z2PPGBZn35m4b31xF+yaGLFniQ/tIzmJX8Q+R/9Vc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044470; c=relaxed/simple; bh=ppm24EhHTD4hEOGBkzF6TqV/PiS5UAOxThSexqShUAY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=emRW3/AeL24nUGl6qf+zt1c7xUHRH3DcWLLjTPDjjkafOoYGwnECFoOiU07s9j1GqMjvrI6lXFJjal+ssPvovvHhUjHWBkJJ9FSDjWUr17RTRryT0Y7JG4pw7Jip9LrmTeDBWBm8I7N2ODsvSxLVDfdNvZFMq7SbP4JLSNSD7iM= 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=dA1inbIa; 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="dA1inbIa" Received: by mail-pf1-f177.google.com with SMTP id d2e1a72fcca58-718d6ad6050so4092300b3a.0; Wed, 11 Sep 2024 01:47:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044469; x=1726649269; 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=L+WqBT/YEPLVK1UMgD/sAA9WnitOE2/cu5y5DWlVtYk=; b=dA1inbIaeI2r0Ud5lIdLy1u+vZ425Gxj7N4Fg46go/eVdEWYIPSblgPbKSs5FiIUtD HMd6YgzcBDXHzGlNONqyhOjVbu14xm9oEicqQR6Vz4+iH7IBc2Dvt5PnDUXlwXiaqah7 DmSqhsuXPJ/9OQGgkfSUkrBYtUcvUe1MMVt8Q9NvSZElNg4326PCp4uNIwSXw0EkFRTL pFphHIldAq9gOGBNH3V8YOK+quE3vXZnucfu2ojL1C3ZBGCyWuPHBiFoWAFObZqOFFS6 RDucmEHPfsFf+GLEDoPhiOWLA1rpjMerdxcGatuecCCccachkuJvfpjC3hDD/94+jLQ7 WpdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044469; x=1726649269; 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=L+WqBT/YEPLVK1UMgD/sAA9WnitOE2/cu5y5DWlVtYk=; b=e+3fc8hE8GQs9piWwT6+scgZM4jp5M9aploagzq7zmrIxSjat2IC0G7TkS2WNJMHZb lWrFgTCMSTM9bRpnomk5oHcDD54cKoM4jkXKT0cGi3P8WRp9nUBmHxFwY3vH+JbdO4iw vYh2qXEp5b0OsbWqgPQfvFQTV11SIFtlVA+YXJX2WOxUZ9JPolZk4Tdu8mZUSLJuWVPM frDLSU8QXrwnB2cTlIXK55p5TJ+JH2hU5Y9PGYqKSN9i1vmTFb47DkOLukupMIeAFN9o i3nNk4UNMl6DlwHV1rUBK50VEeDV84ukitIO9c0YenQ5Yg9mGkOrLhM7zVyg5HZfPyh2 1fgQ== X-Forwarded-Encrypted: i=1; AJvYcCU/B9rGi0JfOdl7OeIR+zJV16BxPM99BaZ5IiczgM0DrErN/fqHEW2F4lC2uEbRSPSTrIzxFu2LxR+I@vger.kernel.org, AJvYcCUPlArgRJO/g38TPnfshbERRW7ZDvufFtuI7M1MPULd7ehm66IgKxto4k3LdaXq/P3ilTTMDhGLs3fEjQ==@vger.kernel.org, AJvYcCVm1xN+jn3Me/bY0MyMmtKLJCEe1gXygloMJOmu/enV8f9RRALXvebuqg5CCjZsrw+/vb+0+8AuX79ciT24Vvc=@vger.kernel.org, AJvYcCW5scyz+rXkiosM4jyyLsaATKPwVzlf1Q5LUd00ebmgoP/lILlRmb0ElcFlCQY9VNS28b/a2aZvwCI=@vger.kernel.org, AJvYcCWqyQLxiabxCINJGXDdhEjlaRW2Q3e0UC7ZIY8pYjiV08VgxQ62ER7lUQCCORmmc47dMdYTVpU4mAqQR108@vger.kernel.org X-Gm-Message-State: AOJu0YxoZidFBQqB6tEVhhxdGze38qfpvGKRul6D3XeTzZhsIHxOga5t Q11lPFFeS5E7eTrMFZH2zkTAPKl8kTfBMy7QC/5/gyvuMClhbQTA X-Google-Smtp-Source: AGHT+IGFBhuKkq7tslhEjhMirf+wLTw0A/dg7JQDlTNh9KZ10jyDQP2kpndSU+9+CF/mEy0DUaEvjw== X-Received: by 2002:a05:6a00:9141:b0:70d:2693:d215 with SMTP id d2e1a72fcca58-718d5e9daaemr19669536b3a.16.1726044468990; Wed, 11 Sep 2024 01:47:48 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.47.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:47: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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 12/22] dt-bindings: arm: apple: Add A11 devices Date: Wed, 11 Sep 2024 16:41:02 +0800 Message-ID: <20240911084353.28888-14-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 2831a662f5d5..15e46f13fd2e 100644 --- a/Documentation/devicetree/bindings/arm/apple.yaml +++ b/Documentation/devicetree/bindings/arm/apple.yaml @@ -57,6 +57,12 @@ description: | - iPad Pro (2nd Generation) (10.5 Inch) - iPad Pro (2nd Generation) (12.9 Inch) + Devices based on the "A11" SoC: + + - iPhone 8 + - iPhone 8 Plus + - iPhone X + Devices based on the "M1" SoC: - Mac mini (M1, 2020) @@ -205,6 +211,18 @@ properties: - const: apple,t8011 - const: apple,arm-platform + - description: Apple A11 SoC based platforms + items: + - enum: + - apple,d20 # iPhone 8 (Global) + - apple,d21 # iPhone 8 Plus (Global) + - apple,d22 # iPhone X (Global) + - apple,d201 # iPhone 8 (GSM) + - apple,d211 # iPhone 8 Plus (GSM) + - apple,d221 # iPhone X (GSM) + - const: apple,t8015 + - const: apple,arm-platform + - description: Apple M1 SoC based platforms items: - enum: From patchwork Wed Sep 11 08:41:03 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799943 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 C4C2B1885A3; Wed, 11 Sep 2024 08:47:54 +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=1726044478; cv=none; b=W+4Kuw3epOQJu3+0T+weP/IWZnZ0Z+RF96azlNX+uqBYZ4Rzm7WRqmteCsxkPZCpJyw1EhvDh4kEX8ilPo4OgxYvOtfVxdGsLeMZwikqRGgz0crhj7FKdNYgbW7bupo9IOr2caVwyvY0q+t3nz2fK/WQscv1dHF72YkthSN12fU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044478; c=relaxed/simple; bh=g9nc4Ituj+X1HWyXRMzbaj6RbA6YTyycvHtOn7+fDFk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BAxlDwpyRK9Mm0sFdIZPUum9YwIcPAFcNSq0DjYmqL46EqREgalQRCfbGUWEeY9tIKvn8DH8cwqXNKs1oT960Zgmu1AeeDqX8MgapE9vQRkWYzCK8TqLnzclyK9+6OKiu2u+YkaY1CcL0DQAM08BJ/iMBZDzLRVZ6+XskxDCL8E= 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=IZt4nfNH; 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="IZt4nfNH" Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-656d8b346d2so4161678a12.2; Wed, 11 Sep 2024 01:47:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044474; x=1726649274; 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=qWNzugIv3rULovOLrNzbetORGSTAU5vtXCO8QT80TL4=; b=IZt4nfNHENKodj2oh7998PUAShDxOUV8DNF0DvcXhVe6hA8Q+rYgYWLUbae8vmmv5O M95DQVq13BNxbC6eBAs8qBsTYH5E0YcNQVvomo4ijlG//m2KCrGvdJvgs8ARvT0C9L1x koqdtRxl4/afYbWzORhE9nM4WnwhkToZLxczZsArpR3aftinY6BSAg26mhexID3qkkrN HzAV3MqkEyLd7PXWdgiLUjzt9yOi2Gn0QtAkVHB/0AjvKjGku97X8q9S5LUMoG6+0WBC PTyv6Mio0h1O3SIaLiqyV9Wi9w/bUUg/SHptMi7Gu0XxMwQVGRW4Y1thrXhDL3gsS6YZ 9JYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044474; x=1726649274; 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=qWNzugIv3rULovOLrNzbetORGSTAU5vtXCO8QT80TL4=; b=ut6lSeyB543A7RH41op+26m3SvWeH0tc4K2KJ6NcHbbLX9HgN04v0KZ/m79cwtzx6A kbZ4DjQvnu8HuvlMpNdq6uv1ROtMcNuf2wgQDCV4FHIBClNxkN4C26175W6HNgym5nwU yoy46iNOz6ssNwU86yTqNfFeoe+sqJ7Lrgf+wOb7AkunxpuW6lUHfbs5PuhAN01rSHre wJjteuu4h9Dkmi5Ay9o6sgx9oS1IEw1FvBpPlQ6AHYBemApfsOY+1YUF2ciKG90Zcs8K PMvWsD4F7CGuMJGdseJv5iYoTu5QiIUXA+c8VZND/JetKd8bnfvOIoFckG8y/o5cDX3m oNpg== X-Forwarded-Encrypted: i=1; AJvYcCUG+Ik4BQaHLzl0SKqrUxk8eN6SiCVVOzzCl1S1hfIxE0Gf49ovX/CEfVAQzPeEPgoeht7gi3Fz1fE=@vger.kernel.org, AJvYcCWQf0NZRP/1D7v/5xrCkefrAsJ44FSJFdV8AsdIpXgzZhfPXVDz9DKM/l37YsiNLWoaBlAaOCfXp+s/@vger.kernel.org, AJvYcCWh+iNa7Di59usalho4gxAsTiAEumYzDnMqD4FlCzRlcAkEEiYs8I3t0ttnHTN2YT9v9UsxhYf25DcdYumt@vger.kernel.org, AJvYcCX+PwQ5N/Ok/596OcZiqbYQEbFwczYgN7HEE9YhiibZuRbpFZsdNN2Jwb0cZkE3Vco4rmSHqOt2IzVJ6KpQ768=@vger.kernel.org, AJvYcCXPsnthPOqinUvtGQ/CuYhCABN8cwtvy9sTf/N1XK64NqMiDOyXFa6pWW7G7IMWQIioHCwEnWdAbRCqxA==@vger.kernel.org X-Gm-Message-State: AOJu0YzrYAeDKLodH1iKnELrsMPfKs/GyrpOXIXIzRHxa/oam4wBwD/O NQRaeaq1gnwiDa2daubjmUQzCWCLNZwoGhk9x2MsUl2JBmr/JI2Q X-Google-Smtp-Source: AGHT+IFOoRLQFiA69xNfcw2iR/+a56NPEeMysSDqf2Vvde5Cvg5sypU3XDSUCoRKPlLIzYmqIAE1Lw== X-Received: by 2002:a05:6a21:4a4c:b0:1cc:dd02:f8f3 with SMTP id adf61e73a8af0-1cf5e106e2emr5507672637.28.1726044474006; Wed, 11 Sep 2024 01:47:54 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.47.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:47:53 -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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 13/22] arm64: dts: apple: Add A7 devices Date: Wed, 11 Sep 2024 16:41:03 +0800 Message-ID: <20240911084353.28888-15-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 | 52 +++++++ arch/arm64/boot/dts/apple/s5l8960x-air1.dtsi | 52 +++++++ 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 | 52 +++++++ 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 | 147 ++++++++++++++++++ 17 files changed, 481 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..1a8d92a8f00c --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-5s.dtsi @@ -0,0 +1,52 @@ +// 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 + +/ { + 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..ecddbb33bcc2 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-air1.dtsi @@ -0,0 +1,52 @@ +// 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 + +/ { + 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..208415db4d1d --- /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..b3d84a46cb64 --- /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..22de63976649 --- /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..11acb24ab41c --- /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..d1fa78af3d2f --- /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..10c5f4cfcc58 --- /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..b214b780a12d --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x-mini2.dtsi @@ -0,0 +1,52 @@ +// 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 + +/ { + 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..f4b8afbfa5f5 --- /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..ba50c0bd9650 --- /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..6115efd95b80 --- /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..fae18d4be53c --- /dev/null +++ b/arch/arm64/boot/dts/apple/s5l8960x.dtsi @@ -0,0 +1,147 @@ +// 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"; + /* To be filled in by the bootloader (based on XNU BootArgs). */ + reg = <0x8 0 0 0>; + }; + + 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 Wed Sep 11 08:41:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799944 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 9C8FD18BBA8; Wed, 11 Sep 2024 08:47:59 +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=1726044481; cv=none; b=i9uaHL3N9Xl3WlGDwUrGb1pgMcM+4YbZThAKienRArHF0GCzsk38cMSy3a927hC6TA14JFZgMw3NgeQOdWtPEdSoeNDrayM3PUaO5qmxb1WpTAc5Er0+H19O0097CKFEIOPt0wmewiIaZORkw7A2lG7fbfxOQ9OusGzO+qnX75o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044481; c=relaxed/simple; bh=okgKPtFZUp4gKzTGJP+LnW0sMxf+fIfRCxPNlz2Kaqk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=VRODr4Hxm8R2QXagV3CLQ/c/3+OhXpcZ5P1UPQto72773KmO4ESbIv4SUBCr/gLsyqNs5+Y8uCy31Xelxetj3+6PGElGq9qc2bZ6EhgSxiP7eEASxwCroQs+aS+lpcBZmMBi/mgcNzzgcn3vrLPdON40Ohw+yfbHMIP/XWsn2hM= 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=UKUMZs9c; 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="UKUMZs9c" Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-7d50a42ce97so785134a12.0; Wed, 11 Sep 2024 01:47:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044479; x=1726649279; 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=OZAP3lPiMNUTmbYMZYfeFAX+IAjbYEnzidSla+NMtqs=; b=UKUMZs9csPxgAU/CQwM2w7E6dAxXE2P8jHYJbS4muVOGYLCERxSG2PqNqHJIcD5DMT /xCYaHta87ZgnQcCg99iZYN0439l9vl5RSiiNpTDdOPG41bWp89Mka4FLalhhkcQ57C5 3xpkdM6ND0Dhhjqovj7XU80PUtbByIvSP3kqRv/8UfJceYDF9dohzVKGLLyxCYAEJvuV Obkx0gdhtgkenMeM+0wCup5ZNb33jiHnLFsn1hG/yVT1/qGofXUwj+gawhCJxZmP4aKj lSPm1HKCqkhOZBYI1fBFBbEmGrWO2bd+lekXpfGbdBLMIRu7hJEE9evpZy93XZ2BGRdf UZIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044479; x=1726649279; 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=OZAP3lPiMNUTmbYMZYfeFAX+IAjbYEnzidSla+NMtqs=; b=ODe1qfVf6xsuJEDG5VVSkHRVeGqduCpL6oNJN1ikJZRFNZQ+15Et/W+XtzlWSHP5Mk L7I87IrxFQWDhlOBad1KF8ArHT8lVP/U9R2/PCAbhyiTsT8X3mXp5meW7b30NFpul+Bs G3Pe116SfxCGhwljJgGfq7xsFYFkyhlvtT/lBu7y+iUzD1WJm7t2GdxbqAFX2hgzd/ck UtYbMeiD+Vpk/PiblFRwpAn1CxgHXvB40rSewH9m0QnV+ZShl9uFscgqL7K3MD9Iw6g1 V3c94EwI+nJg9J5DPsJW+fmX3eLxUbzQjaxzUXbIn9hvmANcYqYo9gFVwm+6L5s/Qvzt 8S6A== X-Forwarded-Encrypted: i=1; AJvYcCUGomQWodwP9QFHHqs6OaGbsfQOjS9r6oDKU6tp14Wd60FU3caCCDOUNtzFHOUXVUBOzm3ifFoHW+XE@vger.kernel.org, AJvYcCUYMnBFRRf/DTy/1affgzzB1HwBteTRpEI057VkpDEYcPWAnKRBpX1ZuAy1h59Fk3Qk96VuB+vV2Q1XiciyUL4=@vger.kernel.org, AJvYcCUuHxGY0Rs6+MaVkyv96BoOmibEX/GPobPS7meFxTqQDBoSSrjzGcHWo4oDjfaE6c0aM1TXMk0hA/I=@vger.kernel.org, AJvYcCXDfrx1vATFWBzfdQNHDJFqx/5RhCrXyfmJWghSEOykgVbsdXSvcDG8XqKP+TQwhI3K84mGpphBiDm7WTJ3@vger.kernel.org, AJvYcCXuQJW8peZ+wwqbxUAKD0z9//CIUvc6z986S0D2YxOkt1iPp1mauGlsj7NRTCRNxSNyXHf0qyUGB7aAjw==@vger.kernel.org X-Gm-Message-State: AOJu0Ywt0HruuLrCTYIgqA2ygB5q3qWBT6EUHsxQRioYBXd9yM7jm+I7 vMWqUEq2QD3ZN3/hJtw2Al+BjUpc7XfHKc00AAxiSATvPT2UUamK X-Google-Smtp-Source: AGHT+IGb89HL0C3ohs6NxwONCIs6cyxJOZ4pZK0PzHC6Ibl7Q9ub2uMI11gaVFkkojHNZUPZSio2AA== X-Received: by 2002:a05:6a21:4581:b0:1cf:5155:cb5c with SMTP id adf61e73a8af0-1cf62d5ca33mr3803475637.34.1726044478788; Wed, 11 Sep 2024 01:47:58 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.47.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:47:58 -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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 14/22] arm64: dts: apple: Add A8 devices Date: Wed, 11 Sep 2024 16:41:04 +0800 Message-ID: <20240911084353.28888-16-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 | 50 +++++++ arch/arm64/boot/dts/apple/t7000-j42d.dts | 18 +++ arch/arm64/boot/dts/apple/t7000-j96.dts | 14 ++ arch/arm64/boot/dts/apple/t7000-j97.dts | 14 ++ arch/arm64/boot/dts/apple/t7000-mini4.dtsi | 51 +++++++ arch/arm64/boot/dts/apple/t7000-n102.dts | 49 +++++++ 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 | 147 +++++++++++++++++++++ 10 files changed, 377 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..8aa3ad8ac0e2 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000-6.dtsi @@ -0,0 +1,50 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 6 / 6 Plus common device tree + * Copyright (c) 2022, Konrad Dybcio + */ + +#include +#include "t7000.dtsi" + +/ { + 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..222e0bf7dd96 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000-j42d.dts @@ -0,0 +1,18 @@ +// 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"; +}; + +&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..98d5b8437e0d --- /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..7cae598b7428 --- /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..f987e5f6116e --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000-mini4.dtsi @@ -0,0 +1,51 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Mini 4 common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t7000.dtsi" +#include + +/ { + 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..1b88cf4c3cdc --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000-n102.dts @@ -0,0 +1,49 @@ +// 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"; + + 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..055a878f78d3 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7000.dtsi @@ -0,0 +1,147 @@ +// 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"; + /* To be filled in by the bootloader (based on XNU BootArgs). */ + reg = <0x8 0 0 0>; + }; + + 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 Wed Sep 11 08:41:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799945 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 4EBB318FDD5; Wed, 11 Sep 2024 08:48:04 +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=1726044486; cv=none; b=fecNtohbhrqE/hyRBDdEq7fRMfFQ9XpIIgjV4M2uFHXNSVSvyor5+QVgFGWLebIafoe3R+DOFL3TTWxS2ZNMLEXb2ZH5PULP/XkldSzDIUliv3Yf9cGedtZBN2P9h3GdyewCsCBUhImWPvqmV4+KGU+Bdiz4vRxhJj1ha6JVN9A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044486; c=relaxed/simple; bh=p5B0nMUiXk2Nf+hW1bJbdvVrjX73VjTxc8JQ2izCgko=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MYw0c35YKI76SEv3L6f7xs5XPSj5h/X7BQeidxLPmxjM/jVhrr2ALrdTmfr+8suVlHfeHgMzx+0J9aN4d0ZlnnSZTYftECDIw+oyvZZ6XyqjtDfcEvZQTVal6EtH+wwFQCFu+t7f+AT74ayfTGCvc/Q++Na2TF/XwiH7fLR8vBQ= 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=eQTQZg5G; 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="eQTQZg5G" Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-7191df6b5f5so200452b3a.0; Wed, 11 Sep 2024 01:48:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044483; x=1726649283; 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=YMPbclYCNFGi9JPTCNBzyfzCwz/gwpnCEGb6ZlMwvTo=; b=eQTQZg5GSFo2CkiwIPTloH7ulDgUGdrg6cGHn5uQOQgG/kylckB3LhTZ/+FxOp1JAt H4S/yK0GkpZu/u1mHVDYdoKMKdRvddxxqN+yo1fxuO0LlvItWfYbuPXFGn8GQZWkcDwf +qLMdaZWSfURCO+qcXpr+2keLdLJZXDcB1HN9zKmTO00wQHYovSkQY7vnYHO1wokk/Ya YDqikenHQo4QTQZwmOnkBxSgT5Mk2T5Y6c6xQiH8+Curul39dKCpeEX9XfOhps3NZS1O d9H+vvvA+V2J9XI4wIU+d0f/2eQOeAXV/6qT9YHtbaxEpRgLqjbGeHQg9d9Nxg72rX9i psNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044483; x=1726649283; 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=YMPbclYCNFGi9JPTCNBzyfzCwz/gwpnCEGb6ZlMwvTo=; b=creSyfiHZihoUzPPr0C+POoMNHRP8jXEj+Ni+HPTa7rLhCK+ktFT+qMqA7RVRX7aNP ZWgPQXvDNQTORLLYzLBLW8vWQgf/9qctMGKQ2cNF7z1HGJrQx6ViIRp/of2Ra2+zCAJ+ n4qrjXx1/GKlvTmZHw0irGz2IDIPwNJ7uprHtz92Sjjz9q0VCwsPlAh0ms3KNuu8ov3f OEaRse09cOOgCkaPvT7/8aWK5ngk+U7ui7YxzWeogDfIxB9+Si+Ge0CsMUD+3fnuCVde iqqkWHlvzsHA2ZYJ/wjkwcEhfBxdhIEGyGp3j3Dq6HUR0VTBAW/gYFchwdIAk784ThUz t4zw== X-Forwarded-Encrypted: i=1; AJvYcCV0FvN5wtpB+QRHBYS+9JjqU0x6lFWXhsmx4wWpHb8A7lh7zdgR3N30YkGWf+3WUlluRrypQbhrM6a36Q==@vger.kernel.org, AJvYcCVKFktveLt6vQFyD2+3MIOcTRVx2ZZaca5iEr3k6MCUwcHMjJpYo6VakzQNqpQirP8xpWd/S/qD2xFPCfL081E=@vger.kernel.org, AJvYcCVxplQbOmeiS9DvssDKlVDS8NhX9KVdTghHVWTFDcgZgFGTD8kF8PcuK0ASb1ko2mngu9/cMjBz+cQDJjM0@vger.kernel.org, AJvYcCWsCKOQOnHw/lx0+2vmrH85t+A0DCMJOALp6lome0poM+pl4VmUa1MjoiIW3m90/cywY8O7MYgKHew=@vger.kernel.org, AJvYcCXvjepsIj3rsTohnRwo4OtJICNueNkGEzK5xAbk3gcrhjRsMQx2klMFCe+0K95BQ7nI5nGg1ApvISJK@vger.kernel.org X-Gm-Message-State: AOJu0YzYgkLrJUVRBNgtOnj51vitbIvNkKhIHDNH/U0DZm/Oke5Bob4b vcyRydyoH5QDa6zmoDRIHWg/tVfJkEs9TNUeoiflM8ElF02Rc/jg X-Google-Smtp-Source: AGHT+IE7AZsL3FZQaBv1lAqTrdgFMdmNnJVT3hulpenmeXW2swQpgA3XrR6DOc91ih2n0zjawEEIKw== X-Received: by 2002:a05:6a00:1993:b0:70e:a42e:3417 with SMTP id d2e1a72fcca58-718d5e189bbmr25371924b3a.10.1726044483465; Wed, 11 Sep 2024 01:48:03 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.47.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:48:02 -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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 15/22] arm64: dts: apple: Add A8X devices Date: Wed, 11 Sep 2024 16:41:05 +0800 Message-ID: <20240911084353.28888-17-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 | 44 +++++++ 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, 228 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..2c84de4c418a --- /dev/null +++ b/arch/arm64/boot/dts/apple/t7001-air2.dtsi @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Air 2 common device tree + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t7001.dtsi" +#include + +/ { + 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 Wed Sep 11 08:41:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799946 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 18C81192B88; Wed, 11 Sep 2024 08:48:08 +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=1726044491; cv=none; b=X18HqYJkIpdplNozXPFm+2XtfT/jzCqGNPPh0943OFgNIMjsUay21umcORfB6EIWCfFKTY7iHXA7o0+fD6gvgAqU4Z1mWJdYS82Zo6kBtz2pqHIsqCWM49a1qMqbs3arnCo5d1wzVWXFDDk84G+sUQagRU2NfKiT8wsB7yw4ODM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044491; c=relaxed/simple; bh=+0BJMZ1uGydNCD3sRiYxKFetbM31dqKhrk3C2RsWZ3Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=uJVv6/J3Qwp7eg1xHEmY7+YCd8FFeMic355yqI5uU9mY7JqVLlMgryHhOgIPYZjWMG18cuLadXektjB5dQmOsVrdeZ9Eu9dQRUYAdHiZhi30VVRxSbf/IE7B5CZrwiZo1m9FQu+Yb9FZrp4+is1JyKL8PF19WZ4XinUbjBqbOOg= 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=b9uKH1SQ; 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="b9uKH1SQ" Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-718e1ce7e84so3311218b3a.1; Wed, 11 Sep 2024 01:48:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044488; x=1726649288; 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=AWI7D8Vpr+QQ0FflEt9NhJTvs3StoVLvCEBO1MwMECM=; b=b9uKH1SQk7/cKnX48+twBevv8tvFI8NXviJYQdbnE0ewB5LqTGZtzHVW6FSrXAuSR7 QPJoLmGgQrCdlCraNg0lXcYoHOYgZ12TmH2vICRG8a6FKl5NEQl/S8fLlVsasqnD+Qkn T6rJeM6WACdivqHw2t9kmwM8UfhHsE5mbeNCYcuZgleqxCyJ57RH6vmjVlwNIB07LDof BP3jCdW6sb7CPGLOVoJKAdNH2LoIshPGwc15nPVbHVV3s0Puritrxo8k6AnwJSwHyayu JMalRJWbHND76gTJ71aU0ypk108gDsuVRPm4Ffr7mIkH3A6hijNrxuthvJDu3X2Cs9Ci nGsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044488; x=1726649288; 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=AWI7D8Vpr+QQ0FflEt9NhJTvs3StoVLvCEBO1MwMECM=; b=B41HyTjr63TNuRHtlyic9iP+ezGJQXMzrcXk6k/0h8fu5xnuJF52FttwNm3+wm7tLT /PDyFCnHh60jLGdiTuAz8D0n7KmpYQjS7IZpjRaKFqqbr4xvBKCy7bJlkS0d7TOGbaR4 XvDYxF97d3X67R7WuZY6eZvWpuhf+U4buvpS91USGrZKwDQ1HYuV0nIZLRd1MJxHGj+w 4yf0UNzq7aIQqaEsdcCGhcoDwNG+rsiUUIitopA6KTIo2z4B3QepLajyzFFh45YEL3EI Rc7Sktf6ktaqc22A1w87hvD0oJwFemaSGGdU0pJfCZ8Vp4dCERJCDWJgLMgD25bGE6DO pyYw== X-Forwarded-Encrypted: i=1; AJvYcCUqpTN+Suff1XT4z3LN0CR8OIRZlucFsj4GRWS+9aYHJiHsHpHb/PhFqwjeYULkqgP37USy0lSSvesC@vger.kernel.org, AJvYcCVrYseRI+cfftr/HtSF6b+JrglRnktkSLaMABrqybwoeqpJjQt9iaBhPZHrL4kF3UqC1pLtpk8ro9GtqQ==@vger.kernel.org, AJvYcCWxHThokKBYn9N/MXP5apacg4cr9HvGzD6ak0IND2yCAVtpeZlAOCBBLI7pwYcRGGhNZb7Ij3DFMIZUob0W8OU=@vger.kernel.org, AJvYcCXEaIuhIAca5Nw4j1lodq+p0D2XFTlNKuB4UnExarNDmWpq55yQPWdZLFLEyvztuCcnN6+EST+yWAdbz3eW@vger.kernel.org, AJvYcCXiNyiRTG7ydlhbyMYsF8rCWmRwWVkdFvRo3cuscxbMjcjccfkj6J2oqiPMTtteyEmugZ6d7kxG7Zs=@vger.kernel.org X-Gm-Message-State: AOJu0YzR3F2xh6dXGLIuHOMYEJTrti3Q142ATxnwdIhYvwc1ij/5795o nimdx2eoNzxOUXY2xkW3JeruzsqetS98GMyaR1E8JQWfi9ILTZcx X-Google-Smtp-Source: AGHT+IHpGCK+fZ7obM5mdFCtxva/aycoiiCJvZnxyab9hAr8Dyt6zMIDktlVai5NhCnYn06IIgt5ZQ== X-Received: by 2002:a05:6300:668c:b0:1cf:38b0:57ff with SMTP id adf61e73a8af0-1cf5e198435mr4678238637.48.1726044488258; Wed, 11 Sep 2024 01:48:08 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.48.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:48: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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 16/22] arm64: dts: apple: Add A9 devices Date: Wed, 11 Sep 2024 16:41:06 +0800 Message-ID: <20240911084353.28888-18-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 | 179 +++++++++++++++++++++ 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 | 50 ++++++ arch/arm64/boot/dts/apple/s800x-ipad5.dtsi | 44 +++++ arch/arm64/boot/dts/apple/s800x-se.dtsi | 50 ++++++ 16 files changed, 502 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..834bf702b009 --- /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..784d29c55374 --- /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..19629ae8af2b --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8000.dtsi @@ -0,0 +1,179 @@ +// 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"; + /* To be filled in by the bootloader (based on XNU BootArgs). */ + reg = <0x8 0 0 0>; + }; + + 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..99eee8531da3 --- /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..b841fe4433d1 --- /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..7b217fca8aff --- /dev/null +++ b/arch/arm64/boot/dts/apple/s800x-6s.dtsi @@ -0,0 +1,50 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 6S / 6S Plus common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include + +/ { + 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..1a921e9d77c3 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s800x-ipad5.dtsi @@ -0,0 +1,44 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad 5 common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include + +/ { + 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..c2b9ad90e88f --- /dev/null +++ b/arch/arm64/boot/dts/apple/s800x-se.dtsi @@ -0,0 +1,50 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone SE common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include + +/ { + 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 Wed Sep 11 08:41: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: 13799947 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C58731940B2; Wed, 11 Sep 2024 08:48:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044496; cv=none; b=V4usxdAewn4Vrq2JuhdjfesMUnLgAuTSKnpp8fNXranGVNjWc5vbcVho305lC0IAb8/jFJf1WgYJ/FNB6wMiJKzCY9U51/U6rdRt2rzqN2muKNENH/NlHa2nrMMUKEnG/oYu/cy9/4PkkbamxHUtDB5hUepTdPwxKrCmUPqwmgo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044496; c=relaxed/simple; bh=8O/XoPvWoydFU1PTjWLWHDAhJrjBsRfANY7F9REjAWo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=hBKCvfSirtFDk8ssRAIPt4PCoA5MPjSvJR7VZflAK4thT1ynmqAU61Hh3FB6lNooyF0T9MsutM6UnhbaFfKFwYrA33IMp5WLwnjpQyPLeDZSN11ocS0Fh/natQwJ/SEdYuLCgm5BYWZEb7lUIChDii64C1GRU04E0ushM+DmTeA= 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=kCjAHsHX; arc=none smtp.client-ip=209.85.210.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="kCjAHsHX" Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-718e3c98b5aso3117154b3a.0; Wed, 11 Sep 2024 01:48:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044493; x=1726649293; 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=ZMtpADdbemAuUpT2j0MQj51id5IUiRoW+OsN0001l80=; b=kCjAHsHX5rUnRn0PEfy3PkZfwfGnYk7OdJBi1132tCx6zby4gKdW4IslyBVqD4RtfZ F/nhEe8bXKIT6yGWyY9YwpcJkLFFGuh4W46bs04thMdccsE+Q8cbc0dwmxVcxP6FLGQz AzPyRGfTKsy9S4/b37C2lBoF1mm5mFTeAVMhzrtkxlqlCITWkdXZwczt7j0Ul2zuXd+P jJp9B+cB2mgkR3aMGiPT3Aj7v5CSGDDXR0CcI8r66FKkME7y5E3KZd2L39LA2eW6L09p x4zyNI2ZfDNmS7y6ei2vJGv8aRjqAmJuU1THsAhgPcrlZpMMON0XSphw6AHoxFJrfd55 /sFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044493; x=1726649293; 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=ZMtpADdbemAuUpT2j0MQj51id5IUiRoW+OsN0001l80=; b=EUL/eAmnXVLUKV5x9F2NYIZj9Td30kByN3eVteQeOUM5SHZy+MrngJwfiNOMVk2BPC f3HFiBJfpKPiYjPWq+W1AMvAxJow+Lf+GU0vr4ZYsGKdLQLXr3e4Rx/9vtKQ+GYr9btB 6woQI0RyRLkla8i6qYfE4DmPHPsihNlXOsxZYngZUe0U2jsffMFezOp1j2Btzq0mgv1a espuk03HPQMWlV8dRKizEH02auF5ALpw+sUPEEErCwQheT0NQZssnpM0lwOM7UHFWTSM nEu76roKMT9YYZ2jvGgqUxzLbf7fgIyV4uO+YwCGNnvz1iC3lIM+CF57QlkO6+1cTj3H HQ7g== X-Forwarded-Encrypted: i=1; AJvYcCUEYnidiXIuzwiY52hWm4V5fV5hFCwllHUAus69fr7vhtmOyyGt+w2DI4Di/scO22vVz+uU9wSHZ9CgWg==@vger.kernel.org, AJvYcCUtcx1bMKnQN666Su+BUPgrlUx+8O+/9MyzHXzIDDU/5DmWnAcQmZR8fnNlQNJwp9PIH5+sXII1wgU=@vger.kernel.org, AJvYcCUzAoO4iT/E14R8TPm6Vv4Y5Z5w8HXkAG2ajX3KconzqtsQNVEhR61wsK4hwxMWTZ6kMpsM9cF51bhZWk6LFWc=@vger.kernel.org, AJvYcCV8sKSrjUH4/iaHCLGDQtkvf8sYxmtvxWb33P5NcVayaGI+LfCQxypANkDVbhUINN8DzI9qXf/3vIWejAHM@vger.kernel.org, AJvYcCWvniMY8VR7Js52txh2DIacv49Se7DjAFyzEyL2cuYPyuNCEcYdWOWyIgYTTUnws0b8rtdWU5IJSc0Q@vger.kernel.org X-Gm-Message-State: AOJu0YxYGrmlVgbvmQM0L7OMKTk2R8cXD2f78geP55KMac+ezbLybqvd pHiRX/nT415EuJyOIcMbOysrjT/5SVxUcNGwYifhaKlYyZ9jAap2PeZAemJ6uRA= X-Google-Smtp-Source: AGHT+IE+Oa+OiHUdRRdIusuC79t0MIA8HBL0VI5bTvNMSjL4+ULRWcQpTC9clJgufq5zJBwLXcVGXA== X-Received: by 2002:a05:6a00:181e:b0:717:9154:b5d6 with SMTP id d2e1a72fcca58-718d5ee032emr19622450b3a.22.1726044492979; Wed, 11 Sep 2024 01:48:12 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.48.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:48: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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 17/22] arm64: dts: apple: Add A9X devices Date: Wed, 11 Sep 2024 16:41:07 +0800 Message-ID: <20240911084353.28888-19-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 | 45 ++++++ arch/arm64/boot/dts/apple/s8001.dtsi | 167 +++++++++++++++++++++++ 7 files changed, 272 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..3bd0e12d6196 --- /dev/null +++ b/arch/arm64/boot/dts/apple/s8001-pro.dtsi @@ -0,0 +1,45 @@ +// 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 + +/ { + 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 Wed Sep 11 08:41:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799948 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 5C6DC192B88; Wed, 11 Sep 2024 08:48:18 +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=1726044500; cv=none; b=QpEdHj8A9ClvMtuU3zx1PP2H2gxySz1PX5eKDHwbo1YUbbDw3S0uxfthKfeazzURWf5qnPHQx19iFP3qt2fQPIFQiBWI/vsN0jwRkIHZ16UO2PVsLHiictEMkD1BO73G1iehqtgxV6b0PVk3B1OIfSSUinSuNWGgWtgATjZhbHI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044500; c=relaxed/simple; bh=3qP1HEIKf8L7Nmt5bLYlrNwL2wK+uRPpa+D36zpotVs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=kd1ii89hr5cwO3+zHYa7+1pthcFMONnBewlg8EyvvXfrQUe4JCEPmoQjhqLFnmels0L1tFKhxFxCPjXKqfTp8kMx5EI3qgJPBYza5mfHj1TzJxXFV1snKbBBW/M/x/OQB2bo8KbKdOaDvPTajajalMnbWEFsshy+mwz+t1/zcuA= 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=EhQJNQpe; 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="EhQJNQpe" Received: by mail-pf1-f180.google.com with SMTP id d2e1a72fcca58-718f28f77f4so1569681b3a.1; Wed, 11 Sep 2024 01:48:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044498; x=1726649298; 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=o99/dcbaPQTxg45A+GuzWtK1lIPTqcfpcz1ky0uPQyc=; b=EhQJNQpeDbyR5P2LjX/1qB05YiRNHxizN0v0vq+f3TB1WADxVZbeEobbNALuOgrW2B 9ffS3miLIj6iSI3zHzLYl2ELe7tdHjIZuf29HYbc6qqf+Pq7C/46m7cwQ47nc7i4f5GG zI6jjgvNAFvjz/VVkYjpmfXn2Yo2JTOsseiZRXcmI5vOtkQw1ZnYfXtS9envw70qvvzl Qs4hF/pW+o/kTCBCc+qjnyIkxyc7BKnXgdKi5WSar0k0oDF89CY1IdGgzub9NMpBd0j9 Y5wjonCuhS94+EQpNY+khsa9gxz3Ej5/6ksShuz+PKzq4IERXzxPLmDUZi6wFEMshsva xohA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044498; x=1726649298; 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=o99/dcbaPQTxg45A+GuzWtK1lIPTqcfpcz1ky0uPQyc=; b=Brsv+SqETMIwHFXVte6GR3SBnB0it1ARRK6U/3kOZ2F4Bk4tWNn6Y1Ah8mR+LpAEJd G6ZZA7AHedGSRLLuw8aEj81QpkMOChNl98Ozz/obcqGnJxI+SBiQAU3enP5UcOZ9ZwZ4 OtJMmn6g6PzDFck3X8fQqfiqyhqJ7PI1HURNhu7l4TkJQijI9m8lbuj3qyY7bLDbksrI kcfcd46RLqoIfsoH3q9piI9Ss0NdMhSfCZkt43JKhZbtOIu+pVGWOv3TZwjtF9N8XMtr FXEQsImyyz7L+LT7yFnBZtRwvurNKPiUOWs6N7VKesmLbMtWh5ksfPobD1s1RC66ftU1 5f/g== X-Forwarded-Encrypted: i=1; AJvYcCV5Q2ozHVPgy9Wu87PvHUvjpk0YBo/Mn0Ir7/thXNZktbtr0BxBt/RqlrhOTBA+GeegM9Y7DPI094uZAQ==@vger.kernel.org, AJvYcCWGSQgHi1Ruyl803zb3rcvmESX+adYm1kFb34jraiOrBkKRSmZY0LxT/9U0KIfu6o9YCgJ/pTL3X1rl@vger.kernel.org, AJvYcCWJdTlXslN8zgEiAco7PpFYsB3iM83KBl7wsdu3DpD6Xmpd6oBJbzy3G9gPpNN5HcFImUHeNA2wmomk+fqb@vger.kernel.org, AJvYcCXCJ5tyQy1BDXZMc/rHaVvpxh3uqALaUBScSKx6n7TSuvircxU53s+EII2jk3zwYhWsbiGqj+yBiRs=@vger.kernel.org, AJvYcCXVbKHlJdxNherv2Td39l4tP/2Nn2FaCzoIJ0vxDh+3E87gH36G5+kygrJ/c2eHmt9ys74R3VmRy1JiEUPwQhY=@vger.kernel.org X-Gm-Message-State: AOJu0Yw8NPqxH4AwdNMPwVODXkRnK/lxg+ig84Uvk4dwxFwUj6TqtelE XGXTPXE7cw0JoJHmJre61onxnfQ2otaQUpMxPtgdMfS8BS7CEPeb X-Google-Smtp-Source: AGHT+IGTEcDbBmwgiXnsPfjLB6fsnfRpWNiDJUrxS+t90AoLcJsDVRlKmqfREacadG9QvyMDCS+kBA== X-Received: by 2002:a05:6a00:6f68:b0:718:ddd9:a8fa with SMTP id d2e1a72fcca58-71916df7070mr3022287b3a.16.1726044497513; Wed, 11 Sep 2024 01:48:17 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.48.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:48:17 -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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 18/22] arm64: dts: apple: Add A10 devices Date: Wed, 11 Sep 2024 16:41:08 +0800 Message-ID: <20240911084353.28888-20-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 | 45 ++++++ 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 | 45 ++++++ 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 | 48 ++++++ arch/arm64/boot/dts/apple/t8010.dtsi | 167 +++++++++++++++++++++ 15 files changed, 449 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..a33b911a3b61 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-7.dtsi @@ -0,0 +1,45 @@ +// 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 + +/ { + 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..516fa798cb6a --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-ipad6.dtsi @@ -0,0 +1,45 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad 6 common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t8010-fast.dtsi" +#include + +/ { + 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..25658d59709a --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8010-n112.dts @@ -0,0 +1,48 @@ +// 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" + +/ { + compatible = "apple,n112", "apple,t8010", "apple,arm-platform"; + model = "Apple iPod Touch 7"; + + 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 Wed Sep 11 08:41: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: 13799949 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 70518192D74; Wed, 11 Sep 2024 08:48:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044505; cv=none; b=uMVEM+DEBAjfqFzA1NDDSRvmcGhOdBCziff+UFxSUjpbrHHzNPTcG461sCLPOGtXRDYLsqiruxdedhiL838Z6rJzX/uDGmCU5I/0dJenVo6SBOdY35jLY5nIT6P3EdgQCYFrBJj7C2EdIknqFsljvc1LknVzp253k9b1u4x1StA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044505; c=relaxed/simple; bh=kKnGjGer0GpkYv971Vx+n2KUjPkmTn3uhC9c1BtrCuA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ZmSjFbcnz+l1tBjBqNm9oyOdvJu0mtIXXop1Y3Gy5ONihL3swGRWq/adqzos9kqEVPXToqltbGFJ4wraW3hONHZ/Zhoeejrr5JoPOkRfwEywRqiiAHaZ4MbOP+uh487ODoZ1Z43Coivaq1ieesQqNqOiLXjyBnEimVUnr1v0SEQ= 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=dZ2qknB/; arc=none smtp.client-ip=209.85.210.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="dZ2qknB/" Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-718f28f77f4so1569743b3a.1; Wed, 11 Sep 2024 01:48:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044503; x=1726649303; 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=iOWT9ZMaU2LCiTv/nxWqViXuhbjjJ1vEYbojvBCVwlQ=; b=dZ2qknB/9Y62WKpC3GAnlsKOrzwP0/mdFyuFnLms96GMU5X8Tt1eYMCrodN74tF8ZY +qM9jQ4ppZs8Xf5wKBJsnKgZvfG4ASemhAFMqkUJvQhWCiH95HDXYqFN2LzXZpH4biJt Xil2bLCF8maIy2rU8taSDjMTnPO8aSVDFLXinGvbxGUU6oGB+Az5ghNYtdBBNHVEfs0p nlmch0U2OL8c1U9t/CZ2eUwuyT/EjjzfRUyXZ1jeD34+spBGvMQOFVO5nnXv+xANXlD+ x/ksyVV6MwuUIdEJfH0DoOUGZQUV6aAW8oo0AC6ISRy1RVbBa/KB1J3EfiR3thM+x1W5 1aJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044503; x=1726649303; 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=iOWT9ZMaU2LCiTv/nxWqViXuhbjjJ1vEYbojvBCVwlQ=; b=soot+h/8E5N3L3lcPIAPTF5fq+dbMHvlE+qHSuOIKmpJZqKe2gAjdCt6qFmhJBDTxf /LJQqVIwhk84HW2Dh+Q23VS4dR39p+9k+978Prixf6A6EOfqYNhN1xPa/jb90FQ0TG04 m4sP0nNKdWO/InAj/qOOWX9K3NfPi4Ib53ja1GjoY0KCqqYY7DKmMuFLfpSp6LXX89jm ZsgGPBnGg9ow8rGDSdluGE9Oe8docSoqPdhNwKucPkw5ENrksVMH3+1OuPCZIbeVsJCR IBts5vX0wP2IFyz9iVeaJ971QDv9iStKMVZMQ3zfgfkk4i2KCMCoqvoTzcS1EoJc8yGs 6guA== X-Forwarded-Encrypted: i=1; AJvYcCVJ5lxJlNi0xBM93aiH7tMdRnEDTsDor+xEcGm3XH0rqGjb9HX33ztbTgB0qSKZLOXYQBfRwXEbfWzrZZOaP/U=@vger.kernel.org, AJvYcCVLLgzeHN2/H9jPLdCWOM0HW8j+hWLugUoeaqA2u9rO6DipsFmugbntvQYDfZliv2fnxlFwOZ7mEHc=@vger.kernel.org, AJvYcCVZ9mj4/KDnCTmuqqg91SGeSihwAGFI308V71wL3/mzNNLGL3O8Y1o4bJJSvIBweFDkgAydus1n1S2I@vger.kernel.org, AJvYcCWFaArasVZ6Ure3n1RdTo6/RhOTlx8vcWysYMK44M9yIdA97PH9nr7vYKxuC/RbHZS0DPDQjXjay/lqfQ==@vger.kernel.org, AJvYcCWk4QQ51CnGSRulnl66P/blg3vpGnohqtaLZxnJBwEz5dtQUL3ZF4nG9S50UAdgGczqlxzTH0vy6PRM5Zfv@vger.kernel.org X-Gm-Message-State: AOJu0YwChDJh1izrjmkFUr0Zsz0kKQODepOAFM83hQaKKl3kuL4/YgDM qlnYZHBv0ad4AOTteCS3hqQ5/LVPS3S9Kew5CMS73pXgnOsOt4Qk X-Google-Smtp-Source: AGHT+IHcumzjB2M1Vnz7MRqEeXGs/uqxxwldp20jnsS+ipeHk9CpmUyDzM/MM+S4nNgh1nkaOgciyw== X-Received: by 2002:a05:6a20:d80c:b0:1cf:3084:feef with SMTP id adf61e73a8af0-1cf62cc24c9mr3610290637.17.1726044502589; Wed, 11 Sep 2024 01:48:22 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.48.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:48: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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 19/22] arm64: dts: apple: Add A10X devices Date: Wed, 11 Sep 2024 16:41:09 +0800 Message-ID: <20240911084353.28888-21-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 | 6 +- arch/arm64/boot/dts/apple/t8011-j105a.dts | 14 ++ 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 | 45 ++++++ arch/arm64/boot/dts/apple/t8011.dtsi | 175 ++++++++++++++++++++++ 8 files changed, 295 insertions(+), 1 deletion(-) 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..be66624aa6e0 100644 --- a/arch/arm64/boot/dts/apple/Makefile +++ b/arch/arm64/boot/dts/apple/Makefile @@ -40,7 +40,11 @@ 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) += 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..c12879b4612f --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8011-j105a.dts @@ -0,0 +1,14 @@ +// 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)"; +}; 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..3aac97327dfb --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8011-pro2.dtsi @@ -0,0 +1,45 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPad Pro 2 common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t8011.dtsi" +#include + +/ { + 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 Wed Sep 11 08:41:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799950 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 DB1C619CC08; Wed, 11 Sep 2024 08:48:27 +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=1726044509; cv=none; b=tjS4Bk+oeWBo8wg4n9i+veXn5Yx1MsQ8wYpHCMtSFKTuFbgNexeHy2yEED1taUEo1te1fVaZVclv8JTE2g2RiLSaS+vP7a+93xNDAZt9RFTgpAQnv6UCexfPJIU+aYSJYX+TYXydLPCO1LbQhlAe5bxW9K3BcSf4bC+f2O/R+I8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044509; c=relaxed/simple; bh=B5Rs88tU8EnF5fpe+yMqVLcyRcTyleD03Mz6tAWkX14=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=A/s2Z81KG0rH6mrAHElC/Iu86U3tQhfJ/7A5EUN2Rg5KVHhr81jEFR5KpxUpp14ZwT/PpUS4LGGsT/eRJHApPBm6l01VEh7Pn7uBh3bUQWABNf0BSUBExzKb5DKjEvDdbKRv//hck8Wm9WtKQa2jwitOl5VNnl7igeKD14gb4m8= 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=Ffe7larh; 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="Ffe7larh" Received: by mail-pg1-f182.google.com with SMTP id 41be03b00d2f7-7cf5e179b68so544989a12.1; Wed, 11 Sep 2024 01:48:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044507; x=1726649307; 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=CzQYWuEaVXYhnBc3uDFgcoEPC/fjWazsHzRttihTb6E=; b=Ffe7larhre5cYgljaz3av+qUPv9wDRXS6qm9XW5a22QqrPUx6T/ySHrVxg6qg1ovvR bAQ3bFXPC9V7o+ln62mkE7ex4QKsecusgcs494kyE9CO63jzg1g78eUWH5hBFCQzmCwr MaP2Lza/FgQ7ZdlM9oKZ2btyIkgunc1usVY4HSDL52nidlIrMbaNQqr20DdT+FB8vmU0 hczG/msHaUGbOgpltjS9dcyHKFjCbpp7ec4z4HXb47FnW0KXL6Am5DPFC0EJ99v5KNcz AV4YcQgKbxeEjLkGeTNkwcmktSes4xOiDXGJZG02ztnLR3u3Pi3OQutoHoGkVBbexZAY mK8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044507; x=1726649307; 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=CzQYWuEaVXYhnBc3uDFgcoEPC/fjWazsHzRttihTb6E=; b=C/RNvHThOqL1BTBZuzauKxtppLTvg7f6PMda0m0vRjs4qBoQHgLEmolHSkZV5V3VJl 6cYgS2qfC7NyVLPI7r3qFffluzesRprrBTwfHca4lYAWcr4tZi1irzsD1+keFgzVFond 5daqMmSjYDQXHHW9uv5B5XzRRYpxxyW8wjtYLSa2ojt0YjHyvwY3ANRjz6LiFuwokFAL 3Cz6/ui5Zx7PsDJIlWDFOv8hbu33ETI56ufqPEDeXInj4pDdROj0SXvSNKLtLg6CcbE4 cY7syY7negrTBLayCgpPiEIfF5TuNBxvqTQ/MgTcEW4r/bGMQP3REsnc87s9o6LVFlFG x1yQ== X-Forwarded-Encrypted: i=1; AJvYcCUQK+AXRQKpgNMlPR9KdPdzmlWABb+vpm1zBJqAO+K/EWfvkikpEha2lVu/ho4yT2uxDKOun6v3K4o=@vger.kernel.org, AJvYcCUpr/9nUr1dR/BtSH+UhmBme9/h3TrTYiKhQkiSO22azSvI++Qm+wfkn1oyQMMoQIkCvMXflJ5hAy5aZUJ1@vger.kernel.org, AJvYcCVjxBBZR/dWeO7KVnF8T+xdKhKFtNerOMAxOU1ZJ4KWoX8Dp5lSEasarnxfHv748KkbT6fhk67zQRja@vger.kernel.org, AJvYcCXl3WyzEx5OgnPx8YY5jJM12PGJRTviANDBa0I18iwnH0csRzBZShMyvqlEOLE1AuwHc+q+XtJlk8p4fw==@vger.kernel.org, AJvYcCXuV+woRkyggRAn3skDragDORdqPbX0xc2qdHnN97MLNd1UZIx4NH69nxfwCPRsvwZ3naNzDl/HXXvJYsP4DDo=@vger.kernel.org X-Gm-Message-State: AOJu0Yxc1o7mFu5LjHWMnTkCpNsSDIPr0GZyYuPkMN5c4EZQ30nKdUcb aowUTYJw92wBYd2gnOp0qY7ppfGsZhXekuPC4amT3woRXCCWVoo0 X-Google-Smtp-Source: AGHT+IFuk9AU2EuuGx68oOM/W45WtyFCBEguIut2gccXf/8V0MbFOmGITpMa+Nd6QC81zsz2nPII8g== X-Received: by 2002:a05:6a21:398d:b0:1cf:3816:d104 with SMTP id adf61e73a8af0-1cf5e3cf5d6mr6640419637.3.1726044507091; Wed, 11 Sep 2024 01:48:27 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.48.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:48: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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 20/22] arm64: dts: apple: Add A11 devices Date: Wed, 11 Sep 2024 16:41:10 +0800 Message-ID: <20240911084353.28888-22-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 | 12 + 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 | 15 ++ arch/arm64/boot/dts/apple/t8015.dtsi | 269 +++++++++++++++++++++ 11 files changed, 395 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 be66624aa6e0..e125c0d6b479 100644 --- a/arch/arm64/boot/dts/apple/Makefile +++ b/arch/arm64/boot/dts/apple/Makefile @@ -45,6 +45,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..b3cd96d343ed --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8015-8.dtsi @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone 8 common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t8015.dtsi" + +&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..655cd89848a3 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8015-x.dtsi @@ -0,0 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ OR MIT +/* + * Apple iPhone X common device tree + * + * Copyright (c) 2022, Konrad Dybcio + */ + +#include "t8015.dtsi" + +/ { +}; + +&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..aa0e948c9ed8 --- /dev/null +++ b/arch/arm64/boot/dts/apple/t8015.dtsi @@ -0,0 +1,269 @@ +// 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"; + /* To be filled in by the bootloader (based on XNU BootArgs). */ + reg = <0x8 0 0 0>; + }; + + 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 + * off results in a hang. (To be enabled by SMC-aware loader) + */ + status = "disabled"; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupt-parent = <&aic>; + interrupt-names = "phys", "virt"; + /* Note that A11 doesn't actually have a hypervisor (EL2 is not implemented). */ + interrupts = , + ; + }; +}; From patchwork Wed Sep 11 08:41: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: 13799951 Received: from mail-pl1-f169.google.com (mail-pl1-f169.google.com [209.85.214.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 5444119E966; Wed, 11 Sep 2024 08:48:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.169 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044513; cv=none; b=ifHiBbsg4XCw9/j52sQq4D6wISI5xiNOlHYz8Y+EE/LafA2m3rah6EJGuhFzbNLiEgfsetuUHNRG82RItEqnYUb62+Ldm9kmof/efeBjx2ZjWCjWA5E+azjjDYE+lJF8UnumSC0jeWXtljb71FSDYPWu0PW7JIeGR+A+OpI7EqA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044513; c=relaxed/simple; bh=WNqRV8kjVJXJZ4YG/va/EvkwzJLLE57eREOK/RGHQQ0=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dz//Nf65RBcrMPDkVEovggumw/l6O964Ar31Abl0l32LouxZSeBTSdF+xvWNLMIpKJVHVyFUr51dfZW8hAZfPWj09OUpy/BzA5IT+y2uewu+OzyaRv53ElLYDt36v3sQ7Hsq2n6ZGggnVjbwVG8CwPhP9O9bIo1Re3HsxUQ80Ys= 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=Dh56TQcY; arc=none smtp.client-ip=209.85.214.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="Dh56TQcY" Received: by mail-pl1-f169.google.com with SMTP id d9443c01a7336-20551eeba95so57869555ad.2; Wed, 11 Sep 2024 01:48:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044512; x=1726649312; 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=skKJu76OJxOTwD1xlwFtFFTVKvyWq0V0wXx6JaBgBBg=; b=Dh56TQcYwU1wVV0NvCbdZdZW1yUsthOUd6S9HyAvgPJzM5sSoqW53S8RXwJMFmxTVS t4m1JOMpXk1HJlDIvntvVrYRP39gna2NBqYZTFhB3/iMrQt0AlN4oxWyyjENI5OlXS52 0Ocw+7LuzPrcuQflMy8BVA4R+RUXbVvUFus0A0+vmJTPIYI1x4efJtbgkAfFPCBel5vI x4qysVTuhscMy+/ShJDsD6HIe86ux2JscGqHNNVGHEb/NQRLwgF5i78t6dsdzLJ76yju JGTussOo9tRUPo2qdvDyzzapd/uQaxl1yUgi0GTelVlKRjVy81lrV9cq3GHwg3qKL6ND nTZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044512; x=1726649312; 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=skKJu76OJxOTwD1xlwFtFFTVKvyWq0V0wXx6JaBgBBg=; b=YZGzObtEOKeuu0f7XWOh2So0B4+bkBqs2Abnv6a03XQwAOEuEZkGGyg9UyMXaD/oS9 39TcOwG1r+Q0zC0EPW9B9W+R5fZ0gLZml/q16oDGwS+nBzJlrPnSvVkglzF/6Dj3kWRW neRANV+UxK8YEZeb9eUaAqmkY2EV/Qg4ZjAZLov1UDBuIzzj8JaKQOyP92vmme6NkvUz dAL6juQh6NXQwYaQ7jVrmu/TgvfMx+c6JOeS6JpHuRQRn5g3j5GJv04MTwphsyxoHBiC X6rxGiKvAhpn7xEj6gVqmacN/wzw+ZOzkpMgLgSatGcOtJGo2CfAk46xNzj6lQM4jnEZ YJXQ== X-Forwarded-Encrypted: i=1; AJvYcCUGkjLjqbrR65MzbY4gfDmnjs0XtuJICBpPZN7c19NnezetCkVmZ3xCKY+YYNPYxfEovPJcViEmUeM=@vger.kernel.org, AJvYcCUvx2yiJBDr4CYIXaRjKAtsI+k8oCZlQ1xrlQyQhKjTFah57Ec86MfkCng/tbuVhbEO2E9g4jJLx+nqMJl8rUo=@vger.kernel.org, AJvYcCVVclSvIG4XHfFkDJSSHLD/2T9a8iEXdKd0dkrioWQiBFuO5IvTrYobQoN9OFJT1N/kRBhcX2Nw7LuhtA==@vger.kernel.org, AJvYcCVqvyYMDmsY6dXmyjvBRCAa5o1yJbXI/UHAOmIfXHUylJpZEMOt/ErAJwdr6VqSSyvKLPnEFu1gdijf5qp4@vger.kernel.org, AJvYcCXzYu3g3F9eSAhr7ynVxOVPCSucCcNDmlibVWNC5J4hsjRw07hFekLU2z764uyGs/A+OzGiO1IErhx+@vger.kernel.org X-Gm-Message-State: AOJu0YybXntvx945cocLarr7pq5lYZe0PdIaa7o+GjDrabhrK8w+bzRG pd3LNskiFgIhiRjbC+xXjqTqDPjozMRjCHjr/sH4XNE7o177yn/roP2qG2Hw4Xg= X-Google-Smtp-Source: AGHT+IF1nFu+Ec2ol7ZDJZAlfGyY2LqUQPYWowStBXV/GRNQbWDVUTiE7+BLbu8tGFNbScsr7voaSA== X-Received: by 2002:a05:6a21:a4c1:b0:1cf:4422:d18b with SMTP id adf61e73a8af0-1cf5e079ecdmr5131512637.14.1726044511757; Wed, 11 Sep 2024 01:48:31 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.48.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:48:31 -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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 21/22] arm64: dts: apple: t8010: Add cpufreq nodes Date: Wed, 11 Sep 2024 16:41:11 +0800 Message-ID: <20240911084353.28888-23-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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 | 19 +++++++ arch/arm64/boot/dts/apple/t8010.dtsi | 60 +++++++++++++++++++++++ 2 files changed, 79 insertions(+) diff --git a/arch/arm64/boot/dts/apple/t8010-fast.dtsi b/arch/arm64/boot/dts/apple/t8010-fast.dtsi index 4bdf1c3eccfe..9a263eadc776 100644 --- a/arch/arm64/boot/dts/apple/t8010-fast.dtsi +++ b/arch/arm64/boot/dts/apple/t8010-fast.dtsi @@ -6,3 +6,22 @@ */ #include "t8010.dtsi" + +/ { + opp: opp-table-0 { + opp08 { + opp-hz = /bits/ 64 <1944000000>; + opp-level = <8>; + }; + + opp09 { + opp-hz = /bits/ 64 <2244000000>; + opp-level = <9>; + }; + + opp10 { + opp-hz = /bits/ 64 <2340000000>; + opp-level = <10>; + }; + }; +}; diff --git a/arch/arm64/boot/dts/apple/t8010.dtsi b/arch/arm64/boot/dts/apple/t8010.dtsi index 926a0f501477..e7d7194b412c 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,63 @@ 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-0 { + 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>; + }; + + opp02 { + opp-hz = /bits/ 64 <275000000>; /* 732 MHz, E-core */ + opp-level = <2>; + }; + + opp03 { + opp-hz = /bits/ 64 <410000000>; /* 1092 MHz, E-core */ + opp-level = <3>; + }; + + /* The following operating points are handled by the P-cores */ + opp04 { + opp-hz = /bits/ 64 <756000000>; + opp-level = <4>; + }; + + opp05 { + opp-hz = /bits/ 64 <1056000000>; + opp-level = <5>; + }; + + opp06 { + opp-hz = /bits/ 64 <1356000000>; + opp-level = <6>; + }; + + opp07 { + opp-hz = /bits/ 64 <1644000000>; + opp-level = <7>; + }; + + /* + * 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 +140,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 Wed Sep 11 08:41:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Chan X-Patchwork-Id: 13799952 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 218F519E996; Wed, 11 Sep 2024 08:48:36 +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=1726044518; cv=none; b=oClQ0scTJI8PtfMbPaoZacaxUw3Ia5iqmDZidFfIJ4deI57RAX8WfipK6B8gkMFggjRHUJCWVH2Gx/yu5O5qqxe4RP2c81jJsjw/LdvL7d6KT15izX6P/iFheJw/urD8grVkOVL6zxyjeSYBVK2/V+TrJpE1JuJtL9OR44M5LWM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726044518; c=relaxed/simple; bh=IlwfpKeYG1A6lmRpl2J8Js+0dUrkM33rNMIVVPeLcso=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Iukc8IvS0Q/VEz+PMWfmY18yGk3wBhC92wlKjB3D7monpaqL1VK8Vh+/Hd8FmyB2IQ4epb4TAhMfsQJY2DCyDMiNBd3uFO0u4TKbY3TonOhMUJnr4E2fMzsaGWxCgcXEk3n/HK3Ua7GRRsZ0YzjUIguhX84nhpiGEbozt99i8Lg= 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=SELzJjzQ; 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="SELzJjzQ" Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-71781f42f75so5188059b3a.1; Wed, 11 Sep 2024 01:48:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726044516; x=1726649316; 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=SELzJjzQRJIJxRVXaRARykQkhwroJK283xwl4eIwbQUTffdcYb0/l0GAl4hnYzMjFt y5KwXDeq7WnpnSHdSTGqqMkvFXMI5C/oWk/lcKwdX6hPf6XREZWRc8y9Abd4mU+7i71D ild4sZbaikqvOKg4Kz+VN9+CTKZFyiDTAQYhbiyWtn0ANi5pjuHeR3sumcbg8AlyE22y WeIX4STn3DYZ0QpGmxEFK7qa7RHhyJZljSVpfCd3h2S672IPxefpFWm/r7fKA+jc1Gz5 /xz/wBkr+6sBCIPbNByEoCM/hYb9Rlb/cSUpKiC6PS6x3IQ8tdI957odc36CBomlTnbT HoYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726044516; x=1726649316; 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=V3DyqsjOzUUCruUM0hgWKPp+tV0nIM+FnF0gbF3PdJcIUYacHg7zn4zL2+KW1W8pcg 4Nevid9rpqUITt47c2yu086KBGiNkf1n2NIi6SmSlpq37S3l/1KHZf/69/S8Zlt9BNzJ 1ZUdKmBrNIiTHVr0DmSTb401KFiZMLhHdBSiKeugKok/yFMJvePGHpkY1cPh/shqFlXP 2YdMFQOwEa8MpqJFCYyRxL+fFfe5/RYS50FRQF7dsrAJWVbXuVNh4x+OwwEEQPekBpyJ awl+mInZ2q3MBqrABe/WNHqwLkV3aXKjeB3Gj6nLIFONhFZ60JqGD+fihqt2Fb+6SbGx jl4Q== X-Forwarded-Encrypted: i=1; AJvYcCU49cM36hX0Bpg7SFnHlDCnTmSXbs0/vv/wYnvvm6YX1AuVWC7AO2QgcS++EPrp5n/AMud8cN/tuJtULOvvZiM=@vger.kernel.org, AJvYcCUSEmsgRY+hvnFoLQ08GdYTYTaYjXDF9y31lvaKb00cqgyqa++EbM9KRrBSGfaClSbcL87Sc9mBmRWL1A==@vger.kernel.org, AJvYcCUe5m4b3qmfzfxT/M/D9F9ei5nxzIOITtrw8L7dXSeX9Dzmd6724QAhwrWbUOX72FxiSxm17yYX3jE1EiK0@vger.kernel.org, AJvYcCWCYGZ6hzE2OMawugdksF1jG1od/1oZtHS4LNzqn+k4BW7XkTV95X/4p0O6UNV00mkz07KsdbxnkhY2@vger.kernel.org, AJvYcCWS1bkMbSPWEkcM0KVksC6Z0Fk1fcITs2LNNlsHVtLPzxF32zAJxi1neUV+7oMe9cXDuckL77QWbIw=@vger.kernel.org X-Gm-Message-State: AOJu0YwrEnrUOHif1ImnThTjsX9BDYbdbO9DsGlhKxcCD/VR5+L6CKa2 sXLEgzVhEkSL9GasCL+Bef0DPx1fSRbLSgJ4rJCxPOWQUCMOXeAq X-Google-Smtp-Source: AGHT+IEIz5d//17WPnMDgMVDUYvH7+sxfpmlvAoBsrI8xaC6pMBmCRrAzLDUicf2j5d88qL+NqMcTg== X-Received: by 2002:a05:6a00:886:b0:70d:22b5:5420 with SMTP id d2e1a72fcca58-718d5e5476fmr26897235b3a.15.1726044516437; Wed, 11 Sep 2024 01:48:36 -0700 (PDT) Received: from nick-mbp.ust.hk (wf121-022.ust.hk. [175.159.121.22]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-71909095177sm2530125b3a.112.2024.09.11.01.48.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Sep 2024 01:48:35 -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: Konrad Dybcio , Ivaylo Ivanov , Nick Chan Subject: [PATCH 22/22] arm64: Kconfig: Update help text for CONFIG_ARCH_APPLE Date: Wed, 11 Sep 2024 16:41:12 +0800 Message-ID: <20240911084353.28888-24-towinchenmi@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20240911084353.28888-2-towinchenmi@gmail.com> References: <20240911084353.28888-2-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"