From patchwork Fri Mar 15 13:42:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10854773 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CBF541669 for ; Fri, 15 Mar 2019 13:43:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B011E2A9B8 for ; Fri, 15 Mar 2019 13:43:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A457D2A9C2; Fri, 15 Mar 2019 13:43:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5E92D2A9B8 for ; Fri, 15 Mar 2019 13:43:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dhMYIiWAcYiBpGumtpZA4+F34zGwKxnzZkgVGvkBhGM=; b=WV3Fw+PaeCLXSZ mpv705RjY7FfEHXLhQHh9KeivqR7M7RJNejFved83Lhk3oGznOp6BJWsyypfvOlVcymHr5/yXb/XE zO9Y/rsevTGHDpCeMOePfh5eSYxhjNqlT3qv1TBPSHckYVneCfWSDJzvrRqwDSiwXNSgp0J3VnA29 9d7UhIE/m/+C6y/JRbVx5m+yrEHqmtgDUn3ADWpTOAYiGHqHnl/UvJJaLHEbjmfGaCWjPkfXzJSbv dk3/rAAey6gSoJJDirKai2FWXhlPmh47b2QUG/JmfWtMvC8LFpJYMs29dGgNsWP47FqUSTyyaqmYn cteCFp6GHV2UUjkj4Ibw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h4n7D-0007FW-LJ; Fri, 15 Mar 2019 13:43:15 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h4n6s-0006cM-4k for linux-amlogic@lists.infradead.org; Fri, 15 Mar 2019 13:42:56 +0000 Received: by mail-wr1-x443.google.com with SMTP id p1so9625493wrs.8 for ; Fri, 15 Mar 2019 06:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=gz+IYaan7/2Eh+eJMLV0munYzmfacWjDFUXL21TiogA=; b=taURnEyhPquRk5Ay2RyfFOVZyjGDdGdYHAcKPleHcNp1Qgrkxts5McL4Mr6j/kVBHs y0wZl3OKieUbp8QMVYG5bPSQskd4Q1goOR1UjXsGcs43M83sCVRVeHGkHhjfoXU/qeC6 nr6ZUHKbC8KWN98WzYppLz6y2hF+rnFLQ5NiufjeWwyOcbjDrleRfwplI/pcRphUnAet UgHs772kF5XQ/Xd/xAejCidgOuIjMQWTjZBr9zHerRXsJgHH3ZkslRd7qiPPJcmZ9DJd zQRUZkQI7qFuPy/LDBDKcZLxXOrd+l2vV1ixZxH/1vIJ9i1abVLukp74XkfAWunVB1ib cqbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=gz+IYaan7/2Eh+eJMLV0munYzmfacWjDFUXL21TiogA=; b=t5UMMholIvgnSGnW1TCni7oc4UZ6xvBUbVH+bvjhnbKZ5e9vEK3H5rgIIK4huAAvD8 J/WKlxnmWidZtxWa99fb3OOR6tvzLbMRYDLOrHtIQBkPTFcULogK7+7fU2kvPiiL0L+a yTD9mz3Qrk4vNuGGmbdFx6Sar33XDhg3WNVuNIymjavorcNUdc+uU4cgIk8SWn604ilC 1zQ8XIhcoROcSTAHSQsb5yydwhjhbrK8VltlZRtAUiIIii6myz3iBAMmXzrmsKt8FI9y i0LrAm5EhgSCSKEvqe5Sk42Jeq97t34dfwlvbAh7t38lxsV9X+xSXIf6RNCkr/fXwO1+ 0q9Q== X-Gm-Message-State: APjAAAWbWiP9PAJt95kF0187LMEsI22Vg7Qf73NK3/2uwmtBLO6TfgFH BNM2Icm9HfW7/GkNVFa2MKGgpQ== X-Google-Smtp-Source: APXvYqwq/ds+ohvPOdLU9ghTLwQJIFCSqgfQH0nYW6PffVPKKQKhj3Ora16ZfySP/rcuSQTvDIWoGQ== X-Received: by 2002:adf:81a1:: with SMTP id 30mr2708660wra.285.1552657372397; Fri, 15 Mar 2019 06:42:52 -0700 (PDT) Received: from boomer.local ([2a01:e34:eeb6:4690:106b:bae3:31ed:7561]) by smtp.googlemail.com with ESMTPSA id x17sm4616143wrd.95.2019.03.15.06.42.50 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Mar 2019 06:42:51 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman Subject: [PATCH 1/2] arm64: dts: meson: g12a: add secure monitor Date: Fri, 15 Mar 2019 14:42:43 +0100 Message-Id: <20190315134244.14141-2-jbrunet@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190315134244.14141-1-jbrunet@baylibre.com> References: <20190315134244.14141-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190315_064254_179514_A24250EE X-CRM114-Status: UNSURE ( 8.07 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the interface to the secure monitor on g12a Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index 31ddf9444b3e..92ee8c895ba6 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -72,6 +72,10 @@ }; }; + sm: secure-monitor { + compatible = "amlogic,meson-gxbb-sm"; + }; + soc { compatible = "simple-bus"; #address-cells = <2>; From patchwork Fri Mar 15 13:42:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jerome Brunet X-Patchwork-Id: 10854777 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2AD401669 for ; Fri, 15 Mar 2019 13:43:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F25E2A9C2 for ; Fri, 15 Mar 2019 13:43:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 021D22A9C8; Fri, 15 Mar 2019 13:43:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A868C2A9C2 for ; Fri, 15 Mar 2019 13:43:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=4gjhZs2StWm3cu3EMjglIJsXKYZ3HGctR67fgYmTYlc=; b=EHTGZ6H5U2OryM LT1DuXEp1JVjEQwjNzNyTjtaHCuuw+aS1jV6UWxjyRBZKY1RodRpFSSNng3hoQR6H21Ei19+TKG6K ptm6/tmQWr3Zu/LGOFKnBfS0snQ2cABhL8iUKgOSL8GWHFfrpnt4Ynacc/SntDzfdOMIFQMjIlFyV gRSxAPGbU+HWiKv3yCp5C4S1yADWLrTjCLj3yXRNUMUR+2chQcFoOiXpCu0qo16dQtuBX6eOB1k5O hopPm5d2baYTkuzLeWFk3OJw4gcix9vQF8mAZRqY8UHPWXrNnnOA/XxCinSNaCMp/0f9bMRSuSsLO 9+gdvrQdAz5a8hR8gfkQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h4n7a-0007m3-8B; Fri, 15 Mar 2019 13:43:38 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h4n6t-0006cy-LS for linux-amlogic@lists.infradead.org; Fri, 15 Mar 2019 13:42:58 +0000 Received: by mail-wr1-x442.google.com with SMTP id n9so5539154wrr.9 for ; Fri, 15 Mar 2019 06:42:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vyS/YZPD5p3AVqB/Q5owFZpxvtTyLZqFLYc5jnuRxaY=; b=ssZ3nbw778qWn4FjK6qocnt1XtcEE3TUaUChdc6yDsnleU0nPOe1OhSFw5FErs1yTC /Ms1Mbfj1LsNnrrM24MQ770VXASbGxtuSHTajx9gcZQnyAXhpNdNVjx+FSGBsHRPt9+x Txdx3sDyBbwV6qwjw7CzshfAYYSSPHyx/yaPF5u5HwHVZozbtUqyGAyCwoDt5G9XXCtP 2hbwDsIZQ9MwYEDCgrW9f7vB/+FB0u6rV8EuMtjmi+jUoyaKA21yHo13V7kHX04YsujD EnMcWgg2uu7aIXu2uUYEn150yGdtji3fQVCfabEFBMGdF3icCFnjx2xeFhe5VCrWXCej P3cw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vyS/YZPD5p3AVqB/Q5owFZpxvtTyLZqFLYc5jnuRxaY=; b=n732/Y3nEeJzLGUqmCAuZ4UQUM3Yf+zUQwFABowfVgcPyTnvUe9mWjjVXBtKAoK0ZI A6M9ocx6IpjAz7ZZBmaQ1GSsQteKBo6ArceoNuLtQArKXqKcAdYZEKGzOzQW/j1IzBnr onNnZrOypEWZ3vwWYIyAZ37hrYRa11Y8F2cp7dwNwxEqkxpkXxLwrWUILX3cLqm2SjU1 WKXg2g1l3U36a5wBK9cktOFpf5FXjcoQxIzSWc8Qm4x6mOBKP85pzJKGbZeLY01739Ch cHfmudNSoQWEIJmdq5VSVnJvi5CqK0DGn4BuLXyyI5GdYO2yJaONWvsZj7SWcSv2wmfp L/mg== X-Gm-Message-State: APjAAAWIpoZfz0J35RLquF1YGodcYb9Audmvo1sbhxow51GRHKcFkAk3 3RTptsqWO5jvfb7t4NAlmMDisw== X-Google-Smtp-Source: APXvYqzCvh05ZUHZRuJvmkMSMomtkEKoIBwKANQTpJyxyO9QlAq9SYTYSZT8kYekkd60U0DHWCvlQA== X-Received: by 2002:adf:f111:: with SMTP id r17mr2594683wro.272.1552657373817; Fri, 15 Mar 2019 06:42:53 -0700 (PDT) Received: from boomer.local ([2a01:e34:eeb6:4690:106b:bae3:31ed:7561]) by smtp.googlemail.com with ESMTPSA id x17sm4616143wrd.95.2019.03.15.06.42.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 15 Mar 2019 06:42:53 -0700 (PDT) From: Jerome Brunet To: Kevin Hilman Subject: [PATCH 2/2] arm64: dts: meson: g12a: add efuse Date: Fri, 15 Mar 2019 14:42:44 +0100 Message-Id: <20190315134244.14141-3-jbrunet@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190315134244.14141-1-jbrunet@baylibre.com> References: <20190315134244.14141-1-jbrunet@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190315_064255_802408_4CD71A73 X-CRM114-Status: UNSURE ( 8.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jerome Brunet Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the g12a SoC efuse device Signed-off-by: Jerome Brunet --- arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi index 92ee8c895ba6..dcc821cf35bb 100644 --- a/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-g12a.dtsi @@ -4,6 +4,7 @@ */ #include +#include #include #include @@ -55,6 +56,14 @@ }; }; + efuse: efuse { + compatible = "amlogic,meson-gxbb-efuse"; + clocks = <&clkc CLKID_EFUSE>; + #address-cells = <1>; + #size-cells = <1>; + read-only; + }; + psci { compatible = "arm,psci-1.0"; method = "smc";