Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp51334lfv; Tue, 12 Apr 2022 16:55:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQldMNi8o/tEqTxoPXq/k3QClv+xvZIYsWD+3nP84HW9KfuV+4PFwnmgnlLWcXQulj8mBK X-Received: by 2002:a17:902:7684:b0:156:25b3:ef6b with SMTP id m4-20020a170902768400b0015625b3ef6bmr39589878pll.39.1649807749731; Tue, 12 Apr 2022 16:55:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649807749; cv=none; d=google.com; s=arc-20160816; b=xUrG0qkXiqKMlyP5xYDv7S50KrTqPiYg3Zxo5FcOuZARQ5VWUenntz8z4sUNvfEL6D SA2FzSrB7uitofY8Ll3AtK1Ehh6veQrTU3kkhQG1yhPjSDTi4L6qmM6CXVzLnFxHcMjB 7zxuM51QpxVswTuTbqNc7CixraUwOv1ngoOnmLYBHZZtS7PYUwABHDSanYZBfW0pxzYi +9xqEVj1doyc0JUDE6JphJ3d9W5yKCJC5lWWiSMooWSwo1OreURL7yb4dBaqCjuo1ynw Lp5auLfZSW80hVfzZpytSaLqiuo5ae3ot1mWQb9Qp3vcTxh79N1jXrTsfExiDHUQj6qs UPeA== 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=sJajqw4mJQAoKyoBXLN4w9U3S2DiVxFFu7zFe5KqG2k=; b=QS8USbgEtGaMvArA0YggM6pUMxCnQT8+GOz1NH9XOVYO2qWbfyMG0/PsGEGqnSL4YL 8RyGax6SsQQ0SWiE1tDmEbGpWHm4VGcvwMtKz+cn2PGECL7N7IQMADamEKv3Pr/t8FMB HAeWd2p0rMMGcYZ5qi34c+zX/76zkPtTdNRIOVi/RO/7EVhR+hNpB12GdrQ0gnqmdBAN ljeD9XYxhqtI4lkA4N6hgacUVt+uL9GsJXTs6mMNPxVKFmSWeiZH9AiMEHTSn6k2s4yF 5cjSMN2SeLuEznEgkMoRWDlH6/Mx1lQbHn/dJre/PrFvyeXStsnMsgGlXNfjwR6rnJTl IWdg== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id x4-20020a17090300c400b00153b2d164f4si11547829plc.252.2022.04.12.16.55.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 16:55:49 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 70D4D1FC9D7; Tue, 12 Apr 2022 14:51:17 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346198AbiDKMn7 (ORCPT + 99 others); Mon, 11 Apr 2022 08:43:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346187AbiDKMnp (ORCPT ); Mon, 11 Apr 2022 08:43:45 -0400 Received: from out29-196.mail.aliyun.com (out29-196.mail.aliyun.com [115.124.29.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 305254132C; Mon, 11 Apr 2022 05:41:30 -0700 (PDT) X-Alimail-AntiSpam: AC=CONTINUE;BC=0.08153398|-1;BR=01201311R771S34rulernew998_84748_2000303;CH=blue;DM=|CONTINUE|false|;DS=CONTINUE|ham_regular_dialog|0.0990518-0.001919-0.899029;FP=0|0|0|0|0|-1|-1|-1;HT=ay29a033018047207;MF=zhouyu@wanyeetech.com;NM=1;PH=DS;RN=7;RT=7;SR=0;TI=SMTPD_---.NOW40yE_1649680886; Received: from 192.168.30.128(mailfrom:zhouyu@wanyeetech.com fp:SMTPD_---.NOW40yE_1649680886) by smtp.aliyun-inc.com(33.40.85.40); Mon, 11 Apr 2022 20:41:27 +0800 Subject: Re: [PATCH] mips: dts: ingenic: x1000: Add PWM device tree node To: Aidan MacDonald , robh+dt@kernel.org, krzk+dt@kernel.org Cc: paul@crapouillou.net, linux-mips@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220411100139.15672-1-aidanmacdonald.0x0@gmail.com> From: Zhou Yanjie Message-ID: <8a3f88d8-3e94-1388-b1c6-b0f71d59f34c@wanyeetech.com> Date: Mon, 11 Apr 2022 20:41:26 +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: <20220411100139.15672-1-aidanmacdonald.0x0@gmail.com> 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 下午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. > + > + #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. Thanks and best regards! > + }; > }; > > rtc: rtc@10003000 {