Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp740491iog; Wed, 29 Jun 2022 09:14:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sv3aEPVoWUPdHPtz9F9PfWGwRmYmD62lkOMu1+r2dplUwk6gzjgBRhD2rGepLJfZn0zBfE X-Received: by 2002:a17:90b:3b41:b0:1ed:25b1:e53a with SMTP id ot1-20020a17090b3b4100b001ed25b1e53amr6721762pjb.71.1656519271802; Wed, 29 Jun 2022 09:14:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656519271; cv=none; d=google.com; s=arc-20160816; b=Csi6X3MXe1av03xXotKJ5lr80KIX+sHV/yqGq5jjAZFY9QPsz2qgepZegsj3DPp/oP 8cQ0HpT71VQds8akwQAAKcxGiRNQfWoQwIYHAAuBbzimJNksEfehWq4D9J6aIC3kNnKr QZR0nPBLXRjIFzDhv5jCQg8uIZwmviGc894nBitFPIiQqtsaNID9o3ChLV952NZUQpgW PXcxt7u7WWF2pbD/V9970sRxkr0e5nsX0HLXZlqZvgDeD7vwsqtD8IP7BNmhUFnOF3ud ikHiNP766xzVC15ztOryvm2rk6LzUYWlYz8FoS/W/ROMB7Ccdn8U8Ml2tLXu3Ji3g/F0 r+hQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dDwZWCKeRaT+g4l4NKmkKyJjH4PU1u79p0NUuOLu+d4=; b=W+Mmf3LnJg2O9wcSVOxBCWspnEsWjFVF5pl908ONLxdfvEaYz0VJvdPFkQSK/m4LVI zM4pEGS5N7LKzHEV0oqHbx/8j4bULxGPJOAVvjzquIW7FPsYqY6TEjKTq/h9pvmZkgBH M87HU0Nv9pk1Cz81DVIXPrgqIft9YecLYjc5eXQ9uJdMKoju4MQKsnuULqIOEzdVo2JH vxP0hUVEfTeONZmScff9Q080+dED94NINfbrx4DBBOe+WuX/VQMcaXkwOKG4BLyA/jLN Y6jNhwmmeNh45shlMh6zXBb0oGWGINztLaX7hqgHYRUtfk52Kpog7OTykxjoUcvQONUT yFzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=mGuzmp1E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d11-20020a63d64b000000b003fc3e715428si21400242pgj.342.2022.06.29.09.14.12; Wed, 29 Jun 2022 09:14:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=mGuzmp1E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234171AbiF2QAr (ORCPT + 99 others); Wed, 29 Jun 2022 12:00:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234353AbiF2QAS (ORCPT ); Wed, 29 Jun 2022 12:00:18 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFC4A1CFC8; Wed, 29 Jun 2022 09:00:17 -0700 (PDT) Received: from notapiano.myfiosgateway.com (pool-98-113-53-228.nycmny.fios.verizon.net [98.113.53.228]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nfraprado) by madras.collabora.co.uk (Postfix) with ESMTPSA id 8E23E660195F; Wed, 29 Jun 2022 17:00:15 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1656518416; bh=DkEh0i4AhAuZrJDIOKX1/1K+MmHQy1XtKrDDIPq0SBc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mGuzmp1ExCM5zcE7UT3S1NSe2MQD7d0sS9HCaAVaseFC4I2QPRi96THo3qN+rHpN8 i6HVkrIwSZlEIwusQ2V7tSfif7LJvsCk42xKv3fm9+rXmKDVleh1nHKPqzKYczIb6F H7gWCYmkJ5XnAIHOXboLgC70btl+u3z7I06+SJjEsNYB+ju7fZJ/ft2uX6mRhdl9f0 xgRK69PYY9vM2C7GbxqRiB8z5zoEvnAgklCov1Q/MhxJ1Pzy3LybHRmdjck/7udDAk hSvj4dTLi01kYevztV7GrfacfroFBArZB3s7EsGzxKBlU1BHVRlJ9FsNBzmWAilzZ9 W/jnPqWXGOnDg== From: =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= To: Matthias Brugger Cc: AngeloGioacchino Del Regno , kernel@collabora.com, Chen-Yu Tsai , =?UTF-8?q?N=C3=ADcolas=20F=2E=20R=2E=20A=2E=20Prado?= , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH v4 09/19] arm64: dts: mediatek: asurada: Add Cr50 TPM Date: Wed, 29 Jun 2022 11:59:46 -0400 Message-Id: <20220629155956.1138955-10-nfraprado@collabora.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220629155956.1138955-1-nfraprado@collabora.com> References: <20220629155956.1138955-1-nfraprado@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Asurada platform has a Google Security Chip connected to the SPI5 bus. It runs the cr50 firmware and provides TPM functionality. Add support for it. Signed-off-by: NĂ­colas F. R. A. Prado Reviewed-by: AngeloGioacchino Del Regno Tested-by: Chen-Yu Tsai --- (no changes since v1) .../arm64/boot/dts/mediatek/mt8192-asurada.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi index 07405dea4d9d..fe626535ee5d 100644 --- a/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8192-asurada.dtsi @@ -5,6 +5,7 @@ */ /dts-v1/; #include "mt8192.dtsi" +#include / { aliases { @@ -353,6 +354,13 @@ &pio { "AUD_DAT_MISO0", "AUD_DAT_MISO1"; + cr50_int: cr50-irq-default-pins { + pins-gsc-ap-int-odl { + pinmux = ; + input-enable; + }; + }; + cros_ec_int: cros-ec-irq-default-pins { pins-ec-ap-int-odl { pinmux = ; @@ -513,6 +521,15 @@ &spi5 { mediatek,pad-select = <0>; pinctrl-names = "default"; pinctrl-0 = <&spi5_pins>; + + cr50@0 { + compatible = "google,cr50"; + reg = <0>; + interrupts-extended = <&pio 171 IRQ_TYPE_EDGE_RISING>; + spi-max-frequency = <1000000>; + pinctrl-names = "default"; + pinctrl-0 = <&cr50_int>; + }; }; &uart0 { -- 2.36.1