Received: by 2002:a05:7412:98c1:b0:fa:551:50a7 with SMTP id kc1csp1468750rdb; Sun, 7 Jan 2024 23:04:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IGoxqFQP2yWXtZHpyRY7lqc80USczihQ3I76FcMXOOcDR9BQDseHCYt4PyJ1DPo1l+o/fV3 X-Received: by 2002:a05:6e02:20c4:b0:35f:e896:439c with SMTP id 4-20020a056e0220c400b0035fe896439cmr6438297ilq.53.1704697468993; Sun, 07 Jan 2024 23:04:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704697468; cv=none; d=google.com; s=arc-20160816; b=z84MWUY2LF27TKa5Vdn2abgjuidWWGPHuptCALiS69YZWyRO26pRs/MTEAUaBI/cdc g3kap3EGxaiSxT/eHXj264ya+uOoWEKNNr1mQkUI2xWnFBof1JMr7f79jDrcbSHWeX6i iqNT2BiiUqcUYE1QtldCYMkuOalp8i29gvvMgTRvTC2QlmfgzsdCvHzr9WzBncbxebAQ 456qdr/Y95WFGginpsle1ylihN+0P5ULFG/eT/Q5HAmAyTFtaiUGK8LOP/Ee2ve5fUWD 9hw7+0mzhMd0Cid3QaOd0MtWaDObAyUMee0EmysuQg1xV/Kc9EyZiW5w6el0tzVrLuYZ 9pLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=SL1rSV8LJDmQM8c+9mhidlWqZwK4QsTJy4vBuMNpFw4=; fh=uuRGoHzxNDwN3ZC9aCaYqdOy7/MykYnY7U8pAFWmT9E=; b=guKmN33BBrVkquWIkcbLbzns7eyPXpQO6RF7aIdD3qYNPegQyR8OOi/byRc5ubHHKF rQqxsKG8o987XPSJHsjrFSui9KFooZvhSY01t6kFhlhc4tcZDlALjAlWmKK/i2Ob7y02 uqNc1SrHaLgzYbFxaEXqFDi4CFoUBUXNQ6QhOQmZttpYIb/2IwoaGHuFa8/dciLqZllg i4wi/sM1iRIjzW+Hrc+Hm+Js7WHmzMcV7sk4TzlJUTaJFyJNRd3/Xs0EpXuE6WS36CZW 6XZB9kLCeYq/Tk0jcTF/3CcSXPH7a5e49hq+Sv5AGGXNh6wYSkgj1Zy03UL6tqTHdO4R rBJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xTEEEgTu; spf=pass (google.com: domain of linux-kernel+bounces-19126-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19126-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c22-20020a637256000000b005cf02b42b29si265413pgn.116.2024.01.07.23.04.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Jan 2024 23:04:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-19126-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=xTEEEgTu; spf=pass (google.com: domain of linux-kernel+bounces-19126-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-19126-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 9A81D281BAF for ; Mon, 8 Jan 2024 07:04:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 089F98813; Mon, 8 Jan 2024 07:04:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="xTEEEgTu" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f46.google.com (mail-lf1-f46.google.com [209.85.167.46]) (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 902A78BF3 for ; Mon, 8 Jan 2024 07:04:19 +0000 (UTC) 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-lf1-f46.google.com with SMTP id 2adb3069b0e04-50e7e55c0f6so1273222e87.0 for ; Sun, 07 Jan 2024 23:04:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704697457; x=1705302257; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=SL1rSV8LJDmQM8c+9mhidlWqZwK4QsTJy4vBuMNpFw4=; b=xTEEEgTu9wbCe9e4MoAYnV9Lk98d18crxZ5sEANHpH5gQwv09SgwCPXYyj2Zf7cURr Qn3ba79CJNY9OgCZUTndkDWoRyLNA6gx4AX8z98AaVX26TpN3Ycb6kxMMwTKzHrB+gEA I+3USrrxrIJ6wrZMJAHHMMh2/0j7IUYxwmKzJNtv8XLIFsnNxXds2Km9Nef/fUa4WptQ cIji7RUWP6sY8N8EtwzktRiUJl2tm7Vo/mOB8tbvMxvFEev0LlNCossfv5m7+i8ewZrn jrmex+SJcoRo6SctVCrXayOIvlAHYl7NO16HrN/Ij6aKxl8gz5h9zeGaEGX/GZYQ9LJC RfpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704697457; x=1705302257; h=content-transfer-encoding:in-reply-to:autocrypt:from:references:cc :to:content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=SL1rSV8LJDmQM8c+9mhidlWqZwK4QsTJy4vBuMNpFw4=; b=W5hFiX7u2Ubzref+UeoCFELVdEaNV8ANp7HI617mnSJBhkLnbXzg0P+OWXV7giZXis oG+MnY7Qbs5SMMcZWOQLxss2grmwOSG9efW+Blwo1jU07U6x4NPstMmlqneauYclfSFl fJXFfTwX26DlwPyY1aEz7rraXzseONNAwEpWGi2/QaR8zvjQVZDtSwN7UVspUzJC32Qe vM1cRvhBRaNrwMJAUlOtpbzrFskYIDluVRvWzXhVsk3c7vXyQ8DsWFTuRX3MtZ4DX7oS cR7CIc37b9VuoxbMYBBvDSkW62YABc0F1U6ehvmniBEIf7sDdr1I23u+kcLZ5KMb8RZt hj+A== X-Gm-Message-State: AOJu0YzEBkPYXBw/vQ+4J6/Iyos/NI1TL6SBIcb8CBNDdfr6oy1Dv77R C/okGl0oEuKvocS569tyfPsNGG87QjcPdA== X-Received: by 2002:a05:6512:acb:b0:50e:6940:238e with SMTP id n11-20020a0565120acb00b0050e6940238emr720899lfu.19.1704697457605; Sun, 07 Jan 2024 23:04:17 -0800 (PST) Received: from [192.168.1.20] ([178.197.223.112]) by smtp.gmail.com with ESMTPSA id fd5-20020a056402388500b0055743d6e9ebsm3059360edb.41.2024.01.07.23.04.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 07 Jan 2024 23:04:17 -0800 (PST) Message-ID: Date: Mon, 8 Jan 2024 08:04:14 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v7 2/4] dt-bindings: clock: sophgo: support SG2042 Content-Language: en-US To: Chen Wang , 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, robh+dt@kernel.org, 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 Cc: Chen Wang , Conor Dooley References: <925d99d5b4ece01337cb3389aaea4b631894dd1d.1704694903.git.unicorn_wang@outlook.com> From: Krzysztof Kozlowski Autocrypt: addr=krzysztof.kozlowski@linaro.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC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X47nr6jIsEB5ZftdybIzpMZ5V9v45lUwmdnMrSzZVgC4jRGXzsU EViBQt2CopXtHtYfPAO5nAkIvKSNp3jmGxZw4aTc5xoAZBLo0OV+Ezo71pg3AYvq0a3/oGRG KQ06ztUMRrj8eVtpImjsWCd0bDWRaaR4vqhCHvAG9iWXZu4qh3ipie2Y0oSJygcZT7H3UZxq fyYKiqEmRuqsvv6dcbblD8ZLkz1EVZL6djImH5zc5x8qpVxlA0A0i23v5QvN00m6G9NFF0Le D2GYIS41Kv4Isx2dEFh+/Q== In-Reply-To: <925d99d5b4ece01337cb3389aaea4b631894dd1d.1704694903.git.unicorn_wang@outlook.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 08/01/2024 07:49, Chen Wang wrote: > From: Chen Wang > > Add bindings for the clock generator on the SG2042 RISC-V SoC. > > Signed-off-by: Chen Wang > Reviewed-by: Conor Dooley > --- > .../bindings/clock/sophgo,sg2042-clkgen.yaml | 53 ++++++ > .../dt-bindings/clock/sophgo,sg2042-clkgen.h | 169 ++++++++++++++++++ > 2 files changed, 222 insertions(+) > create mode 100644 Documentation/devicetree/bindings/clock/sophgo,sg2042-clkgen.yaml > create mode 100644 include/dt-bindings/clock/sophgo,sg2042-clkgen.h > > diff --git a/Documentation/devicetree/bindings/clock/sophgo,sg2042-clkgen.yaml b/Documentation/devicetree/bindings/clock/sophgo,sg2042-clkgen.yaml > new file mode 100644 > index 000000000000..f9935e66fc95 > --- /dev/null > +++ b/Documentation/devicetree/bindings/clock/sophgo,sg2042-clkgen.yaml > @@ -0,0 +1,53 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/clock/sophgo,sg2042-clkgen.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Sophgo SG2042 Clock Generator > + > +maintainers: > + - Chen Wang > + > +properties: > + compatible: > + const: sophgo,sg2042-clkgen > + > + reg: > + maxItems: 1 > + > + sophgo,system-ctrl: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: > + Phandle to SG2042 System Controller node. On SG2042, part of control > + registers of Clock Controller are defined in System controller. Clock > + driver will use this phandle to get the register map base to plus the > + offset of the registers to access them. Do not describe the driver, but hardware. What registers are in system-ctrl? What are their purpose? Why this hardware needs them? Best regards, Krzysztof