From patchwork Wed Jun 10 16:33:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= X-Patchwork-Id: 11598321 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BC6E61391 for ; Wed, 10 Jun 2020 16:34:43 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7D6692070B for ; Wed, 10 Jun 2020 16:34:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="N2Sx2gWh"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bZcNGl3V" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7D6692070B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iYRsYG1OFauEj+iJ95daL0X8gmT2Pmiyy4a/L7FiWCc=; b=N2Sx2gWhuSzWFR iSt8kaf1J4ZCz0qaPDgqGzbAwj8Qs5YK0JJ3kRDmFlaB1Pn2DAKkTbuKNujigx1DuwdEpw/HQw72M nAh4RU06GkI9yXO72FElbhLqfdh0l0+VeVq6xGnAgWSNRUZMUVM2j+BHDLN82hB35dIFYfFwp0TYE y8ZmyolCKBFIqemWVFteM7JRnlaZ0ylN1TQ7/7sl2ytDZXn1vxYl8C3Zok2Z9O1HTZkgFizRi7/fu MFVAMbFAsIG1Cre0dtyGbwziY5k6FnDawAXKfaexj5W7fq57LFsiGvPhJracHxxNEyPuB0R0hbdkX wZnauWIdumsjxcqkH0yw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jj3gR-0001XA-Nb; Wed, 10 Jun 2020 16:34:35 +0000 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jj3f5-0000IB-Bg for linux-arm-kernel@lists.infradead.org; Wed, 10 Jun 2020 16:33:12 +0000 Received: by mail-wr1-x42f.google.com with SMTP id r7so3026156wro.1 for ; Wed, 10 Jun 2020 09:33:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PdAC7nSmr9OcvsOrg8mrZI5Ne82Ui94dUn7AYElcx+A=; b=bZcNGl3VEEqJ3YNGmR+Nv9+88gyP4/H/paKxnh18Rrlj/66kxMouAyChn+kHPQONvc qd+Wi6/9zcUPBHINkgf8jukNJdL/2FTfdS4gBfiq9Q4d2vghjxyn4ZrYW2W5XSA0LjWI PfJzTLvNZC+Q0NVXAOxEz9oCubG+bF96wlnpAvCE3LA7tnc6uORuXVU4nkYczhxBJ9CY qK9zM/AJArWCULUocJeyfdf90WIk1r6wvbAjgiuBxW6PKFS9ugxRbBCvgI9UfguVnYX0 9BBVaQz5XuU81RtnAGeD1eEf9vTa1Iw1I0viJh7DY1fzCYTMjuaAGbA1StiMt33Gtcu+ xmkA== 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:mime-version:content-transfer-encoding; bh=PdAC7nSmr9OcvsOrg8mrZI5Ne82Ui94dUn7AYElcx+A=; b=OFmb+IuiDLJfNG2F2Q1pNWbKd3hguPqHoRNmVYTfnRWpxpuz+rfmrrWB/0xoyPnBR3 OLfHPPyhPgEzElXwhm0ynTrveerCO/1KAX11TpfbKkbCZAP7M70sOg0jlrEsUOiFBgTJ p2u0USC/WReBFTEccFlBw/DDqWCJ3GX/83tTuYeZfBGKsK2zVWpr/9jhj4bRQ69DZxK6 20XmQ8gpKGND5xbu1yobi8PwUr/Byvj3+XAqCTTPiyJxmOVKL3JSYw/EQk7r9giVgb5P BhsRUTxj1yKvS2DgGH+UshqJB21aqgLv0lffsTARTRJ27/lZmKvEel/7xMt/6ynB0Ifv NHYg== X-Gm-Message-State: AOAM531uKWyrW9IzT6FG+D7u+9tRu53JCbR9DSOll13g9hiX1IOLVp2o fNc667ZCG/DRKL9aM7s4dqg= X-Google-Smtp-Source: ABdhPJz4wCusR0P+cPejtgrMS05sa8pvJxH+wOk9udLYOQpH3KEq84gS9fl7rpb016xQy3I4DhRxLQ== X-Received: by 2002:adf:f988:: with SMTP id f8mr5035336wrr.81.1591806788834; Wed, 10 Jun 2020 09:33:08 -0700 (PDT) Received: from skynet.lan (28.red-83-49-61.dynamicip.rima-tde.net. [83.49.61.28]) by smtp.gmail.com with ESMTPSA id t7sm414430wrq.41.2020.06.10.09.33.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 09:33:08 -0700 (PDT) From: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= To: hauke@hauke-m.de, zajec5@gmail.com, tsbogend@alpha.franken.de, robh+dt@kernel.org, f.fainelli@gmail.com, jonas.gorski@gmail.com, bcm-kernel-feedback-list@broadcom.com, linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 5/6] mips: bmips: dts: add BCM63268 power domain support Date: Wed, 10 Jun 2020 18:33:00 +0200 Message-Id: <20200610163301.461160-6-noltari@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200610163301.461160-1-noltari@gmail.com> References: <20200609105244.4014823-1-noltari@gmail.com> <20200610163301.461160-1-noltari@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200610_093311_436258_AAB62366 X-CRM114-Status: GOOD ( 11.80 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:42f listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [noltari[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org BCM63268 SoCs have a power domain controller to enable/disable certain components in order to save power. Signed-off-by: Álvaro Fernández Rojas --- v2: Add support for BCM63268 too. arch/mips/boot/dts/brcm/bcm63268.dtsi | 6 ++++++ include/dt-bindings/soc/bcm63268-pm.h | 21 +++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 include/dt-bindings/soc/bcm63268-pm.h diff --git a/arch/mips/boot/dts/brcm/bcm63268.dtsi b/arch/mips/boot/dts/brcm/bcm63268.dtsi index beec24145af7..5acb49b61867 100644 --- a/arch/mips/boot/dts/brcm/bcm63268.dtsi +++ b/arch/mips/boot/dts/brcm/bcm63268.dtsi @@ -117,6 +117,12 @@ leds0: led-controller@10001900 { status = "disabled"; }; + periph_pwr: power-controller@1000184c { + compatible = "brcm,bcm6328-power-controller"; + reg = <0x1000184c 0x4>; + #power-domain-cells = <1>; + }; + ehci: usb@10002500 { compatible = "brcm,bcm63268-ehci", "generic-ehci"; reg = <0x10002500 0x100>; diff --git a/include/dt-bindings/soc/bcm63268-pm.h b/include/dt-bindings/soc/bcm63268-pm.h new file mode 100644 index 000000000000..84ded53a732f --- /dev/null +++ b/include/dt-bindings/soc/bcm63268-pm.h @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +#ifndef __DT_BINDINGS_BMIPS_BCM63268_PM_H +#define __DT_BINDINGS_BMIPS_BCM63268_PM_H + +#define BCM63268_POWER_DOMAIN_SAR 0 +#define BCM63268_POWER_DOMAIN_IPSEC 1 +#define BCM63268_POWER_DOMAIN_MIPS 2 +#define BCM63268_POWER_DOMAIN_DECT 3 +#define BCM63268_POWER_DOMAIN_USBH 4 +#define BCM63268_POWER_DOMAIN_USBD 5 +#define BCM63268_POWER_DOMAIN_ROBOSW 6 +#define BCM63268_POWER_DOMAIN_PCM 7 +#define BCM63268_POWER_DOMAIN_PERIPH 8 +#define BCM63268_POWER_DOMAIN_VDSL_PHY 9 +#define BCM63268_POWER_DOMAIN_VDSL_MIPS 10 +#define BCM63268_POWER_DOMAIN_FAP 11 +#define BCM63268_POWER_DOMAIN_PCIE 12 +#define BCM63268_POWER_DOMAIN_WLAN_PADS 13 + +#endif /* __DT_BINDINGS_BMIPS_BCM63268_PM_H */