Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp276712rdb; Thu, 1 Feb 2024 08:13:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFsTbXRtHpJx5DYgp0pSCqWE1lB17Mh1pLh4m/SpJEWpsoRZ99cYpYpenNhsbWuYVQxdhrs X-Received: by 2002:a17:903:286:b0:1d4:3ea9:63b8 with SMTP id j6-20020a170903028600b001d43ea963b8mr2847618plr.25.1706804025655; Thu, 01 Feb 2024 08:13:45 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706804025; cv=pass; d=google.com; s=arc-20160816; b=wWp+hMgQeLjFvgXe3tBC1drU5TjN6a6YBghW/kAkqi7SWdJTWuRDhsMB1gFS1EYLtb HtEGB8pAXKEkmwcbmx2exEQXjPrwqKEDmZMkZlTda/Bza300tsJg2nykkAXo8S3wgqHg QrxmT/IGnGW3/QlXlD3EW5r3apF0mvGWEbbyFpwXOXAwqaKeeXnN6ZXAoccrh805pH6K unWkeFh0wUqKIsK7IS06+ZDPkzY1Ns5ylBMSvVw+qWzy8F45juREyGtNZFT6X4ueA3vd ugAQyII/EJwIzSRJUyFxnztGdfD+4dyZFIgdSqrwmH6MkfPBLRT3wMkXDYHXMjJFgwml HZ3w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=7CMDfrriDlhVkmg2HgWoNsoiRK3PWpB1i2lPeAsE/bE=; fh=WQxXZvlDIOQwM1AsEBzzfqxmn0u7voKW1KnySiRn1CU=; b=J5I2uEtSLr4eOLraKz6/ZITcHwENnAzzNQlJZTPl9n86awd0A6IvMJzdHW0xDCW+fO TG19Dy3ylf1z32K3MX1qtenMJ8S5YqW4Z73auk0vYx6dQB+9Dw2lE1hT1zTKF/xOSeJS Z7OtCvVCUYrYjLy6V9o2fiDBVtH4whSmwkYGrg6O1s0eU/7fgRCkkoqGukf4hDsoZKDf 4//nWwaz10+YGe72FPcnHFExUVFaeLN4/EpSALnVI9i29rk2M9guD2SP5BO3wqes4QVP xyjMB/o7MiT1eV4yI39hcTHk/67htOmLSomz4vS8HETtnPoNjLH1XF1mqH7ovFzU+Ut4 abWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FW2mTfxt; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-48481-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48481-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCVX9y2aYoTTHGZ0uZ5uuLA/C1pyaRP/sy4h/Dgnyhyqk7s0VhGA4a9aRh3jtkFClw9w2kKQLBWRTjn8FtHKeU3XAKgJ4p33M5oN1bNKaw== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id h12-20020a170902748c00b001d963d963a9si33202pll.2.2024.02.01.08.13.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 08:13:45 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-48481-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FW2mTfxt; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-48481-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-48481-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 39CD929D1BB for ; Thu, 1 Feb 2024 16:13:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4486415B981; Thu, 1 Feb 2024 16:13:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FW2mTfxt" Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B7B4C626D0 for ; Thu, 1 Feb 2024 16:13:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706803995; cv=none; b=XIrwQHgAzztshpXdvX33royYfzq8d3MdrXMA0oohF0KhwJjWk68Vu6+hZSt2kX3dP1euzxlUjbEgiTvMYafQ5iNQquD17zAHSZuHDw6Gqr29sB8UW6Lz+cETavyxQXfMrFuTH2W40jWLtbuodygIZ0QvWaDcacicU30SDYuAxeU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706803995; c=relaxed/simple; bh=4g4oeLkyvI9yPvW/99OZF63K5JP2Jb5d/COpANjZmkA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=emrZ8ZkuP5bw1jAmzDsWcSP8Dk8RXw5OE68/lybnP7j3SoUWn3MRLwPeAWxGLwJbsB+h1xI0KCY5jQc56KCmUOz3xeFlbnVt5E5JUVkc5D4Hm2ImiIY87OqlM9mzFTll0Opc6Wciy6dgxOCrQqfsEq2MV3enWqFwW2/+PInbnP0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=FW2mTfxt; arc=none smtp.client-ip=209.85.208.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-55f0b2c79cdso1441617a12.3 for ; Thu, 01 Feb 2024 08:13:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706803992; x=1707408792; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=7CMDfrriDlhVkmg2HgWoNsoiRK3PWpB1i2lPeAsE/bE=; b=FW2mTfxtvDISpS/GPN/Xhnqcl76YDGvy/SQWGx8fhrLjqctOYBeMnfdkaRtmGmZsCk MGRp6rXInj7aufcssm5kUnkv9iYC2Xb8rSG30CnBSiPg1whWPI9zcaz1mClaEB7qHf+p eJA4deQi2yPV4TlB0f2CabhFsedTFvE0VW2dKfoc/gbzV/uVnsHrgl3grJXbizJfTMNK /UXSKmD+jIcJ20zSZcJT0km8R0+ARL5BwSA7LHSRolkvQG9GUuDarWPobV9/HmiQ1pRC KF1G6SJQxcxw3cIBs8HTBnYIiwdHcjTDpSFn7YLDF6qq7JGNShzGuFaxGpcbXfE7NNfR hS8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706803992; x=1707408792; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7CMDfrriDlhVkmg2HgWoNsoiRK3PWpB1i2lPeAsE/bE=; b=A1xrixxmBXQLC3Djp0/COrKhZW9dGZdhvkSv3ZLT5U0AgCicEwV14Txumdltt7HBJi uQ3ePInogAw9amshLiK1mDLeDIICPg3tuSCFEEruvALy3RRQZUMgh0jJK21DLFQqSfkx 3hvFSGVGLG0oeXROSq3mryCoWHtJMdXvcLfRPtjDyEzGMqOU6cW1BwGChh12cZ3RZJBx pEkscZVs06ijCNYtrkcJVDdvKV5QzJ9gS3pCawsPL4kARUeUPEal4y5GZwfo5oAXIdHP L3u9jHcJD4+DXfxzLCTLal+2CqJhzq75idEXVxmDx9J51equT/HoRVo4b03/eFv0Q2bW mO2g== X-Gm-Message-State: AOJu0YzHLDfQ2F+8QfkDNbiNcwuyds6PEEgmnPIUhEoZLV7U+9PCp/z7 C0A+pxCM/KtV+K3YngbeAw7L7S2MRi7tSg5vk97BRglWu/SAz/kpBHIyzvXj/Ik= X-Received: by 2002:a17:906:d7a2:b0:a36:896a:d0ad with SMTP id pk2-20020a170906d7a200b00a36896ad0admr3356237ejb.50.1706803991764; Thu, 01 Feb 2024 08:13:11 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCXjINwzfuWnY/nH49tC4b4KBDHTEmXD3TmbEexeXcMw39YsbidjD2KFN+bI1ciR2XEuiRZOl0wVfrGZDAAdSn6jMRxKkNd43LfgV9PJXN3U8SsYRiTMLsv8TI40WZ0+Vx5ePOxjWVxbyJ5PgQz3rXXeMs5tGqsueDPLMS1OS1Sf8NOyW9cGD2Fw2LuuJ0wa6kv0PQs7Yec7wa2atcSoGBysFN0DIOiv+yUt0gblL1KdurK7hGK5DeY2pPMC4MNdcNYiXNtcW//PmmW3RJYr2Rx9YTuNujpFKMGAg67pW6QcVyVNGhJuFvCmMQ48D/pMZqD59WRcQ96yLBmAAO106hbpRR4OLplt520/44OKJGjTb48HBPUOd6O/Ihg26f2K68Y4EYMwU8iW36tStn8ijPMG6QQTet5ZW+5OGE4ccaLZi49fAPXgeLKjjtusJ1xJBuSl4ywIOEBtAcEDykA0EzCSTEJQc0rPR1mip0Lw6KskpgkTP4xTfc0I0khN14lXiFTjnpJ1PpBozzvtxjUn8Djqcy9MIr3PX8b95E/SPfwB6FPwjyEWGmDNFh/UENaaRWyhfR1jP57lNc7l0odxEQtmXt2xz0hitYZdZXQJOuvJ/JNF0bOru0IVWIVpPVDcrF27jIdCfJc+DR03cq6/fmOEuCoZdMMPgGSOFFrHTInVnDqVJkR27JzTJcSdPDBfyTAXFjzWCZAJ Received: from puffmais.c.googlers.com.com (94.189.141.34.bc.googleusercontent.com. [34.141.189.94]) by smtp.gmail.com with ESMTPSA id hw18-20020a170907a0d200b00a3600d7c2fbsm3449288ejc.176.2024.02.01.08.13.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Feb 2024 08:13:11 -0800 (PST) From: =?UTF-8?q?Andr=C3=A9=20Draszik?= To: peter.griffin@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@android.com, tudor.ambarus@linaro.org, willmcvicker@google.com, semen.protsenko@linaro.org, alim.akhtar@samsung.com, s.nawrocki@samsung.com, tomasz.figa@gmail.com, cw00.choi@samsung.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, =?UTF-8?q?Andr=C3=A9=20Draszik?= , Rob Herring Subject: [PATCH v3 2/7] dt-bindings: clock: google,gs101-clock: add PERIC1 clock management unit Date: Thu, 1 Feb 2024 16:11:38 +0000 Message-ID: <20240201161258.1013664-3-andre.draszik@linaro.org> X-Mailer: git-send-email 2.43.0.594.gd9cf4e227d-goog In-Reply-To: <20240201161258.1013664-1-andre.draszik@linaro.org> References: <20240201161258.1013664-1-andre.draszik@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add dt-schema documentation and clock IDs for the Connectivity Peripheral 1 (PERIC1) clock management unit. Signed-off-by: André Draszik Reviewed-by: Sam Protsenko Reviewed-by: Peter Griffin Reviewed-by: Tudor Ambarus Reviewed-by: Rob Herring --- v3: collect Reviewed-by: tags v2: collect Reviewed-by: tags Note for future reference: To ensure consistent naming throughout this file, the IDs have been derived from the data sheet using the following, with the expectation for all future additions to this file to use the same: sed \ -e 's|^PLL_LOCKTIME_PLL_\([^_]\+\)|CLK_FOUT_\1_PLL|' \ \ -e 's|^PLL_CON0_MUX_CLKCMU_\([^_]\+\)_|CLK_MOUT_\1_|' \ -e 's|^PLL_CON0_PLL_\(.*\)|CLK_MOUT_PLL_\1|' \ -e 's|^CLK_CON_MUX_MUX_CLK_\(.*\)|CLK_MOUT_\1|' \ -e '/^PLL_CON[1-4]_[^_]\+_/d' \ -e '/^[^_]\+_CMU_[^_]\+_CONTROLLER_OPTION/d' \ -e '/^CLKOUT_CON_BLK_[^_]\+_CMU_[^_]\+_CLKOUT0/d' \ \ -e 's|_IPCLKPORT||' \ -e 's|_RSTNSYNC||' \ \ -e 's|^CLK_CON_DIV_DIV_CLK_\([^_]\+\)_|CLK_DOUT_\1_|' \ \ -e 's|^CLK_CON_BUF_CLKBUF_\([^_]\+\)_|CLK_GOUT_\1_|' \ -e 's|^CLK_CON_GAT_CLK_BLK_\([^_]\+\)_UID_|CLK_GOUT_\1_|' \ -e 's|^CLK_GOUT_[^_]\+_[^_]\+_CMU_\([^_]\+\)_PCLK$|CLK_GOUT_\1_PCLK|' \ -e 's|^CLK_CON_GAT_GOUT_BLK_\([^_]\+\)_UID_|CLK_GOUT_\1_|' \ -e 's|^CLK_CON_GAT_CLK_\([^_]\+\)_\(.*\)|CLK_GOUT_\1_CLK_\1_\2|' \ \ -e '/^\(DMYQCH\|PCH\|QCH\|QUEUE\)_/d' --- .../bindings/clock/google,gs101-clock.yaml | 9 ++-- include/dt-bindings/clock/google,gs101.h | 48 +++++++++++++++++++ 2 files changed, 54 insertions(+), 3 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/google,gs101-clock.yaml b/Documentation/devicetree/bindings/clock/google,gs101-clock.yaml index 03698cdecf7a..1d2bcea41c85 100644 --- a/Documentation/devicetree/bindings/clock/google,gs101-clock.yaml +++ b/Documentation/devicetree/bindings/clock/google,gs101-clock.yaml @@ -31,6 +31,7 @@ properties: - google,gs101-cmu-apm - google,gs101-cmu-misc - google,gs101-cmu-peric0 + - google,gs101-cmu-peric1 clocks: minItems: 1 @@ -93,15 +94,17 @@ allOf: properties: compatible: contains: - const: google,gs101-cmu-peric0 + enum: + - google,gs101-cmu-peric0 + - google,gs101-cmu-peric1 then: properties: clocks: items: - description: External reference clock (24.576 MHz) - - description: Connectivity Peripheral 0 bus clock (from CMU_TOP) - - description: Connectivity Peripheral 0 IP clock (from CMU_TOP) + - description: Connectivity Peripheral 0/1 bus clock (from CMU_TOP) + - description: Connectivity Peripheral 0/1 IP clock (from CMU_TOP) clock-names: items: diff --git a/include/dt-bindings/clock/google,gs101.h b/include/dt-bindings/clock/google,gs101.h index 64e6bdc6359c..3dac3577788a 100644 --- a/include/dt-bindings/clock/google,gs101.h +++ b/include/dt-bindings/clock/google,gs101.h @@ -470,4 +470,52 @@ #define CLK_GOUT_PERIC0_CLK_PERIC0_USI8_USI_CLK 78 #define CLK_GOUT_PERIC0_SYSREG_PERIC0_PCLK 79 +/* CMU_PERIC1 */ +#define CLK_MOUT_PERIC1_BUS_USER 1 +#define CLK_MOUT_PERIC1_I3C_USER 2 +#define CLK_MOUT_PERIC1_USI0_USI_USER 3 +#define CLK_MOUT_PERIC1_USI10_USI_USER 4 +#define CLK_MOUT_PERIC1_USI11_USI_USER 5 +#define CLK_MOUT_PERIC1_USI12_USI_USER 6 +#define CLK_MOUT_PERIC1_USI13_USI_USER 7 +#define CLK_MOUT_PERIC1_USI9_USI_USER 8 +#define CLK_DOUT_PERIC1_I3C 9 +#define CLK_DOUT_PERIC1_USI0_USI 10 +#define CLK_DOUT_PERIC1_USI10_USI 11 +#define CLK_DOUT_PERIC1_USI11_USI 12 +#define CLK_DOUT_PERIC1_USI12_USI 13 +#define CLK_DOUT_PERIC1_USI13_USI 14 +#define CLK_DOUT_PERIC1_USI9_USI 15 +#define CLK_GOUT_PERIC1_IP 16 +#define CLK_GOUT_PERIC1_PCLK 17 +#define CLK_GOUT_PERIC1_CLK_PERIC1_I3C_CLK 18 +#define CLK_GOUT_PERIC1_CLK_PERIC1_OSCCLK_CLK 19 +#define CLK_GOUT_PERIC1_D_TZPC_PERIC1_PCLK 20 +#define CLK_GOUT_PERIC1_GPC_PERIC1_PCLK 21 +#define CLK_GOUT_PERIC1_GPIO_PERIC1_PCLK 22 +#define CLK_GOUT_PERIC1_LHM_AXI_P_PERIC1_I_CLK 23 +#define CLK_GOUT_PERIC1_PERIC1_TOP0_IPCLK_1 24 +#define CLK_GOUT_PERIC1_PERIC1_TOP0_IPCLK_2 25 +#define CLK_GOUT_PERIC1_PERIC1_TOP0_IPCLK_3 26 +#define CLK_GOUT_PERIC1_PERIC1_TOP0_IPCLK_4 27 +#define CLK_GOUT_PERIC1_PERIC1_TOP0_IPCLK_5 28 +#define CLK_GOUT_PERIC1_PERIC1_TOP0_IPCLK_6 29 +#define CLK_GOUT_PERIC1_PERIC1_TOP0_IPCLK_8 30 +#define CLK_GOUT_PERIC1_PERIC1_TOP0_PCLK_1 31 +#define CLK_GOUT_PERIC1_PERIC1_TOP0_PCLK_15 32 +#define CLK_GOUT_PERIC1_PERIC1_TOP0_PCLK_2 33 +#define CLK_GOUT_PERIC1_PERIC1_TOP0_PCLK_3 34 +#define CLK_GOUT_PERIC1_PERIC1_TOP0_PCLK_4 35 +#define CLK_GOUT_PERIC1_PERIC1_TOP0_PCLK_5 36 +#define CLK_GOUT_PERIC1_PERIC1_TOP0_PCLK_6 37 +#define CLK_GOUT_PERIC1_PERIC1_TOP0_PCLK_8 38 +#define CLK_GOUT_PERIC1_CLK_PERIC1_BUSP_CLK 39 +#define CLK_GOUT_PERIC1_CLK_PERIC1_USI0_USI_CLK 40 +#define CLK_GOUT_PERIC1_CLK_PERIC1_USI10_USI_CLK 41 +#define CLK_GOUT_PERIC1_CLK_PERIC1_USI11_USI_CLK 42 +#define CLK_GOUT_PERIC1_CLK_PERIC1_USI12_USI_CLK 43 +#define CLK_GOUT_PERIC1_CLK_PERIC1_USI13_USI_CLK 44 +#define CLK_GOUT_PERIC1_CLK_PERIC1_USI9_USI_CLK 45 +#define CLK_GOUT_PERIC1_SYSREG_PERIC1_PCLK 46 + #endif /* _DT_BINDINGS_CLOCK_GOOGLE_GS101_H */ -- 2.43.0.594.gd9cf4e227d-goog