From patchwork Mon Nov 13 23:34:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 118828 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2372908qgn; Mon, 13 Nov 2017 15:35:08 -0800 (PST) X-Google-Smtp-Source: AGs4zMajtyFYniOO882wfXdNgzN5XunccG6A4DSFaFJ3f8M6cFC2h2LNY7NWACjacwdUGOlIbfVM X-Received: by 10.84.235.137 with SMTP id p9mr9973932plk.291.1510616108708; Mon, 13 Nov 2017 15:35:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510616108; cv=none; d=google.com; s=arc-20160816; b=pRm9LdqH+Eb0Uhscltr5jG9thyoJgcH7biW9rO4/a9M5OIXGEwr/rIbrFpGb6IFp8t lQx/BrEwDk7xhJhReumCSO4jjKZ0kwg6mYLK2f9KMi7TIrF/SDsnFXfsahPrRAyOrkNL tj8xlmbCXcuRD7C+z/xpfWrWT1+sFt2dByyhjOTmJAU7XZIg2trvKMIAhqZXmD0FfXlY /0hUrz0P3IIYphGG9dRdduyxZrntf/GhAY5E6qpwkSBOnc5NJGhbqX5CyrBFvhKMatwN dWpyIiIKhS+QWRbhZWs9LB9W9ALMGVJa8fsKfOJjnj459TpuDNplHJfkngwLLmPBAVS1 JPpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=At+uc5pnBVjoPKTAuPecAY3Py1OakQoIQw+rnY5f5Eg=; b=W9llukCYlfxVhvNFloUXPKnwyc2tTk9cvqw95k8Q37qwLkKPi9+EZZRnpvWXJjlzd/ yETFNqolgYkfX2oUuL4mVsGSxhR3azzXxEDSxxTDjHAkbeIoyeLQnVdVigpG9LiyxS0X XyNzAvVdT3LcCn43dBjrwJVeXay/DABNf48VQEiMfUCOgpfq8PlkVu0XJKn9TxUORprq NGmjlNRjGxiUXJGwROn9ydbR5yF+EPWvz/x32YZzo+3TdZbxFRCg1m8oyZvdyNi8OvBv kE6XrNXnK9fXhOoJAl1/3N3mEbREKvuWM++dPa/fSCrLITU0DVBnmWnPezjQYVseYEtI uNsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d8si16435892pfj.158.2017.11.13.15.35.08; Mon, 13 Nov 2017 15:35:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752146AbdKMXek (ORCPT + 27 others); Mon, 13 Nov 2017 18:34:40 -0500 Received: from mx2.suse.de ([195.135.220.15]:59379 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751113AbdKMXee (ORCPT ); Mon, 13 Nov 2017 18:34:34 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 273F6ACEA; Mon, 13 Nov 2017 23:34:33 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-arm-kernel@lists.infradead.org Cc: Thomas Liau , Jeff Chen , =?utf-8?b?5byg5Lic6aOO?= , =?utf-8?b?5YiY54Kc?= , =?utf-8?b?5byg5aSp55uK?= , =?utf-8?b?5qKF5Yip?= , support@cubietech.com, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH v2 1/8] dt-bindings: arm: actions: Add S700 and CubieBoard7 Date: Tue, 14 Nov 2017 00:34:20 +0100 Message-Id: <20171113233427.5386-2-afaerber@suse.de> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171113233427.5386-1-afaerber@suse.de> References: <20171113233427.5386-1-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document the Actions Semi S700 SoC and the Cubietech CubieBoard7. Acked-by: Rob Herring Signed-off-by: Andreas Färber --- v1 -> v2: Unchanged Documentation/devicetree/bindings/arm/actions.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) -- 2.13.6 diff --git a/Documentation/devicetree/bindings/arm/actions.txt b/Documentation/devicetree/bindings/arm/actions.txt index ced764a8549e..544a8855fad5 100644 --- a/Documentation/devicetree/bindings/arm/actions.txt +++ b/Documentation/devicetree/bindings/arm/actions.txt @@ -25,6 +25,21 @@ Root node property compatible must contain, depending on board: - LeMaker Guitar Base Board rev. B: "lemaker,guitar-bb-rev-b", "lemaker,guitar" +S700 SoC +======== + +Required root node properties: + +- compatible : must contain "actions,s700" + + +Boards: + +Root node property compatible must contain, depending on board: + + - Cubietech CubieBoard7: "cubietech,cubieboard7" + + S900 SoC ======== From patchwork Mon Nov 13 23:34:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 118826 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2372641qgn; Mon, 13 Nov 2017 15:34:47 -0800 (PST) X-Google-Smtp-Source: AGs4zMZnuo763NyJGEWqMx5twW71aIOi7/IIEoQhi3nxcP3L3peSQtTRXllhGK96RRvE8LJ7qaCX X-Received: by 10.84.229.79 with SMTP id d15mr8248315pln.397.1510616087745; Mon, 13 Nov 2017 15:34:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510616087; cv=none; d=google.com; s=arc-20160816; b=RA+e2RISP0I2kgWt0bvYir6moAyRbZ0+puv0oY/rGOVLvXahT7swGtag1CRxEg24TZ gjqizHOZz/dAd7o8AWrJbG0k/LEOSPQaAwTo061qaFJ3wKFxVpsnJgW7tlrYJSUgAk+z spl6W8bcY6aHBD9qEQ598bfTh/OearPt3lTEfPHbcjgaBhj+6GR+Fy1KwJ/rkELqOMxo JckH0gfgdLHw62vDCMS6T/E6bGi6WRjsfQAOMJOBkl7wQgF8wK8Q8R1+dxVoPBltIaGs GeajcbyM82DY8sIhxWdHt8p0Ne8eqOOQQX4T6m5VpqX0LjwAcQ870uyef7AocLWxvYe2 8/Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=4+phGgscdQ/DPUYQ7W6b0rkgUvzEyNv44w3MqdlWKPs=; b=W7QE5BndX+gFfv6FkhJUkjJBTPGn6i90q+nBkLKf5HeoQgdweU9jgTR2TXCQ+VCwZr LMGwUBg5kjz6v/yfJFGTRA+E3PPE07rpxdUUGNzH90bnYE9fDhWDuMLC59xtd6tEkyic FLM2fL4a0aDMQZfIOfk0/ACGKBtRxVXdbzQ3ccRlRX3N+nECLvOkBKVe74rHuceH9yu5 rp8isPu5qHHB1/vh0txUI410SONb83kysAPh/v7Kqk2itZqaZzXqgmYDLdcOMMJ0UB9t E/6LOHXNc8GxeTErkABgjf+t4JaM8fIPZoQLeV4aIupO9OYHdROSGF9cJQVxnMEv1te0 wnsQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4si14700040pgf.33.2017.11.13.15.34.47; Mon, 13 Nov 2017 15:34:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752273AbdKMXen (ORCPT + 27 others); Mon, 13 Nov 2017 18:34:43 -0500 Received: from mx2.suse.de ([195.135.220.15]:59389 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751161AbdKMXef (ORCPT ); Mon, 13 Nov 2017 18:34:35 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9E0B5ACEE; Mon, 13 Nov 2017 23:34:33 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-arm-kernel@lists.infradead.org Cc: Thomas Liau , Jeff Chen , =?utf-8?b?5byg5Lic6aOO?= , =?utf-8?b?5YiY54Kc?= , =?utf-8?b?5byg5aSp55uK?= , =?utf-8?b?5qKF5Yip?= , support@cubietech.com, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Daniel Lezcano , Thomas Gleixner , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH v2 2/8] dt-bindings: timer: Add Actions Semi S700 Date: Tue, 14 Nov 2017 00:34:21 +0100 Message-Id: <20171113233427.5386-3-afaerber@suse.de> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171113233427.5386-1-afaerber@suse.de> References: <20171113233427.5386-1-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Define a compatible string for the Actions Semi S700 SoC timer. Acked-by: Rob Herring Signed-off-by: Andreas Färber --- v1 -> v2: Unchanged Documentation/devicetree/bindings/timer/actions,owl-timer.txt | 1 + 1 file changed, 1 insertion(+) -- 2.13.6 diff --git a/Documentation/devicetree/bindings/timer/actions,owl-timer.txt b/Documentation/devicetree/bindings/timer/actions,owl-timer.txt index e3c28da80cb2..977054f87563 100644 --- a/Documentation/devicetree/bindings/timer/actions,owl-timer.txt +++ b/Documentation/devicetree/bindings/timer/actions,owl-timer.txt @@ -2,6 +2,7 @@ Actions Semi Owl Timer Required properties: - compatible : "actions,s500-timer" for S500 + "actions,s700-timer" for S700 "actions,s900-timer" for S900 - reg : Offset and length of the register set for the device. - interrupts : Should contain the interrupts. From patchwork Mon Nov 13 23:34:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 118833 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2373906qgn; Mon, 13 Nov 2017 15:36:23 -0800 (PST) X-Google-Smtp-Source: AGs4zMZa4WWk+M3uSVW1QJJtDQ1av48gv9DY0mySTTlKPSIH/yJNt7abin3Wh8hdFDGxcSHYSWgb X-Received: by 10.99.168.76 with SMTP id i12mr10233867pgp.427.1510616183876; Mon, 13 Nov 2017 15:36:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510616183; cv=none; d=google.com; s=arc-20160816; b=AWfxd1LI3ar3yf0y3N1QY3OH0mlku0Y4Y9YL3Myg2Sle5EO85YYPwcYNTFS4v2ACGF yGezJKcjwZNPPn5z05OxNtu395d0JJJBmF2swlyFwn20SC/N8Q6T5ctsg3Ep9fWDa6QV cXvvs0zgI94Bj1RpOnLaOt5nbrDFB7L8+M2yRU7//zKX6FT+3Eawu8ybiiQLlBv7o5xp ZfiElC+xW0B4vakT4m4m4wrm8L6uvNc4Gp4zGGUdouC4r1lD8gb/0Wy8P5NAmJ6/hgDO sMx9i60QEV0/aSAJL/Xpfvih+mAodFnxm+zoKcwiXXvW1RYZnn5KOTBiBObSEn990nUh XD0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ZR5u191YgIsFQ72qN1quRuIAz/ZZNkKw6mV4UBv+js0=; b=bwqY5yu32Mr0DeMVqzQJ+62vS9L5+clRiRcSrAalZtIYZeMM3y046gFaW8PF3wNnZm DTIdS84HbSQoQ2ThnFBdGMg+eZW+w8UPBBwGqh4lHGpxW938jCfC75AHo2AT5CKhbfj2 p797ikDt32t64RJB4tI+Vg1tLPRYet77chAsXk/QdRL4ZlVyZnV55GI+2u8IpHqRKV3+ ISlSms+YKzj/OBUaeRkGo5qAnLD1/t/TDRuLEtCN4Dx2DVNDfRe1X5bCdvE/CNaxrnwy LuiMcV+BHDTs56RNW8ATIl7AqHeq5GentRPJaTCgZiqRRM9dr3Meg/c8mY791qCS1XJE 1Qgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n7si14582433pgp.732.2017.11.13.15.36.23; Mon, 13 Nov 2017 15:36:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753000AbdKMXgW (ORCPT + 27 others); Mon, 13 Nov 2017 18:36:22 -0500 Received: from mx2.suse.de ([195.135.220.15]:59404 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751240AbdKMXef (ORCPT ); Mon, 13 Nov 2017 18:34:35 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 4023FACF0; Mon, 13 Nov 2017 23:34:34 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-arm-kernel@lists.infradead.org Cc: Thomas Liau , Jeff Chen , =?utf-8?b?5byg5Lic6aOO?= , =?utf-8?b?5YiY54Kc?= , =?utf-8?b?5byg5aSp55uK?= , =?utf-8?b?5qKF5Yip?= , support@cubietech.com, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Daniel Lezcano , Thomas Gleixner Subject: [PATCH v2 3/8] clocksource: owl: Adopt TIMER_OF_DECLARE() Date: Tue, 14 Nov 2017 00:34:22 +0100 Message-Id: <20171113233427.5386-4-afaerber@suse.de> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171113233427.5386-1-afaerber@suse.de> References: <20171113233427.5386-1-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit 1727339590fdb5a1ded881b540cd32121278d414 ("clocksource/drivers: Rename CLOCKSOURCE_OF_DECLARE to TIMER_OF_DECLARE") deprecated CLOCKSOURCE_OF_DECLARE(), so adopt the new macro TIMER_OF_DECLARE(). Reported-by: Daniel Lezcano Signed-off-by: Andreas Färber --- v2: New (Daniel) drivers/clocksource/owl-timer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.13.6 diff --git a/drivers/clocksource/owl-timer.c b/drivers/clocksource/owl-timer.c index c68630565079..9fb4333cfb8a 100644 --- a/drivers/clocksource/owl-timer.c +++ b/drivers/clocksource/owl-timer.c @@ -168,5 +168,5 @@ static int __init owl_timer_init(struct device_node *node) return 0; } -CLOCKSOURCE_OF_DECLARE(owl_s500, "actions,s500-timer", owl_timer_init); -CLOCKSOURCE_OF_DECLARE(owl_s900, "actions,s900-timer", owl_timer_init); +TIMER_OF_DECLARE(owl_s500, "actions,s500-timer", owl_timer_init); +TIMER_OF_DECLARE(owl_s900, "actions,s900-timer", owl_timer_init); From patchwork Mon Nov 13 23:34:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 118827 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2372690qgn; Mon, 13 Nov 2017 15:34:50 -0800 (PST) X-Google-Smtp-Source: AGs4zMZfB/fOCwqQGbeDVHnEyXNVdmEvmGK3cBBHrOa1qGbDJ30giIDEJy3ZTIOVqVZ4g8yrFqRw X-Received: by 10.84.252.4 with SMTP id x4mr4577621pll.99.1510616090811; Mon, 13 Nov 2017 15:34:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510616090; cv=none; d=google.com; s=arc-20160816; b=Fz2Fn5xeWVXd1fK801kuejRwokJOg3PdGgNVqEtv5P0+pm2Mg8DUHelmjiqUPkVudx rUFLNyjlMMy1r0PlxuhRVrKmxW9bFlys5T8USJg5P3m8m2xCtzNKqCloLd4Q05xE6AON v8QmA0vRCXLAZKgHrtZTIkaSCs+ZNS3Xi+UsbkrTr1hZX7aLr8r5+IJmZgScj5/ijxuy YnOMsYOinvGhszOTmWCS7d6mqEvSHbphvt9iN0Bzsp1XrMnNLKz3aQusGO0BVUNGmCok iE7/dBGJ4EsFWKSPPtaBCbTJA2ixRsJkR5tPnrmK7Kko1+FVpFPPsoF6i9gHDpAAVSOw +F1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=qf6DBZa/ncRMM1rBI+UcE2nLXWoEYkOCW15vg7w6+34=; b=knsFLJE+0Dxiaq4DMnPmqj2O+jw+9eLGQlS8Pj7nMUU3XR6CF4grdS/nPAZ8WkLwwN XVKlAjGytytn7VrNZn/qYqAZkmSNvsyby/3lOkdb5o8PgylaDXfNeN1C3hQ1IYDuA1X7 QPdba4hDK7dGjihHggVw+cQsydZwg0R9rQY+LoE4DW4b5r0h1IaASY9ZQPyZTPTGnsOQ lZJeLDwtnP2lPw6D3H16FMZoD/7kD4GD8XsvIXwDg5gbbJEaZBzZLVrp2kPjUJ5nfMQp zkefbHK4rcmL6N94HURu2ze49q0pH+oN/LIHsLOhP6584pwNbix86LEeO7qzKDSLAvpn OJeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t4si14700040pgf.33.2017.11.13.15.34.50; Mon, 13 Nov 2017 15:34:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752383AbdKMXes (ORCPT + 27 others); Mon, 13 Nov 2017 18:34:48 -0500 Received: from mx2.suse.de ([195.135.220.15]:59416 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751576AbdKMXeg (ORCPT ); Mon, 13 Nov 2017 18:34:36 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id D9062ACF4; Mon, 13 Nov 2017 23:34:34 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-arm-kernel@lists.infradead.org Cc: Thomas Liau , Jeff Chen , =?utf-8?b?5byg5Lic6aOO?= , =?utf-8?b?5YiY54Kc?= , =?utf-8?b?5byg5aSp55uK?= , =?utf-8?b?5qKF5Yip?= , support@cubietech.com, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Daniel Lezcano , Thomas Gleixner Subject: [PATCH v2 4/8] clocksource: owl: Prepare S700 Date: Tue, 14 Nov 2017 00:34:23 +0100 Message-Id: <20171113233427.5386-5-afaerber@suse.de> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171113233427.5386-1-afaerber@suse.de> References: <20171113233427.5386-1-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Actions S700 has two 2Hz timers like S500, and four TIMx timers like S900. Signed-off-by: Andreas Färber --- v1 -> v2: * Adopted TIMER_OF_DECLARE() (Daniel) drivers/clocksource/owl-timer.c | 1 + 1 file changed, 1 insertion(+) -- 2.13.6 diff --git a/drivers/clocksource/owl-timer.c b/drivers/clocksource/owl-timer.c index 9fb4333cfb8a..ea00a5e8f95d 100644 --- a/drivers/clocksource/owl-timer.c +++ b/drivers/clocksource/owl-timer.c @@ -169,4 +169,5 @@ static int __init owl_timer_init(struct device_node *node) return 0; } TIMER_OF_DECLARE(owl_s500, "actions,s500-timer", owl_timer_init); +TIMER_OF_DECLARE(owl_s700, "actions,s700-timer", owl_timer_init); TIMER_OF_DECLARE(owl_s900, "actions,s900-timer", owl_timer_init); From patchwork Mon Nov 13 23:34:24 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 118832 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2373412qgn; Mon, 13 Nov 2017 15:35:50 -0800 (PST) X-Google-Smtp-Source: AGs4zMabb0zVYmyoVt+RZfnSJEbPrQ7kSNTRtqHftjODSTaIW9NWsBRIYTkOwWus4IIJPHry3Ork X-Received: by 10.98.69.209 with SMTP id n78mr11490377pfi.28.1510616150833; Mon, 13 Nov 2017 15:35:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510616150; cv=none; d=google.com; s=arc-20160816; b=ZUJ52pGTZPtnaJn+ZjZueOFeeGIttxnF+rYzogoZWYMdMFejntpYmJ193qUSxq19nR iagrNa2k8ZBAHDtn1AmVEJpaGALEefXqHPHCVx7psMFQnDYGcFq0R5ypITFMxlE7LnUL kb5ykgfic5mHpmqFlXzRWWaRrGWJ/7BsmgHbZfu2CV6IESZNlaASNBO1xNVR13ake4Oo MzZgNwmstDYB3R64uOyfsqm1hksDt1mVC61zePAIct92fPJlt0pny4LIl5dx++bfmC9B CPwlFkULd0VAz4Jxuka5Lb2MAPayusiI8rAjCVfYJxRGz65My5p0VfsGZDm6JM74FGpE Yi6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=J6wXiJryxP+NTmi3i5ScBqT+nefuQTV0PCS1s1pTncA=; b=wBR+yf0kd2VDMCEbXPEc2mODE3wmObPG476umbk3+4wJ6TTORpWWVE5TcLhXdVNZfp bFsgNVY3EsHaEmqYXdSR63vJUwWD8ehpHi/XkILUE84YgJBGzXNDko+jAscJ6X7UCrdy dwxiaPFWqd0XIhm25Ui0L+z04dGI7TZ3Woo4juizbXRAV1IjhzLm9HR8Kplmptqg8h29 tuPPO0ZY1jKFpAue5Ix+T/S/DN7nSnpmxjQddmiPvb8Atz7HjYqWf1E5n2zdCYMKieiX C+/p0YIS/uIAU/BHJ1J/ksNpeBlUNFkl6sRT7xHFQhQuaHDc6J9rsBBblfLgoucsckkF m6GQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e80si16317111pfb.385.2017.11.13.15.35.50; Mon, 13 Nov 2017 15:35:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752904AbdKMXft (ORCPT + 27 others); Mon, 13 Nov 2017 18:35:49 -0500 Received: from mx2.suse.de ([195.135.220.15]:59420 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751073AbdKMXeh (ORCPT ); Mon, 13 Nov 2017 18:34:37 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id CD811ACF8; Mon, 13 Nov 2017 23:34:35 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-arm-kernel@lists.infradead.org Cc: Thomas Liau , Jeff Chen , =?utf-8?b?5byg5Lic6aOO?= , =?utf-8?b?5YiY54Kc?= , =?utf-8?b?5byg5aSp55uK?= , =?utf-8?b?5qKF5Yip?= , support@cubietech.com, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , devicetree@vger.kernel.org Subject: [PATCH v2 5/8] arm64: dts: actions: Add S700 and CubieBoard7 Date: Tue, 14 Nov 2017 00:34:24 +0100 Message-Id: <20171113233427.5386-6-afaerber@suse.de> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171113233427.5386-1-afaerber@suse.de> References: <20171113233427.5386-1-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add Device Trees for S700 SoC and Cubietech CubieBoard7. Signed-off-by: Andreas Färber --- v1 -> v2: Unchanged arch/arm64/boot/dts/actions/Makefile | 2 + arch/arm64/boot/dts/actions/s700-cubieboard7.dts | 47 +++++++ arch/arm64/boot/dts/actions/s700.dtsi | 164 +++++++++++++++++++++++ 3 files changed, 213 insertions(+) create mode 100644 arch/arm64/boot/dts/actions/s700-cubieboard7.dts create mode 100644 arch/arm64/boot/dts/actions/s700.dtsi -- 2.13.6 diff --git a/arch/arm64/boot/dts/actions/Makefile b/arch/arm64/boot/dts/actions/Makefile index cc4661256356..d8b923480f5a 100644 --- a/arch/arm64/boot/dts/actions/Makefile +++ b/arch/arm64/boot/dts/actions/Makefile @@ -1 +1,3 @@ +dtb-$(CONFIG_ARCH_ACTIONS) += s700-cubieboard7.dtb + dtb-$(CONFIG_ARCH_ACTIONS) += s900-bubblegum-96.dtb diff --git a/arch/arm64/boot/dts/actions/s700-cubieboard7.dts b/arch/arm64/boot/dts/actions/s700-cubieboard7.dts new file mode 100644 index 000000000000..e562f04c2490 --- /dev/null +++ b/arch/arm64/boot/dts/actions/s700-cubieboard7.dts @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2017 Andreas Färber + * + * SPDX-License-Identifier: (GPL-2.0+ OR MIT) + */ + +/dts-v1/; + +#include "s700.dtsi" + +/ { + compatible = "cubietech,cubieboard7", "actions,s700"; + model = "CubieBoard7"; + + aliases { + serial3 = &uart3; + }; + + chosen { + stdout-path = "serial3:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x80000000>; + }; + + memory@1,e0000000 { + device_type = "memory"; + reg = <0x1 0xe0000000 0x0 0x0>; + }; + + uart3_clk: uart3-clk { + compatible = "fixed-clock"; + clock-frequency = <921600>; + #clock-cells = <0>; + }; +}; + +&timer { + clocks = <&hosc>; +}; + +&uart3 { + status = "okay"; + clocks = <&uart3_clk>; +}; diff --git a/arch/arm64/boot/dts/actions/s700.dtsi b/arch/arm64/boot/dts/actions/s700.dtsi new file mode 100644 index 000000000000..b54df405aaeb --- /dev/null +++ b/arch/arm64/boot/dts/actions/s700.dtsi @@ -0,0 +1,164 @@ +/* + * Copyright (c) 2017 Andreas Färber + * + * SPDX-License-Identifier: (GPL-2.0+ OR MIT) + */ + +#include + +/ { + compatible = "actions,s700"; + interrupt-parent = <&gic>; + #address-cells = <2>; + #size-cells = <2>; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + cpu0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a53", "arm,armv8"; + reg = <0x0 0x0>; + enable-method = "psci"; + }; + + cpu1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a53", "arm,armv8"; + reg = <0x0 0x1>; + enable-method = "psci"; + }; + + cpu2: cpu@2 { + device_type = "cpu"; + compatible = "arm,cortex-a53", "arm,armv8"; + reg = <0x0 0x2>; + enable-method = "psci"; + }; + + cpu3: cpu@3 { + device_type = "cpu"; + compatible = "arm,cortex-a53", "arm,armv8"; + reg = <0x0 0x3>; + enable-method = "psci"; + }; + }; + + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + secmon@1f000000 { + reg = <0x0 0x1f000000 0x0 0x1000000>; + no-map; + }; + }; + + psci { + compatible = "arm,psci-0.2"; + method = "smc"; + }; + + arm-pmu { + compatible = "arm,cortex-a53-pmu"; + interrupts = , + , + , + ; + interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; + + hosc: hosc { + compatible = "fixed-clock"; + clock-frequency = <24000000>; + #clock-cells = <0>; + }; + + soc { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges; + + gic: interrupt-controller@e00f1000 { + compatible = "arm,gic-400"; + reg = <0x0 0xe00f1000 0x0 0x1000>, + <0x0 0xe00f2000 0x0 0x2000>, + <0x0 0xe00f4000 0x0 0x2000>, + <0x0 0xe00f6000 0x0 0x2000>; + interrupts = ; + interrupt-controller; + #interrupt-cells = <3>; + }; + + uart0: serial@e0120000 { + compatible = "actions,s900-uart", "actions,owl-uart"; + reg = <0x0 0xe0120000 0x0 0x2000>; + interrupts = ; + status = "disabled"; + }; + + uart1: serial@e0122000 { + compatible = "actions,s900-uart", "actions,owl-uart"; + reg = <0x0 0xe0122000 0x0 0x2000>; + interrupts = ; + status = "disabled"; + }; + + uart2: serial@e0124000 { + compatible = "actions,s900-uart", "actions,owl-uart"; + reg = <0x0 0xe0124000 0x0 0x2000>; + interrupts = ; + status = "disabled"; + }; + + uart3: serial@e0126000 { + compatible = "actions,s900-uart", "actions,owl-uart"; + reg = <0x0 0xe0126000 0x0 0x2000>; + interrupts = ; + status = "disabled"; + }; + + uart4: serial@e0128000 { + compatible = "actions,s900-uart", "actions,owl-uart"; + reg = <0x0 0xe0128000 0x0 0x2000>; + interrupts = ; + status = "disabled"; + }; + + uart5: serial@e012a000 { + compatible = "actions,s900-uart", "actions,owl-uart"; + reg = <0x0 0xe012a000 0x0 0x2000>; + interrupts = ; + status = "disabled"; + }; + + uart6: serial@e012c000 { + compatible = "actions,s900-uart", "actions,owl-uart"; + reg = <0x0 0xe012c000 0x0 0x2000>; + interrupts = ; + status = "disabled"; + }; + + timer: timer@e024c000 { + compatible = "actions,s700-timer"; + reg = <0x0 0xe024c000 0x0 0x4000>; + interrupts = ; + interrupt-names = "timer1"; + }; + }; +}; From patchwork Mon Nov 13 23:34:25 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 118831 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2373374qgn; Mon, 13 Nov 2017 15:35:48 -0800 (PST) X-Google-Smtp-Source: AGs4zMaqKUdfJGpIzLAEmLXfwi/H2l/d4MZVf0feRjR2A0emhKYifz01pneVTH+AHeuGuuKrjya2 X-Received: by 10.84.176.163 with SMTP id v32mr10622389plb.175.1510616148634; Mon, 13 Nov 2017 15:35:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510616148; cv=none; d=google.com; s=arc-20160816; b=lGzsPUfBobBb9lVrSMSoBUiL8c2ERQ1zUvq8rOeej3JrncybMQ7lqw8BxyYXqROwXG rL8m6YrNSt9Eady5euEzsruHoRc3bUp2UBbljRFqO/IYjVxmB3SfPFIqJZo1CdJb9ea2 b66Qfrle/vB1TCpzAj5F/QcBMVPSNsitRnX/9EwkRFcKLNZNXo8YYWfdax/5mB6F4qI7 uSBqv6xgVmaMQw6m2Rhx9auHu+F1bAS0hqbaHIuUHkixsXs+JrLJQAQwvKK8uiw0nAmk KKko9XmgQBNZvTIomsqeMO17KehhPsaAwDde2mmXDur+DrDeB/3ipkmIMIP/Pjevu61J gf2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=fN0n4wuFoahE62N5ZVl+mquZe/DxzZNpADLT1GsqZts=; b=aTd9EmspNHjWVdJ049AYafgMfqd+zI/sr1XytcvXVGfaYAqFQSeU643bsdKGgyWp8m wiahGMOBOiWsIQm/rJnTQffxOpVmE5kgmbieZDrKUciv2unManwv2PFBVLG1sFFqfJ1n +m0TG6p1eA1WdXisG4DoBnaeyMIxIC2MAJF58vYHd6hx8nRcB6jAsJ4cNnNRUd59Negx GOK1x8ScuiAOlQL1e9zmnxCXkMaKuzuHKvwIUvetYNtsitOaBALbpV/KA0/3u7UnUGZQ BVoSqWAUNxePUstmA5x5Otqiu8bLG7tQKfkLluVfT17HmwJrQBsL48LOklFGS544pW3V U6WQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e80si16317111pfb.385.2017.11.13.15.35.48; Mon, 13 Nov 2017 15:35:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752850AbdKMXfq (ORCPT + 27 others); Mon, 13 Nov 2017 18:35:46 -0500 Received: from mx2.suse.de ([195.135.220.15]:59416 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751754AbdKMXeh (ORCPT ); Mon, 13 Nov 2017 18:34:37 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9202CACFB; Mon, 13 Nov 2017 23:34:36 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-arm-kernel@lists.infradead.org Cc: Thomas Liau , Jeff Chen , =?utf-8?b?5byg5Lic6aOO?= , =?utf-8?b?5YiY54Kc?= , =?utf-8?b?5byg5aSp55uK?= , =?utf-8?b?5qKF5Yip?= , support@cubietech.com, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= , Rob Herring , Mark Rutland , devicetree@vger.kernel.org Subject: [PATCH v2 6/8] dt-bindings: power: Add Actions Semi S700 SPS Date: Tue, 14 Nov 2017 00:34:25 +0100 Message-Id: <20171113233427.5386-7-afaerber@suse.de> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171113233427.5386-1-afaerber@suse.de> References: <20171113233427.5386-1-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Define power domains for Actions Semi S700 SoC Smart Power System (SPS). Signed-off-by: Andreas Färber --- v2: New .../devicetree/bindings/power/actions,owl-sps.txt | 2 ++ include/dt-bindings/power/owl-s700-powergate.h | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 include/dt-bindings/power/owl-s700-powergate.h -- 2.13.6 diff --git a/Documentation/devicetree/bindings/power/actions,owl-sps.txt b/Documentation/devicetree/bindings/power/actions,owl-sps.txt index 007b9a7ae723..78edd63641e8 100644 --- a/Documentation/devicetree/bindings/power/actions,owl-sps.txt +++ b/Documentation/devicetree/bindings/power/actions,owl-sps.txt @@ -2,10 +2,12 @@ Actions Semi Owl Smart Power System (SPS) Required properties: - compatible : "actions,s500-sps" for S500 + "actions,s700-sps" for S700 - reg : Offset and length of the register set for the device. - #power-domain-cells : Must be 1. See macros in: include/dt-bindings/power/owl-s500-powergate.h for S500 + include/dt-bindings/power/owl-s700-powergate.h for S700 Example: diff --git a/include/dt-bindings/power/owl-s700-powergate.h b/include/dt-bindings/power/owl-s700-powergate.h new file mode 100644 index 000000000000..4ded16bc074f --- /dev/null +++ b/include/dt-bindings/power/owl-s700-powergate.h @@ -0,0 +1,20 @@ +/* + * Actions Semi S700 SPS + * + * Copyright (c) 2017 Andreas Färber + * + * SPDX-License-Identifier: (GPL-2.0+ OR MIT) + */ +#ifndef DT_BINDINGS_POWER_OWL_S700_POWERGATE_H +#define DT_BINDINGS_POWER_OWL_S700_POWERGATE_H + +#define S700_PD_VDE 0 +#define S700_PD_VCE_SI 1 +#define S700_PD_USB2_1 2 +#define S700_PD_HDE 3 +#define S700_PD_DMA 4 +#define S700_PD_DS 5 +#define S700_PD_USB3 6 +#define S700_PD_USB2_0 7 + +#endif From patchwork Mon Nov 13 23:34:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 118830 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2373184qgn; Mon, 13 Nov 2017 15:35:32 -0800 (PST) X-Google-Smtp-Source: AGs4zMZSbu6x5xFejzuBOsmL9Gka08w4SWaEhGXZv9/CFMj4MxDw3XToBEiBJP/pNaX949h2Idr/ X-Received: by 10.101.75.204 with SMTP id p12mr10300369pgr.61.1510616132539; Mon, 13 Nov 2017 15:35:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510616132; cv=none; d=google.com; s=arc-20160816; b=jj2IqzEuUlw8zR3NRA0h4+JzMgT7qR2K70b1ZgCLiWWyXc/+DpQBsbYyXBz9XgpC2m mQwqlFaGJwqOTYPZyfD/IpyF5GjqaWblu0pF+hOZ9gC0OhJDUxZ0mKqxf67cqTo5X60e xQgGB5TkkLhWzUGMlXEKW2GUQzFbuaJH7jcfGG1VdoUJg3450ee2FwY7epYnaqaiVWGA 0XXveGitf6ZpSEcxbS6tvOE7HY0GSjrEaWppFcaH61wBxqm6zt7vbCBClb4uJ85tZbbl EUPwOm/iAIB9KzTkvpsEm9UxqSpFzHtKFg91zKlmeLCBNA2kP4Pt1nKjWsWOquzyqkj2 Ge2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=DxzENWlzdY/VNmr3sXwJfzXNYjMk4Ef/I1j8gVIEesY=; b=v88OeXXloIZdkTAT9vZBS4JPmb7eTElEKkRsigmpsFRcM3Bh4EN5h6dOdnCVSSsjy9 kW06tdQ6X6UbTzGo5F/OJPyRQHJ/M0TFmNR1N15XB+WECUHXQOY5jQap4KQ1XJIchkbH mG6LWqyZLLD1sN8a6QD8PE7wCCRkPGHs6J7zkWTo58/r4ZhJgOm29rJnXDnbcNF2H09n 2CG06oAIwQx2Wg02XsTBuyQvJJz7JR/uXcU3TS2+CkECq6P5nQRAoOekkI0Q3GAw1Fb8 P3rDysIR2QEUs2cSwhKBGeaz8ym/LrtT2+mY3yQ0jfMf/I0vCaYF8FW6mDo3U4QlCAuR bD+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e2si7646595plt.416.2017.11.13.15.35.32; Mon, 13 Nov 2017 15:35:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752733AbdKMXf3 (ORCPT + 27 others); Mon, 13 Nov 2017 18:35:29 -0500 Received: from mx2.suse.de ([195.135.220.15]:59428 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751906AbdKMXei (ORCPT ); Mon, 13 Nov 2017 18:34:38 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 27E85ACFC; Mon, 13 Nov 2017 23:34:37 +0000 (UTC) From: =?utf-8?q?Andreas_F=C3=A4rber?= To: linux-arm-kernel@lists.infradead.org Cc: Thomas Liau , Jeff Chen , =?utf-8?b?5byg5Lic6aOO?= , =?utf-8?b?5YiY54Kc?= , =?utf-8?b?5byg5aSp55uK?= , =?utf-8?b?5qKF5Yip?= , support@cubietech.com, linux-kernel@vger.kernel.org, =?utf-8?q?Andreas_F=C3=A4rber?= Subject: [PATCH v2 7/8] soc: actions: sps: Add S700 Date: Tue, 14 Nov 2017 00:34:26 +0100 Message-Id: <20171113233427.5386-8-afaerber@suse.de> X-Mailer: git-send-email 2.13.6 In-Reply-To: <20171113233427.5386-1-afaerber@suse.de> References: <20171113233427.5386-1-afaerber@suse.de> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add power domains for S700 SoC. Signed-off-by: Andreas Färber --- v2: New drivers/soc/actions/owl-sps.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) -- 2.13.6 diff --git a/drivers/soc/actions/owl-sps.c b/drivers/soc/actions/owl-sps.c index 875225bfa21c..8477f0f18e24 100644 --- a/drivers/soc/actions/owl-sps.c +++ b/drivers/soc/actions/owl-sps.c @@ -17,6 +17,7 @@ #include #include #include +#include struct owl_sps_domain_info { const char *name; @@ -203,8 +204,49 @@ static const struct owl_sps_info s500_sps_info = { .domains = s500_sps_domains, }; +static const struct owl_sps_domain_info s700_sps_domains[] = { + [S700_PD_VDE] = { + .name = "VDE", + .pwr_bit = 0, + }, + [S700_PD_VCE_SI] = { + .name = "VCE_SI", + .pwr_bit = 1, + }, + [S700_PD_USB2_1] = { + .name = "USB2_1", + .pwr_bit = 2, + }, + [S700_PD_HDE] = { + .name = "HDE", + .pwr_bit = 7, + }, + [S700_PD_DMA] = { + .name = "DMA", + .pwr_bit = 8, + }, + [S700_PD_DS] = { + .name = "DS", + .pwr_bit = 9, + }, + [S700_PD_USB3] = { + .name = "USB3", + .pwr_bit = 10, + }, + [S700_PD_USB2_0] = { + .name = "USB2_0", + .pwr_bit = 11, + }, +}; + +static const struct owl_sps_info s700_sps_info = { + .num_domains = ARRAY_SIZE(s700_sps_domains), + .domains = s700_sps_domains, +}; + static const struct of_device_id owl_sps_of_matches[] = { { .compatible = "actions,s500-sps", .data = &s500_sps_info }, + { .compatible = "actions,s700-sps", .data = &s700_sps_info }, { } };