Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2458383iob; Sun, 15 May 2022 20:27:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFoE4rlk0R4SpNRmXYhKsHT+/POyKzcg5lNRJ/0smfm0avlUJlKtgPBpQvwj5T2UD9lwka X-Received: by 2002:a05:6402:424c:b0:427:eae2:ed09 with SMTP id g12-20020a056402424c00b00427eae2ed09mr11033100edb.376.1652671663474; Sun, 15 May 2022 20:27:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652671663; cv=none; d=google.com; s=arc-20160816; b=kE2Fx9rBnF5+lp23W608StDDEBymXrPt/k8ZKQqZ1hFaHEIJqMvq6Ht1Ol8uWdI/ZS UqYRPesjJSBMf8ubjOQkAb88UeORYC/O91ohdna3hbfKQ08SAgxI5o7QJ5oI3+U70Kcs LSV/gib12BdFP8CYPySC/awqjYfTrgcVLQJKD3+Gc2BtNvnsmudDmwTCKeyAAirp8KUt Bj/K37WGB8dlqUsrwSPQ6p/pLCAehJeGa907wTjYD4pIXaMx8jqHOvmxf/HsJl1piLMw w9V5zgnu+L0o5pmJCvdA8XXOWQKZLh8ZK1r3r/5RREvYZxnRevRgqzc/sHZrjWjP3ZvV gzRg== 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=tRV5JE86bFuYcqLGI4iCVDOTEroMDx6x0x4YyJ/8UrM=; b=EvPR9ktDeKfIeEg/wr9UTuZXoTA2dD40fJ/T1rCdOlzeO5cM5E/a2z3Zd/NEVVjRJ+ z5rz/AcNRYblGHDUrcxk/pjae5D+gh9g10plqdFSsaNnIj1p/t50ewKaP1DuQ2w745ji pH4TcpV85+oaMrQHkgZWIYrEuGJGshN3RhluOWME3SZsUEDVjYvrHwsWT0UvJR41xCwe J3a+QVMnnCJDpajgxDQkr6SKIR8yR809NeRTOqqCnT8Rp9C4ijI4SxheyPGRmWvIy7Ao SWY/YGSmsSlueANZkbQpqqTWXsQ910E61n7C0TsO16dfQ7t5XoYOsfXKEzmX9A2vdTI+ AFIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=AMYyPpyQ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb10-20020a1709071c8a00b006f52946f4a3si9576951ejc.968.2022.05.15.20.27.18; Sun, 15 May 2022 20:27:43 -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=@gmail.com header.s=20210112 header.b=AMYyPpyQ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235712AbiEOFx4 (ORCPT + 99 others); Sun, 15 May 2022 01:53:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229901AbiEOFxy (ORCPT ); Sun, 15 May 2022 01:53:54 -0400 Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B10A3EBBE; Sat, 14 May 2022 22:53:54 -0700 (PDT) Received: by mail-pj1-x1036.google.com with SMTP id gj17-20020a17090b109100b001d8b390f77bso14441384pjb.1; Sat, 14 May 2022 22:53:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=tRV5JE86bFuYcqLGI4iCVDOTEroMDx6x0x4YyJ/8UrM=; b=AMYyPpyQElOBpvPjTsf+LxUjX+KWybCUcLjfvb0RMyT7G4ZJy3mwCtkwy9RJ3/pnUi JxmLjX56HEkEjG8TrLHqDfGITX0RfJVNc+V4t0kcO+EPkqrL7kjHJC6Q9VLx3Y6PkwX5 YeGIaxkLIv+kUbye8SWGw/vV1r5Vy49SBz4eIBTHPpkTU2YEHqc6wWVYmvT0deFIVTF3 u7TzCtj1aBrK+sPzh4hzeaSDDnJDJ0n5V6rj3v7ehIVcEHR8KfQkXAJzSphYun8UdMZK JHBcuiTlWOrDC3Wczvjy4bQxLeerSeqnN9JOP20IOkypAw8LSWsjmAh7RXxwtt0b5A/D l6Rg== 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=tRV5JE86bFuYcqLGI4iCVDOTEroMDx6x0x4YyJ/8UrM=; b=LNPMjL9mZquo7Shy31YCrxDuGelAgh2YMdjAxx6qVw9Y0WinOeVTKb/IhNQ5V6vDh5 cuj/oSqE17SYV+wC7PD0POfV7bbf2uVFNFhxC+hMfVU2AcgPqePJ6UEnb94JXjBWZIzs WofZ1e8Rp6zCk3tMQV5+nP6EFnCxBZj0/5pR2C0qtEjQDs5THkY9NVRQ45u9tpqDeNeQ wabjmj4b2NPSWeB0mw0V9InzqLHxTNtiFPSu5rHZTixMajorW1d6Kehd5lkm39jVwAAQ tx6zWHVBnULufPa5VaskQgUpkblhj390yaati7tOuODlaYJVBd1LuJUPNkhgv5TodH6u fLBA== X-Gm-Message-State: AOAM532B0koT0kZfPW7bOBw4T2lQQE7WoZmY+PRyzGmNb4wfZrpp5LNP F5MJK4Z3L9Y/IUN0mYEQ55g= X-Received: by 2002:a17:90b:30c3:b0:1dc:b6d7:58d3 with SMTP id hi3-20020a17090b30c300b001dcb6d758d3mr12944916pjb.172.1652594033516; Sat, 14 May 2022 22:53:53 -0700 (PDT) Received: from [192.168.1.101] (1-171-27-237.dynamic-ip.hinet.net. [1.171.27.237]) by smtp.gmail.com with ESMTPSA id g12-20020aa79dcc000000b0050dc76281fesm4399596pfq.216.2022.05.14.22.53.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 14 May 2022 22:53:53 -0700 (PDT) Message-ID: Date: Sun, 15 May 2022 13:53:49 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Subject: Re: [PATCH V4 3/5] arm64: dts: nuvoton: Add initial support for MA35D1 Content-Language: en-US To: Krzysztof Kozlowski , Jacky Huang , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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> <0e72e176-d7b0-ed10-08f3-ba7d4729a931@linaro.org> From: Jacky Huang In-Reply-To: <0e72e176-d7b0-ed10-08f3-ba7d4729a931@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 2022/5/13 下午 02:57, Krzysztof Kozlowski wrote: > 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. I  would modify it as    clock-hxt: clock-hspd-ext-crystal > >>>> + 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. OK, I will remove the "simple-mfd" from sys node. >>> 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 Sure, thank you for reminding. Sincerely,. Jacky Huang