Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12616292rwd; Fri, 23 Jun 2023 08:22:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ljJGi3+EOdJg3iBAGRWgUVRGBFT+9Zz/pd99ZS7OarVVwvtJtgo/rikm2aQWgfCDQ+ejD X-Received: by 2002:a17:902:c944:b0:1a2:a904:c42e with SMTP id i4-20020a170902c94400b001a2a904c42emr34524821pla.24.1687533762840; Fri, 23 Jun 2023 08:22:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687533762; cv=none; d=google.com; s=arc-20160816; b=S6ygFkY95haVQctbcMsGtabBUFeUT9k4dpWBWweyNo3YKghed9AM2Be/prMe59QLXg NRiS1xtC3xN1a5nqozHqGWrIcU5EsVVIVQVTqfpQSvjsJA06RCXz/RSsZHO9+P2OguB2 zceZ0paw64HozocY1+oynh6BBoWS1Qz24I0Ed6xPlFHUDupy2oLcsuoMR8A3R8vjSRZX 6c7HtRoU6uF+3tvaRspF/2cleFhqQHWYRB9MQduysFlY/VMHjDj2LNVFhimnH0gbuKXY dfdwnBr39N0Fm2LERMP7u+fLBRfqcTTk6+/ekJmTTSl2dULlMpMkdncDCjgSJeWJa5a4 L+YA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wV92pSpCVmnx9n4E1q+MRb4GksMGgD+y07OYM0/qT58=; b=bbn80jtrvJJzS+3UZPLPH1rBW0nRqC9VWbmX1VYhORsLUEsLUNrLvJllM0ON5nfyPT C9IfqG1+NrurOy3wX+wDtKVTAFAUinXMPwpjkrOGC3hF2nPzj7mZU8OtZR/9H4jP2H4h ydiF9KNhTlmmzereGBuqvLSdee3xFuwAVRATPQgM4HGPfb774t6lH5vSVd7IskN/T84U Wq8m8cGUMvi4Abibo4LlDlqdSHQcuMKB+qgJOWSldF+X2iMALMce6dAoYzeucqIzu7s+ LRXhPSMYogF+ra0far3iy5FoP5HVOEj9JfnrVgq0ekI7dsVPln92+ZxUy5riKjgnL4OH XoJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=sXiFVh8m; 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 p15-20020a170902e74f00b001b54013c021si9529210plf.529.2023.06.23.08.22.29; Fri, 23 Jun 2023 08:22:42 -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=20221208 header.b=sXiFVh8m; 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 S232547AbjFWPKg (ORCPT + 99 others); Fri, 23 Jun 2023 11:10:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232491AbjFWPKK (ORCPT ); Fri, 23 Jun 2023 11:10:10 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DBD61BD8; Fri, 23 Jun 2023 08:09:55 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-4f86e1bdce5so997589e87.3; Fri, 23 Jun 2023 08:09:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687532993; x=1690124993; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wV92pSpCVmnx9n4E1q+MRb4GksMGgD+y07OYM0/qT58=; b=sXiFVh8mY4yRjMQ5IDRS3cdjZB3EQPHWCuZIj6T60Sk4ybZiSnmXIs8m6+e0J+kRXR QyWq6q/MRb3rSbsQGNAkCkPh087W0VWgSiSo5ojaGLCHomXibYIGnq7aLHmKjkx7/864 lMSIZEHjuVmaivRjWAiG3+vqrRHCwculvuB73JKZcDnWDXNe5fyW+7oymLyl5Hyt20eA JQIAm18JoJefEQUpn7wf5z9ZFwjb+W/r7RTHOalryMcC1FF6V5cm8EWVk2J5NYJ4wJH7 1JBhZLJqTXRGbgoNm8qWTFOfPNrogHwSYD4uQtCp+GDPDOE8pUwYI+vzJXZdMS0KBLys dNCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687532993; x=1690124993; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wV92pSpCVmnx9n4E1q+MRb4GksMGgD+y07OYM0/qT58=; b=KV+xgkLskb//ZCLWge8kWlcfECmRSK7nx6hJAX1gRs8xr+UabBE08rwxqi5B6cfNb3 dareYpDYpD0r57Q4a5RbMb5yzJSCyrVL/G/EOS7CUP1X6z4o1R+OTeeMlJCSXX+v6anv dVduhnoi+CpPspUB7XWYgejW5nEU5aQt54YcLydxXKjH2BN1HEZsQUU6E60OpyFGNfCa o2/xsQ94HIzopTfKOpE2nTA8ZlVu9pveSx6S+RzkYnwVPnPDbDjboxgBrkO4mSE0Yrb+ Hc+EN1iLwxc1/NMP3uE435PJXRAW6easOyzlD5+UrrzXbeimpZwY6OwSb+g0kle0imgv NVpg== X-Gm-Message-State: AC+VfDwVLzx9KfXudTuOnct/ezxdDQy5ct0rmPlqDmYw3Mk6AJyFRk6C Nkbtwo1j/JQ3OIKB552VgLqwpeGsV+Mi X-Received: by 2002:ac2:5f93:0:b0:4f9:d9d:eacb with SMTP id r19-20020ac25f93000000b004f90d9deacbmr7825166lfe.8.1687532992750; Fri, 23 Jun 2023 08:09:52 -0700 (PDT) Received: from localhost.localdomain (mail.pulsar-telecom.ru. [94.181.180.60]) by smtp.gmail.com with ESMTPSA id w25-20020a19c519000000b004f842e58d08sm1465686lfe.84.2023.06.23.08.09.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Jun 2023 08:09:52 -0700 (PDT) From: Aleksandr Shubin To: linux-kernel@vger.kernel.org Cc: Aleksandr Shubin , Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Cristian Ciocaltea , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-riscv@lists.infradead.org Subject: [PATCH v2 3/3] riscv: dts: allwinner: d1: Add pwm node Date: Fri, 23 Jun 2023 18:00:01 +0300 Message-Id: <20230623150012.1201552-4-privatesub2@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230623150012.1201552-1-privatesub2@gmail.com> References: <20230623150012.1201552-1-privatesub2@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 D1 and T113s contain a pwm controller with 8 channels. This controller is supported by the sun20i-pwm driver. Add a device tree node for it. Signed-off-by: Aleksandr Shubin --- arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi index 922e8e0e2c09..50f0f761527b 100644 --- a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi +++ b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi @@ -127,6 +127,18 @@ uart3_pb_pins: uart3-pb-pins { }; }; + pwm: pwm@2000c00 { + compatible = "allwinner,sun20i-d1-pwm"; + reg = <0x02000c00 0x400>; + clocks = <&dcxo>, + <&ccu CLK_BUS_PWM>; + clock-names = "hosc", "bus"; + resets = <&ccu RST_BUS_PWM>; + allwinner,pwm-channels = <8>; + status = "disabled"; + #pwm-cells = <0x3>; + }; + ccu: clock-controller@2001000 { compatible = "allwinner,sun20i-d1-ccu"; reg = <0x2001000 0x1000>; -- 2.25.1