From patchwork Tue Aug 25 07:24:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 7068881 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 99C389F305 for ; Tue, 25 Aug 2015 07:28:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 850A820723 for ; Tue, 25 Aug 2015 07:28:46 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 426BE206A1 for ; Tue, 25 Aug 2015 07:28:44 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZU8cZ-0007Gf-Hc; Tue, 25 Aug 2015 07:26:15 +0000 Received: from mail-pa0-f52.google.com ([209.85.220.52]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZU8cW-0007BZ-GP; Tue, 25 Aug 2015 07:26:12 +0000 Received: by pabzx8 with SMTP id zx8so26266344pab.1; Tue, 25 Aug 2015 00:25:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9x36sZudGNyWRNBZiUsODcKqCXEcD7UgxItdR4/LrMo=; b=aK+UnMmBoS5VxeETsCiQUJ9dPHAxU/wiDm5rBswXAB4TMXptea+7Jsgo/w4vfj93gu 1WhRkCXlfNL6pfXR5lLPdeT4Rb0lhRT0vN9H9xhoOwVfZe9MsNccCT8Hj9sltGP/MB+p 12fb4nbhH7T1OUM8vBLDosxZaFjiv7BHRd0SL1eiAmF/SITanx5HZZNWU0XHVjiXw1mM 7w4PQv+jlJpt7yKLruXiuCvicdfujxsQ7QqpccA9+dOhzStk8hJdlbbup9fR3odlG7vh kkSUCOQ6uPHKoBw7RNdE4RdT9BT5E9js2lQSuoYw4fGNIFTzCk4LFqAxI6zilijS5Sr1 p7vA== X-Received: by 10.68.203.42 with SMTP id kn10mr54232398pbc.43.1440487551599; Tue, 25 Aug 2015 00:25:51 -0700 (PDT) Received: from localhost.localdomain ([103.47.144.33]) by smtp.gmail.com with ESMTPSA id uz5sm9678502pac.1.2015.08.25.00.25.41 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 25 Aug 2015 00:25:50 -0700 (PDT) From: Caesar Wang To: heiko@sntech.de, khilman@linaro.org Subject: [RESEND PATCH v16 2/4] ARM: power-domain: rockchip: add all the domain type on RK3288 SoCs Date: Tue, 25 Aug 2015 15:24:44 +0800 Message-Id: <1440487486-6154-3-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1440487486-6154-1-git-send-email-wxt@rock-chips.com> References: <1440487486-6154-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150825_002612_581404_EA027928 X-CRM114-Status: GOOD ( 13.49 ) X-Spam-Score: -2.4 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, ulf.hansson@linaro.org, linux@arm.linux.org.uk, arnd@arndb.de, ijc+devicetree@hellion.org.uk, linux-kernel@vger.kernel.org, linus.walleij@linaro.org, dmitry.torokhov@gmail.com, dianders@chromium.org, tomasz.figa@gmail.com, linux-rockchip@lists.infradead.org, robh+dt@kernel.org, galak@codeaurora.org, linux-arm-kernel@lists.infradead.org, wxt@rock-chips.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP According to a description from TRM, the following table lists all the power domains. ------------------------ ------------------------- |VD_CORE | |VD_LOGIC | PD_VIO | |xxxxxxxxxxxxxxxxxxxx | |xxxxxxxx -----------| |xxxxxxxxxxxxxxxxxxxx | |xxxxxxxx | |xxxxxxxxxxxxxxxxxxxx | | | |xxxxxxxxxxxxxxxxxxxx | |--------- -----------| | | |PD_PERI | | PD_VIDEO | | | |--------- -----------| | | |--------- -----------| | | |PD_ALIVE | | PD_HEVC | |---------- ---------- | |--------- -----------| ||PD_A17_1| |PD_A17_2| | ------------------------- |---------- ---------- | |VD_GPU |PD_GPU | |---------- ---------- | ------------------------- ||PD_A17_3| |PD_DEBUG| | ------------------------- |---------- ---------- | |VD_PMU |PD_PMU | ------------------------ ------------------------- VD_* : voltage domain PD_* : power domain At the moment, we can support some power-domain type on RK3288. We can add more types on RK3288 in the future, that's need to do. Signed-off-by: Caesar Wang --- Changes in v16: - Add more domain decription. Changes in v15: - change the comment. Changes in v14: None Changes in v13: None Changes in v12: None Changes in v11: None Changes in v10: None Changes in v9: None Changes in v8: None Changes in v7: None Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None include/dt-bindings/power-domain/rk3288.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 include/dt-bindings/power-domain/rk3288.h diff --git a/include/dt-bindings/power-domain/rk3288.h b/include/dt-bindings/power-domain/rk3288.h new file mode 100644 index 0000000..db5e810 --- /dev/null +++ b/include/dt-bindings/power-domain/rk3288.h @@ -0,0 +1,31 @@ +#ifndef __DT_BINDINGS_POWER_DOMAIN_RK3288_H__ +#define __DT_BINDINGS_POWER_DOMAIN_RK3288_H__ + +/** + * RK3288 Power Domain and Voltage Domain Summary. + */ + +/* VD_CORE */ +#define RK3288_PD_A17_0 0 +#define RK3288_PD_A17_1 1 +#define RK3288_PD_A17_2 2 +#define RK3288_PD_A17_3 3 +#define RK3288_PD_SCU 4 +#define RK3288_PD_DEBUG 5 +#define RK3288_PD_MEM 6 + +/* VD_LOGIC */ +#define RK3288_PD_BUS 7 +#define RK3288_PD_PERI 8 +#define RK3288_PD_VIO 9 +#define RK3288_PD_ALIVE 10 +#define RK3288_PD_HEVC 11 +#define RK3288_PD_VIDEO 12 + +/* VD_GPU */ +#define RK3288_PD_GPU 13 + +/* VD_PMU */ +#define RK3288_PD_PMU 14 + +#endif