Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp816443pxb; Tue, 12 Apr 2022 14:15:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7US1yzEC6WRo8bXT9fKkgmqEfFKdVSqmttSsAjI24Hxlc0G+aBZLyGJe12YfVMYZ035ZM X-Received: by 2002:a17:90b:1bc3:b0:1cd:3ce7:aae8 with SMTP id oa3-20020a17090b1bc300b001cd3ce7aae8mr3114753pjb.1.1649798101537; Tue, 12 Apr 2022 14:15:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649798101; cv=none; d=google.com; s=arc-20160816; b=jBrSr4IE0CcqOgG9AuaN/iq5qxZCiFQEcIVZrkKFyxDqd9MpubpZmXcS/VMk78axwx UzveCwbdB9lSKleFoncyzKETVC42xSbWcf0bOZdJOdrpUKSG5qzh8sXCYn/N7raLBX6S 6LU3MyCHSSzKP9m4ZbkR7A+93qXJFeGvLEi2JSJH0FFsm+9kBatYZ6rDpZuZpatDfkzf Pmb3CHdRvZG9KCWbmlseszxt6yX8llrFzhprxL+olWcBt4f2ottjLVeG5xx0bG2qA34z HRsdQpcQLm1rGUTbSdfx7hhK+FxgRq6CWkL7QQI7OU50QEb84GPup3mfUSuqJCRJNaGZ a1PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=ukmHVqRt2Bmxj2rjRMiq98DHPOeSXagMfc1+rMbT/ks=; b=rm1CVHpulhEU9n774fuIeSLeTf9SUGWUvazNV4gvd37SG2JCkYs8s2zFTPbHErDbyl Y6ENG3QIxHrCuAVSRNvgX6mn4DbdqdlPO8JPmIlPu8N0ZBNZT9A/ExsJolX/GYXk8MD4 +u5FEJZx/PspsjbQIQ49tPar/bHR6E7bZBuBouecyFQI7pXQAry9gpm1K2XkuLW/rJUq AAVvi55tM6DpJDGohtR5D8RhoG9ZEEPOYFja/G/ilApSUYiziMAkv+0J77ljKwomexlf PBWznOs567ca8PM9Nterf877WQFlgjcI/Xf1IzlpXyC7jNwXtIXOCjqGOpo0VC5Wh+TJ GEIw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id k8-20020a056a00134800b004fa3a8dff83si13550075pfu.58.2022.04.12.14.15.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 14:15:01 -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; 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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4AB4DEDF2D; Tue, 12 Apr 2022 13:30:00 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348466AbiDKQLf (ORCPT + 99 others); Mon, 11 Apr 2022 12:11:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348445AbiDKQKi (ORCPT ); Mon, 11 Apr 2022 12:10:38 -0400 Received: from out28-195.mail.aliyun.com (out28-195.mail.aliyun.com [115.124.28.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D9CD2DAB1; Mon, 11 Apr 2022 09:08:15 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.07465795|-1;CH=green;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.420245-0.00136469-0.57839;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047198;MF=zhouyanjie@wanyeetech.com;NM=1;PH=DS;RN=7;RT=7;SR=0;TI=SMTPD_---.NOcTfuC_1649693291; Received: from 192.168.30.128(mailfrom:zhouyanjie@wanyeetech.com fp:SMTPD_---.NOcTfuC_1649693291) by smtp.aliyun-inc.com(33.40.85.40); Tue, 12 Apr 2022 00:08:12 +0800 Subject: Re: [PATCH] mips: dts: ingenic: x1000: Add PWM device tree node To: Aidan MacDonald Cc: devicetree@vger.kernel.org, krzk+dt@kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, paul@crapouillou.net, robh+dt@kernel.org References: <20220411100139.15672-1-aidanmacdonald.0x0@gmail.com> <8a3f88d8-3e94-1388-b1c6-b0f71d59f34c@wanyeetech.com> From: Zhou Yanjie Message-ID: <907aedbd-9277-0e65-bd33-49ec2cb7d2f9@wanyeetech.com> Date: Tue, 12 Apr 2022 00:08:11 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY 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 Hi Aidan, On 2022/4/11 下午11:47, Aidan MacDonald wrote: > On Mon, Apr 11, 2022 at 08:41:26PM +0800, Zhou Yanjie wrote: >> Hi Aidan, >> >> On 2022/4/11 下午6:01, Aidan MacDonald wrote: >>> Copied from the jz4740 devicetree and trimmed to 5 timers, which >>> is what the hardware supports. >>> >>> Signed-off-by: Aidan MacDonald >>> --- >>> arch/mips/boot/dts/ingenic/x1000.dtsi | 13 +++++++++++++ >>> 1 file changed, 13 insertions(+) >>> >>> diff --git a/arch/mips/boot/dts/ingenic/x1000.dtsi b/arch/mips/boot/dts/ingenic/x1000.dtsi >>> index 8bd27edef216..0dcf37527c8e 100644 >>> --- a/arch/mips/boot/dts/ingenic/x1000.dtsi >>> +++ b/arch/mips/boot/dts/ingenic/x1000.dtsi >>> @@ -127,6 +127,19 @@ wdt: watchdog@0 { >>> clocks = <&tcu TCU_CLK_WDT>; >>> clock-names = "wdt"; >>> }; >>> + >>> + pwm: pwm@40 { >>> + compatible = "ingenic,x1000-pwm"; >>> + reg = <0x40 0x80>; >> >> It seems more reasonable to use "reg = <0x40 0x80>" since the >> X1000 has only 5 PWM channels. > I think you mean "reg = <0x40 0x60>" but I'll do that, thanks! Ah, yes, what a what a stupid mistake... :( > >>> + >>> + #pwm-cells = <3>; >>> + >>> + clocks = <&tcu TCU_CLK_TIMER0>, <&tcu TCU_CLK_TIMER1>, >>> + <&tcu TCU_CLK_TIMER2>, <&tcu TCU_CLK_TIMER3>, >>> + <&tcu TCU_CLK_TIMER4>; >>> + clock-names = "timer0", "timer1", "timer2", >>> + "timer3", "timer4"; >> >> One line is now allowed to hold at most 100 characters, >> so it is possible to use only one line like: >> >>         clock-names = "timer0", "timer1", "timer2", "timer3", "timer4"; >> >> to reduce the number of lines in the dtsi file. > Sounds good to me. > >> >> Thanks and best regards! >> >> >>> + }; >>> }; >>> >>> rtc: rtc@10003000 { > Regards, > Aidan