Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1003903iob; Fri, 13 May 2022 19:17:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxdCYRXpBDTZRrvUzgBGLCGa+HBu8VMH5qFVPH7WGvzCcX5V4ZCog4WlWXClJn5qmT9lu/ X-Received: by 2002:a1c:2185:0:b0:38f:f4ed:f964 with SMTP id h127-20020a1c2185000000b0038ff4edf964mr6915337wmh.115.1652494675179; Fri, 13 May 2022 19:17:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652494675; cv=none; d=google.com; s=arc-20160816; b=zAluUvyBAYeoDk0pPHkYZIP4unfXzhQNmeXIQzBmzhC0WZZKxYmUNDCi5SSqXlj1+u MXvSyyNilJ4Y7YEnTun/nJkwOPZMNvTWoIhwZpnlA/MS/Av1DRw0lSDIMWA+m8RYWcXh Q9n40SA1m9qTyfjwMZDkt+KT/utAXUmPynjHOQjUtIna42+1LbM+5LGUEnXqlxdrkjHZ tf1uVigLZAtJqBY/jX8NbAV1GNJ/kFfa2nMLqqc/F3CSoVbQ1ug6Bi+u9hfBIAAGewTQ 041Mm5mPYGFJi1RPgJweFzol2rh3Ixsdu1CQZfFDt7Lc/UiE7WCbx1biPz1Gu4F2ZQC3 VO4A== 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=hASHPxv83GRvBq/XPbZdnxvQhLbD/eQRxLrZ3SHe3bA=; b=Vhi/sxOrg7fNpZ12e1Ak9AnF7GF5d7UWDk5S+R4xo+wHnNeuuKV5N2q4v7NPuZ3tJ6 QJLs/Mrn/u2LUsiCIkHfXi2ztOizjZwV7Z3PQdeLfC5wz/x2/q7/mh6kT5841wNKzIu/ RqY/YOhRpF9PeDG60bIxWr9nNkKJUky24toPIHL0OUoJoDl1wuVtmpuXdZG9Rsm5tRwC 0sao5jJSGEObywu5Mdtf6V4EH6/Jx1rb+81RL2AZnZPH4mXNXtOvSYlY+oQi9zrxpa5V e9tvjtJlbE3H6eea/Vnlw0Hyx+czAigXuZJHc30V0NfAMsA5XBwa54bFx9kzHqqeLZ8e 53Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MxmcUOjE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id l7-20020a5d6d87000000b002078f8a93edsi4157059wrs.563.2022.05.13.19.17.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 19:17:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MxmcUOjE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6EADE4AF8C3; Fri, 13 May 2022 17:34:39 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377523AbiEMG6D (ORCPT + 99 others); Fri, 13 May 2022 02:58:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377575AbiEMG55 (ORCPT ); Fri, 13 May 2022 02:57:57 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3324668FBE for ; Thu, 12 May 2022 23:57:56 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id c190-20020a1c35c7000000b0038e37907b5bso6408582wma.0 for ; Thu, 12 May 2022 23:57:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=hASHPxv83GRvBq/XPbZdnxvQhLbD/eQRxLrZ3SHe3bA=; b=MxmcUOjEGFiLSngN/s+THREtdHFypFyRomxXgORGuf0OBSoSVonN4PCD4g7HVyqhrs aUMhRTId2H4bGCNg3lxU7geHZwdf3zQhDaEk9gGuJ+kwmjP4rylWr3uHxYCy6j9Srs3b YIOsXtxuWYHiTthFqmj2O7fVJK4diCiepDOKDd2ZPqK6qRCuHkwuV38Wt8Nzl3pqnSUp baiss945RrZk/SvxyAamevYckSxYsUaBTu7/qGTF9yCtqr5wMLgRBK3e/SbwtmWcDanw nAmbV/BasVDgoSft8nk4Wisg1DiWST27z3CsjvO8kbdpqoUuU2ABCWzbPfuq5Sxr27MO pwlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=hASHPxv83GRvBq/XPbZdnxvQhLbD/eQRxLrZ3SHe3bA=; b=C3qx/NrHzmSsPwzi629kZcHQPPdT6RJq47NC/QbnAnDYt1rNOQcqubqcl2unORFmp5 qqwozzFZKc6zZE5cNkbZed6axJmbShtt7QbwxDL5LZS0YhySwxeb5o6Pi8kqLZksR7nX It+ij/xvL3P+hdNUA1yP4kcf7ISfiSVJV5nNZl6Z9M3PClzTx3ee/S3JocVafT413DMv 7prc25Jtw7/zyNy019rlhAtIu7cMy23ynzPHyMQUjtJ9WkGEi16imZh5MXaXaROMkGri sylxrNIYtLvqBnd2Wv6f/Qdt/2WhWq/Y9UesTMRfsb69H5nQbldG8+C/gzxQsGeLWLTy aOow== X-Gm-Message-State: AOAM530SYxrQAMbqui/s/TjiXtWEdzDRRuYu+voFhqIjsyONhS1thms7 JG3FCTRXbqcX7UO3T8NpSi4pnQ== X-Received: by 2002:a05:600c:6021:b0:394:56be:18e with SMTP id az33-20020a05600c602100b0039456be018emr3038733wmb.86.1652425074641; Thu, 12 May 2022 23:57:54 -0700 (PDT) Received: from [192.168.0.167] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id e15-20020adfa74f000000b0020c5253d8e5sm1301475wrd.49.2022.05.12.23.57.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 12 May 2022 23:57:54 -0700 (PDT) Message-ID: <0e72e176-d7b0-ed10-08f3-ba7d4729a931@linaro.org> Date: Fri, 13 May 2022 08:57:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH V4 3/5] arm64: dts: nuvoton: Add initial support for MA35D1 Content-Language: en-US To: Jacky Huang , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ychuang570808@gmail.com Cc: robh+dt@kernel.org, sboyd@kernel.org, krzk+dt@kernel.org, arnd@arndb.de, olof@lixom.net, catalin.marinas@arm.com, will@kernel.org, soc@kernel.org, cfli0@nuvoton.com References: <20220510032558.10304-1-ychuang3@nuvoton.com> <20220510032558.10304-4-ychuang3@nuvoton.com> <03ac0a67-bd1f-12ca-74f7-8d5b05857ea7@linaro.org> <46a55b01-ee9f-604f-72c9-916bc2f02a09@nuvoton.com> From: Krzysztof Kozlowski In-Reply-To: <46a55b01-ee9f-604f-72c9-916bc2f02a09@nuvoton.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE 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 13/05/2022 08:48, Jacky Huang wrote: >>> + >>> + hxt_24m: hxt_24mhz { >> No underscores in node name. Generic node names, so "clock-X" or >> "clock-some-suffix" > > OK, I will modify it as >  hxt-24m: hxt-24mhz No, it is not a generic node name. Please read my reply again. > >>> + compatible = "fixed-clock"; >>> + #clock-cells = <0>; >>> + clock-frequency = <24000000>; >> This does not look like property of SoC. Where is this clock defined? In >> the SoC or on the board? > > It's an external crystal on the board. > I add this node, because it's the clock source of clock controller. > It always present on all ma35d1 boards. > >     clk: clock-controller@40460200 { >         compatible = "nuvoton,ma35d1-clk"; >         reg = <0x0 0x40460200 0x0 0x100>; >         #clock-cells = <1>; >         clocks = <&hxt_24m>; >         clock-names = "HXT_24MHz"; > ... > >>> + clock-output-names = "HXT_24MHz"; >>> + }; >>> + >>> + timer { >>> + compatible = "arm,armv8-timer"; >>> + interrupts = >> + IRQ_TYPE_LEVEL_LOW)>, >>> + >> + IRQ_TYPE_LEVEL_LOW)>, >>> + >> + IRQ_TYPE_LEVEL_LOW)>, >>> + >> + IRQ_TYPE_LEVEL_LOW)>; >>> + clock-frequency = <12000000>; >>> + }; >>> + >>> + sys: system-controller@40460000 { >>> + compatible = "nuvoton,ma35d1-sys", "syscon", "simple-mfd"; >> Why is this a simple-mfd if there are no children here? What do you want >> to instantiate here? > > It's not a device, but a set of registers for system level control. > I want to provide a register base mapping for other devices to access > system control registers. This does not explain why you need simple-mfd. simple-mfd is not for providing a register base mapping for other devices. > >> Where is the nuvoton,ma35d1-sys compatible documented? > > OK, I will add the compatible document in next version. > > >>> + reg = <0x0 0x40460000 0x0 0x400>; >>> + }; >>> + >>> + reset: reset-controller { >>> + compatible = "nuvoton,ma35d1-reset"; >> Also not documented. > > I will also add the document for it. All of these should fail on checkpatch which points that you either did not run it or ignored the result. Please run checkpatch on all your submissions to Linux kernel and be sure that there is no warning or error. Best regards, Krzysztof