From patchwork Wed Aug 12 04:42:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caesar Wang X-Patchwork-Id: 6995691 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 D39E29F39D for ; Wed, 12 Aug 2015 04:47:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0F6962070E for ; Wed, 12 Aug 2015 04:47:49 +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 2FE5D2070A for ; Wed, 12 Aug 2015 04:47:48 +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 1ZPNuu-00081R-2V; Wed, 12 Aug 2015 04:45:32 +0000 Received: from mail-ig0-f195.google.com ([209.85.213.195]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZPNun-00075Q-Tu; Wed, 12 Aug 2015 04:45:27 +0000 Received: by igbjg10 with SMTP id jg10so766805igb.0; Tue, 11 Aug 2015 21:45:04 -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=IutOdV4Kp1B5o3qC5Lxkp/EAwJ0ZVKBNg9FKgrEtbu4=; b=fhO8sxXuqYiOp+68THVwg8spFgyu4nxXz4YisMhDxLwuuPP7HxrwEE1jndtbQV0Xjo 3PQQpjmi8DF69tj+8YgeBHdjVPLxPJ4xSM13vb+Y9/KmJeJOUgXwg1y4i/pv+OK2ntxh LVbUOPSbLavBntpj2h0Qc2jUO0eVRWdkQF2XA6dsOkG8bIG8rmY9XIQzI8YAtBIdhPDZ b246SLkbdabNtR7Y7MF0bmvloKqFUEtRP3tPhiJ+VWzMmlbvshF0Y34KJ9rN3DnH9Hrb VrQepHlOlUEojmRXMccQmTVxdBDvhJK17E2faCRo3tsQOuuz6j4noegsha7IqQqgUp9E zfyQ== X-Received: by 10.50.117.70 with SMTP id kc6mr21831272igb.6.1439354704371; Tue, 11 Aug 2015 21:45:04 -0700 (PDT) Received: from localhost.localdomain ([172.245.164.28]) by smtp.gmail.com with ESMTPSA id s12sm3134827ioe.14.2015.08.11.21.44.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Aug 2015 21:45:03 -0700 (PDT) From: Caesar Wang To: ulf.hansson@linaro.org, khilman@linaro.org, heiko@sntech.de Subject: [PATCH v16 2/4] ARM: power-domain: rockchip: add all the domain type on RK3288 SoCs Date: Wed, 12 Aug 2015 12:42:30 +0800 Message-Id: <1439354552-20098-3-git-send-email-wxt@rock-chips.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439354552-20098-1-git-send-email-wxt@rock-chips.com> References: <1439354552-20098-1-git-send-email-wxt@rock-chips.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150811_214526_177553_1E236516 X-CRM114-Status: GOOD ( 12.89 ) 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, dmitry.torokhov@gmail.com, dianders@chromium.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, tomasz.figa@gmail.com, 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=-4.4 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. Series-changes: 15 - change the comment. 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