Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2536511rdb; Mon, 5 Feb 2024 09:24:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IGjCjy5fx4mOWjKLLLqfFOipV3LpLzraVVSuO6V6Z7p+XU0R1omjqCY2hex2ac4QVj47EN0 X-Received: by 2002:a50:9b58:0:b0:55f:e564:23a7 with SMTP id a24-20020a509b58000000b0055fe56423a7mr7028214edj.13.1707153876612; Mon, 05 Feb 2024 09:24:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707153876; cv=pass; d=google.com; s=arc-20160816; b=R/fCuoVYEjzL91DJI2pMzrwl1ygxFBhSBi9K7ewGrPo263qfm8uc1bublPoMQWNL4W XxJEnpGinpLfYefuXpeI3UrS6PYffHvGR51eOfKBAHqR9TgVTySRb40pr+cqhC2w5I4V Djho/nKA50bv5R8Gm6HlmFhJe6nd1KegvIXAqpr3NwTdtOCN2VMjiywTRDEE6YQp+dL0 TrtVl2Kj2RUVEbIjyh/f8ux88MuNi1nsnbWpOxBQjc06hdKzB7aMIPxLrTIyN45HKzkB 5jYlrK9XaRTQQT74IewmjM60bBgpAURg4mBEmRp91vUk1vfrA0Ni3ryJWMYSAjR4zVyK I/sg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=LL9BJN4zClrEHbOw4aVHxJhA84PkyyJYSQG+X5zxjhM=; fh=eLXYDXcKUQCS7DsA3sFiPttaFYbmMPKGB5sr4PY6lOE=; b=L2UCPpOLPBQVuG7pxMtSMyO0K6KfZ7lVQBkyNyhTnLzVHSPG1oiDNXVf7wPImq+kWw Yy6ppdGvV0qkzNY9FxFqrykgULpMzOFqxOYNV//SQpUOwczNLfXj+vMqtf3rQ7gY0oVF izSZwO0CLPUnv46d3+qTbUpkoMRi12WFFjogYu4KGSV6WmTV18/Ve52lZh6QHqnDq8/X YaH7jdgHwCAqZU0Y8FAg+ydAmnZp4bHDlMYiAKCMQUrldnqNUbF7ho/xuyiDjDUK2EmZ 4uk3irn+rRXIsdkAACUnzr6JZGcuTnm8Udvap8nl62zC9aaLaLfEwc7IfWYRNirPH5Gi 3vMA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="qML3bQ/m"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-53095-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53095-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCXL+TvWTaC27SKZN6yAi2mCL4P6fta6lm3Py/hVSGgfXQ2cPDvRhh/1zinDUJKJ5Gz0N80Gdx7zvhFiATS0O+UMgJ1Pg0aO+1+FmBB1AA== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f7-20020a056402354700b0055f66c3c1f9si94653edd.268.2024.02.05.09.24.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 09:24:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53095-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="qML3bQ/m"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-53095-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53095-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 334EE1F23CAA for ; Mon, 5 Feb 2024 17:24:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5B1A344C67; Mon, 5 Feb 2024 17:24:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qML3bQ/m" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5995C44C60; Mon, 5 Feb 2024 17:24:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707153866; cv=none; b=XGU798IoInI5moXh9TNShv9OFX9LAF9KFOnUybZg6hEk1q//aYtFGeCM7N9J1QtwRk5iVK3H+1bFomUKRCaJl4awu3vCWP1AOaMMOA+7jG+8HxvuhPLsU0Yptcz4UJ0H4ybJgiZ2/hwQtDyTulFloA8/aXyt8bgYMt9o5j/GN8k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707153866; c=relaxed/simple; bh=57+vuhxR0ZRTmvixqiWFdIkVcetZmOf0Jc6VS8ZKuy4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Toc81EUzInSg8Jk05NcrHfHnN5Ukzm7ljWSOks+AQtMUZHgxj7/dg3Pwe7JpXYhL0Z30DDWQQTBIM2V1gBmPgZXp/skkEmXkJVoDFxTcrEqICH47hHSdKtYgdloHHWYVGXvXfB370ktM4lTYdAnQcto1xeSoAYKJaF9rQuUDS7Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qML3bQ/m; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34F6EC433F1; Mon, 5 Feb 2024 17:24:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707153865; bh=57+vuhxR0ZRTmvixqiWFdIkVcetZmOf0Jc6VS8ZKuy4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qML3bQ/m6US6eH59hVCWopHioCg9bU6f3BfZhxldrz/Q1oicATvG99hkjxhvnQFP9 z8V5RDoImB0E+4jJHovqJMvYqnaj+NfqEUr76TMvcCAg9RTnulsB9H1LSYofRmd+Cq DPMZIenghAfPCTqZ5sO+BKA8L6RBQoByNvOiI02mu7pWsXgXUv2ywUY2sKtKXN/+3Q yDSrnbRD1h9JJxQwwAfmC/UjEXYDRfWAoNAEuYpzoIaz4CcgD+R6K/a21pWjzO6tCy gatRjuZ22zSTh19PgzTyZRIThD06c0eMZE0frsJOvE908c4ECMbI2oSWtmas+hPevp Rvgm1PvcW2osQ== Date: Mon, 5 Feb 2024 17:24:22 +0000 From: Rob Herring To: Chen Wang Cc: aou@eecs.berkeley.edu, chao.wei@sophgo.com, conor@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, palmer@dabbelt.com, paul.walmsley@sifive.com, richardcochran@gmail.com, sboyd@kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, haijiao.liu@sophgo.com, xiaoguang.xing@sophgo.com, guoren@kernel.org, jszhang@kernel.org, inochiama@outlook.com, samuel.holland@sifive.com, Chen Wang Subject: Re: [PATCH v9 2/5] dt-bindings: clock: sophgo: add RP gate clocks for SG2042 Message-ID: <20240205172422.GA3643653-robh@kernel.org> References: 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=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Feb 02, 2024 at 02:42:02PM +0800, Chen Wang wrote: > From: Chen Wang > > Add bindings for the gate clocks of RP subsystem for Sophgo SG2042. > > Signed-off-by: Chen Wang > --- > .../bindings/clock/sophgo,sg2042-rpgate.yaml | 37 ++++++++++++ > .../dt-bindings/clock/sophgo,sg2042-rpgate.h | 58 +++++++++++++++++++ > 2 files changed, 95 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/sophgo,sg2042-rpgate.yaml > create mode 100644 include/dt-bindings/clock/sophgo,sg2042-rpgate.h > > diff --git a/Documentation/devicetree/bindings/clock/sophgo,sg2042-rpgate.yaml b/Documentation/devicetree/bindings/clock/sophgo,sg2042-rpgate.yaml > new file mode 100644 > index 000000000000..69ce3a64f66c > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/sophgo,sg2042-rpgate.yaml > @@ -0,0 +1,37 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/sophgo,sg2042-rpgate.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Sophgo SG2042 Gate Clock Generator for RP(riscv processors) subsystem > + > +maintainers: > + - Chen Wang > + > +properties: > + compatible: > + const: sophgo,sg2042-rpgate > + > + reg: > + maxItems: 1 > + > + '#clock-cells': > + const: 1 > + description: > + See for valid indices. > + > +required: > + - compatible > + - reg > + - '#clock-cells' > + > +additionalProperties: false > + > +examples: > + - | > + clock-controller@10000000 { > + compatible = "sophgo,sg2042-rpgate"; > + reg = <0x10000000 0x10000>; > + #clock-cells = <1>; No input clocks? > + }; > diff --git a/include/dt-bindings/clock/sophgo,sg2042-rpgate.h b/include/dt-bindings/clock/sophgo,sg2042-rpgate.h > new file mode 100644 > index 000000000000..8b4522d5f559 > --- /dev/null > +++ b/include/dt-bindings/clock/sophgo,sg2042-rpgate.h > @@ -0,0 +1,58 @@ > +/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ > +/* > + * Copyright (C) 2023 Sophgo Technology Inc. All rights reserved. > + */ > + > +#ifndef __DT_BINDINGS_SOPHGO_SG2042_RPGATE_H__ > +#define __DT_BINDINGS_SOPHGO_SG2042_RPGATE_H__ > + > +#define GATE_CLK_RXU0 0 > +#define GATE_CLK_RXU1 1 > +#define GATE_CLK_RXU2 2 > +#define GATE_CLK_RXU3 3 > +#define GATE_CLK_RXU4 4 > +#define GATE_CLK_RXU5 5 > +#define GATE_CLK_RXU6 6 > +#define GATE_CLK_RXU7 7 > +#define GATE_CLK_RXU8 8 > +#define GATE_CLK_RXU9 9 > +#define GATE_CLK_RXU10 10 > +#define GATE_CLK_RXU11 11 > +#define GATE_CLK_RXU12 12 > +#define GATE_CLK_RXU13 13 > +#define GATE_CLK_RXU14 14 > +#define GATE_CLK_RXU15 15 > +#define GATE_CLK_RXU16 16 > +#define GATE_CLK_RXU17 17 > +#define GATE_CLK_RXU18 18 > +#define GATE_CLK_RXU19 19 > +#define GATE_CLK_RXU20 20 > +#define GATE_CLK_RXU21 21 > +#define GATE_CLK_RXU22 22 > +#define GATE_CLK_RXU23 23 > +#define GATE_CLK_RXU24 24 > +#define GATE_CLK_RXU25 25 > +#define GATE_CLK_RXU26 26 > +#define GATE_CLK_RXU27 27 > +#define GATE_CLK_RXU28 28 > +#define GATE_CLK_RXU29 29 > +#define GATE_CLK_RXU30 30 > +#define GATE_CLK_RXU31 31 > +#define GATE_CLK_MP0 32 > +#define GATE_CLK_MP1 33 > +#define GATE_CLK_MP2 34 > +#define GATE_CLK_MP3 35 > +#define GATE_CLK_MP4 36 > +#define GATE_CLK_MP5 37 > +#define GATE_CLK_MP6 38 > +#define GATE_CLK_MP7 39 > +#define GATE_CLK_MP8 40 > +#define GATE_CLK_MP9 41 > +#define GATE_CLK_MP10 42 > +#define GATE_CLK_MP11 43 > +#define GATE_CLK_MP12 44 > +#define GATE_CLK_MP13 45 > +#define GATE_CLK_MP14 46 > +#define GATE_CLK_MP15 47 > + > +#endif /* __DT_BINDINGS_SOPHGO_SG2042_RPGATE_H__ */ > -- > 2.25.1 >