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