Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp338793pxb; Tue, 12 Apr 2022 03:15:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4zZIM27ASL1KQwczhaJp/MLgBGmv8234zfDdHih7CIZOszrBBdm1fP8N874o0/dK2OsIP X-Received: by 2002:a17:906:32d0:b0:6ce:e1cf:3f2e with SMTP id k16-20020a17090632d000b006cee1cf3f2emr32656570ejk.214.1649758509354; Tue, 12 Apr 2022 03:15:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649758509; cv=none; d=google.com; s=arc-20160816; b=oQZVwgGWfyXa9iXYw8EwU+6MhS9JaMugZorO05UynLWID8JPTuhoYuJjmPKW5UGfC+ lYasnLL3jrXet3XdxwkBRWsi1vRfclG6CaRalNkj08lwXSurB770pFNPhhTeV8150cpW xNHyVOT1xTGT9DVN+DoIR6ZmlFPTIW1rw9qFjvZFJosvbtzI1MdpUyR5cCwirAft1HTV BBU1QNP2RVQNUV2i6QVpZh/xkdEpkGYaiBJ5sHjI0PF+2NnaMPvVQO1qfiOeTMcsBwAb j7Fgo9/9xOkAMfPEv3SFX0tKRtr4+NdZEMHWdhwz9xaOeJkStu7xThJEyVO4eWh0LSMr tzww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=ewHONqcrb7KyRXkSHVhzVTqr07JIHC0hp68Nq3+aWis=; b=dA93TATrrw8RFcj0QKb0JNisYyyasqMiOJ4JHfDcb/b2CGTSVkyb7Wb2zH9Kjv115x qPJstePmEjQWZ6cHr4fdUbGfmFFZbdqfS46C0yIs+zjZe0Db4kAS8d0uNSGczUHgQB+/ cI+2CcwsJCIQ85H4MyFDSKZmOJutmWHr/OSbT6EURWEQTwTpRfQeqGvPmtzq3WHOWV2P +dHOLA8NBEJ04aMy9FJOjf8TKM/hLpyy3bk3OMRwPI8xeUGTcDQllTrjeGyR5aAWyN+r U4g9EmMYSbXm1aX/Hf/aIYHPpKa9NF6cnNAcEcpPOntBkE+9xDINuvFaSjl3GPA+8ems NCrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=BK9sFy6b; 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 ne3-20020a1709077b8300b006e7f5c8ca7csi12028021ejc.972.2022.04.12.03.14.44; Tue, 12 Apr 2022 03:15:09 -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=BK9sFy6b; 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 S1344997AbiDKKEP (ORCPT + 99 others); Mon, 11 Apr 2022 06:04:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345105AbiDKKDS (ORCPT ); Mon, 11 Apr 2022 06:03:18 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93D09113F; Mon, 11 Apr 2022 03:01:03 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id b19so22164113wrh.11; Mon, 11 Apr 2022 03:01:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ewHONqcrb7KyRXkSHVhzVTqr07JIHC0hp68Nq3+aWis=; b=BK9sFy6b3EfG5Q4LdnkUO7GTR2GFLnmHi88VpTmqdpSDGVlVlqPbXTNhuohonwKej0 Wle9BAH6RPU21vTMzSWOcDsUTx79au8P8tVfuRJidO5hTqpwaYjjDxtFaA89h4lcYSn6 aXLiI6OCZq8mMGRApV/FOYv0MHG5dTDWhqf/PdlRzW1dIKHXYVlvR289FJOeWYMHnZT8 Ty/kMlNNcti9ukg1CUJywDrWdAuum8FbUVFuX3VBNfQYYvf6gBfQp+eWfQJouKHMd92y hlhKYFWLp9+qLbqPiAxAuSgcdvT44SkldSms5MTxhgsJhE5chQ31LISADS4LdtMGeTyj orMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ewHONqcrb7KyRXkSHVhzVTqr07JIHC0hp68Nq3+aWis=; b=PucC6XWeNhznN6rkBX2Q7U2QZ0TFWJK16hTTThKBwiz4lAJW+/EDA3yuDl3UCBviQM eNk3YYw4lkzI6d6s4UTF4wm5Z/C7hMwCzTfdchy8TMXsPVLFEyuWuPhXEe0rClNkBhSJ UP9tVZAMTXpX0Idvag7UPyxjtTDg/tKO+zw7iQsuU9+q5j2o5e3F6eIeZSLB/v+Naewr 5Od5NhM37kKawSCNNBCCikkCiEJtRlu+ek7rm293qo84aTFrn4TsLAu/VoxZNeEGjOlY 6ya7HY2deIaVJdbSjAXlFmDa8ASP73AVK9MyqxmJP4yo701JVCEf8PxUmh2cWWEtt6Ko M/bg== X-Gm-Message-State: AOAM532M9/tq5yZ8sEywdeq0aIZC4rjenN2aWiPxx5dgD4wtWlWf4ym/ 8dPMI5ZGJxz5qkshLoRL/oCnfbSlc9mS1Q== X-Received: by 2002:a05:6000:1f84:b0:207:a34b:3d5a with SMTP id bw4-20020a0560001f8400b00207a34b3d5amr5681915wrb.696.1649671262118; Mon, 11 Apr 2022 03:01:02 -0700 (PDT) Received: from localhost (92.40.202.18.threembb.co.uk. [92.40.202.18]) by smtp.gmail.com with ESMTPSA id v14-20020a7bcb4e000000b0034492fa24c6sm17299345wmj.34.2022.04.11.03.01.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Apr 2022 03:01:01 -0700 (PDT) From: Aidan MacDonald To: 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 Subject: [PATCH] mips: dts: ingenic: x1000: Add PWM device tree node Date: Mon, 11 Apr 2022 11:01:39 +0100 Message-Id: <20220411100139.15672-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,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 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>; + + #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"; + }; }; rtc: rtc@10003000 { -- 2.35.1