From patchwork Tue Sep 3 22:42:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=A9r=C3=B4me_de_Bretagne?= X-Patchwork-Id: 13789485 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 D57411C9DC0; Tue, 3 Sep 2024 22:43:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725403393; cv=none; b=KYm0rkR3F3unXK1BYhowYh55bRPabbULpVUgL00o7R7TAuMl+XjsqfStl7PUsi9D+h1CMFeV8aW03fmXDh8FQt1Cx9Ja09EgGQGEnW0vc1YENWfVn5WfbSZkw5iD3Mv+wIm1cR0feyQJztVBlvaxM2Kehk3Wy/F/5OTleAoQSho= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725403393; c=relaxed/simple; bh=LuiZOgZi8PytwfFBR/Urvw9IrMbLOofHWYr9IX6Y46U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=pNwTFFR4lMnmXq9iWNDBRCu5MCbMBb/Dz7HLx1ccDKTFjrnbTS1FLQSrRweATJNYnOT7Kim+EjOuORCamM4ouqAk8SfQ4eVtadJF43OuZ1kDrz87lFjRF0VDnH5Pan4z2JR6lGMmlY0JgqOyGSdLOe3LdNrgbo3yfMcm0v22Y6I= 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=S+qMb9dO; arc=none smtp.client-ip=209.85.128.54 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="S+qMb9dO" Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-42c7856ed66so30642825e9.3; Tue, 03 Sep 2024 15:43:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725403390; x=1726008190; 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=MrfLNbtIzyltU3eNfiQxoIy3zhYyGkaG6WyY2wUNYbc=; b=S+qMb9dOgVNvPM5yWqOjGNE9s8HiBuvw/8/itICUDVVKMDsDVFnki9QecrfklQu+vC 6bQoxuemVexN+r1yJo4zW2Yuj3Ex5gHaF3h1AfnHKN26bXLaljOhX8keEB0BmZAJ1Q+A rAWiNTYjexNslChuS2hF/HNCAWnD1RUu235huHyb2OuaOK7sDdNs6MWKFqeCxtIOGhdt LQYdNI5NXKY6V5g7S+WUhuh/W7ItA6Hxr+RnKritfaC/zBlyk2adlssgfM04Iv69MFCR abAQywAQEmvsnWO9x3oy8FB2ei+4a0vM1HqrX2tjPTihpxNUqgZWyReduioTANPVgb/I NmXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725403390; x=1726008190; 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=MrfLNbtIzyltU3eNfiQxoIy3zhYyGkaG6WyY2wUNYbc=; b=QLLfTcsGVG3vok4Roj1Vin43N5rTkwfARgIbbkNJps6BrOB+hmBpd3dzbA+XKV8sZq O6I2YsrPVVPckc294lJvQNfbli+DalsswW0RXUFSJWtF5MdrT2gpAAU4ajeRHKkb2+rB 2hxRWB9qAmfLyJmC0DpC7yZUUk6QEA9tTtOpFI8ENT+mVAs+LfnyV2mMqu2lAXjtmAT9 UXwXTpxfFBDMetcgsfu8pgEU9JhhJJ7GTccGC9zu921A4jwWRWd0nrJpoUW4gmyFZJ9Y 09VCa6ctJKE6MaE2TwYOuU3B5GDx5qAuODdpBg5bROlruN0rK2el7otIWEQBNTId+nzu FP3w== X-Forwarded-Encrypted: i=1; AJvYcCUusPJDtAjSh44TY8mVgPpFe7EjymEU9/7fIHL+0U9XWl6q5/v+b2iT/nu48nwBmRjS2L3kIbjnWtaNwi4N+g==@vger.kernel.org, AJvYcCWR35vThFoZ/JFOa+FFj2B9jupCayhspt2SvInfFBDduU/Ywof+bdM+xnDLQw2yGP7Q8B6Hakqt1Zlu3Ye4@vger.kernel.org, AJvYcCWchjpK48uf0rj0fs4nh7UszHPuYpH+VH4U/u8GmZYcOEebx6vZETQP+AjmJTQkrhRnIbjsUxGuR+/Q@vger.kernel.org X-Gm-Message-State: AOJu0YwNMYONUrCvG4wBxcdbKwGIlsQD6Vka4bg212EhFKrY2jAj/cCE G/w7uWZz4UzrFuCtNn8FK/HbptT+1+B9MeUQeWfmCHu2OIG6ZkVAHb65feM= X-Google-Smtp-Source: AGHT+IFSYLVmCg/g/ec2WXfZwAJbYGWEzEnBlLQDoq9+WzvryJI/rFjmV0S1ovRXDp+UvFuNwgnT0A== X-Received: by 2002:a05:600c:1914:b0:426:8884:2c58 with SMTP id 5b1f17b1804b1-42bb02c10bemr156252545e9.4.1725403390036; Tue, 03 Sep 2024 15:43:10 -0700 (PDT) Received: from surface.home (2a01cb080508df00ca9665fffed23409.ipv6.abo.wanadoo.fr. [2a01:cb08:508:df00:ca96:65ff:fed2:3409]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42ba6396516sm222955115e9.4.2024.09.03.15.43.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 15:43:09 -0700 (PDT) From: =?utf-8?q?J=C3=A9r=C3=B4me_de_Bretagne?= To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Johan Hovold , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] dt-bindings: arm: qcom: Document Microsoft Surface Pro 9 5G Date: Wed, 4 Sep 2024 00:42:49 +0200 Message-ID: <20240903224252.6207-2-jerome.debretagne@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240903224252.6207-1-jerome.debretagne@gmail.com> References: <20240903224252.6207-1-jerome.debretagne@gmail.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add compatible for the SC8280XP-based Microsoft Surface Pro 9 5G, using its Arcata codename. Signed-off-by: Jérôme de Bretagne Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentation/devicetree/bindings/arm/qcom.yaml index f08e13b61172..114c7f5dc402 100644 --- a/Documentation/devicetree/bindings/arm/qcom.yaml +++ b/Documentation/devicetree/bindings/arm/qcom.yaml @@ -810,6 +810,7 @@ properties: - items: - enum: - lenovo,thinkpad-x13s + - microsoft,arcata - qcom,sc8280xp-crd - qcom,sc8280xp-qrd - const: qcom,sc8280xp From patchwork Tue Sep 3 22:42:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=A9r=C3=B4me_de_Bretagne?= X-Patchwork-Id: 13789486 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BB8111D5CE6; Tue, 3 Sep 2024 22:43:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725403395; cv=none; b=e/jqtHiRjIl2l1fFBljW53agPp1pNCCQKfnSxMzwFC8sarzy+hvfLEGApZQ2QAA4nbKhIgcZLzhz1u0IaUT71oIOnYNcrk5KryItpz3S9YRTsJ9n/wXVyl2eVCec8VlZjCWIYjIEJ5jbppUv+XESDaG2iwusOwMVwUE4t6dOOAs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725403395; c=relaxed/simple; bh=GxfKgsp3WtmGBa30PFZIWzcUAICUrSdBdcLrR/1wDoY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mxlEr2c/lgEjEbUN+gjfk3hVuPuwQOWSlGQAu41/E2vzr9ndNdP1OBnrsMiFQd+0/fB9p86qOooTqr01CFES5N1VBPoIPkJ5YEirv4TYGFHymQIcS7HZnRzyla8rqi+eHZhMGTodJP4zaLGr8NTIh5vyPNzZ1gl0sy6cy+vvMD4= 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=L6q5jND1; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="L6q5jND1" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-42c7b5b2d01so38661665e9.3; Tue, 03 Sep 2024 15:43:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725403392; x=1726008192; 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=TZmY0h7MPIitM3KYPrs5CrHyR7dJdBmp1EJkyHyhh60=; b=L6q5jND1S1lQv3OMXz/+qY/10EvkA/sSP/GLvL9yCfSLGOsrk7CVPDzj18OBxd/Oq5 VstNNqJfo98lrKog/sopYd9NCs/2kEURoIslWviMHxi/FsG6FWYmuD9NwUvrKHkG6kNv 4JSbPKJmZ1qLYqGRjKKdIL0UYyzalYConBSxfFnWkf/AzSqo7A3CiuIytMMs68baCt35 LzABMxazDzZiFONWKA82bDgK/19UFV/GtFJ2wBe9pC1drnlD3Is8seY8qBdFBKIw9FNQ JKy65fg1ySh3pMHT3QLaBp+p/OKDsWL4krZgUEI+mGwKJiX8pyrF157JhauXPFzA9AGC eVGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725403392; x=1726008192; 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=TZmY0h7MPIitM3KYPrs5CrHyR7dJdBmp1EJkyHyhh60=; b=wLS6dyETVrl9g33dXki4PhoTp7Qe0use7B5fh1WVDcMEpzvIpmD0t9tbdX26/ETNoe c/MMnQwXdXmC/Rwx6yV3J0p2+sSeyKpTJAN6jZVfQxWWAm9GjhQLp3h88mkKQPfx2p2n 6dD6BPr1UrHimgb71r/ubQKVBv3dOIAN08Kt0gbtpVBFO0Mp+r1fvD7+jXQOlWkojRSv Xho9NUymCFF9FRUCXPua1R2bVFREJLuYUc4SqGghqZsD5J/Ttpt69gchYHkUnbvay9G8 DnOS4V/u8scZ33+DZqMWo4rD0GbuDbH7CiGlj6xZnvvmwnmQr7yWKRM6cQn+KPD1U0dv 8kyw== X-Forwarded-Encrypted: i=1; AJvYcCVJFtwGhPVa9Ay89OvTxpFHzTGuVptGrJAqldsfnC91gfNQJvYCeUNXPbsQJ9VLqd6Tb9Hwpjh9ksHD@vger.kernel.org, AJvYcCVSkaTlAuZhOMDtYOx1/fZdqUTmjvml6P79mw1owAib6uOE0teTduPSATXfYOHmpnwTzFm8ju26hP+Vi4rE@vger.kernel.org, AJvYcCVbBh/gThojsLtRAZIjYZ30JRBHL+3B0B/o+dWXlVHADryzZ03V3E1piiQl4OROYibpCTroICCM7Jw8sK9LbA==@vger.kernel.org X-Gm-Message-State: AOJu0YyeyhO/JcRfzgJKLzPCe2kmO7Y6dozAUUnugk44nXMi+fako8PG dY6u8vsGv0bq1qmBSIjP6ON1AauspRTnZ5hUGKgdzDSngHJ+KmcEXlLyIf8= X-Google-Smtp-Source: AGHT+IFaay50v/NPTfnaJdnwWnrcEA4ax0oleJ9MSRvgXV7IdB8ubySmq7t4FQXRVvRKck+isaBDEA== X-Received: by 2002:a05:600c:1e8e:b0:428:fcb:962 with SMTP id 5b1f17b1804b1-42bb020d1a5mr145901335e9.36.1725403391629; Tue, 03 Sep 2024 15:43:11 -0700 (PDT) Received: from surface.home (2a01cb080508df00ca9665fffed23409.ipv6.abo.wanadoo.fr. [2a01:cb08:508:df00:ca96:65ff:fed2:3409]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42ba6396516sm222955115e9.4.2024.09.03.15.43.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 15:43:10 -0700 (PDT) From: =?utf-8?q?J=C3=A9r=C3=B4me_de_Bretagne?= To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Johan Hovold , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] firmware: qcom: scm: Allow QSEECOM on Microsoft Surface Pro 9 5G Date: Wed, 4 Sep 2024 00:42:50 +0200 Message-ID: <20240903224252.6207-3-jerome.debretagne@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240903224252.6207-1-jerome.debretagne@gmail.com> References: <20240903224252.6207-1-jerome.debretagne@gmail.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add the SC8280XP-based Microsoft Surface Pro 9 5G to the allowlist. Signed-off-by: Jérôme de Bretagne Reviewed-by: Konrad Dybcio --- drivers/firmware/qcom/qcom_scm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/firmware/qcom/qcom_scm.c b/drivers/firmware/qcom/qcom_scm.c index 00c379a3cceb..5c8d8d75fb0a 100644 --- a/drivers/firmware/qcom/qcom_scm.c +++ b/drivers/firmware/qcom/qcom_scm.c @@ -1725,6 +1725,7 @@ EXPORT_SYMBOL_GPL(qcom_scm_qseecom_app_send); static const struct of_device_id qcom_scm_qseecom_allowlist[] __maybe_unused = { { .compatible = "lenovo,flex-5g" }, { .compatible = "lenovo,thinkpad-x13s", }, + { .compatible = "microsoft,arcata", }, { .compatible = "qcom,sc8180x-primus" }, { .compatible = "qcom,x1e80100-crd" }, { .compatible = "qcom,x1e80100-qcp" }, From patchwork Tue Sep 3 22:42:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=A9r=C3=B4me_de_Bretagne?= X-Patchwork-Id: 13789487 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 00B9E1D5CF2; Tue, 3 Sep 2024 22:43:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725403395; cv=none; b=hwnr2XF/bHEEOgAYUmfky7mo6DoI1UgsiHIWV41qxpdlH2axeAkX3orfPfhiScQu6z9660Q+iBF1ixv3MkrZ2fFcdIVXjhUfbhhaeNijq5lnOdNdCOEbx6sm+GCRMq4hKkRgv7tJCeYHLXS3aUq5DvGm3CrtZfvUjkeU0zHJp3g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725403395; c=relaxed/simple; bh=O9n30QB1DMYapstoCJbwvTizxP32zrCDTTfwODrbyt8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=InyVgLNinGmwR9e1Jq2K+PBH6FAaP1RWg2IFsxF9LjwZCJqdyWWeiCLrg0f44MYs9Oqf1AOwe/kip/IZiMyPzUDNZB+xC2uI4nbg0eUaYTrOVPEyE93ssc6O0wcoeivEHGoqZ7NCg+JXWy3A5K1ogCpiO+HUMbTVpfxq5KZzsNI= 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=KAfyhve4; arc=none smtp.client-ip=209.85.128.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KAfyhve4" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-42c7bc97423so37989255e9.0; Tue, 03 Sep 2024 15:43:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725403392; x=1726008192; 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=U/pnt3pHgkOIYtiOgekAa9GiGnZHGWd/uqOyoBuoVDk=; b=KAfyhve47rXcLLRsUAGPuRq7ZIpCNGSYqULRmXrOwZRxL6vze/Sl5sSegV3/dMbxJB kK9rVwbc6IODvyhgBQnpOS1WItb5BmZlUalsGz7zdxc8FRJdn90eroNnzendQVm4g75m ta8SJpf/J14zw8r541P6+CIoyEFX/KzaLvQ0EM2IMevM9A4cmCZBDE5lm3B5Cr23xl7P ByieB1YJLScKwtcEZLw70dpfZT1HAozgeoQQ1LHgkQusgTAgiRHPgUMrWGhJ/Z/onmeg 3OvCFymHV9UM32CIwr14WaFWewA0JwM8v0ioTzb52OZoyRcP12AmokxCQc+M5gOUBRLI P/Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725403392; x=1726008192; 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=U/pnt3pHgkOIYtiOgekAa9GiGnZHGWd/uqOyoBuoVDk=; b=CN7UkKkHWF/bVynZHxUfOKlmP6nKunjypJuQN8SU17MtzyNLxSe1aq/BhKoNvP/lqT jC9Ut27mSjk536on04JyNxOkldffhfU4clywQriSDOZTzhWDOhBSOa20Z+/AezhReDX0 vATCQ9vuu2beHddsxpxVCRaLPcZXUUvF9zjASTJNiooZL/EpN4NePS6IkaIGL2TVkJHZ gWQKZ627jxBjrCfpY4ftVNzOzZBJ3eBy8cqZAco6j8iOyzh6tRH1+6neZb+ocXmFS5x5 hKfjbwuAJ/eQjESa2KdavzrkMZQunlIoZDyW/3X1EPxCbzPtIJPaoXulmaSBntSI5jrW WkcA== X-Forwarded-Encrypted: i=1; AJvYcCVsgjDHrZxEncy04XBDw2aECFxLnPChCpIxhC7s4AboCVdtPKiVUSkZ1Sv13sxmZEiwYlYbAerLyidSX2qCvA==@vger.kernel.org, AJvYcCWqJwWCZVHMUBREljPfrABVJyWiEu5Kum313SIGlR15O2eLsclox/c2VpN+IBK7l0ex3tKv90QZSvbj@vger.kernel.org, AJvYcCXHNtWT+APMlkL8uL+Xq3/vD3RWXHm9kD3B9PGcqMy8xliPHZYz/iMAonvBLU+cD4VgK2GdZmmf2M46ilbx@vger.kernel.org X-Gm-Message-State: AOJu0YxFOBv9Pcjs2VqeExecC10+kqLX3urZFtLxxk6XKMN42VxNJuJe hfn3xR8HRUT4zSEKA9QIO3VcYv6Vsbb5/r5/vdScWDnYnoqZ9Uu6doqzlMY= X-Google-Smtp-Source: AGHT+IFAmAeqpHPXQ0WOAs5NV9EuhVImLwVn4700RJ074Qe7TF5sH+O8Ll9pkME79pWc4NsOQVLeSw== X-Received: by 2002:a05:600c:4fd3:b0:426:5e1c:1ac2 with SMTP id 5b1f17b1804b1-42bb01ad75dmr173149455e9.8.1725403392164; Tue, 03 Sep 2024 15:43:12 -0700 (PDT) Received: from surface.home (2a01cb080508df00ca9665fffed23409.ipv6.abo.wanadoo.fr. [2a01:cb08:508:df00:ca96:65ff:fed2:3409]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42ba6396516sm222955115e9.4.2024.09.03.15.43.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 15:43:11 -0700 (PDT) From: =?utf-8?q?J=C3=A9r=C3=B4me_de_Bretagne?= To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Johan Hovold , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] arm64: dts: qcom: sc8280xp: Add uart18 Date: Wed, 4 Sep 2024 00:42:51 +0200 Message-ID: <20240903224252.6207-4-jerome.debretagne@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240903224252.6207-1-jerome.debretagne@gmail.com> References: <20240903224252.6207-1-jerome.debretagne@gmail.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add the node describing uart18 for sc8280xp devices. Signed-off-by: Jérôme de Bretagne --- arch/arm64/boot/dts/qcom/sc8280xp.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi index 14c3b1d6ad47..e068de274b56 100644 --- a/arch/arm64/boot/dts/qcom/sc8280xp.dtsi +++ b/arch/arm64/boot/dts/qcom/sc8280xp.dtsi @@ -1013,6 +1013,20 @@ spi18: spi@888000 { status = "disabled"; }; + uart18: serial@888000 { + compatible = "qcom,geni-uart"; + reg = <0 0x00888000 0 0x4000>; + clocks = <&gcc GCC_QUPV3_WRAP2_S1_CLK>; + clock-names = "se"; + interrupts = ; + operating-points-v2 = <&qup_opp_table_100mhz>; + power-domains = <&rpmhpd SC8280XP_CX>; + interconnects = <&clk_virt MASTER_QUP_CORE_2 0 &clk_virt SLAVE_QUP_CORE_2 0>, + <&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_QUP_2 0>; + interconnect-names = "qup-core", "qup-config"; + status = "disabled"; + }; + i2c19: i2c@88c000 { compatible = "qcom,geni-i2c"; reg = <0 0x0088c000 0 0x4000>; From patchwork Tue Sep 3 22:42:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=A9r=C3=B4me_de_Bretagne?= X-Patchwork-Id: 13789488 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1A0711D79B7; Tue, 3 Sep 2024 22:43:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725403398; cv=none; b=TDfoeg0Xx0dHgM8EbTaRel+PnVOyIXQF79YBJ7k1Yx3hcuMFrQKiOR8RDWnGmvMqqkAbzPodv8vwPVzqOaPBtqEA6Fs36AXdrTttGa3j0mn6q+f08nGjR4gfwglIEjk6zNJ7FQlCtw2I0k9smtxRTEKCZxn3Fk2BqRe6nr4yxkw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1725403398; c=relaxed/simple; bh=YVHfU0AghXMrqavcHsrzvSGUVAxDUUq9yB0K8t4B+G8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rUH6O0kMw9Bwoo9hz0L2b2pT1XiAAJJYalABiCeGk2sRfQTFzZvudlC8Z2lR9+D7Dukr3FInkqm8wwzDsDxHbsOIT//eUl3J/BefmSH9WP9r3ZD5UWSg+2qgMbRF1IrLeOrwospNaHzsVRQlIlrzobo4nl3K8DDdg7mcuo1gXKM= 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=KhM9d89v; arc=none smtp.client-ip=209.85.221.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KhM9d89v" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-3770320574aso349723f8f.2; Tue, 03 Sep 2024 15:43:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725403394; x=1726008194; 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=bJofrhVVuNX7yPUGuUnS0XLKF6s3xFsCiCz5UBpxgIg=; b=KhM9d89v3dfH9UueU+Nq00+jhCMoNEuwTpaEblqJiR/C1YoJDQTPApmOo5YyXSTvgt mU5Kyr1Qv9pqX9NJUaZQq/6kMQTVOuUaNJp4QOkRuQLyXgmr3KWas2wEdUdfK/fBLaRD XJ7PY4Z4pzYJ9UKBI5PAGF6g32rj5BZ4z2qCywZNOWnY8rT968sFd4Bu9yQqWYzMIQWo WN9HHA3fJhlpctK7lEUnQnMcke6NujkKteiSeAen8WkWGtOju5mPMEC59uYG4ysFd0vc 9nS0YWvGC9NyJNNme3awHwSRIkBkmLC6IUkwa5A9XPvKJppSoqHmv7k5TqLRQrH2dP7P SCzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725403394; x=1726008194; 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=bJofrhVVuNX7yPUGuUnS0XLKF6s3xFsCiCz5UBpxgIg=; b=r4kI80Lak0RKycN0T3j/wZphpCuhUAEG25VQVoGOKnhQ4hWxsDDAkXw/+eDmTvEEnG 2F/rtnMBlts9n1S0zVxUAfYchyXkO4GfFanZJTnIqyGiF/KgitAw9zdVU+dPkSQkTwSa uc6CFxC8YSmEcErXuAzgylvFn3IQD2Ntxk9utdjkZvT5O7cKzuIFblWv8KoganxyAxFv Pj85X70qMMqafXoU4MVNGra8P2i/SyF5tdakWVMTRqv1It65jm4+5AOzzAxNuvwVgwtC zzrGCjI23yUhMdbpzQ4VRmYSpxuSzwY6BKiOhe0C6BDLwQBAfRPBCj9VmGuefoOhYMof bkOw== X-Forwarded-Encrypted: i=1; AJvYcCU310TlNc/ePtDp6K1p28tnryXnP+yknOG0fT4OerQE+fc++28UmMKmnbKLqy8/ViWgHdneKQn9MJba@vger.kernel.org, AJvYcCX82jV0qYRU+W4vZJUQVAeX1+bmMxv8TQ15PQq9qHJ41PVd6W+/lrh2B/Ci/Cixco9dkEc9j6QRn2eCVFoJBQ==@vger.kernel.org, AJvYcCX8zsm8Is5OdnrpVm/QxWRqqTFku+9KY6m9xZdpvNNfZenww/s/g3QoAtnKCoer6IIPMop543BeeYlEJD6M@vger.kernel.org X-Gm-Message-State: AOJu0YxDsw1tk4fcKcpG0BXsVibEU0+yI4BUMiwaW89xMim+Mt5Ztbrf J5aSCNcp3c3nX8FOEds9LVuUq+QUzrowEa6P3Z6xNiajAleiscwQKu3c5g0= X-Google-Smtp-Source: AGHT+IHmqwXfMBAjKto07gL0X8tQckGKOLPa44I+UUKqQOEJghPRhSVMp1Sspp6iZX1OeCoOPs20Bg== X-Received: by 2002:adf:f487:0:b0:374:c3a2:2b5e with SMTP id ffacd0b85a97d-374c3a22c2emr6674209f8f.37.1725403393950; Tue, 03 Sep 2024 15:43:13 -0700 (PDT) Received: from surface.home (2a01cb080508df00ca9665fffed23409.ipv6.abo.wanadoo.fr. [2a01:cb08:508:df00:ca96:65ff:fed2:3409]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42ba6396516sm222955115e9.4.2024.09.03.15.43.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Sep 2024 15:43:12 -0700 (PDT) From: =?utf-8?q?J=C3=A9r=C3=B4me_de_Bretagne?= To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Johan Hovold , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] arm64: dts: qcom: sc8280xp: Add Microsoft Surface Pro 9 5G Date: Wed, 4 Sep 2024 00:42:52 +0200 Message-ID: <20240903224252.6207-5-jerome.debretagne@gmail.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240903224252.6207-1-jerome.debretagne@gmail.com> References: <20240903224252.6207-1-jerome.debretagne@gmail.com> Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Add an initial devicetree for the Microsoft Surface Pro 9 5G, based on SC8280XP. It enables the support for Wi-Fi, NVMe, the two USB Type-C ports, Bluetooth, 5G cellular modem, audio output (via Bluetooth headsets), external display via DisplayPort over Type-C (only the bottom USB Type-C port is working so far, corresponding to the usb1 / dp1 nodes), charging, the Surface Aggregator Module (SAM) to get keyboard and touchpad working with the Surface Type Cover accessories. Some key features not supported yet: - built-in display (but software fallback is working with efifb when blacklisting the msm module) - built-in display touchscreen - external display with the top USB Type-C port - speakers and microphones - physical volume up and down keys - LID switch detection This devicetree is based on the other SC8280XP ones, for the Lenovo ThinkPad X13s and the Qualcomm CRD. Signed-off-by: Jérôme de Bretagne Reviewed-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/qcom/Makefile | 1 + .../sc8280xp-microsoft-surface-pro-9-5G.dts | 1099 +++++++++++++++++ 2 files changed, 1100 insertions(+) create mode 100644 arch/arm64/boot/dts/qcom/sc8280xp-microsoft-surface-pro-9-5G.dts diff --git a/arch/arm64/boot/dts/qcom/Makefile b/arch/arm64/boot/dts/qcom/Makefile index 0e5c810304fb..5eb67dc270c6 100644 --- a/arch/arm64/boot/dts/qcom/Makefile +++ b/arch/arm64/boot/dts/qcom/Makefile @@ -184,6 +184,7 @@ dtb-$(CONFIG_ARCH_QCOM) += sc8180x-lenovo-flex-5g.dtb dtb-$(CONFIG_ARCH_QCOM) += sc8180x-primus.dtb dtb-$(CONFIG_ARCH_QCOM) += sc8280xp-crd.dtb dtb-$(CONFIG_ARCH_QCOM) += sc8280xp-lenovo-thinkpad-x13s.dtb +dtb-$(CONFIG_ARCH_QCOM) += sc8280xp-microsoft-surface-pro-9-5G.dtb dtb-$(CONFIG_ARCH_QCOM) += sda660-inforce-ifc6560.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm450-lenovo-tbx605f.dtb dtb-$(CONFIG_ARCH_QCOM) += sdm450-motorola-ali.dtb diff --git a/arch/arm64/boot/dts/qcom/sc8280xp-microsoft-surface-pro-9-5G.dts b/arch/arm64/boot/dts/qcom/sc8280xp-microsoft-surface-pro-9-5G.dts new file mode 100644 index 000000000000..476932e8a9c5 --- /dev/null +++ b/arch/arm64/boot/dts/qcom/sc8280xp-microsoft-surface-pro-9-5G.dts @@ -0,0 +1,1099 @@ +// SPDX-License-Identifier: BSD-3-Clause +/* + * Copyright (c) 2024, Jérôme de Bretagne + */ + +/dts-v1/; + +#include +#include + +#include "sc8280xp.dtsi" +#include "sc8280xp-pmics.dtsi" + +/ { + model = "Microsoft Surface Pro 9 5G"; + compatible = "microsoft,arcata", "qcom,sc8280xp"; + + aliases { + serial0 = &uart18; + serial1 = &uart2; + }; + + wcd938x: audio-codec { + compatible = "qcom,wcd9380-codec"; + + pinctrl-names = "default"; + pinctrl-0 = <&wcd_default>; + + reset-gpios = <&tlmm 106 GPIO_ACTIVE_LOW>; + + vdd-buck-supply = <&vreg_s10b>; + vdd-rxtx-supply = <&vreg_s10b>; + vdd-io-supply = <&vreg_s10b>; + vdd-mic-bias-supply = <&vreg_bob>; + + qcom,micbias1-microvolt = <1800000>; + qcom,micbias2-microvolt = <1800000>; + qcom,micbias3-microvolt = <1800000>; + qcom,micbias4-microvolt = <1800000>; + qcom,mbhc-buttons-vthreshold-microvolt = <75000 150000 237000 500000 500000 500000 500000 500000>; + qcom,mbhc-headset-vthreshold-microvolt = <1700000>; + qcom,mbhc-headphone-vthreshold-microvolt = <50000>; + qcom,rx-device = <&wcd_rx>; + qcom,tx-device = <&wcd_tx>; + + #sound-dai-cells = <1>; + }; + + pmic-glink { + compatible = "qcom,sc8280xp-pmic-glink", "qcom,pmic-glink"; + + #address-cells = <1>; + #size-cells = <0>; + + connector@0 { + compatible = "usb-c-connector"; + reg = <0>; + power-role = "dual"; + data-role = "dual"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + + pmic_glink_con0_hs: endpoint { + remote-endpoint = <&usb_0_dwc3_hs>; + }; + }; + + port@1 { + reg = <1>; + + pmic_glink_con0_ss: endpoint { + remote-endpoint = <&usb_0_qmpphy_out>; + }; + }; + + port@2 { + reg = <2>; + + pmic_glink_con0_sbu: endpoint { + remote-endpoint = <&usb0_sbu_mux>; + }; + }; + }; + }; + + connector@1 { + compatible = "usb-c-connector"; + reg = <1>; + power-role = "dual"; + data-role = "dual"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + port@0 { + reg = <0>; + + pmic_glink_con1_hs: endpoint { + remote-endpoint = <&usb_1_dwc3_hs>; + }; + }; + + port@1 { + reg = <1>; + + pmic_glink_con1_ss: endpoint { + remote-endpoint = <&usb_1_qmpphy_out>; + }; + }; + + port@2 { + reg = <2>; + + pmic_glink_con1_sbu: endpoint { + remote-endpoint = <&usb1_sbu_mux>; + }; + }; + }; + }; + }; + + vreg_nvme: regulator-nvme { + compatible = "regulator-fixed"; + + regulator-name = "VCC3_SSD"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + gpio = <&tlmm 135 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-names = "default"; + pinctrl-0 = <&nvme_reg_en>; + + regulator-boot-on; + }; + + vreg_vph_pwr: regulator-vph-pwr { + compatible = "regulator-fixed"; + + regulator-name = "VPH_VCC3R9"; + regulator-min-microvolt = <3900000>; + regulator-max-microvolt = <3900000>; + + regulator-always-on; + }; + + vreg_wlan: regulator-wlan { + compatible = "regulator-fixed"; + + regulator-name = "VCC_WLAN_3R9"; + regulator-min-microvolt = <3900000>; + regulator-max-microvolt = <3900000>; + + gpio = <&pmr735a_gpios 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-names = "default"; + pinctrl-0 = <&hastings_reg_en>; + + regulator-boot-on; + }; + + vreg_wwan: regulator-wwan { + compatible = "regulator-fixed"; + + regulator-name = "VCC3B_WAN"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + + gpio = <&pmc8280_2_gpios 1 GPIO_ACTIVE_HIGH>; + enable-active-high; + + pinctrl-names = "default"; + pinctrl-0 = <&wwan_sw_en>; + + regulator-boot-on; + }; + + reserved-memory { + gpu_mem: gpu-mem@8bf00000 { + reg = <0 0x8bf00000 0 0x2000>; + no-map; + }; + + linux,cma { + compatible = "shared-dma-pool"; + size = <0x0 0x8000000>; + reusable; + linux,cma-default; + }; + }; + + thermal-zones { + skin-temp-thermal { + polling-delay-passive = <250>; + + thermal-sensors = <&pmk8280_adc_tm 5>; + + trips { + skin_temp_alert0: trip-point0 { + temperature = <55000>; + hysteresis = <1000>; + type = "passive"; + }; + + skin_temp_alert1: trip-point1 { + temperature = <58000>; + hysteresis = <1000>; + type = "passive"; + }; + + skin-temp-crit { + temperature = <73000>; + hysteresis = <1000>; + type = "critical"; + }; + }; + + cooling-maps { + map0 { + trip = <&skin_temp_alert0>; + cooling-device = <&CPU4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + + map1 { + trip = <&skin_temp_alert1>; + cooling-device = <&CPU4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&CPU7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; + }; + + usb0-sbu-mux { + compatible = "pericom,pi3usb102", "gpio-sbu-mux"; + + enable-gpios = <&tlmm 101 GPIO_ACTIVE_LOW>; + select-gpios = <&tlmm 164 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&usb0_sbu_default>; + + mode-switch; + orientation-switch; + + port { + usb0_sbu_mux: endpoint { + remote-endpoint = <&pmic_glink_con0_sbu>; + }; + }; + }; + + usb1-sbu-mux { + compatible = "pericom,pi3usb102", "gpio-sbu-mux"; + + enable-gpios = <&tlmm 48 GPIO_ACTIVE_LOW>; + select-gpios = <&tlmm 47 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default"; + pinctrl-0 = <&usb1_sbu_default>; + + mode-switch; + orientation-switch; + + port { + usb1_sbu_mux: endpoint { + remote-endpoint = <&pmic_glink_con1_sbu>; + }; + }; + }; +}; + +&apps_rsc { + regulators-0 { + compatible = "qcom,pm8350-rpmh-regulators"; + qcom,pmic-id = "b"; + + vdd-l1-l4-supply = <&vreg_s12b>; + vdd-l2-l7-supply = <&vreg_bob>; + vdd-l3-l5-supply = <&vreg_s11b>; + vdd-l6-l9-l10-supply = <&vreg_s12b>; + vdd-l8-supply = <&vreg_s12b>; + + vreg_s10b: smps10 { + regulator-name = "vreg_s10b"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-initial-mode = ; + regulator-always-on; + }; + + vreg_s11b: smps11 { + regulator-name = "vreg_s11b"; + regulator-min-microvolt = <1272000>; + regulator-max-microvolt = <1272000>; + regulator-initial-mode = ; + regulator-always-on; + }; + + vreg_s12b: smps12 { + regulator-name = "vreg_s12b"; + regulator-min-microvolt = <984000>; + regulator-max-microvolt = <984000>; + regulator-initial-mode = ; + regulator-always-on; + }; + + vreg_l3b: ldo3 { + regulator-name = "vreg_l3b"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-initial-mode = ; + regulator-boot-on; + }; + + vreg_l4b: ldo4 { + regulator-name = "vreg_l4b"; + regulator-min-microvolt = <912000>; + regulator-max-microvolt = <912000>; + regulator-initial-mode = ; + }; + + vreg_l6b: ldo6 { + regulator-name = "vreg_l6b"; + regulator-min-microvolt = <880000>; + regulator-max-microvolt = <880000>; + regulator-initial-mode = ; + regulator-boot-on; + regulator-always-on; // FIXME: VDD_A_EDP_0_0P9 + }; + }; + + regulators-1 { + compatible = "qcom,pm8350c-rpmh-regulators"; + qcom,pmic-id = "c"; + + vdd-bob-supply = <&vreg_vph_pwr>; + vdd-l1-l12-supply = <&vreg_s1c>; + vdd-l2-l8-supply = <&vreg_s1c>; + vdd-l3-l4-l5-l7-l13-supply = <&vreg_bob>; + vdd-l6-l9-l11-supply = <&vreg_bob>; + vdd-l10-supply = <&vreg_s11b>; + + vreg_s1c: smps1 { + regulator-name = "vreg_s1c"; + regulator-min-microvolt = <1880000>; + regulator-max-microvolt = <1900000>; + regulator-initial-mode = ; + regulator-always-on; + }; + + vreg_l1c: ldo1 { + regulator-name = "vreg_l1c"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-initial-mode = ; + }; + + vreg_l12c: ldo12 { + regulator-name = "vreg_l12c"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-initial-mode = ; + }; + + vreg_l13c: ldo13 { + regulator-name = "vreg_l13c"; + regulator-min-microvolt = <3072000>; + regulator-max-microvolt = <3072000>; + regulator-initial-mode = ; + }; + + vreg_bob: bob { + regulator-name = "vreg_bob"; + regulator-min-microvolt = <3008000>; + regulator-max-microvolt = <3960000>; + regulator-initial-mode = ; + regulator-always-on; + }; + }; + + regulators-2 { + compatible = "qcom,pm8350-rpmh-regulators"; + qcom,pmic-id = "d"; + + vdd-l1-l4-supply = <&vreg_s11b>; + vdd-l2-l7-supply = <&vreg_bob>; + vdd-l3-l5-supply = <&vreg_s11b>; + vdd-l6-l9-l10-supply = <&vreg_s12b>; + vdd-l8-supply = <&vreg_s12b>; + + vreg_l3d: ldo3 { + regulator-name = "vreg_l3d"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-initial-mode = ; + }; + + vreg_l4d: ldo4 { + regulator-name = "vreg_l4d"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-initial-mode = ; + }; + + vreg_l6d: ldo6 { + regulator-name = "vreg_l6d"; + regulator-min-microvolt = <880000>; + regulator-max-microvolt = <880000>; + regulator-initial-mode = ; + }; + + vreg_l7d: ldo7 { + regulator-name = "vreg_l7d"; + regulator-min-microvolt = <3072000>; + regulator-max-microvolt = <3072000>; + regulator-initial-mode = ; + }; + + vreg_l9d: ldo9 { + regulator-name = "vreg_l9d"; + regulator-min-microvolt = <912000>; + regulator-max-microvolt = <912000>; + regulator-initial-mode = ; + }; + }; +}; + +&dispcc0 { + status = "okay"; +}; + +&dispcc1 { + status = "okay"; +}; + +&gpu { + status = "okay"; + + zap-shader { + memory-region = <&gpu_mem>; + firmware-name = "qcom/sc8280xp/MICROSOFT/SurfacePro9/qcdxkmsuc8280.mbn"; + }; +}; + +&mdss0 { + status = "okay"; +}; + +&mdss0_dp0 { + status = "okay"; +}; + +&mdss0_dp0_out { + data-lanes = <0 1>; + remote-endpoint = <&usb_0_qmpphy_dp_in>; +}; + +&mdss0_dp1 { + status = "okay"; +}; + +&mdss0_dp1_out { + data-lanes = <0 1>; + remote-endpoint = <&usb_1_qmpphy_dp_in>; +}; + +&pcie2a { + perst-gpios = <&tlmm 143 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 145 GPIO_ACTIVE_LOW>; + + vddpe-3v3-supply = <&vreg_nvme>; + + pinctrl-names = "default"; + pinctrl-0 = <&pcie2a_default>; + + status = "okay"; +}; + +&pcie2a_phy { + vdda-phy-supply = <&vreg_l6d>; + vdda-pll-supply = <&vreg_l4d>; + + status = "okay"; +}; + +&pcie3a { + perst-gpios = <&tlmm 151 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 148 GPIO_ACTIVE_LOW>; + + vddpe-3v3-supply = <&vreg_wwan>; + + pinctrl-names = "default"; + pinctrl-0 = <&pcie3a_default>; + + status = "okay"; +}; + +&pcie3a_phy { + vdda-phy-supply = <&vreg_l6d>; + vdda-pll-supply = <&vreg_l4d>; + + status = "okay"; +}; + +&pcie4 { + max-link-speed = <2>; + + perst-gpios = <&tlmm 141 GPIO_ACTIVE_LOW>; + wake-gpios = <&tlmm 139 GPIO_ACTIVE_LOW>; + + vddpe-3v3-supply = <&vreg_wlan>; + + pinctrl-names = "default"; + pinctrl-0 = <&pcie4_default>; + + status = "okay"; +}; + +&pcie4_port0 { + wifi@0 { + compatible = "pci17cb,1103"; + reg = <0x10000 0x0 0x0 0x0 0x0>; + + qcom,ath11k-calibration-variant = "LE_X13S"; + }; +}; + +&pcie4_phy { + vdda-phy-supply = <&vreg_l6d>; + vdda-pll-supply = <&vreg_l4d>; + + status = "okay"; +}; + +&pmk8280_pon_pwrkey { + status = "okay"; +}; + +&pmk8280_pon_resin { + status = "okay"; +}; + +&pmk8280_rtc { + nvmem-cells = <&rtc_offset>; + nvmem-cell-names = "offset"; + + status = "okay"; +}; + +&pmk8280_sdam_6 { + status = "okay"; + + rtc_offset: rtc-offset@bc { + reg = <0xbc 0x4>; + }; +}; + +&qup0 { + status = "okay"; +}; + +&qup1 { + status = "okay"; +}; + +&qup2 { + status = "okay"; +}; + +&remoteproc_adsp { + firmware-name = "qcom/sc8280xp/MICROSOFT/SurfacePro9/qcadsp8280.mbn"; + + status = "okay"; +}; + +&remoteproc_nsp0 { + firmware-name = "qcom/sc8280xp/MICROSOFT/SurfacePro9/qccdsp8280.mbn"; + + status = "okay"; +}; + +&rxmacro { + status = "okay"; +}; + +&sound { + compatible = "qcom,sc8280xp-sndcard"; + model = "SC8280XP-MICROSOFT-SURFACE-PRO-9-5G"; + audio-routing = + "SpkrLeft IN", "WSA_SPK1 OUT", + "SpkrRight IN", "WSA_SPK2 OUT", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "AMIC2", "MIC BIAS2", + "VA DMIC0", "MIC BIAS1", + "VA DMIC1", "MIC BIAS1", + "VA DMIC2", "MIC BIAS3", + "VA DMIC0", "VA MIC BIAS1", + "VA DMIC1", "VA MIC BIAS1", + "VA DMIC2", "VA MIC BIAS3", + "TX SWR_ADC1", "ADC2_OUTPUT"; + + wcd-playback-dai-link { + link-name = "WCD Playback"; + cpu { + sound-dai = <&q6apmbedai RX_CODEC_DMA_RX_0>; + }; + + codec { + sound-dai = <&wcd938x 0>, <&swr1 0>, <&rxmacro 0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + + wcd-capture-dai-link { + link-name = "WCD Capture"; + cpu { + sound-dai = <&q6apmbedai TX_CODEC_DMA_TX_3>; + }; + + codec { + sound-dai = <&wcd938x 1>, <&swr2 0>, <&txmacro 0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + + wsa-dai-link { + link-name = "WSA Playback"; + cpu { + sound-dai = <&q6apmbedai WSA_CODEC_DMA_RX_0>; + }; + + codec { + sound-dai = <&swr0 0>, <&wsamacro 0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + }; + + va-dai-link { + link-name = "VA Capture"; + cpu { + sound-dai = <&q6apmbedai VA_CODEC_DMA_TX_0>; + }; + + platform { + sound-dai = <&q6apm>; + }; + + codec { + sound-dai = <&vamacro 0>; + }; + }; +}; + +&swr0 { + status = "okay"; +}; + +&swr1 { + status = "okay"; + + wcd_rx: wcd9380-rx@0,4 { + compatible = "sdw20217010d00"; + reg = <0 4>; + qcom,rx-port-mapping = <1 2 3 4 5>; + }; +}; + +&swr2 { + status = "okay"; + + wcd_tx: wcd9380-tx@0,3 { + compatible = "sdw20217010d00"; + reg = <0 3>; + qcom,tx-port-mapping = <1 1 2 3>; + }; +}; + +&txmacro { + status = "okay"; +}; + +&uart2 { + pinctrl-0 = <&uart2_default>; + pinctrl-names = "default"; + + status = "okay"; + + bluetooth { + compatible = "qcom,wcn6855-bt"; + + vddio-supply = <&vreg_s10b>; + vddbtcxmx-supply = <&vreg_s12b>; + vddrfacmn-supply = <&vreg_s12b>; + vddrfa0p8-supply = <&vreg_s12b>; + vddrfa1p2-supply = <&vreg_s11b>; + vddrfa1p7-supply = <&vreg_s1c>; + + max-speed = <3200000>; + + enable-gpios = <&tlmm 133 GPIO_ACTIVE_HIGH>; + swctrl-gpios = <&tlmm 132 GPIO_ACTIVE_HIGH>; + + pinctrl-0 = <&bt_default>; + pinctrl-names = "default"; + }; +}; + +&uart18 { + status = "okay"; + + pinctrl-names = "default"; + pinctrl-0 = <&uart18_state>; + + surface-aggregator { + compatible = "surface,aggregator"; + + current-speed = <4000000>; + uart-has-rtscts; + uart-parity = "n"; + + pinctrl-names = "default"; + pinctrl-0 = <&ssam_state>; + + ssam_wakeup-int-gpios = <&tlmm 85 GPIO_ACTIVE_HIGH>; + + ssh-d3-closes-handle; + ssh-buffer-size = <0x30>; + + rtc { + ssam-uid = "01:01:01:00:00"; + }; + + battery { + ssam-uid = "01:02:01:01:00"; + }; + + ac { + ssam-uid = "01:02:01:01:01"; + }; + + thermal-sensors { + ssam-uid = "01:03:01:00:02"; + }; + + kip-hub { + ssam-uid = "00:00:01:0e:00"; + + hid-keyboard { + ssam-uid = "01:15:02:01:00"; + }; + + hid-pen-stash { + ssam-uid = "01:15:02:02:00"; + }; + + hid-touchpad { + ssam-uid = "01:15:02:03:00"; + }; + + hid-tcfwupd { + ssam-uid = "01:15:02:05:00"; + }; + }; + + kip-tablet-mode-switch { + ssam-uid = "01:0e:01:00:01"; + }; + }; +}; + +&usb_0 { + status = "okay"; +}; + +&usb_0_dwc3 { + dr_mode = "host"; +}; + +&usb_0_dwc3_hs { + remote-endpoint = <&pmic_glink_con0_hs>; +}; + +&usb_0_hsphy { + vdda-pll-supply = <&vreg_l9d>; + vdda18-supply = <&vreg_l1c>; + vdda33-supply = <&vreg_l7d>; + + status = "okay"; +}; + +&usb_0_qmpphy { + vdda-phy-supply = <&vreg_l9d>; + vdda-pll-supply = <&vreg_l4d>; + + orientation-switch; + + status = "okay"; +}; + +&usb_0_qmpphy_dp_in { + remote-endpoint = <&mdss0_dp0_out>; +}; + +&usb_0_qmpphy_out { + remote-endpoint = <&pmic_glink_con0_ss>; +}; + +&usb_1 { + status = "okay"; +}; + +&usb_1_dwc3 { + dr_mode = "host"; +}; + +&usb_1_dwc3_hs { + remote-endpoint = <&pmic_glink_con1_hs>; +}; + +&usb_1_hsphy { + vdda-pll-supply = <&vreg_l4b>; + vdda18-supply = <&vreg_l1c>; + vdda33-supply = <&vreg_l13c>; + + status = "okay"; +}; + +&usb_1_qmpphy { + vdda-phy-supply = <&vreg_l4b>; + vdda-pll-supply = <&vreg_l3b>; + + orientation-switch; + + status = "okay"; +}; + +&usb_1_qmpphy_dp_in { + remote-endpoint = <&mdss0_dp1_out>; +}; + +&usb_1_qmpphy_out { + remote-endpoint = <&pmic_glink_con1_ss>; +}; + +&vamacro { + pinctrl-0 = <&dmic01_default>, <&dmic23_default>; + pinctrl-names = "default"; + + vdd-micb-supply = <&vreg_s10b>; + + qcom,dmic-sample-rate = <4800000>; + + status = "okay"; +}; + +&wsamacro { + status = "okay"; +}; + +&xo_board_clk { + clock-frequency = <38400000>; +}; + +/* PINCTRL */ + +&lpass_tlmm { + status = "okay"; +}; + +&pmc8280_2_gpios { + wwan_sw_en: wwan-sw-en-state { + pins = "gpio1"; + function = "normal"; + }; +}; + +&pmr735a_gpios { + hastings_reg_en: hastings-reg-en-state { + pins = "gpio1"; + function = "normal"; + }; +}; + +&tlmm { + gpio-reserved-ranges = <70 2>, <74 6>, <125 2>, <128 2>, <154 4>; + + bt_default: bt-default-state { + hstp-bt-en-pins { + pins = "gpio133"; + function = "gpio"; + drive-strength = <16>; + bias-disable; + }; + + hstp-sw-ctrl-pins { + pins = "gpio132"; + function = "gpio"; + bias-pull-down; + }; + }; + + nvme_reg_en: nvme-reg-en-state { + pins = "gpio135"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + pcie2a_default: pcie2a-default-state { + clkreq-n-pins { + pins = "gpio142"; + function = "pcie2a_clkreq"; + drive-strength = <2>; + bias-pull-up; + }; + + perst-n-pins { + pins = "gpio143"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + wake-n-pins { + pins = "gpio145"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + pcie3a_default: pcie3a-default-state { + clkreq-n-pins { + pins = "gpio150"; + function = "pcie3a_clkreq"; + drive-strength = <2>; + bias-pull-up; + }; + + perst-n-pins { + pins = "gpio151"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + wake-n-pins { + pins = "gpio148"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + pcie4_default: pcie4-default-state { + clkreq-n-pins { + pins = "gpio140"; + function = "pcie4_clkreq"; + drive-strength = <2>; + bias-pull-up; + }; + + perst-n-pins { + pins = "gpio141"; + function = "gpio"; + drive-strength = <2>; + bias-disable; + }; + + wake-n-pins { + pins = "gpio139"; + function = "gpio"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + + ssam_state: ssam-state { + wake-int { + pins = "gpio85"; + function = "gpio"; + bias-disable; + }; + }; + + uart2_default: uart2-default-state { + cts-pins { + pins = "gpio121"; + function = "qup2"; + bias-bus-hold; + }; + + rts-pins { + pins = "gpio122"; + function = "qup2"; + drive-strength = <2>; + bias-disable; + }; + + rx-pins { + pins = "gpio124"; + function = "qup2"; + bias-pull-up; + }; + + tx-pins { + pins = "gpio123"; + function = "qup2"; + drive-strength = <2>; + bias-disable; + }; + }; + + uart18_state: uart18-state { + cts { + pins = "gpio66"; + function = "qup18"; + bias-pull-down; + }; + + rts-tx { + pins = "gpio67", "gpio68"; + function = "qup18"; + drive-strength = <2>; + bias-disable; + }; + + rx { + pins = "gpio69"; + function = "qup18"; + bias-pull-up; + }; + }; + + usb0_sbu_default: usb0-sbu-state { + oe-n-pins { + pins = "gpio101"; + function = "gpio"; + bias-disable; + drive-strength = <16>; + output-high; + }; + + sel-pins { + pins = "gpio164"; + function = "gpio"; + bias-disable; + drive-strength = <16>; + }; + }; + + usb1_sbu_default: usb1-sbu-state { + oe-n-pins { + pins = "gpio48"; + function = "gpio"; + bias-disable; + drive-strength = <16>; + output-high; + }; + + sel-pins { + pins = "gpio47"; + function = "gpio"; + bias-disable; + drive-strength = <16>; + }; + }; + + wcd_default: wcd-default-state { + reset-pins { + pins = "gpio106"; + function = "gpio"; + bias-disable; + }; + }; +};