From patchwork Sun Jul 26 04:39:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11685479 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 74379912 for ; Sun, 26 Jul 2020 04:40:01 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 6DE0420773; Sun, 26 Jul 2020 04:40:01 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4B71B2053B for ; Sun, 26 Jul 2020 04:40:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="JKPAyqM7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4B71B2053B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=daniel@0x0f.com Received: by mail-pj1-f66.google.com with SMTP id k1so7356420pjt.5 for ; Sat, 25 Jul 2020 21:40:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TOWjKhpTAUxQGzRJ9viFhazH/fxYC7lH/fcb5nYvYF8=; b=JKPAyqM7DYs8ZxV2wxCYxmRX9YIbRDi8htfCF4Iosv2ft0c+yX6CcF7e8oGlxBFZQd tbEMr76Ja2sFM5x3o77uGnz75XZRJiOwUdwOEadXmo5WE99JA8Ajkj3WLDXOPCHiR3oz KZ6YYQZ2O6yNgOvDuse6P9nGN9NGm6FfAmDrI= 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=TOWjKhpTAUxQGzRJ9viFhazH/fxYC7lH/fcb5nYvYF8=; b=a1L4RI7iBe9MDBchNDq7k56XXQcgYddm4O6DaNAWNVM/kL4KMUYd6LJC7hQdIPN0+W qbYPwwPA8+YLj2VSEZfWNlUcyzGWoOo2wYnPztGtUvT7RAjj9UBHumuawMAL/e5F1Hs/ cZi5oSHeKsHEuXDZXL3FoubdkWCKs15hINNlDQez8PprCfVVulBYm2Bxq5AYvQSStAh7 HMs7FFjUV9Is7HAR38Kl1rVI9Q/1stklrCaLHdBOuIunrefT4aRkkJw90yEjbQBZ9nrR OesP0sw7zW93H14uctoH3b1LB7A/ez0cdu68AiB7xRgoTFIuJekr2oY6NHlPkuc3j0BV bjgQ== X-Gm-Message-State: AOAM531NOXf6F+PHw3YGOMYtmvEc46A/tg0SueEAf3inu/lUNWGo1PIx xAaT0JylDnnHj3iOK5iRL+4O4Bg11DU= X-Google-Smtp-Source: ABdhPJxh4sRsd07sZyUTJSxYKMWazSwAyP3irmtzA7+FVUKFIaegODvr1sdEwiFJSqJADyhWgO0+AA== X-Received: by 2002:a17:90b:11c7:: with SMTP id gv7mr12685172pjb.175.1595738398347; Sat, 25 Jul 2020 21:39:58 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id t1sm10507372pje.55.2020.07.25.21.39.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jul 2020 21:39:57 -0700 (PDT) From: Daniel Palmer List-Id: To: soc@kernel.org Cc: arnd@arndb.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH 1/7] ARM:mstar: Add IMI SRAM region Date: Sun, 26 Jul 2020 13:39:42 +0900 Message-Id: <20200726043948.1357573-2-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200726043948.1357573-1-daniel@0x0f.com> References: <20200726043948.1357573-1-daniel@0x0f.com> MIME-Version: 1.0 All MStar v7 SoCs have an internal SRAM region that is between 64KB (infinity2m) and 128KB(infinity3, mercury5). The region is always at the same base address and is used for the second stage loader (MStar IPL or u-boot SPL) and will be used for the DDR self-refresh entry code within the kernel eventually. This patch adds a 128KB region to the SoC and the minimum 64KB SRAM region to the base dtsi. Families with more SRAM will override the size in their family level dtsi. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mstar-v7.dtsi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi index 3b99bb435bb5..6bc55fdbee04 100644 --- a/arch/arm/boot/dts/mstar-v7.dtsi +++ b/arch/arm/boot/dts/mstar-v7.dtsi @@ -45,7 +45,8 @@ soc: soc { #address-cells = <1>; #size-cells = <1>; ranges = <0x16001000 0x16001000 0x00007000>, - <0x1f000000 0x1f000000 0x00400000>; + <0x1f000000 0x1f000000 0x00400000>, + <0xa0000000 0xa0000000 0x20000>; gic: interrupt-controller@16001000 { compatible = "arm,cortex-a7-gic"; @@ -78,6 +79,11 @@ pm_uart: uart@221000 { clock-frequency = <172000000>; status = "disabled"; }; + }; + + imi: sram@a0000000 { + compatible = "mmio-sram"; + reg = <0xa0000000 0x10000>; }; }; }; From patchwork Sun Jul 26 04:39:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11685481 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A2691912 for ; Sun, 26 Jul 2020 04:40:02 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 9C54820775; Sun, 26 Jul 2020 04:40:02 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 79FF82053B for ; Sun, 26 Jul 2020 04:40:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="f1GWr7Zc" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 79FF82053B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=daniel@0x0f.com Received: by mail-pj1-f66.google.com with SMTP id a9so7348622pjd.3 for ; Sat, 25 Jul 2020 21:40:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=S1PScPr62Fyv3G3V3sqS9lJD1oItrdYt39x4/kLlLZg=; b=f1GWr7Zc/SXlmn6mpmIZZbbZO2lfbv2DdsH8zIq4IUJlSzD2EuurHvhso0l3HGPDpy OV+KB4ORv8psgddkQju9P4NtBIJNoS1Ads0DUfP2hWG3NI7lC2eAIi9iBjzoVE2yY/xo uqAIBMEGixZv4admjTtM3jdG0rN3V4KkEQ4Ig= 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=S1PScPr62Fyv3G3V3sqS9lJD1oItrdYt39x4/kLlLZg=; b=bC87OTZaGamslFCbIOpXA42HpXPmEwLPLdgoXm8+/4DGJbS2dmZZQgn6ChXvOZl4V/ d6qfO2WsynoLDQZQmQNbVnilq8bkHhT98sUvHxk4gK4aU62GYK/D0Y2HP4n5GGHO/N9G toLnqp4PUU5Pq6pycW199hWaQ+asK1XQ65cGQoZM1M20q4gViLR6fiWXDiYTPLcNuKf8 sZRBapgoNiP2EuTFn7rNUWwWksEM5bOL55YRxuQjxjH7Hx7e6Ylo0E5bj106DGUqy2Lc z/7egDQmzURbiuV5AxWIfibh3WEwHxg0d6QV0uypt2XHNo3Ydu67HzqVBwXcMSq66OYP Vrhg== X-Gm-Message-State: AOAM533aUhLiYgkGGtmJW+OIU65pFgJjf2nXSwBK1qcSifA20NxJGSsh rBcLCgvepQm8JHGAPbMRIPHlfaEyHko= X-Google-Smtp-Source: ABdhPJyWKGqMGQhv/ydwBeupMiGitoRNYos25yqTDgSQYVBfbpr1lNBgCgwv7ZHoETJw+BUYNcBLag== X-Received: by 2002:a17:902:59c1:: with SMTP id d1mr14715427plj.78.1595738400719; Sat, 25 Jul 2020 21:40:00 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id t1sm10507372pje.55.2020.07.25.21.39.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jul 2020 21:40:00 -0700 (PDT) From: Daniel Palmer List-Id: To: soc@kernel.org Cc: arnd@arndb.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH 2/7] ARM:mstar: Adjust IMI size of infinity Date: Sun, 26 Jul 2020 13:39:43 +0900 Message-Id: <20200726043948.1357573-3-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200726043948.1357573-1-daniel@0x0f.com> References: <20200726043948.1357573-1-daniel@0x0f.com> MIME-Version: 1.0 infinity has 88KB of SRAM at the IMI region. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/infinity.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/infinity.dtsi b/arch/arm/boot/dts/infinity.dtsi index f68e6d59c328..cd911adef014 100644 --- a/arch/arm/boot/dts/infinity.dtsi +++ b/arch/arm/boot/dts/infinity.dtsi @@ -5,3 +5,7 @@ */ #include "mstar-v7.dtsi" + +&imi { + reg = <0xa0000000 0x16000>; +}; From patchwork Sun Jul 26 04:39:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11685483 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E9EC913A4 for ; Sun, 26 Jul 2020 04:40:04 +0000 (UTC) Received: by mail.kernel.org (Postfix) id E43F42078E; Sun, 26 Jul 2020 04:40:04 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-pj1-f68.google.com (mail-pj1-f68.google.com [209.85.216.68]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C2CC32053B for ; Sun, 26 Jul 2020 04:40:04 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="a0Fs4meJ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C2CC32053B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=daniel@0x0f.com Received: by mail-pj1-f68.google.com with SMTP id a9so7348645pjd.3 for ; Sat, 25 Jul 2020 21:40:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=TXJ1NcT71dEwTgLwEHbAIexF2sZraNkG0dfcffq3WTc=; b=a0Fs4meJoGMc6fOL1XFKjjk1/wXsBhoeWoL/A23QyJYUVN2fSgEf09ezWKGK4VBJIl pc8cZLin1e732paxMwyqPTyEOX6SCPtUgGIPzu30+Zn8GVRTJwVEVbyyDZD1at+LgWlG i6Ye3sLp1z00y0KoY8Ke2V1SqcTYkcKzoMPmQ= 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=TXJ1NcT71dEwTgLwEHbAIexF2sZraNkG0dfcffq3WTc=; b=YiGUvcg7T3exCunxmONLmWCHiZ/O0QWkZ4CjlLdD9MFzBfX5hXlYIuS73sac4tInAX TH5/FjTKyZQvK+7qzppA0yp22xkg3hksRsf+p2SIaTI4jJKc8svcQ7OxD7yNNGvopn3p vW8kKQIhNK2FH+/GhSH9Bf8lGGAMnkB3UL57eqqic0paPJ9i5Dfx8idnZdT+qkikOrAG 9u49wS6I5xfp5vHMS6P5kQqWasSxX5oV1gdA0OSAffBOEHxGDvyJNp/z0A9lLnJlXjtb nXu81gvBoE5f5sKr67GzFmvLYIeb8yXMWShzxV8OFJTqedJFjVgCKsVh8EzPePRJBWEU foVg== X-Gm-Message-State: AOAM533vlpoUC5RuvnDivyGKjUOZRaPAOkl1uxEEbO8o4po4QG/CGQWH ddUvrjhpp9Zl1Yev8R8swx9JVHaC3wQ= X-Google-Smtp-Source: ABdhPJzy0vBvUWWihwtxDTK8ly7CbhNg1RrC40BOaZpHt9iB2NgzrWJJvOlf6ioVecywtJ0ytSvu1Q== X-Received: by 2002:a17:902:c181:: with SMTP id d1mr13989906pld.176.1595738403919; Sat, 25 Jul 2020 21:40:03 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id t1sm10507372pje.55.2020.07.25.21.40.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jul 2020 21:40:03 -0700 (PDT) From: Daniel Palmer List-Id: To: soc@kernel.org Cc: arnd@arndb.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH 3/7] ARM:mstar: Adjust IMI size for mercury5 Date: Sun, 26 Jul 2020 13:39:44 +0900 Message-Id: <20200726043948.1357573-4-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200726043948.1357573-1-daniel@0x0f.com> References: <20200726043948.1357573-1-daniel@0x0f.com> MIME-Version: 1.0 mercury5 family chips have 128KB of SRAM in the IMI region. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mercury5.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/mercury5.dtsi b/arch/arm/boot/dts/mercury5.dtsi index f68e6d59c328..a7d0dd9d6132 100644 --- a/arch/arm/boot/dts/mercury5.dtsi +++ b/arch/arm/boot/dts/mercury5.dtsi @@ -5,3 +5,7 @@ */ #include "mstar-v7.dtsi" + +&imi { + reg = <0xa0000000 0x20000>; +}; From patchwork Sun Jul 26 04:39:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11685485 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3857B912 for ; Sun, 26 Jul 2020 04:40:07 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 32F572076C; Sun, 26 Jul 2020 04:40:07 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-pl1-f196.google.com (mail-pl1-f196.google.com [209.85.214.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 11B0D2053B for ; Sun, 26 Jul 2020 04:40:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="B9ohVNms" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 11B0D2053B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=daniel@0x0f.com Received: by mail-pl1-f196.google.com with SMTP id q17so6447567pls.9 for ; Sat, 25 Jul 2020 21:40:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=cxwX2AIPHGdhCk9KqDzZeCU4mfFsakd7X68zNyxQ72o=; b=B9ohVNms6utQE84bDZvt/X1xrWcl1qH6zHCyzGnssOwqronSOaTwM3pmmtfnhWm/A6 BhN9jdBJHXXVz5u5W3MKYQSNvNfMNK0p0r9kVdpMzZE8sQPSXrs5WQx21f3oL8gvJ+cQ n6k1w+OsdiwxCXmb9uAFVStF8E+7gpmlowdmA= 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=cxwX2AIPHGdhCk9KqDzZeCU4mfFsakd7X68zNyxQ72o=; b=DbgQZ7sNxA1sxy23blDptXaYFKG/0Y/Umaxvfl+vNCj61iU/0CsnMAHiAUKbaGWW3S sGSCXYs+bcWNw1S8kx2HaFK25QNUsPXil6x2LfFDDaKboYsn8MEHQ6wTnFbliAXfG9Tf 2VYO/KTgomHvwuHDa+qbIpyQgDACGFe0jBgkCP52iffOWuLQJfVAhDDzgytn93i3MGSN OemLsi4GuwjyBtcxlOqwNtZVazsYT6P5Guu1A6oVJbPIWU5EBGbenqFrHnxS6FP5rab4 SsvRzVgJ/TAeMr4MwLkTtioVe48O+CFg4MkEO32p4Qf5JaRWIFqHAx5/HxcNe3Yw91z+ /JBQ== X-Gm-Message-State: AOAM530l1Sc1RVlaToM2zYMla39I+p+FLAb4SLcykAIwzpRUuti7ehWM NOiISPGoCuS38wvJqJ8p25NqzY38w4c= X-Google-Smtp-Source: ABdhPJwGEE7daGYP6xyWGoLWPlv+cxg/gdpeYpB7PSPQMfohdPw4fyifn2IIsAQQTjDIuTRBOkgpvw== X-Received: by 2002:a17:90a:b00e:: with SMTP id x14mr13067166pjq.57.1595738406168; Sat, 25 Jul 2020 21:40:06 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id t1sm10507372pje.55.2020.07.25.21.40.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jul 2020 21:40:05 -0700 (PDT) From: Daniel Palmer List-Id: To: soc@kernel.org Cc: arnd@arndb.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH 4/7] ARM:mstar: Adjust IMI size for infinity3 Date: Sun, 26 Jul 2020 13:39:45 +0900 Message-Id: <20200726043948.1357573-5-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200726043948.1357573-1-daniel@0x0f.com> References: <20200726043948.1357573-1-daniel@0x0f.com> MIME-Version: 1.0 infinity3 has 128KB of SRAM at the IMI region. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/infinity3.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/infinity3.dtsi b/arch/arm/boot/dts/infinity3.dtsi index 2830d064c07d..9b918c802654 100644 --- a/arch/arm/boot/dts/infinity3.dtsi +++ b/arch/arm/boot/dts/infinity3.dtsi @@ -5,3 +5,7 @@ */ #include "infinity.dtsi" + +&imi { + reg = <0xa0000000 0x20000>; +}; From patchwork Sun Jul 26 04:39:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11685487 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B55BD912 for ; Sun, 26 Jul 2020 04:40:09 +0000 (UTC) Received: by mail.kernel.org (Postfix) id AEEE420773; Sun, 26 Jul 2020 04:40:09 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8DB8B2053B for ; Sun, 26 Jul 2020 04:40:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="HJvnhiH8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8DB8B2053B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=daniel@0x0f.com Received: by mail-pf1-f194.google.com with SMTP id f185so2406419pfg.10 for ; Sat, 25 Jul 2020 21:40:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GcYahk119/P6sJeLyBM6skc+StG+Q5VazOhFiNV7EeY=; b=HJvnhiH8sqqk/TaRfJ3AAzRXE1dVXQ6bNix3sbK/Zg3QgYOjzjxheLPqiQMsHAfZAa KciDaNNL2So4bj2LTI3gA/rTs1aBUnxGhrj5OAFJ2QWK6QeAqAlPhJyuNp97tW+EX3kc P9Lqr6s7f9yj8feU28Z3p+I6LFKA6XQiM+WnM= 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=GcYahk119/P6sJeLyBM6skc+StG+Q5VazOhFiNV7EeY=; b=mISp9IZ+w3B/UMHrkdPlXu4gtm7ufwqjgXqarrGv2CpmDFR67hnm2WFvVYvrJaDmMZ TmWFH92g8uCQYWzAeeO0s/wgojFyIEsyay0Qcbs0Z/zlUsaWf9YVWBfX7cbStC1UoApi KpKNbShqFjnYZFliZaNmUpa31qno0rKLmNy1kWsxw8fnAlM6iL0A1D+otk2YafKGI9CU mI+D0YtVDzEZCdULZBjfu28G0irNEIlRQfqiH4UcX7POirMYl54XvD7r3mcV1YBJmbZK Z00x3FqDd8mUzwNTmqefFvpLwQZ113q82ATLrF9OsDGuS6IlbMD7DErbTip1jZP4T03a p65Q== X-Gm-Message-State: AOAM530xqiQ1iLQpUMB7oxpWQHwRFvGtIqLmtWveNmXJJsXLqaX2yTGv 9QDXIGm9jP8ALdnH1W26aVU1fONeU/8= X-Google-Smtp-Source: ABdhPJy6U1NdGWdP5tLM3lf6I+rTO1BkL50dyZykEF6wULxbH1YRFp23fLmt1mqHr6Pf5k7pVHyfVA== X-Received: by 2002:a63:2b91:: with SMTP id r139mr8722888pgr.61.1595738408450; Sat, 25 Jul 2020 21:40:08 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id t1sm10507372pje.55.2020.07.25.21.40.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jul 2020 21:40:07 -0700 (PDT) From: Daniel Palmer List-Id: To: soc@kernel.org Cc: arnd@arndb.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH 5/7] ARM:mstar: Add PMU Date: Sun, 26 Jul 2020 13:39:46 +0900 Message-Id: <20200726043948.1357573-6-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200726043948.1357573-1-daniel@0x0f.com> References: <20200726043948.1357573-1-daniel@0x0f.com> MIME-Version: 1.0 Adds the ARM PMU to the base MStar v7 dtsi. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mstar-v7.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi index 6bc55fdbee04..a73b1d162dfd 100644 --- a/arch/arm/boot/dts/mstar-v7.dtsi +++ b/arch/arm/boot/dts/mstar-v7.dtsi @@ -40,6 +40,12 @@ arch_timer { clock-frequency = <6000000>; }; + pmu: pmu { + compatible = "arm,cortex-a7-pmu"; + interrupts = ; + interrupt-affinity = <&cpu0>; + }; + soc: soc { compatible = "simple-bus"; #address-cells = <1>; From patchwork Sun Jul 26 04:39:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11685489 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A8637912 for ; Sun, 26 Jul 2020 04:40:11 +0000 (UTC) Received: by mail.kernel.org (Postfix) id A34C42076C; Sun, 26 Jul 2020 04:40:11 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-pj1-f66.google.com (mail-pj1-f66.google.com [209.85.216.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 822362053B for ; Sun, 26 Jul 2020 04:40:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="YbtqbfsY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 822362053B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=daniel@0x0f.com Received: by mail-pj1-f66.google.com with SMTP id a9so7348701pjd.3 for ; Sat, 25 Jul 2020 21:40:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dtjntBHs78gBBvXpncjh6tZl4Yv5U3MI9ZEGI0tw2Go=; b=YbtqbfsYYx3YQB8DjT3rSPrPxS1GMWDTkWQKIsOyZErTNno+XE2gPxqmitg/p58trr 5XNWdXtP1M3Xe8RxoIZjrStbig8OjmCnxzPjmrwmFJhToUl23JwPvLz9/lHGMMCH32aD ncBnF4wjLRKlWioazT9PJdirI/QuqIwX/qufY= 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=dtjntBHs78gBBvXpncjh6tZl4Yv5U3MI9ZEGI0tw2Go=; b=hcuA01AyI2en8rGjWQIidYvWYP8oaAXB5Iz70715EHeusbkQwwqHgjyHr9pse/eizM 03BT1+29PqmMlQbeY4nb/aYjWaORjh/DlbZLGr5SiOpOcRTP0B4HAn79mT1a7cHXVJZu PJW62zmPcLZugBvj55Da/y+/Un8x3vIMhQEJe6cOk7AP87OyIEci+2juXbS9IBY5xP23 6tG49exHm/qMuthmsrh5BfkpGsNRZklnXXdXobbSOC2KjhN/9MDaBydkkrmaoOIemKPD 1zwJ2ebpCTAl06zKHynu6/0xpOjTCO4gVISKSS+VkpnGyqt3F75clfodSILdzRWZrbu3 xoFg== X-Gm-Message-State: AOAM531vPjZHGf1hx3pCDBjdKc9VnVVvKNmHg3CkKRJpc9EgVJg7/mdX mfUCkYkCLLAMsiKnHf2FPiO10kvJjlg= X-Google-Smtp-Source: ABdhPJyGXFfEbk1Up0QL8oQbe+ycIHVfA3VLtaxuSUcbU05RUoGvG8/6nx8ComJuhhjWwmDLxJYwBQ== X-Received: by 2002:a17:90a:2170:: with SMTP id a103mr5214636pje.198.1595738410839; Sat, 25 Jul 2020 21:40:10 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id t1sm10507372pje.55.2020.07.25.21.40.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jul 2020 21:40:10 -0700 (PDT) From: Daniel Palmer List-Id: To: soc@kernel.org Cc: arnd@arndb.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH 6/7] ARM:mstar: Add syscon node for "pmsleep" area Date: Sun, 26 Jul 2020 13:39:47 +0900 Message-Id: <20200726043948.1357573-7-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200726043948.1357573-1-daniel@0x0f.com> References: <20200726043948.1357573-1-daniel@0x0f.com> MIME-Version: 1.0 MStar v7 SoCs contain a region of registers that are in the always on domain that the vendor code calls the "pmsleep" area. This area contains registers for a broad range of functionality and needs to be shared between drivers. This patch adds a syscon node for the pmsleep area so that other drivers can access registers in the area. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mstar-v7.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi index a73b1d162dfd..c8b192569d05 100644 --- a/arch/arm/boot/dts/mstar-v7.dtsi +++ b/arch/arm/boot/dts/mstar-v7.dtsi @@ -73,6 +73,11 @@ riu: bus@1f000000 { #size-cells = <1>; ranges = <0x0 0x1f000000 0x00400000>; + pmsleep: syscon@1c00 { + compatible = "syscon"; + reg = <0x1c00 0x100>; + }; + l3bridge: l3bridge@204400 { compatible = "mstar,l3bridge"; reg = <0x204400 0x200>; From patchwork Sun Jul 26 04:39:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11685491 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7DB52912 for ; Sun, 26 Jul 2020 04:40:14 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 7825720773; Sun, 26 Jul 2020 04:40:14 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 56F1A2053B for ; Sun, 26 Jul 2020 04:40:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="Hq0kueyo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 56F1A2053B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=0x0f.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=daniel@0x0f.com Received: by mail-pl1-f193.google.com with SMTP id q17so6447635pls.9 for ; Sat, 25 Jul 2020 21:40:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=D0MdPbFwkc7fKXzhQDxoLKwNc+TslVFTHzNYvgFbJfw=; b=Hq0kueyojRMANB+ONzvJX3y94df+VXRUr3vesrMvVO6RaXLyBDCJgSZgzbSYP8fVZg blAixup8nOqp7jwKx82A7+ri7wOOWzg0kl9kAm9d+7LM4ggmTuqrNjT3JxjLj11FoaZ6 lSEqChkComE54IJuXEnoNDJ9/k68NxKfQD99w= 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=D0MdPbFwkc7fKXzhQDxoLKwNc+TslVFTHzNYvgFbJfw=; b=dGbgkULNSVojD1gWRP3nnXPaCeFddQgx9fi3/3KTalp0VcHJBoWNnYEtz8TZLYHa9u 4rq0yOOE0Wbu7jjqq7tvP0x8ylG880nev0JHvddkSbv/1E3Ir8iF0hjMqloTSk7n4YWV bcsmsKlu8Ec2Rg8VYHXeN6gFmFu4DNIQCPvcPIo0Dxn6FywHDv8iEGuqhryG6eaWVfrV Hqr7xf0ZJZ4JYw46DSCM+5RGsb3EZ+gyqvjP5BhvIviATxKCJyB/D2LwmXe7D8+pN/75 2tc/AoGX5usVXTVyffXPH5s/7MBphbKaRamAzEd+5ZllJ9kmGSBYeK1G4lkrPsZ82b6J swTg== X-Gm-Message-State: AOAM5301TvkOeAFgD91k4u/EHzjpisqkEB4WHF6GXRhzeCMg2DNveOr2 BNT4J28ib3uRff4QXl/fc2fnYuzkEuo= X-Google-Smtp-Source: ABdhPJx8UUWAmsUMGBRN15yQo65JR5PFxiqCwTqU5Olv1hgE9e9qsRE+MN6SPRLZX+SrQo3lHeMvJg== X-Received: by 2002:a17:90a:2d83:: with SMTP id p3mr13088347pjd.124.1595738413058; Sat, 25 Jul 2020 21:40:13 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id t1sm10507372pje.55.2020.07.25.21.40.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Jul 2020 21:40:12 -0700 (PDT) From: Daniel Palmer List-Id: To: soc@kernel.org Cc: arnd@arndb.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH 7/7] ARM:mstar: Add reboot support Date: Sun, 26 Jul 2020 13:39:48 +0900 Message-Id: <20200726043948.1357573-8-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200726043948.1357573-1-daniel@0x0f.com> References: <20200726043948.1357573-1-daniel@0x0f.com> MIME-Version: 1.0 MStar v7 SoCs support reset by writing a magic value to a register in the "pmsleep" area. This adds a node for using the syscon reboot driver to trigger a reset. Signed-off-by: Daniel Palmer --- arch/arm/boot/dts/mstar-v7.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/boot/dts/mstar-v7.dtsi b/arch/arm/boot/dts/mstar-v7.dtsi index c8b192569d05..7ac7e649189f 100644 --- a/arch/arm/boot/dts/mstar-v7.dtsi +++ b/arch/arm/boot/dts/mstar-v7.dtsi @@ -78,6 +78,13 @@ pmsleep: syscon@1c00 { reg = <0x1c00 0x100>; }; + reboot { + compatible = "syscon-reboot"; + regmap = <&pmsleep>; + offset = <0xb8>; + mask = <0x79>; + }; + l3bridge: l3bridge@204400 { compatible = "mstar,l3bridge"; reg = <0x204400 0x200>;