Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4041124rwd; Sat, 17 Jun 2023 06:33:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5yhGrZfa1L7xOZjYMz+pQeSKjMyh6WBKQLRPYHDX70Wxh133yaPssEDvnS7SoaNe2bsuRE X-Received: by 2002:a05:6a00:15cc:b0:655:89f1:2db8 with SMTP id o12-20020a056a0015cc00b0065589f12db8mr7561841pfu.16.1687008816362; Sat, 17 Jun 2023 06:33:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687008816; cv=none; d=google.com; s=arc-20160816; b=Tns43zARer1adGEhb4ltLxCU9DkBYr1JsYtG4QtwG2WLvqnVR2+g4yg8RyBxTaGjyE YxLXxh/Ck49SIWGo6bJ8O9JV32Rp/QbaLufhFROyXFUPoJA1VTQnMJQSgiBLC9bdapAj 2cdQABXBuU1wJkYsnhxmxvLv+js06IwqQxJwEJnVi/G2ODKdfssNg7Exa5E5SUnlaytB 2cs1wgOiLpch3O9m2R8F20pEjwwZEt3WnGedlGpb1Y1Q6eY8T/WzcYmPhqxQ1JkOARs/ xok9m77jfO3fYoPwPkxXJ3efyO+urPotQRwHIcrH8G6PA2VF2QkPYvzyRhBDKepeFC7x NPoQ== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=yD2mfuV+fqGi2BrJFGebt9olEIT6uNOgf7P1D42KFcQ=; b=oAD1bSK7HF/Wjm0ostlVX8rSjLdHBUMus4ud/DXbBknKFteuspKJD9DFZD87qj5YNP 3MLcyY42hQDaBT71FdE4xOUrGi/RaK++Jg7eBO2J/pc+XiapzqHJFOAlY2vFLdh8446z OlOtXRR+OYQc+eFJJWQHGNiNtqdmptrqHBslf9NVX+ZieEvgKwEbjLLRxz0r2e1lakyy vz+vMz5+l4xvaEhMyiEGb7kjl8nLok5AJOgYygzh7FkaKC0Hpc+mbAEnt4sDMz1pDMqF 9VxnvGCKZeS1DBGbh5MwMloyZz4x6+/2uapdQPad0XjcNdA2ccIrOcQdhs5nCR37+AAx D6SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MBX1P085; 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 z19-20020a63e113000000b0054ff67d6666si5595016pgh.512.2023.06.17.06.33.23; Sat, 17 Jun 2023 06:33:36 -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=MBX1P085; 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 S231965AbjFQNH3 (ORCPT + 99 others); Sat, 17 Jun 2023 09:07:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231877AbjFQNH1 (ORCPT ); Sat, 17 Jun 2023 09:07:27 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26A0810C8 for ; Sat, 17 Jun 2023 06:07:26 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-9829a5ae978so266469966b.2 for ; Sat, 17 Jun 2023 06:07:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687007244; x=1689599244; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=yD2mfuV+fqGi2BrJFGebt9olEIT6uNOgf7P1D42KFcQ=; b=MBX1P0855t6gkTdc1NHQ+J/Ew1POQStwXIl0hRyX1DvA4Dv/TlNJl6PJ5GXhk+gZZA 2liu38gJYjKlu32bcsa1jlGSE3kQ11LEMjWHhwYvM43V7AAbKwXixu9JoSxd0TiTFdLQ VcTTjzmFK++Xh1V+mEaxuvEF9BeThaYZ2YirEdUKpobdQ6tjVwIIQUxAod1On0+Ynfxk iUUDn1WE1O/ZWXny+Y0K1i2tzE19sCWur8I/4+p0WPAbQQblvADnzPTNJw+58AoNSXCX NykUO1heXFkGdrrmRGqZpmSk7wGMsYBGf2suXjdd2u0DilHeab5dgLK+NvFsQQKsp5LD YE/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687007244; x=1689599244; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=yD2mfuV+fqGi2BrJFGebt9olEIT6uNOgf7P1D42KFcQ=; b=dfYB9lht5kMIvH3DlJUPJxYZOEQvkkPtc8wtbmc7EqwwhHitn0GPCPe4k744CTO7fq tZy/RQqXeGVtVZnupOvBxe+dqdjaBXjIPqLiBlDkkCpTRGQhN6uBMZ/vUjrhiQPHbe82 ii0x8qqxEdp/qv4Cc2blswyNsz2u/vVHBS/iNsI8uuvKA+yBR6JLQZNOkjlyGMrlLPGy bpZFbhvyhA+P8zdMaUDkuNSyXRkGp/nAN3FMf/fYmJVc7qmialLynVX1hAaAhtDXie8h CgpkUQMaP+X5uGKQlRZ4PO9S9VOuo0eTJxF/1fxzpwXvj2hGt7S+IxGX4KI7txv1CB6q M52w== X-Gm-Message-State: AC+VfDxsGa2VzuURDUJJ3YDbqnrQWqW8+azN1DH+FfaziKZdPY5WzVmk xE0xjoAjE/3aDihtGZk11ET0Qg== X-Received: by 2002:a17:907:8a08:b0:987:ae30:4b96 with SMTP id sc8-20020a1709078a0800b00987ae304b96mr1706703ejc.12.1687007244300; Sat, 17 Jun 2023 06:07:24 -0700 (PDT) Received: from [192.168.1.20] ([178.197.219.26]) by smtp.gmail.com with ESMTPSA id t4-20020a170906178400b00982be08a9besm3063447eje.172.2023.06.17.06.07.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 17 Jun 2023 06:07:23 -0700 (PDT) Message-ID: Date: Sat, 17 Jun 2023 15:07:21 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v3 2/9] clk: ralink: add clock and reset driver for MTMIPS SoCs To: Shiji Yang , sergio.paracuellos@gmail.com Cc: arinc.unal@arinc9.com, devicetree@vger.kernel.org, john@phrozen.org, krzysztof.kozlowski+dt@linaro.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, matthias.bgg@gmail.com, mturquette@baylibre.com, p.zabel@pengutronix.de, robh+dt@kernel.org, sboyd@kernel.org, tsbogend@alpha.franken.de References: <20230617052435.359177-3-sergio.paracuellos@gmail.com> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,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 17/06/2023 14:54, Shiji Yang wrote: >> void __init plat_time_init(void) >> { >> + struct of_phandle_args clkspec; >> struct clk *clk; >> + int cpu_clk_idx; >> >> ralink_of_remap(); >> >> - ralink_clk_init(); >> - clk = clk_get_sys("cpu", NULL); >> + cpu_clk_idx = clk_cpu_index(); >> + if (cpu_clk_idx == -1) >> + panic("unable to get CPU clock index"); >> + >> + of_clk_init(NULL); >> + clkspec.np = of_find_node_by_name(NULL, "sysc"); > > The node name should be "syscon" as the example node name in the > dt-bindings document is "syscon". NAK for both. Node names must not be an ABI, unless you talk about child of some device node. I don't think this is the case here. Look by phandle (for a device context) or by compatible (looks the case here). Best regards, Krzysztof