From patchwork Wed Jun 10 17:16:22 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: 11598379 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 1E5AE90 for ; Wed, 10 Jun 2020 17:17:41 +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 ECDE82070B for ; Wed, 10 Jun 2020 17:17:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="FTVLcP60"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AWmOfhw9" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org ECDE82070B 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=XX7gRXv4F7oVYBe8qSXGOEzyJ+MqksMRNAm26Ket1cI=; b=FTVLcP60jX0dVj 9P1ZT3ZP0bjmVgzgkNET+jUkBw/5k8MnIeYW6LUNTVc8QzLAiEo3Rd+m/7/8VLCmaRQIyMwJgO+Od MFu5uEyw7ZJp7kRVjIaeq2A7pJSFTRexGyegr7BVfxkrTSg90C5IZPwBnBsLMSfoxL/giHC8AlbV8 9cKJfFhu+7Q7Rzjaq+CGOnzKuLTTXd1kjQe1Hihr1xkwYpPRseUHU5H640QJPI5uM1uXXnMMBF0em 6Dwmxkg3gBdDNMVCgpBWLdua8mIhJ6SxCiH1eaIgx4brV2GGeveFd5D+zqzsH/hXWJtWUrNRScJxN H9FJhTj+pz1YayNq68sg==; 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 1jj4M1-0006bt-Rj; Wed, 10 Jun 2020 17:17:33 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jj4L5-0005gH-Q1 for linux-arm-kernel@lists.infradead.org; Wed, 10 Jun 2020 17:16:37 +0000 Received: by mail-wm1-x32a.google.com with SMTP id l17so2561203wmj.0 for ; Wed, 10 Jun 2020 10:16:35 -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=Dc1Zbs/UvZLNdvEMBHUTsPwZekjiKQ0YRNWi77yGkVc=; b=AWmOfhw9HottV+Ca6INhRNzpFJ13Z0pf30XXXOn4PfH8i7+aVCXscF6PxrPNlwu6XT 5ZJBRYYYGAKWyr9jF9k5cptkXh3Oh0Uu7FLAvP1oWxYuyQCWHGRqEM9DcZPlCCptL6ww mV+DoJCobdHFO44kcZPscDRc2iZZd9UcSEpWWKUSmZ6QIC4e53buer2YW86arSA1ApMI NRQghwSlGBw1GPF2hWTB1VYOUUibLHORDnqeEI8PO6NA7l88g4AGBL3wtTrkxh6cZ7he EZ3xUlj3Q21INd5XtT+W9XSO9ZqWQTABAyM5riT9NgtMf4OW7xKswq0NzCmrrMIeFgqC 0xrw== 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=Dc1Zbs/UvZLNdvEMBHUTsPwZekjiKQ0YRNWi77yGkVc=; b=bdnhZvZBPrF6a4wB27xUZZkalFdfUfUjArvAk4mzwxVPufe9Ntd+Ot3taHQTlqOV0l JbMnGRg37CLqSuudMJmbOi19tbzM359xfGImJQtavWUz0aSeBvhj3PEkqwKTVRBrswwZ gxWjlqytYZVk+zY58ZydMoTdrHDk6KXnZesDEMva/J7OgPYLCniaMxqBKrG6wJEQGCf3 VfM5WuSy8DKorZgl/6gQjqbjj/UmWpp3fl99n7bREfLyYJx/mTmpalaeiHQRP531enGO llC7YDuz6t54m5IV9F7fVO130mzCBcnHdEUSap81VeRj+v7dijRVWc8PvDpV5aXAXcSz QT/w== X-Gm-Message-State: AOAM533lT/2Bxz7JXpDcybQ1fMi9CMSJnRw8Npw2kLZWUSPxwKKzbrnE gM7bUSvVJQ79c2+lc8a82xw= X-Google-Smtp-Source: ABdhPJycrzAMfB0vxrFxVvpOhXYMC0RMkbGEkRVDk5VK+mN1qbqi2WlqcF+cXXAyHgyqr3sURHoazg== X-Received: by 2002:a1c:4887:: with SMTP id v129mr3963166wma.184.1591809393675; Wed, 10 Jun 2020 10:16:33 -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 f11sm589048wrm.13.2020.06.10.10.16.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 10:16:33 -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 v3 1/9] dt-bindings: soc: brcm: add BCM63xx power domain binding Date: Wed, 10 Jun 2020 19:16:22 +0200 Message-Id: <20200610171630.465579-2-noltari@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200610171630.465579-1-noltari@gmail.com> References: <20200610163301.461160-1-noltari@gmail.com> <20200610171630.465579-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_101635_879991_015E9D92 X-CRM114-Status: GOOD ( 10.12 ) 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:32a 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 BCM6318, BCM6328, BCM6362 and BCM63268 SoCs have a power domain controller to enable/disable certain components in order to save power. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Florian Fainelli --- v3: fix reg maxItems and quote #power-domain-cells. v2: Add separate YAML file. .../bindings/soc/bcm/brcm,bcm63xx-power.yaml | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/bcm/brcm,bcm63xx-power.yaml diff --git a/Documentation/devicetree/bindings/soc/bcm/brcm,bcm63xx-power.yaml b/Documentation/devicetree/bindings/soc/bcm/brcm,bcm63xx-power.yaml new file mode 100644 index 000000000000..fd4204d9aaf6 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/bcm/brcm,bcm63xx-power.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/soc/brcm/brcm,bcm63xx-power.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: BCM63xx power domain driver + +maintainers: + - Álvaro Fernández Rojas + +description: | + BCM6318, BCM6328, BCM6362 and BCM63268 SoCs have a power domain controller + to enable/disable certain components in order to save power. + +properties: + compatible: + items: + - enum: + - brcm,bcm6318-power-controller + - brcm,bcm6328-power-controller + - brcm,bcm6362-power-controller + - brcm,bcm63268-power-controller + + reg: + maxItems: 2 + + "#power-domain-cells": + const: 1 + +required: + - compatible + - reg + - "#power-domain-cells" + +additionalProperties: false + +examples: + - | + periph_pwr: power-controller@10001848 { + compatible = "brcm,bcm6328-power-controller"; + reg = <0x10001848 0x4>; + #power-domain-cells = <1>; + }; From patchwork Wed Jun 10 17:16:23 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: 11598383 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 6F2B2912 for ; Wed, 10 Jun 2020 17:18:08 +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 49D122070B for ; Wed, 10 Jun 2020 17:18:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="NykLHt2y"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="S8ZQtrdK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 49D122070B 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=QbJJokNiuGLtHNjiGfYTc3QDsZoGjjDuUkKiSBgf/UA=; b=NykLHt2yMBUbwe IEPxP/9diXEChelpTrTUrFPI0pugQ78B9OuDhrzc8vktiqk4pOjaMN/kShTEeXZvA9bOR5fggiybZ 9ETwJKtnll5T+mfY9w5ugKmGFmC36T+dERYniJqfH/9HEM3kRbRc480eg/ql7PHWE2WwMZGrhF3mv VoYEFPsjUzIIxbzlv07jS6CbPyvJE0erype9Y3EJE/+EruZnm6v0YBUWyU8kFhMcTnoe7OcoVzXsa 0pHfWXcH4cGJvLzr6R6RFBmQKvWTLu6hc2mo1oIvNyZywIXlNTBeFA1J58fukvbkBWXIMuaUKOswv 7JZhan2bhhkzOTOuKpSA==; 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 1jj4MT-00073O-J0; Wed, 10 Jun 2020 17:18:01 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jj4L6-0005hK-SU for linux-arm-kernel@lists.infradead.org; Wed, 10 Jun 2020 17:16:39 +0000 Received: by mail-wr1-x442.google.com with SMTP id l11so3190248wru.0 for ; Wed, 10 Jun 2020 10:16:36 -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=i0mKAgNccMa2ZBBdbrYs78yyCyApQWezbV22kysTj+4=; b=S8ZQtrdKGhYX3L2Zf22Ow4awZjHpM4Kr++6M2lV76Fip7fynDjKe7uz9EaSjHTWIy/ +mKoYFWpbONpsoPJqFlTZM7TY0EAS0UB1mKWrWvOCM9tvFaMSVxTQElAJQDflbPupB9l Sbs5HAqjnXVjUANb1/ZHiWMO12/TtAEiJXtnKMpeUbDxm1dhPfPO0FNTgM2EqllGRMPi Si5yodapyvYHVe2/bOiaiP9hhxz85l8835Bdpf4MzXF9Y5iqMOeme5FsuUktBbg0O7pA 1vt+witBIwa8K0wq1TL9TyUCJzuuPBCSk5CjpAOYhUXE4Rf1pf523euUWa91izJSS11E JgKA== 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=i0mKAgNccMa2ZBBdbrYs78yyCyApQWezbV22kysTj+4=; b=AO2/ua+6oXh8jIka5sIMPqgDnuLRJgG6CrLdhkQd/HhM1lsc79o78sQDWRTkyeOfkI letpMQtSydoJtSxlTqnZw0TLyTJtkooHfJwyl/+PUM862H8LcyhoNRYDT5UBNuX50mW0 9M6VZ1MOzTKM0KXi54deZ9gkQgv1kUX77ezBwoUBZkuav9Gy9d7xAf5fq4ns035vOvE6 gs0tyyLChh8GjVXJpZ2ArRnoDKh6CLvfvc0i2GhTlVtOAL3Czhd2W4kQuBLwrd5B9QXA UhU+4sDE+NPgX3RHR1ZlKuTLG5/kmHc8GlBT0ce7x7LFchiWOo5kaCnK0OhAFvZnlhjp yaZQ== X-Gm-Message-State: AOAM530up9Sf3x0whO3+++6jTkUrKUSsFT/85aQjqBk9OMtn2WjIghEV yCLDIXc+pV7L/6KTEieVLvY= X-Google-Smtp-Source: ABdhPJzJ7qXk08Ze91v6soC5e7h24A+Rehyc86Q9DWOOtanBtdgbF2FKsrQugY1rykVEtwnV/dzsxQ== X-Received: by 2002:adf:f54c:: with SMTP id j12mr4738012wrp.369.1591809394898; Wed, 10 Jun 2020 10:16:34 -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 f11sm589048wrm.13.2020.06.10.10.16.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 10:16:34 -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 v3 2/9] mips: bmips: dts: add BCM6328 power domain definitions Date: Wed, 10 Jun 2020 19:16:23 +0200 Message-Id: <20200610171630.465579-3-noltari@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200610171630.465579-1-noltari@gmail.com> References: <20200610163301.461160-1-noltari@gmail.com> <20200610171630.465579-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_101636_923383_D22BFF4F X-CRM114-Status: UNSURE ( 9.74 ) X-CRM114-Notice: Please train this message. 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:442 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 BCM6328 SoCs have a power domain controller to enable/disable certain components in order to save power. Signed-off-by: Álvaro Fernández Rojas --- v3: Separate dt-bindings definitions from power domain .dtsi support. include/dt-bindings/soc/bcm6328-pm.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/dt-bindings/soc/bcm6328-pm.h diff --git a/include/dt-bindings/soc/bcm6328-pm.h b/include/dt-bindings/soc/bcm6328-pm.h new file mode 100644 index 000000000000..557e1a69b7f7 --- /dev/null +++ b/include/dt-bindings/soc/bcm6328-pm.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +#ifndef __DT_BINDINGS_BMIPS_BCM6328_PM_H +#define __DT_BINDINGS_BMIPS_BCM6328_PM_H + +#define BCM6328_POWER_DOMAIN_ADSL2_MIPS 0 +#define BCM6328_POWER_DOMAIN_ADSL2_PHY 1 +#define BCM6328_POWER_DOMAIN_ADSL2_AFE 2 +#define BCM6328_POWER_DOMAIN_SAR 3 +#define BCM6328_POWER_DOMAIN_PCM 4 +#define BCM6328_POWER_DOMAIN_USBD 5 +#define BCM6328_POWER_DOMAIN_USBH 6 +#define BCM6328_POWER_DOMAIN_PCIE 7 +#define BCM6328_POWER_DOMAIN_ROBOSW 8 +#define BCM6328_POWER_DOMAIN_EPHY 9 + +#endif /* __DT_BINDINGS_BMIPS_BCM6328_PM_H */ From patchwork Wed Jun 10 17:16:24 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: 11598381 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 EA97790 for ; Wed, 10 Jun 2020 17:17:46 +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 6B4CF2070B for ; Wed, 10 Jun 2020 17:17:46 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ejReiGsM"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="brLP8TzS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6B4CF2070B 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=a81k+3BpgkZ29cbZF+tNhegASScWTlbctD+l3L8X2Jg=; b=ejReiGsMwDfWTg h7bj7pyYqIbzwMLXlRnEYVV104kZOBCz+pwmine4P/HHq1eQ6zTlzXDNlJ8lxHSppmyFAvoBiTdWq mfoP+AgXZBgf42K4sR5XxknBqGCh27gKBw4Cig6Ze0/iHrLSTrPVtxiD717rldUjKg0RdAZ+UA9ZX 6Xfw10/gV1Axn8EAhrsDYu8EMswghXGBFItQTD/teQ9WtRnvZaf6TGZbphSKSBDqDWroVKpvffrOz m/gbi3tET1Hd00xG4J/K9PxttMaDFShIhst9Z48FApyhtg/+f0c83W280h3a3QH4iWr5KGJvhnPiF D65Q1Ba5lYVSdpJ6IqsA==; 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 1jj4MA-0006md-VM; Wed, 10 Jun 2020 17:17:42 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jj4L7-0005ip-BQ for linux-arm-kernel@lists.infradead.org; Wed, 10 Jun 2020 17:16:39 +0000 Received: by mail-wr1-x443.google.com with SMTP id l11so3190317wru.0 for ; Wed, 10 Jun 2020 10:16:37 -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=pZ9UANk+nZchs0IApRkeYxkybXjNTy9EcUcgSkrSGAo=; b=brLP8TzS+YCKpHhK48N7K/eL5bF4ui8zGe71EVKaIaSNEsE/Z4yq2ClHnMZjrKt6Ig ubArUhO8v4mBnH6AHI0pDofcn6n++r68GaxE/GxJSje3EvcRki3dKyqtiZtv371ZOPcc bgCkqKTxJsz/nCwXmU8OPI5GBeG4gtVW5Dahq1NRd8Ix6avCIi69wdRFz8rqzHZeqdJP 3JXFGzbJXz6qB6SxyZAjQNEXRGeT1szSBrqWQR24RqUohag9Q5Nq7FFytFerAGQCJwRU mPlph2plh8vD2IWtgoGpw4gxRhsw8fLlfbrSma5wyiAQyztwo4Y+ruAmJSIBkPiesWcN Em0Q== 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=pZ9UANk+nZchs0IApRkeYxkybXjNTy9EcUcgSkrSGAo=; b=jPlypddFccGHcUs0XXjdwNlgv+E9x+u1NfGGqB8GErnKspJoIbdsreKvFsf0P3hzF7 XHqwtFc+WTVg7HdapqD//h4XUQdPCByDzrvxxsVX4Xh/+ERHVPEfs8oefYQ5qGz7BDyo XPNUffCoznhpiX2cBu98R4BtApyFagF4NXJHBF8pdEPBTzu0wSwU+3aYRLEHEmntXwja aHDrEBcT3tq0OdOs79+gr3X/TgTq3iNRbgLxHKrQY1JVm+QVKvqEYXp1l1UPjGXYl4dm NJgP0FXuRfArOnMX64oNGaACFHanuFwnPBjpmGraG3OsFhnfPxkxAGdNw11JBFS2YAUE C2sA== X-Gm-Message-State: AOAM530lEdfa/VXLgIe2ZhZbL6Xf5j+6RndPe/fiIo7ZKEYPGC77QYH1 XU+ivOP3MpBFv5IMHF9qEbc= X-Google-Smtp-Source: ABdhPJx7TXMDE0x4q1tNS/lbVYNvY27QjJQI3cLcIsrX0fz+OC1zXQXw0Ho15UIXRiEctaOOIgW4gg== X-Received: by 2002:adf:ec03:: with SMTP id x3mr4849006wrn.297.1591809396050; Wed, 10 Jun 2020 10:16:36 -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 f11sm589048wrm.13.2020.06.10.10.16.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 10:16:35 -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 v3 3/9] mips: bmips: dts: add BCM6362 power domain definitions Date: Wed, 10 Jun 2020 19:16:24 +0200 Message-Id: <20200610171630.465579-4-noltari@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200610171630.465579-1-noltari@gmail.com> References: <20200610163301.461160-1-noltari@gmail.com> <20200610171630.465579-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_101637_397961_FF4A6487 X-CRM114-Status: UNSURE ( 9.71 ) X-CRM114-Notice: Please train this message. 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:443 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 BCM6362 SoCs have a power domain controller to enable/disable certain components in order to save power. Signed-off-by: Álvaro Fernández Rojas --- v3: Separate dt-bindings definitions from power domain .dtsi support. include/dt-bindings/soc/bcm6362-pm.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 include/dt-bindings/soc/bcm6362-pm.h diff --git a/include/dt-bindings/soc/bcm6362-pm.h b/include/dt-bindings/soc/bcm6362-pm.h new file mode 100644 index 000000000000..d087ba63c7a1 --- /dev/null +++ b/include/dt-bindings/soc/bcm6362-pm.h @@ -0,0 +1,21 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +#ifndef __DT_BINDINGS_BMIPS_BCM6362_PM_H +#define __DT_BINDINGS_BMIPS_BCM6362_PM_H + +#define BCM6362_POWER_DOMAIN_SAR 0 +#define BCM6362_POWER_DOMAIN_IPSEC 1 +#define BCM6362_POWER_DOMAIN_MIPS 2 +#define BCM6362_POWER_DOMAIN_DECT 3 +#define BCM6362_POWER_DOMAIN_USBH 4 +#define BCM6362_POWER_DOMAIN_USBD 5 +#define BCM6362_POWER_DOMAIN_ROBOSW 6 +#define BCM6362_POWER_DOMAIN_PCM 7 +#define BCM6362_POWER_DOMAIN_PERIPH 8 +#define BCM6362_POWER_DOMAIN_ADSL_PHY 9 +#define BCM6362_POWER_DOMAIN_GMII_PADS 10 +#define BCM6362_POWER_DOMAIN_FAP 11 +#define BCM6362_POWER_DOMAIN_PCIE 12 +#define BCM6362_POWER_DOMAIN_WLAN_PADS 13 + +#endif /* __DT_BINDINGS_BMIPS_BCM6362_PM_H */ From patchwork Wed Jun 10 17:16:25 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: 11598385 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 6D36B90 for ; Wed, 10 Jun 2020 17:18:23 +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 1BF372070B for ; Wed, 10 Jun 2020 17:18:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="AH48MBrM"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="siGfsk35" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1BF372070B 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=q+zVUa5+jTdwmy6fSpHwl3jzTe7Eqk+fSn1QRm2Ur0U=; b=AH48MBrMqEHeSs 1bGVIWCFCc/X2DOL6fHfZsJLGSQSVi5D0IhQXr/YM9yF8StPM7XbLm/sLAe/xNIdrMFjlnzvHff8t aWnJK2o7IcUQA4TAleeMYp1aO+osGthzfeDm2qA5GuPMWt3VgwQ+7N1mJH0WNf3Z6O49PzGIiksAu pgJ6n4SCDRKg2dikHTQwYf20Fq0eMpP/Ykr6B9brQQSLXxKqFTWyvGggrPEmt9RZAKU1u8DO9J6rJ SKAM5GIcncnQB7c8hQthDIgqhqcEWhaxVgrPvF6EmZ6b5JlEet5O6/iWuzbEqtn6ErcNpHOfLXFh1 uXarkHGqkATUV+Y7xoUQ==; 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 1jj4Ml-0007JC-4d; Wed, 10 Jun 2020 17:18:19 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jj4L8-0005k8-QA for linux-arm-kernel@lists.infradead.org; Wed, 10 Jun 2020 17:16:41 +0000 Received: by mail-wr1-x444.google.com with SMTP id t18so3168851wru.6 for ; Wed, 10 Jun 2020 10:16:38 -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=lDdshItlwdnmfzepKbPpmuAaIp6dKQ9DCj4M6A5UrdU=; b=siGfsk35lzH86e5aquAsfKSdN/8giMFuhHWJ0Tl1Gagq+AHLgUk+aadRSFgiSh8IxB cSMnQzcrmRLpy84clpq/vKIJTgHEvfPII7jNF0s4bPab0HFG6fsbJzERkJ56wCN2YCuj jVkqCD/qcj/9SqdSzSFO9FOOjVZ0ATVHs5ck8NbmyGX8ceB+7nN+Ln/xrdr06jBOED+o iDvtERms7ChgxKij4vxBIRua5fCGCoTpd0+h/RpML/AObNw7glMMHm1xN6wGw/F4HYiV uAFHQOGhPZL9t0pvHNM30US0mXUKC2j7dS/YUU21RaQU449mr7qdGRbjIl9NA6icRS1/ Uk5A== 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=lDdshItlwdnmfzepKbPpmuAaIp6dKQ9DCj4M6A5UrdU=; b=ShlEQpI3DQi4rFeYZLb35Ef3jke0RjnO22eZe+GwidrIzoW3ZzIWOfsnuXCoNkM73N jlzX3h+FWPXYxP8NFCzC8YUSXTOrCUr9KPblWBVArONYFRZP9RK7SzO8j8tDiQ4nSng9 J3WsYZXMZ5yaJQ1WPDvcSC21JW2xaF3VZvkWGAsx8Ucfi6tSfgmgU1NiqAKkrrT2HclF lyyO8PtmiuORMkwE73hBJpCD/RA3x3psPA2w4zh+GRGiHVBwwUP+fW6tEhZFKjmF0/Ig Ol+23u/hL/oSlW7CohDnIWCchHaUSSGqdkoCDb3cpWPSpyYaZw4Iz5+0+YhFYbaiBSvP FTDQ== X-Gm-Message-State: AOAM532xAe0Z084se0CUAk9DV/nK3QKZf9B7jL4B8eRcLzfyNcEbVtjX SdD2hagqmFyi4n57sB/RRQM= X-Google-Smtp-Source: ABdhPJx1djunj5L522CBpgGonhSBd3Wjpc1V0cz4pd18fakQ5y2c8wzX2CITkveZB2icsrf1vSIbyg== X-Received: by 2002:a5d:68c2:: with SMTP id p2mr4809378wrw.253.1591809397002; Wed, 10 Jun 2020 10:16:37 -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 f11sm589048wrm.13.2020.06.10.10.16.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 10:16:36 -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 v3 4/9] mips: bmips: dts: add BCM63268 power domain definitions Date: Wed, 10 Jun 2020 19:16:25 +0200 Message-Id: <20200610171630.465579-5-noltari@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200610171630.465579-1-noltari@gmail.com> References: <20200610163301.461160-1-noltari@gmail.com> <20200610171630.465579-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_101638_896543_01FBFEF8 X-CRM114-Status: UNSURE ( 9.71 ) X-CRM114-Notice: Please train this message. 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:444 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 --- v3: Separate dt-bindings definitions from power domain .dtsi support. include/dt-bindings/soc/bcm63268-pm.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 include/dt-bindings/soc/bcm63268-pm.h 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 */ From patchwork Wed Jun 10 17:16:26 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: 11598397 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 C413B14E3 for ; Wed, 10 Jun 2020 17:18: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 A19E52078C for ; Wed, 10 Jun 2020 17:18: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="sg47s8HO"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hHrcQOV7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A19E52078C 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=PHWiL+93Tb7ZaOEFrrpmF+HoIJPJY7QmxDhuLmqPxHs=; b=sg47s8HOPo8aG5 gC/hbRYURN8KQaxfE9kp9aFUJd7zRmECSGQcYOdqa411PAUrdpQrDVqn66njY0T3YQ2bVqI9smpcL rxi+kWKlelrgbtlc/fnuo+yXZ1uoXFJjkuUNGu+mIE69AgOnc6aUCGsahYUPDW3TaZqoYgLgixa/q Qr8MKr+MgnguNxdmsi80dcvB3gX1BErkrdZt6AI21HFBj4pBuBQpSrN7P5nF8D+im9TkP3Y7KR45W SzADCwr1ctjJwPhAwDBUqIFx4iacv429HE8V0kFB/lV2GXQv2bfCw1FkKQiUUz7D2HqKdTeki9s/S DPRkGGsgXxahqwFUgETQ==; 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 1jj4N1-0007W3-RV; Wed, 10 Jun 2020 17:18:35 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jj4LB-0005lE-1u for linux-arm-kernel@lists.infradead.org; Wed, 10 Jun 2020 17:16:43 +0000 Received: by mail-wr1-x42b.google.com with SMTP id l11so3190458wru.0 for ; Wed, 10 Jun 2020 10:16:39 -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=8qnrUTlruyZBfNINeLZXr9jcAeZ0GwM8qwMZYyF64O8=; b=hHrcQOV7s9ClQx7WJ82o5VJSvvzJkKtumIstTIIQXpH710Clhl4FTJz2S4mNdf3MWp j9zCDGIulHTU5v2fq6u1EyY5oc8CSVeXaW/FUQgM2kGCZ+ggehjij2KJP9GOSXE1l+71 jFtkDaudCxhpF8gqBi4s9CcuKI1LeCZTNrLTyT8sw6OcSmYlbRDyLqiGn4Ya9Fbb0M4f U2hBGt02wqXZt/+XVE7S6EvlXCmOyQx6tRi1YHCjVT+g1GJlOaJknFEeiuKYFmGOea9w N/SvikagMRBwV/5/uAWiQDeeEsx5OwNuOWycdaUXH4/7AorC9ZzAytcjM9W8WVTbDaDi eABQ== 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=8qnrUTlruyZBfNINeLZXr9jcAeZ0GwM8qwMZYyF64O8=; b=SwjQpfalBZC0sAgrJPZS50fInAnIUuVHs6z3H3I9v7s4Zhf6QvkqoJ+3F5G8qzLVCN UHeIQ8AspXE6fI6W7qIOd3RcBOR51jhoyRx3FwfIsStXMKALmWIsoMKXLtlCraksG7oK Fbe/ZOFUifswgWKAKBvZv7HHoCMZVhytNHK4ctitrV9P1DWih3USz6j1ZRvzN7u6//L4 UxA8otZGCe15Fb3G5pbye6AG22YmWGvg3lqDc8CwlPpzZaU/ME1RTrZuQI6uBcO1t/Di mjI4RajvTKuVKopiqX8AeF20J2170fF/bBm41VQwFL5e1ZiDEkQV7xjkgcLUPlGsVWGT +V7A== X-Gm-Message-State: AOAM531arz1AKy/vDdDTUOKfW3XEMSBL8/dbI0iXXqzYgaBupO27dWmi 7xDBfXZjS0Ny8vCl0I/qUfs= X-Google-Smtp-Source: ABdhPJy5yG42+jw2onyLnrDicb3xufPchQWsadng168yCu+nX18AQlQFTfWW1LAAWEeta6RWulAgkQ== X-Received: by 2002:adf:ef50:: with SMTP id c16mr4773543wrp.161.1591809397956; Wed, 10 Jun 2020 10:16:37 -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 f11sm589048wrm.13.2020.06.10.10.16.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 10:16:37 -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 v3 5/9] mips: bmips: add BCM6318 power domain definitions Date: Wed, 10 Jun 2020 19:16:26 +0200 Message-Id: <20200610171630.465579-6-noltari@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200610171630.465579-1-noltari@gmail.com> References: <20200610163301.461160-1-noltari@gmail.com> <20200610171630.465579-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_101641_131906_3453042B X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. 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:42b 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 BCM6318 SoCs have a power domain controller to enable/disable certain components in order to save power. Signed-off-by: Álvaro Fernández Rojas --- v3: no changes (patch reordered). v2: Add BCM6318 dt-bindings header file. include/dt-bindings/soc/bcm6318-pm.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 include/dt-bindings/soc/bcm6318-pm.h diff --git a/include/dt-bindings/soc/bcm6318-pm.h b/include/dt-bindings/soc/bcm6318-pm.h new file mode 100644 index 000000000000..05931dce8333 --- /dev/null +++ b/include/dt-bindings/soc/bcm6318-pm.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +#ifndef __DT_BINDINGS_BMIPS_BCM6318_PM_H +#define __DT_BINDINGS_BMIPS_BCM6318_PM_H + +#define BCM6318_POWER_DOMAIN_PCIE 0 +#define BCM6318_POWER_DOMAIN_USB 1 +#define BCM6318_POWER_DOMAIN_EPHY0 2 +#define BCM6318_POWER_DOMAIN_EPHY1 3 +#define BCM6318_POWER_DOMAIN_EPHY2 4 +#define BCM6318_POWER_DOMAIN_EPHY3 5 +#define BCM6318_POWER_DOMAIN_LDO2P5 6 +#define BCM6318_POWER_DOMAIN_LDO2P9 7 +#define BCM6318_POWER_DOMAIN_SW1P0 8 +#define BCM6318_POWER_DOMAIN_PAD 9 + +#endif /* __DT_BINDINGS_BMIPS_BCM6318_PM_H */ From patchwork Wed Jun 10 17:16:27 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: 11598407 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 A202714E3 for ; Wed, 10 Jun 2020 17:18:58 +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 510E720812 for ; Wed, 10 Jun 2020 17:18:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="EkDiVkr/"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Ockfq1Gs" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 510E720812 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=I6NwDL+R9Cunk0gcB2Fpb2CMV0xVhCvY0MMhCM6DTiY=; b=EkDiVkr/f6IWg0 ON2mDP5Fc7k+1YH7ygsPMYJ2JckuufKDk7X2gWhqxl2fyy8ePgd4EuGayPGVJFt0YrsIxXl+nT/vJ qZznr+JOUEyt4OsKDk3MRSpUXohahXEB6lfuO8h2JhVpwGC1z4A6sMNzXHTa6Khls0PM+KFSo/Gb6 508KWhc3wPcuIH2hiOKpC9UDwabguZ5cvxK2vz60InJw4ATeooFe5MHF6nDIiwpIX2fPxlfkw5PXx 9SFdQQcs/wHPaOI5qq1V6gpj74b5RYMAEQSc07+flSGORqXjxoVW1X/X7p67eWa7XfPJs2VfWCSpz ehRZ5PxISQoTy687iklA==; 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 1jj4NM-0007rO-Mb; Wed, 10 Jun 2020 17:18:56 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jj4LB-0005mI-K4 for linux-arm-kernel@lists.infradead.org; Wed, 10 Jun 2020 17:16:45 +0000 Received: by mail-wr1-x442.google.com with SMTP id p5so3149387wrw.9 for ; Wed, 10 Jun 2020 10:16:40 -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=Cd+yLg5g7GZCMBXFToUqfRJ1Udmj1HQHyRsuOZDrCI4=; b=Ockfq1GsO2c1O7Zz/abUDIxPV/h1r+b5iE3QrwxL6fvKM3qbxfypsmOYxYP0svXJDT CknBZrEV7nVVM/h/6e3ErgzTMSBXpZ3z3wqvJP1Ftdg2kVgQFS5jOUN9DX4VG3UOxT2V gyYcRf/Gz1T6iew/dFRJPYwVzJiwmM6+/8LNx0Y0zgjWeGgZSD9tFVsGZv9USg+izHL/ 9MpRKQVBtcol5ViXCtG5cScXpkfs727YSMJbscQxX96WVw2YxS7NzXecAMbwBeASpdcS mgbDkiC2+dBhS7m/I0HuxvaUgmaxkpog0cQPuJ1WCGy5TYISA351/xuSf0tTBN/h7rT9 QHIQ== 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=Cd+yLg5g7GZCMBXFToUqfRJ1Udmj1HQHyRsuOZDrCI4=; b=L3GhObCIfUxhHnKGEY4Fylq4qCB3pfM6sxa/9b5lwrw1NjAIJ7hxORLYV4Idx0uQHq 0e9kQwAjlfiu8dmvY2ufRpeuWIMEa1Et0haqgdJV8ZIF+/GuK9VOzwJGFWaridIVfvV/ cdWdbNhHpghDh8c38OtcBfPyQH0ScSs8muIqUDiZvVqesUt14jbOA7zJaR9/YSIKAIY9 Uz0ImJGCC7KLxEB4dM1d64GCyfwGanrdjqMdOoiJzPHXqz4Jp+s6x/Lld6JGsZ7ag8Je i9z9kDFakuJ8CUa2j4HUuYkWM6REV8SyvArWID2nOkwCv/NgF1Prtt8v/amB0PS92wxZ 5hQw== X-Gm-Message-State: AOAM530K+5cBjlrjUb5XYgi1gkMiEQ9aSkv2weGiwljljnMGF3eOLvlX 208Lna7YZ+BzbZ9CodAAiLpqMMweIsg= X-Google-Smtp-Source: ABdhPJw9np+QeDblP3jHRs/QzGg/S1hOySO8j1KJj4qqPfF/zXN1g9EFirWdjkDmu4O7pXPf4HuNpQ== X-Received: by 2002:adf:f58b:: with SMTP id f11mr4864592wro.155.1591809398983; Wed, 10 Jun 2020 10:16:38 -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 f11sm589048wrm.13.2020.06.10.10.16.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 10:16:38 -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 v3 6/9] soc: bcm: add BCM63xx power domain driver Date: Wed, 10 Jun 2020 19:16:27 +0200 Message-Id: <20200610171630.465579-7-noltari@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200610171630.465579-1-noltari@gmail.com> References: <20200610163301.461160-1-noltari@gmail.com> <20200610171630.465579-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_101642_139808_F3A713B4 X-CRM114-Status: GOOD ( 16.88 ) 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:442 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 BCM6318, BCM6328, BCM6362 and BCM63268 SoCs have a power domain controller to enable/disable certain components in order to save power. Signed-off-by: Álvaro Fernández Rojas --- v3: Use dt-bindings definitions in power domain driver. v2: Introduce bcm63xx folder in drivers/soc/bcm and update MAINTAINERS. MAINTAINERS | 1 + drivers/soc/bcm/Kconfig | 10 + drivers/soc/bcm/Makefile | 1 + drivers/soc/bcm/bcm63xx/Kconfig | 12 + drivers/soc/bcm/bcm63xx/Makefile | 2 + drivers/soc/bcm/bcm63xx/bcm63xx-power.c | 378 ++++++++++++++++++++++++ 6 files changed, 404 insertions(+) create mode 100644 drivers/soc/bcm/bcm63xx/Kconfig create mode 100644 drivers/soc/bcm/bcm63xx/Makefile create mode 100644 drivers/soc/bcm/bcm63xx/bcm63xx-power.c diff --git a/MAINTAINERS b/MAINTAINERS index 77a3fa5e3edd..e9ba7b955d5f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3442,6 +3442,7 @@ F: arch/mips/bmips/* F: arch/mips/boot/dts/brcm/bcm*.dts* F: arch/mips/include/asm/mach-bmips/* F: arch/mips/kernel/*bmips* +F: drivers/soc/bcm/bcm63xx F: drivers/irqchip/irq-bcm63* F: drivers/irqchip/irq-bcm7* F: drivers/irqchip/irq-brcmstb* diff --git a/drivers/soc/bcm/Kconfig b/drivers/soc/bcm/Kconfig index 648e32693b7e..24f92a6e882a 100644 --- a/drivers/soc/bcm/Kconfig +++ b/drivers/soc/bcm/Kconfig @@ -22,6 +22,15 @@ config RASPBERRYPI_POWER This enables support for the RPi power domains which can be enabled or disabled via the RPi firmware. +config SOC_BCM63XX + bool "Broadcom 63xx SoC drivers" + depends on BMIPS_GENERIC || COMPILE_TEST + help + Enables drivers for the Broadcom 63xx series of chips. + Drivers can be enabled individually within this menu. + + If unsure, say N. + config SOC_BRCMSTB bool "Broadcom STB SoC drivers" depends on ARM || ARM64 || BMIPS_GENERIC || COMPILE_TEST @@ -33,6 +42,7 @@ config SOC_BRCMSTB If unsure, say N. +source "drivers/soc/bcm/bcm63xx/Kconfig" source "drivers/soc/bcm/brcmstb/Kconfig" endmenu diff --git a/drivers/soc/bcm/Makefile b/drivers/soc/bcm/Makefile index d92268a829a9..7bc90e0bd773 100644 --- a/drivers/soc/bcm/Makefile +++ b/drivers/soc/bcm/Makefile @@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-2.0-only obj-$(CONFIG_BCM2835_POWER) += bcm2835-power.o obj-$(CONFIG_RASPBERRYPI_POWER) += raspberrypi-power.o +obj-$(CONFIG_SOC_BCM63XX) += bcm63xx/ obj-$(CONFIG_SOC_BRCMSTB) += brcmstb/ diff --git a/drivers/soc/bcm/bcm63xx/Kconfig b/drivers/soc/bcm/bcm63xx/Kconfig new file mode 100644 index 000000000000..16f648a6c70a --- /dev/null +++ b/drivers/soc/bcm/bcm63xx/Kconfig @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0-only +if SOC_BCM63XX + +config BCM63XX_POWER + bool "BCM63xx power domain driver" + depends on BMIPS_GENERIC || (COMPILE_TEST && OF) + select PM_GENERIC_DOMAINS if PM + help + This enables support for the BCM63xx power domains controller on + BCM6318, BCM6328, BCM6362 and BCM63268 SoCs. + +endif # SOC_BCM63XX diff --git a/drivers/soc/bcm/bcm63xx/Makefile b/drivers/soc/bcm/bcm63xx/Makefile new file mode 100644 index 000000000000..0710d5e018cc --- /dev/null +++ b/drivers/soc/bcm/bcm63xx/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0-only +obj-$(CONFIG_BCM63XX_POWER) += bcm63xx-power.o diff --git a/drivers/soc/bcm/bcm63xx/bcm63xx-power.c b/drivers/soc/bcm/bcm63xx/bcm63xx-power.c new file mode 100644 index 000000000000..515fe182dc34 --- /dev/null +++ b/drivers/soc/bcm/bcm63xx/bcm63xx-power.c @@ -0,0 +1,378 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * BCM63xx Power Domain Controller Driver + * + * Copyright (C) 2020 Álvaro Fernández Rojas + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +struct bcm63xx_power_dev { + struct generic_pm_domain genpd; + struct bcm63xx_power *power; + uint32_t mask; +}; + +struct bcm63xx_power { + void __iomem *base; + spinlock_t lock; + struct bcm63xx_power_dev *dev; + struct genpd_onecell_data genpd_data; + struct generic_pm_domain **genpd; +}; + +struct bcm63xx_power_data { + const char * const name; + uint8_t bit; + unsigned int flags; +}; + +static int bcm63xx_power_get_state(struct bcm63xx_power_dev *pmd, bool *is_on) +{ + struct bcm63xx_power *power = pmd->power; + + if (!pmd->mask) { + *is_on = false; + return -EINVAL; + } + + *is_on = !(__raw_readl(power->base) & pmd->mask); + + return 0; +} + +static int bcm63xx_power_set_state(struct bcm63xx_power_dev *pmd, bool on) +{ + struct bcm63xx_power *power = pmd->power; + unsigned long flags; + uint32_t val; + + if (!pmd->mask) + return -EINVAL; + + spin_lock_irqsave(&power->lock, flags); + val = __raw_readl(power->base); + if (on) + val &= ~pmd->mask; + else + val |= pmd->mask; + __raw_writel(val, power->base); + spin_unlock_irqrestore(&power->lock, flags); + + return 0; +} + +static int bcm63xx_power_on(struct generic_pm_domain *genpd) +{ + struct bcm63xx_power_dev *pmd = container_of(genpd, + struct bcm63xx_power_dev, genpd); + + return bcm63xx_power_set_state(pmd, true); +} + +static int bcm63xx_power_off(struct generic_pm_domain *genpd) +{ + struct bcm63xx_power_dev *pmd = container_of(genpd, + struct bcm63xx_power_dev, genpd); + + return bcm63xx_power_set_state(pmd, false); +} + +static int bcm63xx_power_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + struct device_node *np = dev->of_node; + struct resource *res; + const struct bcm63xx_power_data *entry, *table; + struct bcm63xx_power *power; + unsigned int ndom; + uint8_t max_bit = 0; + int ret; + + power = devm_kzalloc(dev, sizeof(*power), GFP_KERNEL); + if (!power) + return -ENOMEM; + + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); + power->base = devm_ioremap_resource(&pdev->dev, res); + if (IS_ERR(power->base)) + return PTR_ERR(power->base); + + table = of_device_get_match_data(dev); + if (!table) + return -EINVAL; + + power->genpd_data.num_domains = 0; + ndom = 0; + for (entry = table; entry->name; entry++) { + max_bit = max(max_bit, entry->bit); + ndom++; + } + + if (!ndom) + return -ENODEV; + + power->genpd_data.num_domains = max_bit + 1; + + power->dev = devm_kcalloc(dev, power->genpd_data.num_domains, + sizeof(struct bcm63xx_power_dev), + GFP_KERNEL); + if (!power->dev) + return -ENOMEM; + + power->genpd = devm_kcalloc(dev, power->genpd_data.num_domains, + sizeof(struct generic_pm_domain *), + GFP_KERNEL); + if (!power->genpd) + return -ENOMEM; + + power->genpd_data.domains = power->genpd; + + ndom = 0; + for (entry = table; entry->name; entry++) { + struct bcm63xx_power_dev *pmd = &power->dev[ndom]; + bool is_on; + + pmd->power = power; + pmd->mask = BIT(entry->bit); + pmd->genpd.name = entry->name; + pmd->genpd.flags = entry->flags; + + ret = bcm63xx_power_get_state(pmd, &is_on); + if (ret) + dev_warn(dev, "unable to get current state for %s\n", + pmd->genpd.name); + + pmd->genpd.power_on = bcm63xx_power_on; + pmd->genpd.power_off = bcm63xx_power_off; + + pm_genpd_init(&pmd->genpd, NULL, !is_on); + power->genpd[entry->bit] = &pmd->genpd; + + ndom++; + } + + spin_lock_init(&power->lock); + + ret = of_genpd_add_provider_onecell(np, &power->genpd_data); + if (ret) { + dev_err(dev, "failed to register genpd driver: %d\n", ret); + return ret; + } + + dev_info(dev, "registered %u power domains\n", ndom); + + return 0; +} + +static const struct bcm63xx_power_data bcm6318_power_domains[] = { + { + .name = "pcie", + .bit = BCM6318_POWER_DOMAIN_PCIE, + }, { + .name = "usb", + .bit = BCM6318_POWER_DOMAIN_USB, + }, { + .name = "ephy0", + .bit = BCM6318_POWER_DOMAIN_EPHY0, + }, { + .name = "ephy1", + .bit = BCM6318_POWER_DOMAIN_EPHY1, + }, { + .name = "ephy2", + .bit = BCM6318_POWER_DOMAIN_EPHY2, + }, { + .name = "ephy3", + .bit = BCM6318_POWER_DOMAIN_EPHY3, + }, { + .name = "ldo2p5", + .bit = BCM6318_POWER_DOMAIN_LDO2P5, + .flags = GENPD_FLAG_ALWAYS_ON, + }, { + .name = "ldo2p9", + .bit = BCM6318_POWER_DOMAIN_LDO2P9, + .flags = GENPD_FLAG_ALWAYS_ON, + }, { + .name = "sw1p0", + .bit = BCM6318_POWER_DOMAIN_SW1P0, + .flags = GENPD_FLAG_ALWAYS_ON, + }, { + .name = "pad", + .bit = BCM6318_POWER_DOMAIN_PAD, + .flags = GENPD_FLAG_ALWAYS_ON, + }, { + /* sentinel */ + }, +}; + +static const struct bcm63xx_power_data bcm6328_power_domains[] = { + { + .name = "adsl2-mips", + .bit = BCM6328_POWER_DOMAIN_ADSL2_MIPS, + }, { + .name = "adsl2-phy", + .bit = BCM6328_POWER_DOMAIN_ADSL2_PHY, + }, { + .name = "adsl2-afe", + .bit = BCM6328_POWER_DOMAIN_ADSL2_AFE, + }, { + .name = "sar", + .bit = BCM6328_POWER_DOMAIN_SAR, + }, { + .name = "pcm", + .bit = BCM6328_POWER_DOMAIN_PCM, + }, { + .name = "usbd", + .bit = BCM6328_POWER_DOMAIN_USBD, + }, { + .name = "usbh", + .bit = BCM6328_POWER_DOMAIN_USBH, + }, { + .name = "pcie", + .bit = BCM6328_POWER_DOMAIN_PCIE, + }, { + .name = "robosw", + .bit = BCM6328_POWER_DOMAIN_ROBOSW, + }, { + .name = "ephy", + .bit = BCM6328_POWER_DOMAIN_EPHY, + }, { + /* sentinel */ + }, +}; + +static const struct bcm63xx_power_data bcm6362_power_domains[] = { + { + .name = "sar", + .bit = BCM6362_POWER_DOMAIN_SAR, + }, { + .name = "ipsec", + .bit = BCM6362_POWER_DOMAIN_IPSEC, + }, { + .name = "mips", + .bit = BCM6362_POWER_DOMAIN_MIPS, + .flags = GENPD_FLAG_ALWAYS_ON, + }, { + .name = "dect", + .bit = BCM6362_POWER_DOMAIN_DECT, + }, { + .name = "usbh", + .bit = BCM6362_POWER_DOMAIN_USBH, + }, { + .name = "usbd", + .bit = BCM6362_POWER_DOMAIN_USBD, + }, { + .name = "robosw", + .bit = BCM6362_POWER_DOMAIN_ROBOSW, + }, { + .name = "pcm", + .bit = BCM6362_POWER_DOMAIN_PCM, + }, { + .name = "periph", + .bit = BCM6362_POWER_DOMAIN_PERIPH, + .flags = GENPD_FLAG_ALWAYS_ON, + }, { + .name = "adsl-phy", + .bit = BCM6362_POWER_DOMAIN_ADSL_PHY, + }, { + .name = "gmii-pads", + .bit = BCM6362_POWER_DOMAIN_GMII_PADS, + }, { + .name = "fap", + .bit = BCM6362_POWER_DOMAIN_FAP, + }, { + .name = "pcie", + .bit = BCM6362_POWER_DOMAIN_PCIE, + }, { + .name = "wlan-pads", + .bit = BCM6362_POWER_DOMAIN_WLAN_PADS, + }, { + /* sentinel */ + }, +}; + +static const struct bcm63xx_power_data bcm63268_power_domains[] = { + { + .name = "sar", + .bit = BCM63268_POWER_DOMAIN_SAR, + }, { + .name = "ipsec", + .bit = BCM63268_POWER_DOMAIN_IPSEC, + }, { + .name = "mips", + .bit = BCM63268_POWER_DOMAIN_MIPS, + .flags = GENPD_FLAG_ALWAYS_ON, + }, { + .name = "dect", + .bit = BCM63268_POWER_DOMAIN_DECT, + }, { + .name = "usbh", + .bit = BCM63268_POWER_DOMAIN_USBH, + }, { + .name = "usbd", + .bit = BCM63268_POWER_DOMAIN_USBD, + }, { + .name = "robosw", + .bit = BCM63268_POWER_DOMAIN_ROBOSW, + }, { + .name = "pcm", + .bit = BCM63268_POWER_DOMAIN_PCM, + }, { + .name = "periph", + .bit = BCM63268_POWER_DOMAIN_PERIPH, + .flags = GENPD_FLAG_ALWAYS_ON, + }, { + .name = "vdsl-phy", + .bit = BCM63268_POWER_DOMAIN_VDSL_PHY, + }, { + .name = "vdsl-mips", + .bit = BCM63268_POWER_DOMAIN_VDSL_MIPS, + }, { + .name = "fap", + .bit = BCM63268_POWER_DOMAIN_FAP, + }, { + .name = "pcie", + .bit = BCM63268_POWER_DOMAIN_PCIE, + }, { + .name = "wlan-pads", + .bit = BCM63268_POWER_DOMAIN_WLAN_PADS, + }, { + /* sentinel */ + }, +}; + +static const struct of_device_id bcm63xx_power_of_match[] = { + { + .compatible = "brcm,bcm6318-power-controller", + .data = &bcm6318_power_domains, + }, { + .compatible = "brcm,bcm6328-power-controller", + .data = &bcm6328_power_domains, + }, { + .compatible = "brcm,bcm6362-power-controller", + .data = &bcm6362_power_domains, + }, { + .compatible = "brcm,bcm63268-power-controller", + .data = &bcm63268_power_domains, + }, { + /* sentinel */ + } +}; + +static struct platform_driver bcm63xx_power_driver = { + .driver = { + .name = "bcm63xx-power-controller", + .of_match_table = bcm63xx_power_of_match, + }, + .probe = bcm63xx_power_probe, +}; +builtin_platform_driver(bcm63xx_power_driver); From patchwork Wed Jun 10 17:16:28 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: 11598419 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 66D43912 for ; Wed, 10 Jun 2020 17:19:38 +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 0EC022070B for ; Wed, 10 Jun 2020 17:19:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="l3QJ6dME"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="l+nK1UHj" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0EC022070B 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=oo3VLamV5HHz8FeYwDiPrOpeIuXlmQrtl6Pru3SuYlo=; b=l3QJ6dMELRMCS6 TBxSjppwTc2LV1CO1Jl55kFIvyosdhpQ9B3A8TYU8Fqp6px21rUPqRpn/xG9ZNDYT+NqaDo8PGTNv 5YI1M4tcNfvsqMEjoZtN7btxHwVxIUFviDiPS4cmPON5JFItuQKt5rKewFM0UPwlxwAMSP/WliD91 oBA2uC5l6GCmUxQz3oqw6PxJTVyrdFwSaVJkXT7F0RKM9X3tKWgGgvXEYP1YZR8JRdI4se5ox0+CO ZxMBOmAR35Ueg5lv5qjU1KhweiYjkPaIb+tMItn+HjLJQDU5qb5G43rdm9WDLPUaVe/EzSkbbhn/E xmQzTSPtCnCTlS+qX1rQ==; 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 1jj4O1-000056-30; Wed, 10 Jun 2020 17:19:37 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jj4LC-0005nE-Ct for linux-arm-kernel@lists.infradead.org; Wed, 10 Jun 2020 17:16:46 +0000 Received: by mail-wr1-x443.google.com with SMTP id t18so3169101wru.6 for ; Wed, 10 Jun 2020 10:16:42 -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=ufahVb650w9qsCrH1Cbf/slHCvCwJwLo7tVzV2USitA=; b=l+nK1UHjzB69FNVE+oP3RRR5YWelnjeKlAXrIBKOzhCz5TUvwa3LtqFS8o2zuiufw/ 0mYvXmy7lYL8YCoqmDMZA3OberG5ISZzusL1aIVgz2y3qX493weN/bds88e7DcsuQ56c Effdw3cpOAzU/PApjE2DyMlSmIcUaWlZRccwok3cX9xuclJQmo99xJngBphqBL+YZHOi EikWk2YO4hKeu3SFbfYWz69HCqd8eIhKRCZfnZIohmBapa+h7ZD6Vjw1O5xIHxIFgtpH lwgQ1ESCpkn+6wgtwr/S1kw/IaC5HOEpzzzMFmInSSUz92YGPRXQrRWfJbX1pgT4ucKQ lNKg== 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=ufahVb650w9qsCrH1Cbf/slHCvCwJwLo7tVzV2USitA=; b=VzTuTtcIqL/I7TqgWaK8iy2IIOe03LRt1t/aZUzkkHAiNpwdOl09YtP4e/bKiW2kC8 Ao2TD7vEI8FgEhSaxyEITjDjxO3V6ceXdj2HNaBR7Y8lcMRumiCedzYDmJGFZxOCdRG2 I16sMfqnqeTd7kqmcd+biBmMM0PQAhc8QwtzmbKcI6gDmyNpCm8ZdcvKX3WByJB4rzIv lx0ZngYouxP61xIcSpguNnp/2DZB5IlZIp6fluzW3Kez7X6IFKoToaepXCpuzAMcqpbW 4dIqjxcgwo1A/ZX5tWM416qvoYRmPPIi6370Puhsuy6TKZ2yBrO+TmOfTwdHgU8eJYgn lFAg== X-Gm-Message-State: AOAM532SHHWLfqgF88rG9UsVz+bzyCmGSMGk/QfGYrkRovNWTvb2Rnnu iZkJkkPx2BUxY1SaP6tiVrGLyWtUVjU= X-Google-Smtp-Source: ABdhPJwEtna7aixJMCKiZdjMiIc1fb6fCfZ/dWM+7OhcJR8NgfA97VJUrOJm8XvzFU8v2Gb2X30fwA== X-Received: by 2002:a5d:4701:: with SMTP id y1mr4802365wrq.310.1591809399858; Wed, 10 Jun 2020 10:16:39 -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 f11sm589048wrm.13.2020.06.10.10.16.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 10:16:39 -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 v3 7/9] mips: bmips: dts: add BCM6328 power domain support Date: Wed, 10 Jun 2020 19:16:28 +0200 Message-Id: <20200610171630.465579-8-noltari@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200610171630.465579-1-noltari@gmail.com> References: <20200610163301.461160-1-noltari@gmail.com> <20200610171630.465579-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_101642_505279_CBDAE97B X-CRM114-Status: UNSURE ( 8.98 ) X-CRM114-Notice: Please train this message. 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:443 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 BCM6328 SoCs have a power domain controller to enable/disable certain components in order to save power. Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli --- v3: Separate dt-bindings definitions from power domain .dtsi support. v2: Add dt-bindings header files. arch/mips/boot/dts/brcm/bcm6328.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/boot/dts/brcm/bcm6328.dtsi b/arch/mips/boot/dts/brcm/bcm6328.dtsi index af860d06def6..1f9edd710392 100644 --- a/arch/mips/boot/dts/brcm/bcm6328.dtsi +++ b/arch/mips/boot/dts/brcm/bcm6328.dtsi @@ -110,6 +110,12 @@ leds0: led-controller@10000800 { status = "disabled"; }; + periph_pwr: power-controller@10001848 { + compatible = "brcm,bcm6328-power-controller"; + reg = <0x10001848 0x4>; + #power-domain-cells = <1>; + }; + ehci: usb@10002500 { compatible = "brcm,bcm6328-ehci", "generic-ehci"; reg = <0x10002500 0x100>; From patchwork Wed Jun 10 17:16:29 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: 11598421 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 A23C2912 for ; Wed, 10 Jun 2020 17:19:57 +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 7F0142070B for ; Wed, 10 Jun 2020 17:19:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="E8foMz3L"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="qPqpqjpw" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7F0142070B 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=xKfPwmMqPz/yIErmQxU8qDhyV7qcw7tl1vldYH3NS3Q=; b=E8foMz3LLgeINx sNkxaEpDjJbf7KKfpUc8AVfT/8QsdJ5YVqy7usn8UoZJICQCrZUNGElw7Rp6h7c4HUdkxjwi3CEQM QrDUfg+8/5JK2K/kMD1wtCKRosZwK6XTrGotExrY0xNb8LZgpSqgoOJnJXHxhZbm1GPJXtN2iH0Tk eI3IPSckh6BxyfKVfGR+K/p5ldGdJ1l/6zIA1pIBNr/sfnoTNFzTicDQWYiBDYB5HPFqv5MJSmT74 0/h9RGRSH4H+p/wlj16WpXtBJYmrQ1QT+fU5JGdxYdQpzsWMLUMnSxyvmxnrJyYBsBxtLmyeeRvhf zb9ZmxJ3x6mR/gggRORg==; 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 1jj4OH-0000IQ-1L; Wed, 10 Jun 2020 17:19:53 +0000 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jj4LD-0005nt-U6 for linux-arm-kernel@lists.infradead.org; Wed, 10 Jun 2020 17:16:48 +0000 Received: by mail-wm1-x32b.google.com with SMTP id c71so2540273wmd.5 for ; Wed, 10 Jun 2020 10:16:43 -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=oc6ktgX8Hx1cWwHwmmgN5zr23tPp1hphnIShDzaEIqk=; b=qPqpqjpwymwsSlaFodOqNxT4Me6+jFBmt076xKMY/4iuuaF0KJTs7ieHgBbwSXL7BX 3nYH2YZgmIRxUCOMwmDRHqRCdN7ev44cx7oGBnYEbCXvamvgB3NY1kRo+vzKsVVu0SKP g11sAu9eG72SWh8HmeM6CNikd7GBSNtxsdCRyzXKAiYcjph841BuRQGpfEpMn4D8Clu7 fri4IlKiulgfZcwUrat6iIpEiY0+KeggpDTvzsjEjXlVKd1pB2ORX/0/Rt4Wj6IfumpZ 4RBf2UIVTbDrI3BREwYcP/hZtEPi9ZMrCIuV1mZPcyNpE/o4KNtXa5NJrHID9Bzl0BC4 w9PA== 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=oc6ktgX8Hx1cWwHwmmgN5zr23tPp1hphnIShDzaEIqk=; b=F3GeAUgIKHqNRXB/v0cAxNPt705f2MyvDvGqrwAkiPV87ji/wwM9kz6x0R203a5aYS tq5DtqmHvX7Nflu03ju6/W/j+l49bTUmJAcI67J/U3sH/LMzt5O94BxyJ3areyaklX// k2EHtobFivsJBXJm+Xl6j/2GNDDItBUOwnpX6amgNhZqQdQhgD/9S4JBuITzyEuFqWPT fWBbGWd1FNWH03l6K2eAYnO3XV28TiiHo1isW6QIliYKWOso2N5g3rYCZfRHXyAmimhb YoNRpD1NbyQrLlGzDaLQtlXVPM/+cnewysbt1SMyT6JMzbBKx0SVFJyy70QNpMAzZBqE jolw== X-Gm-Message-State: AOAM530Y54bjNTO2K48qZiMpUUyq6cXB8ZEmOl0lbInqp7GDvVlYMdfb bCskNm37AgcYbKZ09iT5sXkiptFO9EI= X-Google-Smtp-Source: ABdhPJwoK+sQLQLvaRBB8r+8Dnj8Y2TUrOsYyjhQNtsLGboeqdhyorDA8qIpo74xVSkAPSfqe6+IQQ== X-Received: by 2002:a7b:c5c7:: with SMTP id n7mr4171594wmk.77.1591809400863; Wed, 10 Jun 2020 10:16:40 -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 f11sm589048wrm.13.2020.06.10.10.16.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 10:16:40 -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 v3 8/9] mips: bmips: dts: add BCM6362 power domain support Date: Wed, 10 Jun 2020 19:16:29 +0200 Message-Id: <20200610171630.465579-9-noltari@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200610171630.465579-1-noltari@gmail.com> References: <20200610163301.461160-1-noltari@gmail.com> <20200610171630.465579-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_101645_074578_E040B218 X-CRM114-Status: UNSURE ( 9.09 ) X-CRM114-Notice: Please train this message. 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:32b 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 BCM6362 SoCs have a power domain controller to enable/disable certain components in order to save power. Signed-off-by: Álvaro Fernández Rojas Acked-by: Florian Fainelli --- v3: Separate dt-bindings definitions from power domain .dtsi support. v2: Add dt-bindings header files. arch/mips/boot/dts/brcm/bcm6362.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/boot/dts/brcm/bcm6362.dtsi b/arch/mips/boot/dts/brcm/bcm6362.dtsi index 8ae6981735b8..c98f9111e3c8 100644 --- a/arch/mips/boot/dts/brcm/bcm6362.dtsi +++ b/arch/mips/boot/dts/brcm/bcm6362.dtsi @@ -108,6 +108,12 @@ uart1: serial@10000120 { status = "disabled"; }; + periph_pwr: power-controller@10001848 { + compatible = "brcm,bcm6362-power-controller"; + reg = <0x10001848 0x4>; + #power-domain-cells = <1>; + }; + leds0: led-controller@10001900 { #address-cells = <1>; #size-cells = <0>; From patchwork Wed Jun 10 17:16:30 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: 11598417 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 A3FA190 for ; Wed, 10 Jun 2020 17:19:24 +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 80A382070B for ; Wed, 10 Jun 2020 17:19:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="nOQTaiKt"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fd37f0BF" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 80A382070B 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=dP3uQV+/mGatPSXD5xxzWls228r9CScJUkN/HhXakRM=; b=nOQTaiKtqZmy9Q /6EkUYgI49dkIblDTahJ1ueLqkiZdwYVT1SjBdCAI5ds8W2T6rxcQxsbgIGntNoxbhBGbl9fk3QKB lPK0JH5qwe9rb7iZyJIj2K7550L66m9XDFiyI1xUl1SG4coDTLwMtrrVUfdKxJH29WcSJ9fE3P9gV WVYRtimuDzBRfjXHkig16dKcXsYxG7hMHzv0ptzV+h5vN2ef5+MeByvGbXTR682WOkVZx1L6GRTzF wSZ8tPp50r7ect9ZIS4D5r4UwmsYKdiBOnupFhazY0qfnHUw2R2OC5/0rL8HnEgRFg8lz31wTKSgF f1rvxMG7exeKHNCLc3Iw==; 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 1jj4Nh-00088z-WC; Wed, 10 Jun 2020 17:19:18 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jj4LD-0005o0-As for linux-arm-kernel@lists.infradead.org; Wed, 10 Jun 2020 17:16:48 +0000 Received: by mail-wr1-x443.google.com with SMTP id e1so3173479wrt.5 for ; Wed, 10 Jun 2020 10:16:43 -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=5Z5HmDtV/uFdRn9AN/WhBRbcRr/O4rtkluxMrfIJN0s=; b=fd37f0BFKkT2dMXloiiCDGGxDqQW2UM1Gqs9hsUCTJHrIMsznCmrphGvKwLWSf09OQ FZ/PU8zWotSr3ZdZH7s5eCn52gzfXfr1tjeLXFII3k8ooBcolu00v3pdmXRkZpE/6Eaf f+R5cqW6M2mDLdCgRCgsApoEaHi7nq6Z2Jh0J2fq+wz8lsI5sKHAcmsLlfjBNTbUGFJ8 UlFI4Q5hsHzNVI+Wa9bXfTDbQs+8uGOyAubuoeQFhW6MKjVU7RFOCyVXFAlLQGNmrhkr nqOB0STrqyWMkEFMeBGi5OPuxgM7ZMqfgfIfC4BTeaUP3BVZgnMSvkLgiSVs2pOFsU2a FFJw== 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=5Z5HmDtV/uFdRn9AN/WhBRbcRr/O4rtkluxMrfIJN0s=; b=FTzmPjRSwEv3mJqdqBcvsjm6IqqW4+iKGyEXcJR4iaQ0ybA1xRbxHGMIPuOM5csa+A qBYy1icKJ3JkuRtgTbWFgZPVzA0HTn/2/rgSzCQV81f5wY9uJ7eY2ZGyvEplLbUDf+Ou pRTlajc3KR2okROez4hXvBGHMkvbOs3wn0435Z2fsroWd0UFV7bbI39DFas1oZ+totm4 GWWFFrGDti8X1737r/OfUmsA3tBI4GgnDujLAepdi9/5ydLIDseUDYOLKQ9+q1QDb6Gq jAK2X7uFVYqKq8lVHmXrMERQjI/8WJTeXXx6v0yj+hJxdZlbVu1a6mFdLoPiSM3s4aE2 mVDg== X-Gm-Message-State: AOAM531WGso0mtqibs7scng48IhQtAlGrrcO9frdGOijorcYYHnfbur5 CYlZyfOBisFuvbOpEdQtAGlqVxJPq20= X-Google-Smtp-Source: ABdhPJwwhcrMFSDWf49dyge+OJdhoE3YU2B7KXd0sYZzv3guwN9R5Sp6bftxIqpZxmqZXOYSfjIbcQ== X-Received: by 2002:adf:cd08:: with SMTP id w8mr4763720wrm.36.1591809401794; Wed, 10 Jun 2020 10:16:41 -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 f11sm589048wrm.13.2020.06.10.10.16.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 10:16:41 -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 v3 9/9] mips: bmips: dts: add BCM63268 power domain support Date: Wed, 10 Jun 2020 19:16:30 +0200 Message-Id: <20200610171630.465579-10-noltari@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200610171630.465579-1-noltari@gmail.com> References: <20200610163301.461160-1-noltari@gmail.com> <20200610171630.465579-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_101645_141177_6687076A X-CRM114-Status: UNSURE ( 8.88 ) X-CRM114-Notice: Please train this message. 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:443 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 --- v3: Separate dt-bindings definitions from power domain .dtsi support. v2: Add dt-bindings header files. arch/mips/boot/dts/brcm/bcm63268.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) 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>;