Received: by 10.192.165.156 with SMTP id m28csp953802imm; Wed, 11 Apr 2018 09:49:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx48Tx5gqy3/OC2RU5SA6pjstfMorUOTtnpyb8AUAJE8J1cKkN1VsXKMhRgx16Sy7uJRG5S0N X-Received: by 2002:a17:902:bf05:: with SMTP id bi5-v6mr4293806plb.235.1523465353761; Wed, 11 Apr 2018 09:49:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523465353; cv=none; d=google.com; s=arc-20160816; b=QfFmfDIKhpQ/4sQa2qtOu4vq2qB7H73YSUcyZ2PcrVl5Y93QKGeyAf5p70y/Ax9CRs 1B/SWczfkMk1GnlvhCj/jhGkGRkTfj1DwHnPpIR/RSpnKNeOjdvXxb32TXs5Tpy5zDwZ NSTsqq8GE0/TyJ/UFQ62iJJ47KOIvC8o6TGYZmjiczRKeFJyWtCQC7dDGdAuAzOlI7ZE C5jHz9AdBqUie73Rc/owZmmo9ls4VZgngqkr6jVQ1b+os4sVpgKhL+wbPsloHsNE/P05 cI0MY3yh4AO6MJlZpwVp9X13XbiuxWToOZHyyXeTDpfXZO9hfivz+3f733hIA5uJ21B4 LrdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=Uh0mMFnhW0iC7vM3Yb4FkAqmdYdx2A6ZG+xxa59+oaw=; b=zcxskz0Dy8sG31a1UhLIy48bj+Bos7ypAXQI+j0pOICWd5qWX3z/ldGmnONxHcaqE/ xU4isX6TRT8vF3H73S1LXQNTDeAnANMQmANZakykFK3z3mpLm/jfpDkfZZLtSgCMOjp7 uSdzhvJjoodqqM36EUKFVLswvlbEcGlCtem3xfwRZ/3gJPs8AgsWdEFOJOfudjPibWx9 MPmBca1QOZuSulxPTlALJXKT4EmmNRvEx9DUfOXXI9ec/4bYPZJpO3xVRJlT2Eb9WaB7 MdP4TQDMT7SfGZj1hPcj4RXfuQyDnl2wfBi4yygwtGBsYAbHRoUx5rfDQKeNpSmolU3P Q6jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ynkn00AT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d14-v6si1461459plj.191.2018.04.11.09.48.34; Wed, 11 Apr 2018 09:49:13 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=Ynkn00AT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753944AbeDKQlh (ORCPT + 99 others); Wed, 11 Apr 2018 12:41:37 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:36574 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753864AbeDKQld (ORCPT ); Wed, 11 Apr 2018 12:41:33 -0400 Received: by mail-pl0-f66.google.com with SMTP id 91-v6so1798998pld.3 for ; Wed, 11 Apr 2018 09:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Uh0mMFnhW0iC7vM3Yb4FkAqmdYdx2A6ZG+xxa59+oaw=; b=Ynkn00ATKdsVP2Cap0H3duvJp7C6A6wQKliFTxViOcWq3Bbo0vbuVFNgtf04YrCs1C Xb7m2IRpCHnlnXZFS6Q2WjAoo6VP0iM8G9YLcs26/r2p+1C9f8xJXpupNQUnKe4K2Bfi +GYvXoO5mfM/tvMuq2G8WmeOik10wTrNIzosQ= 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; bh=Uh0mMFnhW0iC7vM3Yb4FkAqmdYdx2A6ZG+xxa59+oaw=; b=OO3Lq4o6Rrx9xgCqdZ4K7ke7bjE0WfTSH60pOZmBBmwO0JAUA8Hh+CqDx0eFd6i/s5 1tLGKD4h7SS8riaGdspEUIaZJxPK/RexNeRhG8lZL6sIYIgstHVn3XTCauhM7kA9V/Hn sZTw0x2WrM99OS+dT28+PDX2CdNcbNA3gNQWNs7stSgOEiAoWEHrjR0Yrswcuil7nPiu EOEWWAQ8KUZBZ+ERaW8USnRjs4t9yAeRzyTU5x3u9EtYtBgdBoWc2yiaTYpHOvC0ao9e UgWYyAwuwLzBpx3qhKH6DLloIrlDsNQZ4cx0xdTFwWDNm/EffXP9PseUkGh+kfZg7EH0 K0Ng== X-Gm-Message-State: ALQs6tDJlftdwaqTASVGFXT/7xorMoxJ3a9045GLlTkeFZuQNs4CgKF4 woz7/iFhhOXwwP3EwKTw/iwD X-Received: by 2002:a17:902:6c07:: with SMTP id q7-v6mr5838939plk.67.1523464892894; Wed, 11 Apr 2018 09:41:32 -0700 (PDT) Received: from localhost.localdomain ([2405:204:7003:60a7:ecd4:48:c695:bedb]) by smtp.gmail.com with ESMTPSA id r20sm4864554pff.165.2018.04.11.09.41.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Apr 2018 09:41:32 -0700 (PDT) From: Manivannan Sadhasivam To: afaerber@suse.de, robh+dt@kernel.org Cc: liuwei@actions-semi.com, mp-cs@actions-semi.com, 96boards@ucrobotics.com, devicetree@vger.kernel.org, daniel.thompson@linaro.org, amit.kucheria@linaro.org, hzhang@ucrobotics.com, bdong@ucrobotics.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, manivannanece23@gmail.com, Manivannan Sadhasivam Subject: [PATCH 1/4] dt-bindings: power: Add Actions Semi S900 SPS Date: Wed, 11 Apr 2018 22:10:33 +0530 Message-Id: <20180411164036.8046-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180411164036.8046-1-manivannan.sadhasivam@linaro.org> References: <20180411164036.8046-1-manivannan.sadhasivam@linaro.org> 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 S900 SoC Smart Power System (SPS). Signed-off-by: Manivannan Sadhasivam --- .../devicetree/bindings/power/actions,owl-sps.txt | 2 ++ include/dt-bindings/power/owl-s900-powergate.h | 23 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 include/dt-bindings/power/owl-s900-powergate.h diff --git a/Documentation/devicetree/bindings/power/actions,owl-sps.txt b/Documentation/devicetree/bindings/power/actions,owl-sps.txt index 78edd63641e8..a3571937b019 100644 --- a/Documentation/devicetree/bindings/power/actions,owl-sps.txt +++ b/Documentation/devicetree/bindings/power/actions,owl-sps.txt @@ -3,11 +3,13 @@ Actions Semi Owl Smart Power System (SPS) Required properties: - compatible : "actions,s500-sps" for S500 "actions,s700-sps" for S700 + "actions,s900-sps" for S900 - 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 + include/dt-bindings/power/owl-s900-powergate.h for S900 Example: diff --git a/include/dt-bindings/power/owl-s900-powergate.h b/include/dt-bindings/power/owl-s900-powergate.h new file mode 100644 index 000000000000..f1aaf761112b --- /dev/null +++ b/include/dt-bindings/power/owl-s900-powergate.h @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Actions Semi S900 SPS + * + * Copyright (c) 2018 Linaro Ltd. + */ +#ifndef DT_BINDINGS_POWER_OWL_S900_POWERGATE_H +#define DT_BINDINGS_POWER_OWL_S900_POWERGATE_H + +#define S900_PD_GPU_B 0 +#define S900_PD_VCE 1 +#define S900_PD_SENSOR 2 +#define S900_PD_VDE 3 +#define S900_PD_HDE 4 +#define S900_PD_USB3 5 +#define S900_PD_DDR0 6 +#define S900_PD_DDR1 7 +#define S900_PD_DE 8 +#define S900_PD_NAND 9 +#define S900_PD_USB2_H0 10 +#define S900_PD_USB2_H1 11 + +#endif -- 2.14.1