Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6471007pxv; Thu, 29 Jul 2021 15:49:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxGkOdZ2il+YEsui/hDMsMB792tIllagNZMq0LQ/eVjpIlyVJ17vJm42kJjGaSq0lLAIX/8 X-Received: by 2002:a50:f113:: with SMTP id w19mr8258656edl.107.1627598980374; Thu, 29 Jul 2021 15:49:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627598980; cv=none; d=google.com; s=arc-20160816; b=KCco6+HkdJnAj9yaO50U/AW3iBvVCDs+Zv3VF9Fm5tiuMIkjiVCxUqOQKhSCt+EVnf xWjbgU+YfjcK2WZ7JMYkUq58sSpsh3AdeyKDQQw3OoLxO/TR84Ig5nMoM7lFCvnR5Snk PGtM11OA2uATsynQDE9WDp3R8Awiz1KcDKtuXtt41pUp7agKsci4ufGCq7pCRQV7OqXF hWch28G5DADdQB90eH0NZOfvx4ptdhe59ywd/6K6MLQpNKAD4+ZTLaIeZvb5tEwDa8Ok mc+xiIg4Ul10XEAGsbVIhykBTBg+PpxrTNIYLmXUFuGYvxlP7UTAsguCvZbmOb0oj3pV 23XA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=uLPhUdoC+7tjhEgD5RagL8jY8EVWeRmYucCzBzD2fkY=; b=rWB4Nzye2Rvv8HgKCTK8vAobMXLnkRHqQCNKu6AKPjl+ADpDmQa3IZvwbI3Ltfr3YI DccBgzhhB0j+MOfMSt1nZm+hvITOKC1R5GE/E9ndF/GKBZIVXy0TazWHS6XTwM8/zEea NaXGIz70xHxvJK+tWEiUtOxSRLW12v6qZHdgOMGJvCfg2ot+aFTnCDlJgJ3hnaDYNlJq Pk+GcfuV082dcCWpFhIAlMW2wW+FulFcMFAT+P1J5BLGMigknWnNdIWmRKtcn4dMucQm lv6c2HOg9lcUgeO+LWg5Vj18UmiYlqaaHL5l+hcoS8Fw+CQm3+/Y4AOtn7L89LL7FcpS sZeQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x92si4603672edc.573.2021.07.29.15.49.06; Thu, 29 Jul 2021 15:49:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233309AbhG2Wsf (ORCPT + 99 others); Thu, 29 Jul 2021 18:48:35 -0400 Received: from mail-io1-f47.google.com ([209.85.166.47]:41745 "EHLO mail-io1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232996AbhG2Wsd (ORCPT ); Thu, 29 Jul 2021 18:48:33 -0400 Received: by mail-io1-f47.google.com with SMTP id r6so814004ioj.8; Thu, 29 Jul 2021 15:48:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=uLPhUdoC+7tjhEgD5RagL8jY8EVWeRmYucCzBzD2fkY=; b=DBRDOzkQuHgkCqR5k/aRF0HtQ4BsNCjuFSt+GIsAKDl4OZkgBXIaYEEFJIuFcFm6pu FMXT/kkuVdiyZMKnWQhfUGP3BJHRyGzNuPQunVP3xet9Dq4s6D95TE8HTL0tMNe6PJvh y6CbU6Rv7lo1zkdrCKCyTNIr6Eu4NZ4n5lnXW04cVk0bs7fqpLmKW2PbyHF3lEzJX3Uy NCsXK0fJKJKic2qK038vWyW6QYbuZjLM0CaeX/VKk4WJWLhiUrMkUCQA4XqouB0MYIFo YwG8SqQV4VFL/LT/Kc7uSQaz0rjOITlvMY4sRwqRpIWzcw7Lr9LMdIu2CSiStrELZEVA xRqg== X-Gm-Message-State: AOAM530jBxu7XnsQuGOtMu3hhzS+dtEAXNu55JC9BAcRny9rZSYWIQTP 3Kv9LLoxDmuiB3BXXMuTxw== X-Received: by 2002:a05:6602:3423:: with SMTP id n35mr5906013ioz.188.1627598908602; Thu, 29 Jul 2021 15:48:28 -0700 (PDT) Received: from robh.at.kernel.org ([64.188.179.248]) by smtp.gmail.com with ESMTPSA id l4sm2342171ilh.41.2021.07.29.15.48.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jul 2021 15:48:27 -0700 (PDT) Received: (nullmailer pid 1049104 invoked by uid 1000); Thu, 29 Jul 2021 22:48:25 -0000 Date: Thu, 29 Jul 2021 16:48:25 -0600 From: Rob Herring To: Sam Shih Cc: Sean Wang , Linus Walleij , Matthias Brugger , Matt Mackall , Herbert Xu , Greg Kroah-Hartman , Wim Van Sebroeck , Guenter Roeck , Michael Turquette , Stephen Boyd , Hsin-Yi Wang , Enric Balletbo i Serra , Fabien Parent , Seiya Wang , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-crypto@vger.kernel.org, linux-serial@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-clk@vger.kernel.org, John Crispin , Ryder Lee Subject: Re: [PATCH 02/12] clk: mediatek: add mt7986 clock IDs Message-ID: References: <20210726071439.14248-1-sam.shih@mediatek.com> <20210726071439.14248-3-sam.shih@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210726071439.14248-3-sam.shih@mediatek.com> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, Jul 26, 2021 at 03:14:29PM +0800, Sam Shih wrote: > Add MT7986 clock dt-bindings, include topckgen, apmixedsys, > infracfg, infracfg_ao, and ethernet subsystem clocks. > > Signed-off-by: Sam Shih > --- > include/dt-bindings/clock/mt7986-clk.h | 244 +++++++++++++++++++++++++ > 1 file changed, 244 insertions(+) > create mode 100644 include/dt-bindings/clock/mt7986-clk.h > > diff --git a/include/dt-bindings/clock/mt7986-clk.h b/include/dt-bindings/clock/mt7986-clk.h > new file mode 100644 > index 000000000000..dd11d0a717bc > --- /dev/null > +++ b/include/dt-bindings/clock/mt7986-clk.h > @@ -0,0 +1,244 @@ > +/* SPDX-License-Identifier: GPL-2.0-only */ Dual license please. This should be part of the binding patch. > +/* > + * Copyright (c) 2021 MediaTek Inc. > + * Author: Sam Shih > + */ > + > +#ifndef _DT_BINDINGS_CLK_MT7986_H > +#define _DT_BINDINGS_CLK_MT7986_H > + > +/* INFRACFG */ > + > +#define CK_INFRA_CK_F26M 0 > +#define CK_INFRA_UART 1 > +#define CK_INFRA_ISPI0 2 > +#define CK_INFRA_I2C 3 > +#define CK_INFRA_ISPI1 4 > +#define CK_INFRA_PWM 5 > +#define CK_INFRA_66M_MCK 6 > +#define CK_INFRA_CK_F32K 7 > +#define CK_INFRA_PCIE_CK 8 > +#define CK_INFRA_PWM_BCK 9 > +#define CK_INFRA_PWM_CK1 10 > +#define CK_INFRA_PWM_CK2 11 > +#define CK_INFRA_133M_HCK 12 > +#define CK_INFRA_EIP_CK 13 > +#define CK_INFRA_66M_PHCK 14 > +#define CK_INFRA_FAUD_L_CK 15 > +#define CK_INFRA_FAUD_AUD_CK 16 > +#define CK_INFRA_FAUD_EG2_CK 17 > +#define CK_INFRA_I2CS_CK 18 > +#define CK_INFRA_MUX_UART0 19 > +#define CK_INFRA_MUX_UART1 20 > +#define CK_INFRA_MUX_UART2 21 > +#define CK_INFRA_NFI_CK 22 > +#define CK_INFRA_SPINFI_CK 23 > +#define CK_INFRA_MUX_SPI0 24 > +#define CK_INFRA_MUX_SPI1 25 > +#define CK_INFRA_RTC_32K 26 > +#define CK_INFRA_FMSDC_CK 27 > +#define CK_INFRA_FMSDC_HCK_CK 28 > +#define CK_INFRA_PERI_133M 29 > +#define CK_INFRA_133M_PHCK 30 > +#define CK_INFRA_USB_SYS_CK 31 > +#define CK_INFRA_USB_CK 32 > +#define CK_INFRA_USB_XHCI_CK 33 > +#define CK_INFRA_PCIE_GFMUX_TL_O_PRE 34 > +#define CK_INFRA_F26M_CK0 35 > +#define CK_INFRA_HD_133M 36 > +#define CLK_INFRA_NR_CLK 37 > + > +/* TOPCKGEN */ > + > +#define CK_TOP_CB_CKSQ_40M 0 > +#define CK_TOP_CB_M_416M 1 > +#define CK_TOP_CB_M_D2 2 > +#define CK_TOP_CB_M_D4 3 > +#define CK_TOP_CB_M_D8 4 > +#define CK_TOP_M_D8_D2 5 > +#define CK_TOP_M_D3_D2 6 > +#define CK_TOP_CB_MM_D2 7 > +#define CK_TOP_CB_MM_D4 8 > +#define CK_TOP_CB_MM_D8 9 > +#define CK_TOP_MM_D8_D2 10 > +#define CK_TOP_MM_D3_D8 11 > +#define CK_TOP_CB_U2_PHYD_CK 12 > +#define CK_TOP_CB_APLL2_196M 13 > +#define CK_TOP_APLL2_D4 14 > +#define CK_TOP_CB_NET1_D4 15 > +#define CK_TOP_CB_NET1_D5 16 > +#define CK_TOP_NET1_D5_D2 17 > +#define CK_TOP_NET1_D5_D4 18 > +#define CK_TOP_NET1_D8_D2 19 > +#define CK_TOP_NET1_D8_D4 20 > +#define CK_TOP_CB_NET2_800M 21 > +#define CK_TOP_CB_NET2_D4 22 > +#define CK_TOP_NET2_D4_D2 23 > +#define CK_TOP_NET2_D3_D2 24 > +#define CK_TOP_CB_WEDMCU_760M 25 > +#define CK_TOP_WEDMCU_D5_D2 26 > +#define CK_TOP_CB_SGM_325M 27 > +#define CK_TOP_CB_CKSQ_40M_D2 28 > +#define CK_TOP_CB_RTC_32K 29 > +#define CK_TOP_CB_RTC_32P7K 30 > +#define CK_TOP_NFI1X 31 > +#define CK_TOP_USB_EQ_RX250M 32 > +#define CK_TOP_USB_TX250M 33 > +#define CK_TOP_USB_LN0_CK 34 > +#define CK_TOP_USB_CDR_CK 35 > +#define CK_TOP_SPINFI_BCK 36 > +#define CK_TOP_I2C_BCK 37 > +#define CK_TOP_PEXTP_TL 38 > +#define CK_TOP_EMMC_250M 39 > +#define CK_TOP_EMMC_416M 40 > +#define CK_TOP_F_26M_ADC_CK 41 > +#define CK_TOP_SYSAXI 42 > +#define CK_TOP_NETSYS_WED_MCU 43 > +#define CK_TOP_NETSYS_2X 44 > +#define CK_TOP_SGM_325M 45 > +#define CK_TOP_A1SYS 46 > +#define CK_TOP_EIP_B 47 > +#define CK_TOP_F26M 48 > +#define CK_TOP_AUD_L 49 > +#define CK_TOP_A_TUNER 50 > +#define CK_TOP_U2U3_REF 51 > +#define CK_TOP_U2U3_SYS 52 > +#define CK_TOP_U2U3_XHCI 53 > +#define CK_TOP_AP2CNN_HOST 54 > +#define CK_TOP_NFI1X_SEL 55 > +#define CK_TOP_SPINFI_SEL 56 > +#define CK_TOP_SPI_SEL 57 > +#define CK_TOP_SPIM_MST_SEL 58 > +#define CK_TOP_UART_SEL 59 > +#define CK_TOP_PWM_SEL 60 > +#define CK_TOP_I2C_SEL 61 > +#define CK_TOP_PEXTP_TL_SEL 62 > +#define CK_TOP_EMMC_250M_SEL 63 > +#define CK_TOP_EMMC_416M_SEL 64 > +#define CK_TOP_F_26M_ADC_SEL 65 > +#define CK_TOP_DRAMC_SEL 66 > +#define CK_TOP_DRAMC_MD32_SEL 67 > +#define CK_TOP_SYSAXI_SEL 68 > +#define CK_TOP_SYSAPB_SEL 69 > +#define CK_TOP_ARM_DB_MAIN_SEL 70 > +#define CK_TOP_ARM_DB_JTSEL 71 > +#define CK_TOP_NETSYS_SEL 72 > +#define CK_TOP_NETSYS_500M_SEL 73 > +#define CK_TOP_NETSYS_MCU_SEL 74 > +#define CK_TOP_NETSYS_2X_SEL 75 > +#define CK_TOP_SGM_325M_SEL 76 > +#define CK_TOP_SGM_REG_SEL 77 > +#define CK_TOP_A1SYS_SEL 78 > +#define CK_TOP_CONN_MCUSYS_SEL 79 > +#define CK_TOP_EIP_B_SEL 80 > +#define CK_TOP_PCIE_PHY_SEL 81 > +#define CK_TOP_USB3_PHY_SEL 82 > +#define CK_TOP_F26M_SEL 83 > +#define CK_TOP_AUD_L_SEL 84 > +#define CK_TOP_A_TUNER_SEL 85 > +#define CK_TOP_U2U3_SEL 86 > +#define CK_TOP_U2U3_SYS_SEL 87 > +#define CK_TOP_U2U3_XHCI_SEL 88 > +#define CK_TOP_DA_U2_REFSEL 89 > +#define CK_TOP_DA_U2_CK_1P_SEL 90 > +#define CK_TOP_AP2CNN_HOST_SEL 91 > +#define CLK_TOP_NR_CLK 92 > + > +/* INFRACFG_AO */ > + > +#define CK_INFRA_UART0_SEL 0 > +#define CK_INFRA_UART1_SEL 1 > +#define CK_INFRA_UART2_SEL 2 > +#define CK_INFRA_SPI0_SEL 3 > +#define CK_INFRA_SPI1_SEL 4 > +#define CK_INFRA_PWM1_SEL 5 > +#define CK_INFRA_PWM2_SEL 6 > +#define CK_INFRA_PWM_BSEL 7 > +#define CK_INFRA_PCIE_SEL 8 > +#define CK_INFRA_GPT_STA 9 > +#define CK_INFRA_PWM_HCK 10 > +#define CK_INFRA_PWM_STA 11 > +#define CK_INFRA_PWM1_CK 12 > +#define CK_INFRA_PWM2_CK 13 > +#define CK_INFRA_CQ_DMA_CK 14 > +#define CK_INFRA_EIP97_CK 15 > +#define CK_INFRA_AUD_BUS_CK 16 > +#define CK_INFRA_AUD_26M_CK 17 > +#define CK_INFRA_AUD_L_CK 18 > +#define CK_INFRA_AUD_AUD_CK 19 > +#define CK_INFRA_AUD_EG2_CK 20 > +#define CK_INFRA_DRAMC_26M_CK 21 > +#define CK_INFRA_DBG_CK 22 > +#define CK_INFRA_AP_DMA_CK 23 > +#define CK_INFRA_SEJ_CK 24 > +#define CK_INFRA_SEJ_13M_CK 25 > +#define CK_INFRA_THERM_CK 26 > +#define CK_INFRA_I2CO_CK 27 > +#define CK_INFRA_UART0_CK 28 > +#define CK_INFRA_UART1_CK 29 > +#define CK_INFRA_UART2_CK 30 > +#define CK_INFRA_NFI1_CK 31 > +#define CK_INFRA_SPINFI1_CK 32 > +#define CK_INFRA_NFI_HCK_CK 33 > +#define CK_INFRA_SPI0_CK 34 > +#define CK_INFRA_SPI1_CK 35 > +#define CK_INFRA_SPI0_HCK_CK 36 > +#define CK_INFRA_SPI1_HCK_CK 37 > +#define CK_INFRA_FRTC_CK 38 > +#define CK_INFRA_MSDC_CK 39 > +#define CK_INFRA_MSDC_HCK_CK 40 > +#define CK_INFRA_MSDC_133M_CK 41 > +#define CK_INFRA_MSDC_66M_CK 42 > +#define CK_INFRA_ADC_26M_CK 43 > +#define CK_INFRA_ADC_FRC_CK 44 > +#define CK_INFRA_FBIST2FPC_CK 45 > +#define CK_INFRA_IUSB_133_CK 46 > +#define CK_INFRA_IUSB_66M_CK 47 > +#define CK_INFRA_IUSB_SYS_CK 48 > +#define CK_INFRA_IUSB_CK 49 > +#define CK_INFRA_IPCIE_CK 50 > +#define CK_INFRA_IPCIE_PIPE_CK 51 > +#define CK_INFRA_IPCIER_CK 52 > +#define CK_INFRA_IPCIEB_CK 53 > +#define CK_INFRA_TRNG_CK 54 > +#define CLK_INFRA_AO_NR_CLK 55 > + > +/* APMIXEDSYS */ > + > +#define CK_APMIXED_ARMPLL 0 > +#define CK_APMIXED_NET2PLL 1 > +#define CK_APMIXED_MMPLL 2 > +#define CK_APMIXED_SGMPLL 3 > +#define CK_APMIXED_WEDMCUPLL 4 > +#define CK_APMIXED_NET1PLL 5 > +#define CK_APMIXED_MPLL 6 > +#define CK_APMIXED_APLL2 7 > +#define CLK_APMIXED_NR_CLK 8 > + > +/* SGMIISYS_0 */ > + > +#define CK_SGM0_TX_EN 0 > +#define CK_SGM0_RX_EN 1 > +#define CK_SGM0_CK0_EN 2 > +#define CK_SGM0_CDR_CK0_EN 3 > +#define CLK_SGMII0_NR_CLK 4 > + > +/* SGMIISYS_1 */ > + > +#define CK_SGM1_TX_EN 0 > +#define CK_SGM1_RX_EN 1 > +#define CK_SGM1_CK1_EN 2 > +#define CK_SGM1_CDR_CK1_EN 3 > +#define CLK_SGMII1_NR_CLK 4 > + > +/* ETHSYS */ > + > +#define CK_ETH_FE_EN 0 > +#define CK_ETH_GP2_EN 1 > +#define CK_ETH_GP1_EN 2 > +#define CK_ETH_WOCPU1_EN 3 > +#define CK_ETH_WOCPU0_EN 4 > +#define CLK_ETH_NR_CLK 5 > + > +#endif /* _DT_BINDINGS_CLK_MT7986_H */ > + > -- > 2.29.2 > >