Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4676354rwb; Tue, 8 Aug 2023 11:58:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEzWnTi9iXeqy3QAJC/5cmANwQlZhbPL0yEFrgAlK//MlcSZ4apcVZR/I6iSLN5Fveo2kZf X-Received: by 2002:a05:6a21:3281:b0:12f:c61e:7cac with SMTP id yt1-20020a056a21328100b0012fc61e7cacmr465343pzb.31.1691521109946; Tue, 08 Aug 2023 11:58:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691521109; cv=none; d=google.com; s=arc-20160816; b=P0aajGjOxQhsMQPWWdw9UH3yq+Wu86h9D3ONcU+LDzYcl9j8gkPP5QQrqHdC8Tk958 IIhOxLCyl2lGaFVaELEeGi9MKsG7k1hTMV6FA3JYknHTgGwbmlzwFBV/AeUsCyu2j52d 7k0J25uJEacqkJILbNNRwvMI5kvGnOAWLKCtUj2E4PmqAFOMqor8KCbfziXYTj5Aoayt RcxbwpY1WSMTrvmNcrG5JFrksAVTXY3PLl7olD9K4nhizPXKagYXgdVtIvC7foj5g6FB 16kEaXWekSufFpy+3CEfTMMkHw7vLn+M7bQlgJazlY7FS6o/eova4Otrsu2l2DLOh4u+ vaOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=wkxbaJE1w03H/idk1NWqMQgLO1L7biBsn5GEkh/lQVQ=; fh=pbT/Vda81BBBAEFYal16W0RzqQB/7mFFkvPNNi7WXQU=; b=FUYnTxYt+FZkWH0CRj5ZjXJNUUIqTI3/P8Eh4UvqeMqDvgwesZqd2POEZGwjYSfG3z BV34ujAjoM/ZrP+nQNGK7rMTAyg3FYNpPqtFT4VeNbHTxvpUuKOigZyxxnYtUfheWXKq qubJOQYwNUEsypQRWdDReOuF6p2sFAbcmcjWfZdRZVeBvkMOVZBPfpC2k3KUqbQfhwT5 ZrE8GyhkFIuJ//huUliZpF2s70Ths0AlTSQLhlRo3tVi9Dq84U7nOxBfny7wdnPbXUMO oGBKsy2dEXiZzMNoYs5JZdhzpwJO47IXddDs+vK2i3Nx2w7CJYaKhM6TCROy8YaBoHY9 8s9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Xg9H8Bok; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bq26-20020a056a000e1a00b00687312950a1si7703863pfb.387.2023.08.08.11.58.17; Tue, 08 Aug 2023 11:58:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Xg9H8Bok; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234809AbjHHRpH (ORCPT + 99 others); Tue, 8 Aug 2023 13:45:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234794AbjHHRon (ORCPT ); Tue, 8 Aug 2023 13:44:43 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABF6DAA160 for ; Tue, 8 Aug 2023 09:20:09 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b9b50be31aso90297151fa.3 for ; Tue, 08 Aug 2023 09:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691511569; x=1692116369; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=wkxbaJE1w03H/idk1NWqMQgLO1L7biBsn5GEkh/lQVQ=; b=Xg9H8BokBsPvFnwisvUUpVeRniDMXGxdedCKX5FDXl4/v9pG2nuZuh+JW1Nd0zt9CY sf95RxRHqFSJndO9HOzNCRopWw1hqzNc+YwnZ05fxwSjC8ymTkJSFusSSEDSaHO/gWtM s9N72uBmczHHWidqh0gHq9N+LrvQN/5fUzLg9CEXrLPcV0H45IML4NW51iGIsZOVy5mP 2U2lRQKJBpCr3aIYA68drYW5YNdjH9+d6Q0Qly68nbP5uXaZb4HQHX1qim2TLc0Oin7Z szlitUl8oZh2/7cj1aCBADruyWd7KwqILlf/hRZr+iOyAbLbbAy20Ta6Ff4gEXN4m1lp 1pyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691511569; x=1692116369; h=content-transfer-encoding:in-reply-to: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=wkxbaJE1w03H/idk1NWqMQgLO1L7biBsn5GEkh/lQVQ=; b=fFZhLyML7IriTwJtm7Rs/Slj1CGkVuE/nKV/tdOE0OW0NmxKNc0r/J5nFHdfupVV38 ewAE4suTXxKGi9f33yf/3DuESki+TasdxsOw1tGlgr4ujj5DN9893o9Ty8qrOVtEcxbZ KTctsW9WUV/3xGI52ORKi+46oLFsJcS6V+BPcKExewU7AXAM8vAqslv/B2wIKDI3xUlB WU5lilWL+pqM5oHp7pFhfOW9XRc1KztcYK/mhC/nxS/oFvZEYqiOioIhuKJVjiDD3mtf fu4GCOpULrd6BE7OQak0jaqHWTOu+H2npapnpNJcd7mSV6ag98ayvGYsaZwZlV8968/g B5LA== X-Gm-Message-State: AOJu0Yyir2b5ttoKP3jGGTdmArnz7oN3oNNcOiITEq7JTbuerM8ovzZ5 EBoQPmhaQBdDhd/y9dTe1Fex/FkNv7cp/SvIEDI= X-Received: by 2002:a17:906:cc0f:b0:99b:d440:bf0b with SMTP id ml15-20020a170906cc0f00b0099bd440bf0bmr8097863ejb.67.1691477192381; Mon, 07 Aug 2023 23:46:32 -0700 (PDT) Received: from [192.168.1.20] ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id c24-20020a170906155800b00993004239a4sm6147808ejd.215.2023.08.07.23.46.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 07 Aug 2023 23:46:31 -0700 (PDT) Message-ID: <1f20d778-cdae-d6d9-ac86-744dd45176d3@linaro.org> Date: Tue, 8 Aug 2023 08:46:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH 2/3] dt-bindings: clock: add qca8386/qca8084 clock and reset definitions Content-Language: en-US To: Jie Luo , agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, p.zabel@pengutronix.de Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_srichara@quicinc.com References: <20230801085352.22873-1-quic_luoj@quicinc.com> <20230801085352.22873-3-quic_luoj@quicinc.com> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/08/2023 08:31, Jie Luo wrote: > > > On 8/8/2023 1:57 PM, Krzysztof Kozlowski wrote: >> On 08/08/2023 07:19, Jie Luo wrote: >>>>> +properties: >>>>> + compatible: >>>>> + const: qcom,nsscc-qca8k >>>> >>>> SoC name is before IP block names. See: >>>> Documentation/devicetree/bindings/arm/qcom-soc.yaml >>>> >>>> qca8k is not SoC specific. I don't know what you are documenting here, >>>> but if this is a SoC, then follow SoC rules. >>>> >>>> If this is not SoC, it confuses me a bit to use GCC binding. >>>> >>>> Anyway, this was not tested, as pointed out by bot... Please test the >>>> code before sending. >>>> >>>> Best regards, >>>> Krzysztof >>>> >>> >>> Hi Krzysztof, >>> >>> Thanks for the review comments. >>> qca8383/qca8084 is a network chip that support switch mode and PHY mode, >>> the hardware register is accessed by MDIO bus, which is not a SOC. >>> >>> But it has the self-contained clock controller system, the clock >>> framework of qca8386/qca8084 is same as the GCC of ipq platform such as >>> ipq9574. >> >> OK >> >>> >>> would you help advise whether we can document it with the compatible >>> "qcom,qca8k-nsscc"? >> >> For example: >> qcom,qca8084-nsscc >> >> Best regards, >> Krzysztof >> > Thanks Krzysztof for the suggestion. > > i will document the compatible below. > "qcom,qca8084-nsscc" for the PHY mode of device. > "qcom,qca8386-nsscc" for the switch mode of device. The clocks seem to be exactly the same for both, so use only one compatible in the driver (the fallback) and oneOf in the bindings like: https://elixir.bootlin.com/linux/v6.3-rc6/source/Documentation/devicetree/bindings/sound/nvidia,tegra210-ope.yaml#L31 Best regards, Krzysztof