From patchwork Tue Jul 28 10:03:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11688793 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 4259B159A for ; Tue, 28 Jul 2020 10:03:35 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 3D4C920838; Tue, 28 Jul 2020 10:03:35 +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 1C221207E8 for ; Tue, 28 Jul 2020 10:03:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="aZjlb1Tl" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1C221207E8 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 c6so4647618pje.1 for ; Tue, 28 Jul 2020 03:03:35 -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=UGsiii/VuwmqPfClt9nZik7lgTCfAI/hYH2Kw3sm0tw=; b=aZjlb1TlqNvnHjgbpdqBb3Zqpxfsv5kqxXU5K0hc7pxtuRjGdbxT99bec2EbRjReh0 Lcr0m7kvXywHYDcrxwdqcmRpq06W1qwMj5Ie3iZyNh7vNUwGiVS0iam9CK5iXvt++CU+ McY66LsbpIcc74LqmkM6683uVifmqZWHfif+0= 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=UGsiii/VuwmqPfClt9nZik7lgTCfAI/hYH2Kw3sm0tw=; b=sE1/0o+z7ZJdskCe83MNGxkVYXjMLVTZzlc4kF/qMLXq6qPt9cvWULiu9kl8zqScFL 7nSFa+w5dtQK40O1eUcPUU+cH+6yrsYP0762TH7QM1jTv/62EVCHS3abrjTub1Rs8WzZ vOpu8cujS3/Oa9TcdcEy6lyoCvB6XFKkvttqBBLz8kjt/ZKmFqQ9SFodZB4W3AvK9S4C lXzDPwfpUyL5152jcQzlBZbwP+16QZEDU8fCW9kKgoc4sGr6JpQLRNeelPlggrhV8gDB Gz7YmQeoyXGpNZVnwJ+ssgm+EwbJGzC5unQ4yfhZPEJ929F74X27Od2nDk5KtiBhGeVR HE5Q== X-Gm-Message-State: AOAM530Rd+P17llz1f5l5DxX9La8MzmYyrlaac/fwEDgAWjG5Cba2o2p Yddv+I7ncR0qQ6ssr9It5H6wSmoVRwk= X-Google-Smtp-Source: ABdhPJw6UyQBkFA772dimnjAycW9U2WNs/tw98zNz7om7aaCJC9iZPBD3XhE6+p0Oh65J2mhjvouBA== X-Received: by 2002:a17:902:b693:: with SMTP id c19mr22444382pls.102.1595930614254; Tue, 28 Jul 2020 03:03:34 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id u66sm17779018pfb.191.2020.07.28.03.03.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 03:03:33 -0700 (PDT) From: Daniel Palmer List-Id: To: soc@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arnd@arndb.de, robh@kernel.org, Daniel Palmer Subject: [PATCH v2 1/9] dt-bindings: arm: mstar: Add binding details for mstar,pmsleep Date: Tue, 28 Jul 2020 19:03:13 +0900 Message-Id: <20200728100321.1691745-2-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200728100321.1691745-1-daniel@0x0f.com> References: <20200728100321.1691745-1-daniel@0x0f.com> MIME-Version: 1.0 This adds a YAML description of the pmsleep node used by MStar/SigmaStar Armv7 SoCs. Signed-off-by: Daniel Palmer --- .../bindings/arm/mstar/mstar,pmsleep.yaml | 43 +++++++++++++++++++ MAINTAINERS | 1 + 2 files changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/arm/mstar/mstar,pmsleep.yaml diff --git a/Documentation/devicetree/bindings/arm/mstar/mstar,pmsleep.yaml b/Documentation/devicetree/bindings/arm/mstar/mstar,pmsleep.yaml new file mode 100644 index 000000000000..ef78097a7087 --- /dev/null +++ b/Documentation/devicetree/bindings/arm/mstar/mstar,pmsleep.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +# Copyright 2020 thingy.jp. +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/arm/mstar/mstar,pmsleep.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: MStar/SigmaStar Armv7 SoC pmsleep register region + +maintainers: + - Daniel Palmer + +description: | + MStar/Sigmastar's Armv7 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 and bits for a broad range of functionality + ranging from registers that control going into deep sleep to bits that + turn things like the internal temperature sensor on and off. + +properties: + compatible: + oneOf: + - items: + - enum: + - mstar,pmsleep + - const: syscon + + reg: + maxItems: 1 + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + pmsleep: pmsleep@1c00 { + compatible = "mstar,pmsleep", "syscon"; + reg = <0x0x1c00 0x100>; + }; diff --git a/MAINTAINERS b/MAINTAINERS index 991814ea6f76..432fcc867ed6 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2140,6 +2140,7 @@ L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained W: http://linux-chenxing.org/ F: Documentation/devicetree/bindings/arm/mstar.yaml +F: Documentation/devicetree/bindings/arm/mstar/* F: arch/arm/boot/dts/infinity*.dtsi F: arch/arm/boot/dts/mercury*.dtsi F: arch/arm/boot/dts/mstar-v7.dtsi From patchwork Tue Jul 28 10:03:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11688795 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 22C7C14DD for ; Tue, 28 Jul 2020 10:03:38 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 1D9BE20829; Tue, 28 Jul 2020 10:03:38 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.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 F0CFE20792 for ; Tue, 28 Jul 2020 10:03:37 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="a/z/OvqT" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F0CFE20792 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-f194.google.com with SMTP id d1so9623042plr.8 for ; Tue, 28 Jul 2020 03:03:37 -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=lxbXhZvTnyvcOPmVLVmmOZeoQ/h8EuzKcRQrHu6Ys/8=; b=a/z/OvqTBcQPu3nsrUseLki7Ob/OUuPfRJ7QCujlcXADHXmo1EkR2oTjhqWS6ApHq3 L57qbpwjxe/+Q6iHajslHk4NA7XfqOZ1wg6+Vrmw4+dCd28eAkAJ3ZzKysg/UPBRtey4 cGRaaT0STOn2umBO5k9rujrghxj5yQTrtrLPU= 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=lxbXhZvTnyvcOPmVLVmmOZeoQ/h8EuzKcRQrHu6Ys/8=; b=mUOIe3UnllTM0vSXiI5BqzIWXHQRlqVRKBgSLCTOrGwNuzX4+HbxDR6U20zpSZ+iTH dyRmmP2D/xqNQYw+cODcCN7gmJGRfmeL5TVlzjdQyeauZBGFeoRQcAu+AN9cNjb+jSxZ ZS1mjeaN93PRA/fqARFkdc52ZAsJehd00znYQ9NSrqZ0uX2dYeNE4ohQgLMjOdhGcfid YIoKBLq2TjupMDShdr9AXm07i1Z1q7hVNR0BaI5kptaL5y0pF7/pLctnYx6CRHw+fF9Q Bm2DLyFMZcVV1+ZrFRLBWozbkcD3ET66INU02vEjduYeqjsAO59u3y4DJMmQ1coQzJcz kMfw== X-Gm-Message-State: AOAM532pwOsZ6mMuMovDOfDWsmYrTa60f+BI6wVOHnzDyFPugwmI2y9l yaFKqZyCCs+EKQxb9QqC7fgfexJSSxw= X-Google-Smtp-Source: ABdhPJzgrVdwKcVK8UnYyivtHVMUZH50zK4g0UmUp6oEGbQd3CQ+f2flbMX0GtsnGr+g1mFPLcTnIQ== X-Received: by 2002:a17:902:768b:: with SMTP id m11mr9252580pll.97.1595930617124; Tue, 28 Jul 2020 03:03:37 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id u66sm17779018pfb.191.2020.07.28.03.03.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 03:03:36 -0700 (PDT) From: Daniel Palmer List-Id: To: soc@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arnd@arndb.de, robh@kernel.org, Daniel Palmer Subject: [PATCH v2 2/9] dt-bindings: arm: mstar: Move existing MStar binding descriptions Date: Tue, 28 Jul 2020 19:03:14 +0900 Message-Id: <20200728100321.1691745-3-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200728100321.1691745-1-daniel@0x0f.com> References: <20200728100321.1691745-1-daniel@0x0f.com> MIME-Version: 1.0 Now there is an mstar directory move the existing MStar specific descriptions into that directory. Signed-off-by: Daniel Palmer --- .../devicetree/bindings/{misc => arm/mstar}/mstar,l3bridge.yaml | 2 +- Documentation/devicetree/bindings/arm/{ => mstar}/mstar.yaml | 2 +- MAINTAINERS | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) rename Documentation/devicetree/bindings/{misc => arm/mstar}/mstar,l3bridge.yaml (93%) rename Documentation/devicetree/bindings/arm/{ => mstar}/mstar.yaml (93%) diff --git a/Documentation/devicetree/bindings/misc/mstar,l3bridge.yaml b/Documentation/devicetree/bindings/arm/mstar/mstar,l3bridge.yaml similarity index 93% rename from Documentation/devicetree/bindings/misc/mstar,l3bridge.yaml rename to Documentation/devicetree/bindings/arm/mstar/mstar,l3bridge.yaml index cb7fd1cdfb1a..6816bd68f9cf 100644 --- a/Documentation/devicetree/bindings/misc/mstar,l3bridge.yaml +++ b/Documentation/devicetree/bindings/arm/mstar/mstar,l3bridge.yaml @@ -2,7 +2,7 @@ # Copyright 2020 thingy.jp. %YAML 1.2 --- -$id: "http://devicetree.org/schemas/misc/mstar,l3bridge.yaml#" +$id: "http://devicetree.org/schemas/arm/mstar/mstar,l3bridge.yaml#" $schema: "http://devicetree.org/meta-schemas/core.yaml#" title: MStar/SigmaStar Armv7 SoC l3bridge diff --git a/Documentation/devicetree/bindings/arm/mstar.yaml b/Documentation/devicetree/bindings/arm/mstar/mstar.yaml similarity index 93% rename from Documentation/devicetree/bindings/arm/mstar.yaml rename to Documentation/devicetree/bindings/arm/mstar/mstar.yaml index bdce34b3336e..c2f980b00b06 100644 --- a/Documentation/devicetree/bindings/arm/mstar.yaml +++ b/Documentation/devicetree/bindings/arm/mstar/mstar.yaml @@ -1,7 +1,7 @@ # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) %YAML 1.2 --- -$id: http://devicetree.org/schemas/arm/mstar.yaml# +$id: http://devicetree.org/schemas/arm/mstar/mstar.yaml# $schema: http://devicetree.org/meta-schemas/core.yaml# title: MStar platforms device tree bindings diff --git a/MAINTAINERS b/MAINTAINERS index 432fcc867ed6..9b35edac7ef7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2139,7 +2139,6 @@ M: Daniel Palmer L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) S: Maintained W: http://linux-chenxing.org/ -F: Documentation/devicetree/bindings/arm/mstar.yaml F: Documentation/devicetree/bindings/arm/mstar/* F: arch/arm/boot/dts/infinity*.dtsi F: arch/arm/boot/dts/mercury*.dtsi From patchwork Tue Jul 28 10:03:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11688797 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 006706C1 for ; Tue, 28 Jul 2020 10:03:41 +0000 (UTC) Received: by mail.kernel.org (Postfix) id EF16322C9E; Tue, 28 Jul 2020 10:03:40 +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 C5C57207E8 for ; Tue, 28 Jul 2020 10:03:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="SKCdPVmL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C5C57207E8 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 p1so9626619pls.4 for ; Tue, 28 Jul 2020 03:03:40 -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=MLsnjIcx6O7hBUqO+ly4gJ/BT4WlJTFqju/5sXIimIg=; b=SKCdPVmLWJF2bLrtZU3g+eZO6Jvjk2z4+jmQXQol4BWOQK4BYolKrUCLan1cceEyYJ XlJqjlKhsQsOGcSuJzmzVXGgYVOY7CIXKyo+2t8BH0Pw8yXqgL4huJaNbNEl34vjn/Zs 3o67Tt6q5uqH889AcUvizaQWxtfULuH9wC+SA= 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=MLsnjIcx6O7hBUqO+ly4gJ/BT4WlJTFqju/5sXIimIg=; b=czwzIM64oKtQmpmxk3L8VXKsWxmiIW9QFuoVONbaVM1cBAgffnshWuPXCxcYAL1o2D wCnCGchtbs0W1RA7BJ9WmsRTu5X+t6FxzYip8OR2XOYxcbwEhSJh9s3TLUec1oh/GW+r /cYXsXS56jsH54VWUcSJe1lY3PKkuUdnoB+3QY69FnL9CbQyLC9ePMoRMZtNc5hNXP+8 Yc3kvAqHhr8TwBOICvWhTgiEeg2c7M7QtAJY6cQngveKqkkXnHcqclTLFY1SpqNnJyUa FWMBwc2WhlmNqV5z7vKtiYI14s/YOiMbUsGb7BZwBTTiarUgTHUFivUkPSki1sGQWw5D +7YA== X-Gm-Message-State: AOAM531vxbA+xE62a+fxzYBR9VYeKHG+oKzo6v/F+ZXJrfjO+YEfIWRc /6O8tLuzyA+Nga+WoGxt5huoMTf6RtE= X-Google-Smtp-Source: ABdhPJxSjatle00lO8xbMWFh3tR143iGH9zfFmSLzFijKNfxg6ikjSpg1obUHnDL0D8z4jadb44Zfg== X-Received: by 2002:a17:90a:ce0c:: with SMTP id f12mr3828042pju.19.1595930619871; Tue, 28 Jul 2020 03:03:39 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id u66sm17779018pfb.191.2020.07.28.03.03.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 03:03:39 -0700 (PDT) From: Daniel Palmer List-Id: To: soc@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arnd@arndb.de, robh@kernel.org, Daniel Palmer Subject: [PATCH v2 3/9] ARM: mstar: Add IMI SRAM region Date: Tue, 28 Jul 2020 19:03:15 +0900 Message-Id: <20200728100321.1691745-4-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200728100321.1691745-1-daniel@0x0f.com> References: <20200728100321.1691745-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..1941f88a69a5 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"; @@ -79,5 +80,10 @@ pm_uart: uart@221000 { status = "disabled"; }; }; + + imi: sram@a0000000 { + compatible = "mmio-sram"; + reg = <0xa0000000 0x10000>; + }; }; }; From patchwork Tue Jul 28 10:03:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11688799 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 675C66C1 for ; Tue, 28 Jul 2020 10:03:44 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 62F8A20FC3; Tue, 28 Jul 2020 10:03:44 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) (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 41D702083E for ; Tue, 28 Jul 2020 10:03:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="Ul31r6vz" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 41D702083E 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-f195.google.com with SMTP id t10so4298344plz.10 for ; Tue, 28 Jul 2020 03:03:43 -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=Ul31r6vzFpqUyBilU7EeOT3mAZRosSmTqaVJ985PdzmOAZtWDkssXn7e4nFkZdB5m9 XR6md9kmdPIPjc93Fz2i296TlFqH6ocjojtZjIltEBXzUikdf5DZIDStIMH67MXCyRw9 cy6TMPOP/iSKXxdKY+GlZtczBqiAgZdTHAZnI= 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=hQxP4LM2tMlLoIrRisDAMVg0EGJ4GQQMTfxbAfbAoDJELZHvAAhB17W4K+Q4dOjynG B7Zy6PIok+jtJr2Lp8q+F9wU9yp/+YOpr/CXuEeeUeU2GcLue6j3yYNJwrOuEYh8vgjr btx0O2j8HYyIIsr/QWLqP+8IqZLosQmtt2B86FiB9u6ncMse2cUu/b5mZRBbJYPhAoXy wVTLxyN7wHUg+37DipJ6j0oIlsmEl1GG0dYJH29CVZ9KTJWaf1t0k65MUGumNPosa++K /s3uWUYhuBosbrYmE7pbWi1ELHnpIY9fLdBIwybkATN7gz59978j3EttWuRN0iP9StXK eMjA== X-Gm-Message-State: AOAM530ZSVOhUHG8yxlT3y7tUqkqBv+WNEivVjhUy0jTLEnsRddw/tnh kWgMXQvVx7BXQkQ0LnPZmKOlf9yEesM= X-Google-Smtp-Source: ABdhPJxBj4iAMGZV3EZloiPno+R8OrDHdwl0YojYT+mnKhr8ONEgW8XZTju+MwFCl58YDsJMqdR9Nw== X-Received: by 2002:a17:90a:ea83:: with SMTP id h3mr3886308pjz.176.1595930622799; Tue, 28 Jul 2020 03:03:42 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id u66sm17779018pfb.191.2020.07.28.03.03.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 03:03:42 -0700 (PDT) From: Daniel Palmer List-Id: To: soc@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arnd@arndb.de, robh@kernel.org, Daniel Palmer Subject: [PATCH v2 4/9] ARM: mstar: Adjust IMI size of infinity Date: Tue, 28 Jul 2020 19:03:16 +0900 Message-Id: <20200728100321.1691745-5-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200728100321.1691745-1-daniel@0x0f.com> References: <20200728100321.1691745-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 Tue Jul 28 10:03:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11688801 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 B207E6C1 for ; Tue, 28 Jul 2020 10:03:46 +0000 (UTC) Received: by mail.kernel.org (Postfix) id AC999208E4; Tue, 28 Jul 2020 10:03:46 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-pl1-f194.google.com (mail-pl1-f194.google.com [209.85.214.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 8B78F20786 for ; Tue, 28 Jul 2020 10:03:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="n+zgnpl6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8B78F20786 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-f194.google.com with SMTP id t6so9632293plo.3 for ; Tue, 28 Jul 2020 03:03:46 -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=n+zgnpl6izxCdwPColEiF7BthmQSJu0W9qVcaU8w2jpHl4AlhvKMhWHYNQ2KGBDP1f ht0rOB6qFSPnc51Kw+CVijEUlnreN0DWFdA3IBdNYstF1vrupxKFKhxC+jEEhjcIikPx FBhge84POcFmeA3T3N6Cbh6Dg95yj9i/mVmIU= 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=C4/tRS13JB4PWl8hhvSsy4nMtjn1HQ/FgJIMwbzOzK67YZigSRJVgwnta1r3xLeKg1 0KLRCmlbNCbf5POWsYgUhWksFv2xG0KyBT25niJR71UbBbidmcpJd2b/a5IAITpuVetR 9WZBi+SiU6WpjqiGlywuEOyH/r88RhaFINjnfOFIqZK1SNbI6WSjw9PltMlUaZ24dL7Q 6XdF2/pNypAc0qZ8OrqHZ7yXcxIIf9vxKe/nG93kIRcr2ZspLfEiPMQVCEEOFCgcZJNc FV8LgEi9In/kwDkGhZefy4P84K5omvvh1/9jQCtXGpWJs73iFUlpWvLzgIxDX0gCecO2 YvHw== X-Gm-Message-State: AOAM5326a1/OHw1RxkQ/f2CR1xHvhxwcCQjwT+48+FW7AbdvjuECdO5s CoKq790GR51MOWGzlioM5xrmRP+ALx8= X-Google-Smtp-Source: ABdhPJymtzzdhRqF/IbX/Qzvm3iVr+Td5JceDYBkjyIaF9cNweNSdmOTtlzXUjz+bkjmqWFrxpjE3A== X-Received: by 2002:a17:90a:a68:: with SMTP id o95mr4007863pjo.64.1595930625746; Tue, 28 Jul 2020 03:03:45 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id u66sm17779018pfb.191.2020.07.28.03.03.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 03:03:44 -0700 (PDT) From: Daniel Palmer List-Id: To: soc@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arnd@arndb.de, robh@kernel.org, Daniel Palmer Subject: [PATCH v2 5/9] ARM: mstar: Adjust IMI size for mercury5 Date: Tue, 28 Jul 2020 19:03:17 +0900 Message-Id: <20200728100321.1691745-6-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200728100321.1691745-1-daniel@0x0f.com> References: <20200728100321.1691745-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 Tue Jul 28 10:03:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11688803 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 A4FC714DD for ; Tue, 28 Jul 2020 10:03:49 +0000 (UTC) Received: by mail.kernel.org (Postfix) id A027620786; Tue, 28 Jul 2020 10:03:49 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-pg1-f193.google.com (mail-pg1-f193.google.com [209.85.215.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 7E50820792 for ; Tue, 28 Jul 2020 10:03:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="kRi5SkZv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7E50820792 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-pg1-f193.google.com with SMTP id w2so11559866pgg.10 for ; Tue, 28 Jul 2020 03:03:49 -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=kRi5SkZv8IHg4TsHBmPxoAIQrMfk/7RqlXrlV2KdfiwYpu8Aof+prql+jql0KvKP5B 0cx1fjZhvSyJFQ0J41PzkXy8qL6ibrANmpURngEckm3m+/klq8t3N8z5ovqt3MuVeeuM 5SjHQpx8ERBxOiTYxTMt3l3AfNdJjiAvOPkoQ= 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=Yf7svV99o1JYryKryYOTZnYcTW8NvCZzVlTLg/xRDgSPOkev4i2GSSYcsNNauG64sE /dXCAbw+4lFzBdZERWGT5A3Il1aAiFQ2YhmPQ/fpwiyUMG0OdCfVQZ8e3qstCfmGEKhc WnhXtDT93uotqStbtlXSVoR58D3YN2nEmSAJ4Ebu28Tt+egJbVsaARf0EWJH0T1ZtPKJ q4a3zKmRwiIliUnaxLb1b5VLXGECuilJkUWaVG8rqfr0eUBylYwQ1usxGlh1V3x/8NpN gGFhCGpNxXBCbS5lt5XpSoSjsKXSsr40ry8lJL2QK/wof/JkoWCvjpery/wANQQ5vuK7 HUnQ== X-Gm-Message-State: AOAM533CkhGxOjcevd9foqRhTqTddcjc06eAlkk/X1Hh60rle8faLzuC +9qBru7ays192ggtNKQACjn+XSB2fwA= X-Google-Smtp-Source: ABdhPJykO4NL4VrLIapmtE6Vs+7sXczgf5nsq2JGZVl2s6Vb/zlG7D8OcRP/RsaZu40a58FNtP9a3g== X-Received: by 2002:a63:e008:: with SMTP id e8mr17790326pgh.50.1595930628503; Tue, 28 Jul 2020 03:03:48 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id u66sm17779018pfb.191.2020.07.28.03.03.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 03:03:47 -0700 (PDT) From: Daniel Palmer List-Id: To: soc@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arnd@arndb.de, robh@kernel.org, Daniel Palmer Subject: [PATCH v2 6/9] ARM: mstar: Adjust IMI size for infinity3 Date: Tue, 28 Jul 2020 19:03:18 +0900 Message-Id: <20200728100321.1691745-7-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200728100321.1691745-1-daniel@0x0f.com> References: <20200728100321.1691745-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 Tue Jul 28 10:03:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11688805 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 3510714DD for ; Tue, 28 Jul 2020 10:03:52 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 2FE4520829; Tue, 28 Jul 2020 10:03:52 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) (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 0EBFB20792 for ; Tue, 28 Jul 2020 10:03:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="JNqemohl" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0EBFB20792 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-f195.google.com with SMTP id w17so9614402ply.11 for ; Tue, 28 Jul 2020 03:03:51 -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=Qd3SyHWj5wy+W8DdCFH06h9CfnAMjEf8IGmL9iqvbmI=; b=JNqemohlMJJK5FleQBz+aU3vVrmawQdPE8A/kjFcY4rCS1jyRThCKrjyMmezbX/Udo 79YOfWW4yOHB8iK2q/4aQxZLkZ3OHIc/brfET9yp0CSbstRl7E9UgsxbF3Rb4zrQpdKI ugqC/RXzxD1REr/Ul2d6x8ARlxHQr9PXo1cbc= 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=Qd3SyHWj5wy+W8DdCFH06h9CfnAMjEf8IGmL9iqvbmI=; b=F26v8b7FDroPsiX/G+Frpc3HrQA/FUrnyBjSOtk5Gg2NQlXk3H3WOyPMESX+kV7JwV dT+Np8XQqf2yhLuTz1kF89MOGighRVeNGcf4rDrNLhUh9XXnKhWnHXg+gggWuqXklOJC ReA9fhfOOgqaf/5taRX+MQlqLA+pu9ILcPM2rekz0jFZXLts26u35LEE91VqNSGLHb// sMRMeMpR7IIpKRZEMCKRmHAAUwHKW3XgHreQ7p5E32gR5sjGCeFsuXMfAPJbnH38IsfC KefOiAMO9O/6x+cRlJDasce0+zqZDXnwtc27qgvbDZXqtFT+iQSLZT/TbhZm+heDiUcc 3NeQ== X-Gm-Message-State: AOAM533aC9sEt/SXVMnzca6AxH6OwsD7RNaGyVCbDdgDI0qTdB7k1Au7 hBDR7n9gxQ+Fq14GstdqjGVp8tmZgK0= X-Google-Smtp-Source: ABdhPJyf6BDv8HyUNncV33oITZ34mKi/i8fDZdIPSKaIR+aI9rOAq3LYBrMn7SrO3dT0FGPzyiNLGg== X-Received: by 2002:a17:90a:6e47:: with SMTP id s7mr3752498pjm.217.1595930631238; Tue, 28 Jul 2020 03:03:51 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id u66sm17779018pfb.191.2020.07.28.03.03.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 03:03:50 -0700 (PDT) From: Daniel Palmer List-Id: To: soc@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arnd@arndb.de, robh@kernel.org, Daniel Palmer Subject: [PATCH v2 7/9] ARM: mstar: Add PMU Date: Tue, 28 Jul 2020 19:03:19 +0900 Message-Id: <20200728100321.1691745-8-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200728100321.1691745-1-daniel@0x0f.com> References: <20200728100321.1691745-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 1941f88a69a5..f787b8e4b67f 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 Tue Jul 28 10:03:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11688807 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 AB3516C1 for ; Tue, 28 Jul 2020 10:03:54 +0000 (UTC) Received: by mail.kernel.org (Postfix) id A5EE52083E; Tue, 28 Jul 2020 10:03:54 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) (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 84E8020792 for ; Tue, 28 Jul 2020 10:03:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="IDJHDqNL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 84E8020792 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-f195.google.com with SMTP id d1so9623412plr.8 for ; Tue, 28 Jul 2020 03:03:54 -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=B89mjClqeI/vqWkN9tLpJuvAY3gONZ+D/nVVB1nJjqE=; b=IDJHDqNLXGnZEzFNlqEOTInutoPxbVgpW/zs4sxqngNtawOBMyGB0+/kv3OOo1sgl+ vgk0LA9WseadMqv/xlCv/9hWIaz3tiKOa3lDzToavjt4NOHqqCoRZnHvMIfNlxW1HIJw 93rc3DgLtjM7PoPKVvv0GLFR1HA0MSaG5CXAE= 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=B89mjClqeI/vqWkN9tLpJuvAY3gONZ+D/nVVB1nJjqE=; b=MynvJHZeBlSCeOyqcubR3ZNH62wrSBu3NHnOd/3wlN1jfaxeXZTfIPNahTmnjZGgHX 7HH2W0hOCT44M8cqW6KLF8AhOagmge+Va9FOMa2aJIjrhLkqM9WiihF06qCN8+cuHZzj t+5OpA3c8Ka9PijAzC0UWnKF52cEQ50wVCbA7iEHDZVYCg5KwoDLmKip5vmVFh7FQ1lu 0H5h2InTGyCnWnbB8gM9GxBB5D2l8i678UpEWtDc1c7UQmbzaNHCYUXl4UUxUwWDLGZ0 z3svRTu69i5Kvv0fS5Ndhx8R6fCNbQ+HLp1LJRnygJMeCZkWMuCes0BXY3yOXwRJ478l 31Pw== X-Gm-Message-State: AOAM530boxVcNPK/GuBv/6M5VSkv7cU2JMIQFsQZjnEUlO2Ft8KcsQLe +GMnoomzH9frgGhYLp7lTRLJ8pbxkh4= X-Google-Smtp-Source: ABdhPJwzavziDgWZ8/8aJJSmyTGpB3WR5DC+B2ky5X3WtG3n/UQyG/0pTtLr/GClhyOMrQxJuYWTqg== X-Received: by 2002:a17:902:cb91:: with SMTP id d17mr4528874ply.223.1595930633809; Tue, 28 Jul 2020 03:03:53 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id u66sm17779018pfb.191.2020.07.28.03.03.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 03:03:53 -0700 (PDT) From: Daniel Palmer List-Id: To: soc@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arnd@arndb.de, robh@kernel.org, Daniel Palmer Subject: [PATCH v2 8/9] ARM: mstar: Add "pmsleep" node to base dtsi Date: Tue, 28 Jul 2020 19:03:20 +0900 Message-Id: <20200728100321.1691745-9-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200728100321.1691745-1-daniel@0x0f.com> References: <20200728100321.1691745-1-daniel@0x0f.com> MIME-Version: 1.0 This patch adds a node for the pmsleep area so that other drivers can access registers contained within it. 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 f787b8e4b67f..bb7fb3e689a7 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 = "mstar,pmsleep", "syscon"; + reg = <0x1c00 0x100>; + }; + l3bridge: l3bridge@204400 { compatible = "mstar,l3bridge"; reg = <0x204400 0x200>; From patchwork Tue Jul 28 10:03:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Palmer X-Patchwork-Id: 11688809 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 793AD6C1 for ; Tue, 28 Jul 2020 10:03:57 +0000 (UTC) Received: by mail.kernel.org (Postfix) id 74B8920792; Tue, 28 Jul 2020 10:03:57 +0000 (UTC) Delivered-To: soc@kernel.org Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) (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 5374620829 for ; Tue, 28 Jul 2020 10:03:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=0x0f.com header.i=@0x0f.com header.b="Wv+dkdLg" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5374620829 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-f195.google.com with SMTP id m16so9624635pls.5 for ; Tue, 28 Jul 2020 03:03:57 -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=TqL6Hf6c4QekoFaLOlZu1oX0uTrAmJv+cvAaJuBUQvY=; b=Wv+dkdLgt5GaTHUTC/zxSY0/FqradzfyAopvOn1bQ1JvKPgFGgUAds2ZLqfsUngRTK 1MXSX/omDXR6Qeo+mkRGjd3WqRMSDLnwV+r3o/s07aaiTR4sln2PkDtwTYPf3QolzgHS 2wb2lh8g3wPmHx57IMN/erWNWw8kt73tMJOvw= 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=TqL6Hf6c4QekoFaLOlZu1oX0uTrAmJv+cvAaJuBUQvY=; b=CjgyFLiuwquwBWPC9z1DRCGOg2oxCUKZ8/E7HAqFQcUF6TmUlo/kGa75kF2dFyLmaf OfheDRfl7iYf/9qVbgwIPPww+o9y8Y5wCdT+StG34UWl/uav81tI1bEFoQeoL8R1Lmd2 vltDs2urbZprQG4DOQAWm4/EiXlJ2XoJjJ1rXEsmC7MawkI2WLjWMHSBVCAaHkyMuoFA lWVucKzrfQpN+x9vDfbq6cuTB6LbDM0yK11kXtLZLyBCx6S3p0sfhIxgqflJb8OT3QST ns31ng2uQz9/Gub/WWXAnkr8toAWCY2L+4N03sbRXpmZ1Y1sQ3ahaxkVwF823UtAzsJD d3rQ== X-Gm-Message-State: AOAM532GII4MevJSs2D82a3i9dtjUqYNSNCvNXGB9EfCxIVgo5LznLxc xne4kUu5noRF2kRXcOhuP4WBp+ZT9HM= X-Google-Smtp-Source: ABdhPJwIMReWpM39kk9lbKtgYuSrVGQ0fXaPXcyqtWpE61ZnhacKeju0jsGrkiCHXZ05muiy3/Sn4A== X-Received: by 2002:a17:90b:f16:: with SMTP id br22mr3914793pjb.170.1595930636601; Tue, 28 Jul 2020 03:03:56 -0700 (PDT) Received: from shiro.work (p532183-ipngn200506sizuokaden.shizuoka.ocn.ne.jp. [153.199.2.183]) by smtp.googlemail.com with ESMTPSA id u66sm17779018pfb.191.2020.07.28.03.03.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jul 2020 03:03:56 -0700 (PDT) From: Daniel Palmer List-Id: To: soc@kernel.org Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arnd@arndb.de, robh@kernel.org, Daniel Palmer Subject: [PATCH v2 9/9] ARM: mstar: Add reboot support Date: Tue, 28 Jul 2020 19:03:21 +0900 Message-Id: <20200728100321.1691745-10-daniel@0x0f.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200728100321.1691745-1-daniel@0x0f.com> References: <20200728100321.1691745-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 bb7fb3e689a7..c7458c67c4df 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>;