From patchwork Wed Jun 10 14:08:57 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: 11597989 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 055BF739 for ; Wed, 10 Jun 2020 14:09:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DF706206F7 for ; Wed, 10 Jun 2020 14:09:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="T/cyVJ4Z" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729671AbgFJOJI (ORCPT ); Wed, 10 Jun 2020 10:09:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726841AbgFJOJG (ORCPT ); Wed, 10 Jun 2020 10:09:06 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F766C03E96B; Wed, 10 Jun 2020 07:09:05 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id l26so1962896wme.3; Wed, 10 Jun 2020 07:09:05 -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=pMPJ8f8LChSPkdPooyh4RsFj9EOeSp3oUeZluBwwX8c=; b=T/cyVJ4Z2J50EBzY3piRR2JqYaGO+5YMzh5JukaRwmj9/vmde+DoUG7gkz7Jw6e89d hEp6lCrhFrTbgWGfgLYuPG3Pu61wYIKuYKX+8MkHnZeEx1ieZtuTamv0jO3V+Ctj+sg8 ubstY9R7nS4O10MPmgmJGXWHCph6Mvtk2+Ab3ybVCG0BH5s6gNIE7SbJBa87qIq00gH+ QZaP/lZNYc+HT1UnCKE04k69sU6xBUFsQ+h/4h9856nFZEv48GoT+0ywtCbUtJTkTkoB MYttsTl88DQ5kthn05LG1cb0rRu7lnHXfWxtIMm1AIu6ZLmrn8mdWt3jLcx6WqtSv+pu mTqg== 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=pMPJ8f8LChSPkdPooyh4RsFj9EOeSp3oUeZluBwwX8c=; b=uTgofD7evn8XoGAwg7Q9prgz4LPxXW/1Ha31B1SjzhcX4ROECBdb4WFhFZTgdSDYar g8bXeYo7fsk24WXpvAiCcqjT4wMYO0xwuVO7PnVTtIS+XP9M0k6/AgneGTvQ6mbm7gC4 HfcXD4dU5p7Z0mVgqZt8bpYlr60cxGT56cv6BeSO8ynaopYQBjsqs/8GqVESJxcZB7et F/pOKwMDxmQz6RFH6GcLp13EgyXNPcPbhjbi5QF8oULiQV6hzYUYuRggNaFkpPI6YkJ2 ui9YXImXhDaVSvQBMbLqd5kYvAhe+B98qvmnZzEysmIRJl6Nxg5XUJK+V45LBRXigH3v iP3A== X-Gm-Message-State: AOAM533gzOc8L9J+cZ3LXMKYol16yhzw2K9qjtVPyvbtN5VzDfClpDpl 6CPEW8eFFy/xk2zQhog5qiA= X-Google-Smtp-Source: ABdhPJwMPKaGnz6FcYNR7C26Og4qDAnCm7k4AKe7Nx63tf1BbhLfiMQ+osnTYL4ccoQwwbt71W+pLg== X-Received: by 2002:a1c:5683:: with SMTP id k125mr3574271wmb.55.1591798143407; Wed, 10 Jun 2020 07:09:03 -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 r5sm8565883wrq.0.2020.06.10.07.09.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 07:09:02 -0700 (PDT) From: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= To: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, f.fainelli@gmail.com, bcm-kernel-feedback-list@broadcom.com, julia.lawall@lip6.fr, f4bug@amsat.org, jonas.gorski@gmail.com, lkp@intel.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= Subject: [PATCH v2 1/2] dt-bindings: clock: bcm63xx: add 6318 gated clock bindings Date: Wed, 10 Jun 2020 16:08:57 +0200 Message-Id: <20200610140858.207329-2-noltari@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200610140858.207329-1-noltari@gmail.com> References: <20200609113049.4035426-1-noltari@gmail.com> <20200610140858.207329-1-noltari@gmail.com> MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Add BCM6318 to the binding documentation for the gated clock controllers found on BCM63xx SoCs. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Florian Fainelli Acked-by: Rob Herring --- v2: no changes. Documentation/devicetree/bindings/clock/brcm,bcm63xx-clocks.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/clock/brcm,bcm63xx-clocks.txt b/Documentation/devicetree/bindings/clock/brcm,bcm63xx-clocks.txt index 3041657e2f96..3e7ca5530775 100644 --- a/Documentation/devicetree/bindings/clock/brcm,bcm63xx-clocks.txt +++ b/Documentation/devicetree/bindings/clock/brcm,bcm63xx-clocks.txt @@ -3,6 +3,8 @@ Gated Clock Controller Bindings for MIPS based BCM63XX SoCs Required properties: - compatible: must be one of: "brcm,bcm3368-clocks" + "brcm,bcm6318-clocks" + "brcm,bcm6318-ubus-clocks" "brcm,bcm6328-clocks" "brcm,bcm6358-clocks" "brcm,bcm6362-clocks" From patchwork Wed Jun 10 14:08:58 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: 11597991 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 2782C912 for ; Wed, 10 Jun 2020 14:09:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0FC0920820 for ; Wed, 10 Jun 2020 14:09:13 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="aCneJ/Rg" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726841AbgFJOJM (ORCPT ); Wed, 10 Jun 2020 10:09:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729621AbgFJOJG (ORCPT ); Wed, 10 Jun 2020 10:09:06 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2CD6C03E96F; Wed, 10 Jun 2020 07:09:05 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id k26so1965330wmi.4; Wed, 10 Jun 2020 07:09:05 -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=KzxDdWHYnpz+UV20TRPo/jYL7PQqEKAVp/cR0HQ2iGA=; b=aCneJ/RgvE7ihulcdPqsMvrXm4lRmQ0b6MBM2yEfoGrn0Wr4oP3iSo0ieYIbqWFogO YTEDUe6Jzmc3+qkKGsxIxUI2ftwbf1vTEWc495pmxYeMkvaXma4wS/pjSYuzdwv+kjrG 1W/HsX3m7irH1GtjpZnCWN2vh1MoEoTiq/00FXoA1hK3bSTTONrvJm6IjApu03Mvpn/O 2fdl1gCLBDvbg8Yc+ddQpKALchwBMeZ93OA5svylHZBnJUdsAlmxCvy9dRj9Twc/xz19 V/4MhD2EnazLxlwq/N0sItFpo5uPZIszIDpMFG8aiVEY4zeNVgaloI92+gUhhsdyc5VY Fbpg== 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=KzxDdWHYnpz+UV20TRPo/jYL7PQqEKAVp/cR0HQ2iGA=; b=ApcxZK3/YScxQgqnGEb4TvVlhFVUNC0dGbKUUuW8QhDJXFjMQA4YUKLvkYXqceTFdI DbCuzsIYQErIRORF1Oz/6DTROR6vSocGJYnt232B1/myfKiTxIAp+Rrs2dr/mJSB53rL vYThLV+//m6hKf1h7lSTzZKIohYN7ON+l+yqMdI+ymqh+mZtI7/235NhlYDzoDwYVcNt FjJFjcRTjil10nYsGDPbXJqI0/VpHjmqpMA+H0HesOfsmP+vZdnylq3O56COqyW18UiY gi85t1oKTE7EPOv1q5gtenO96NHP2UMl2RHqklJm6PyMbTWsP+lX6z6N+u8l5ncJLiww xgMg== X-Gm-Message-State: AOAM532TdVTYxhKayMQnw2esLC58TmBFKHbIL16VVbUjBaTrmDO19NaP /RYJ9MRSIZRyRmyhzZ7/paU= X-Google-Smtp-Source: ABdhPJwjA1lzuZpA0iQqJVOU45YWAyA1FnmOrVMGhFR8zeqt5kx6TcJYW/D0bGDI7jZypR2TyuydqA== X-Received: by 2002:a1c:cc0d:: with SMTP id h13mr3674074wmb.168.1591798144457; Wed, 10 Jun 2020 07:09:04 -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 r5sm8565883wrq.0.2020.06.10.07.09.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 07:09:04 -0700 (PDT) From: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= To: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, f.fainelli@gmail.com, bcm-kernel-feedback-list@broadcom.com, julia.lawall@lip6.fr, f4bug@amsat.org, jonas.gorski@gmail.com, lkp@intel.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: =?utf-8?q?=C3=81lvaro_Fern=C3=A1ndez_Rojas?= Subject: [PATCH v2 2/2] clk: bcm63xx-gate: add BCM6318 support Date: Wed, 10 Jun 2020 16:08:58 +0200 Message-Id: <20200610140858.207329-3-noltari@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200610140858.207329-1-noltari@gmail.com> References: <20200609113049.4035426-1-noltari@gmail.com> <20200610140858.207329-1-noltari@gmail.com> MIME-Version: 1.0 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Add support for the gated clock controllers found on the BCM6318. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Florian Fainelli --- v2: correct names for sar125 and usbd drivers/clk/bcm/clk-bcm63xx-gate.c | 44 ++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/drivers/clk/bcm/clk-bcm63xx-gate.c b/drivers/clk/bcm/clk-bcm63xx-gate.c index 98e884957db8..fce6746cc607 100644 --- a/drivers/clk/bcm/clk-bcm63xx-gate.c +++ b/drivers/clk/bcm/clk-bcm63xx-gate.c @@ -40,6 +40,48 @@ static const struct clk_bcm63xx_table_entry bcm3368_clocks[] = { { }, }; +static const struct clk_bcm63xx_table_entry bcm6318_clocks[] = { + { .name = "adsl_asb", .bit = 0, }, + { .name = "usb_asb", .bit = 1, }, + { .name = "mips_asb", .bit = 2, }, + { .name = "pcie_asb", .bit = 3, }, + { .name = "phymips_asb", .bit = 4, }, + { .name = "robosw_asb", .bit = 5, }, + { .name = "sar_asb", .bit = 6, }, + { .name = "sdr_asb", .bit = 7, }, + { .name = "swreg_asb", .bit = 8, }, + { .name = "periph_asb", .bit = 9, }, + { .name = "cpubus160", .bit = 10, }, + { .name = "adsl", .bit = 11, }, + { .name = "sar125", .bit = 12, }, + { .name = "mips", .bit = 13, .flags = CLK_IS_CRITICAL, }, + { .name = "pcie", .bit = 14, }, + { .name = "robosw250", .bit = 16, }, + { .name = "robosw025", .bit = 17, }, + { .name = "sdr", .bit = 19, .flags = CLK_IS_CRITICAL, }, + { .name = "usbd", .bit = 20, }, + { .name = "hsspi", .bit = 25, }, + { .name = "pcie25", .bit = 27, }, + { .name = "phymips", .bit = 28, }, + { .name = "afe", .bit = 29, }, + { .name = "qproc", .bit = 30, }, + { }, +}; + +static const struct clk_bcm63xx_table_entry bcm6318_ubus_clocks[] = { + { .name = "adsl-ubus", .bit = 0, }, + { .name = "arb-ubus", .bit = 1, .flags = CLK_IS_CRITICAL, }, + { .name = "mips-ubus", .bit = 2, .flags = CLK_IS_CRITICAL, }, + { .name = "pcie-ubus", .bit = 3, }, + { .name = "periph-ubus", .bit = 4, .flags = CLK_IS_CRITICAL, }, + { .name = "phymips-ubus", .bit = 5, }, + { .name = "robosw-ubus", .bit = 6, }, + { .name = "sar-ubus", .bit = 7, }, + { .name = "sdr-ubus", .bit = 8, }, + { .name = "usb-ubus", .bit = 9, }, + { }, +}; + static const struct clk_bcm63xx_table_entry bcm6328_clocks[] = { { .name = "phy_mips", .bit = 0, }, { .name = "adsl_qproc", .bit = 1, }, @@ -217,6 +259,8 @@ static int clk_bcm63xx_remove(struct platform_device *pdev) static const struct of_device_id clk_bcm63xx_dt_ids[] = { { .compatible = "brcm,bcm3368-clocks", .data = &bcm3368_clocks, }, + { .compatible = "brcm,bcm6318-clocks", .data = &bcm6318_clocks, }, + { .compatible = "brcm,bcm6318-ubus-clocks", .data = &bcm6318_ubus_clocks, }, { .compatible = "brcm,bcm6328-clocks", .data = &bcm6328_clocks, }, { .compatible = "brcm,bcm6358-clocks", .data = &bcm6358_clocks, }, { .compatible = "brcm,bcm6362-clocks", .data = &bcm6362_clocks, },