Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2574537rda; Wed, 25 Oct 2023 06:46:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHj5H3GBlj+N7fOoZvDp+0wNGpgXQldN71M9DhVpYnav4lFuEgVTEytiTOc8yMZKtk6hY9p X-Received: by 2002:a25:7305:0:b0:da0:4109:ad63 with SMTP id o5-20020a257305000000b00da04109ad63mr4857742ybc.21.1698241581750; Wed, 25 Oct 2023 06:46:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698241581; cv=none; d=google.com; s=arc-20160816; b=aE7N6KRNNhfK8wnSuMCoBoAtA+2EpD4kMh9nymVUenBmUjhQrnFAbNSkEsCyf71ZaH zpgskOGdgIfWI9G3+Se6cebsYlxYRbQtxQOD7B343YZsw3JIgoG0lFT3k0Dpn+ga3K3k kxsPkrro5Kz4vMybUrwFkSQ6mlj4hW/rOgSgdYo2IOxP+yIl8/G6b6U/9wYm0ca+lc2t 6GrNIdVUH99jPbvUEJom3/y4c7VI80FaXTOWiqEMLhzv1ojSF3OeV4Rzn/5aS6POl8bS rvvYKzSmtDm1qQ5Lt7gsdyApYtxGoCw7q+mHyI/zeN1zMCEfiZSKRVkv8C7co4SBC0qG JLvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:mime-version :references:in-reply-to:from:dkim-signature; bh=+60nkze2sRRgfeFsZmoFML77ioPwo/jReraRdMDEs5A=; fh=NNTp1GzrGGY8jAh7tGqjOV4rm5u9W5rW/5njhmOUOp8=; b=s7zYU7Y4jyDk8uTPQLaE9/EY4SrHfxc3ka9GCyyqLziXDVko5bHMC/pE8XfX4XoAj5 4GWr5hxKskRG9uBDUBaApt8aYNZdDcecyA4896HwAFfWSsxVvyg3KZ6OSqbVBNqDtEjb Fizm2XU7cnK0fbr7wO0fcV+TVPw25Bn4oRFfioranBh+xJt5v2H0Q3jE9CpYcQ0GCAK0 fdJ7RMNhO6EUw+uoyxSUoH2c23QPerkzsOLfA5tWwkVwJfTlyv5L0myV5Z+53FVqyRgS 5aZdG6XhDqxp2Itr8CEw0XyJDa0nAopCxq/CWzcUn3FQNsLdLNTpVrUCJrVTlDMn2CtI RWmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=gXXGGt6t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id 190-20020a2503c7000000b00da053aa07f1si3596098ybd.297.2023.10.25.06.46.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 06:46:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=gXXGGt6t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 477B880BFEE3; Wed, 25 Oct 2023 06:46:17 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232072AbjJYNpu (ORCPT + 99 others); Wed, 25 Oct 2023 09:45:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232809AbjJYNpq (ORCPT ); Wed, 25 Oct 2023 09:45:46 -0400 Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91EA4186 for ; Wed, 25 Oct 2023 06:45:43 -0700 (PDT) Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-1.canonical.com (Postfix) with ESMTPS id 146EA413B8 for ; Wed, 25 Oct 2023 13:45:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1698241541; bh=+60nkze2sRRgfeFsZmoFML77ioPwo/jReraRdMDEs5A=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=gXXGGt6tMw99lTGXANzK+uLRJ1KxSj4TdHucyyiab1RjnNRqQJKl2Z9t/pUDgb72K xZB1OZCidOULl/B1FkafeCAW0PVjMr0ZiXn56kLq4a00WITjF4yut8Xi42J2hEklDt TzJef9Z9lNcOMVT6D+qLAsPX2oYowrKB7VosHOJBuL2NZ8VcbGxeWvHHH2eZ3VxIZm At7QWmMcKcut4iOKfMKgEM0xuPiyINOAQ6gYFscgRvAaPFCwhoObaoWx9qkjXVxf1o NwUreYjOethZK35nwJhg4RtLtGCQot3fai4VCz4zY94ePRtvu+9Ot8hKPZeNkJl6yk 65ByvLdmEkW1A== Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-41cdce61dcbso68318001cf.3 for ; Wed, 25 Oct 2023 06:45:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698241540; x=1698846340; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=+60nkze2sRRgfeFsZmoFML77ioPwo/jReraRdMDEs5A=; b=sDGYvF6gs3UheG4wHXQyn7UQMbkWkLYptH8uw4DSWwZnsh8tEzZ8f4YUn+Hz4ZevJp 38zrDhaRV1WaHXbJTdU6IMmriAd10rzy4UvKctXkzELnKus/m9TWnd/TlACO3jKEj8N0 +xygRTtpk+pPHQvpFaNBQChHflRIo4+xldmXpqkMSFfBgLYej45xbMZcDtyIXLTL1Esb r8ZH7MRnw2Fb7919h6JXHOPc6gbCSZjPAaXxDweeWf5G3RKS/LJOxYDPzI0tY4zEqUU5 nRwtciGZRzJx2WlSzHzFVLODCgfBr2OZGF1GdGvGnGVh7eN9okj8CsTaHKJebbcqMvsy 49Pw== X-Gm-Message-State: AOJu0YxDM4dB85nAh3IrD0qMT1IBnn/uRQIDRPT/2zvkntWhdKuBFtgF kLnkVxUx6jTAGRGmbh/z8Q+mnI+85iKUfm2ojSS8NsauRMcJmSGad+yY8G+nMr3H/4kVWLF5mv8 CgWDw84BoPPxdtNEqm9661/gSU/XKQ0gozSVR5X3o7K4CC5yH5A+15zjjQg== X-Received: by 2002:a05:622a:546:b0:418:2242:7823 with SMTP id m6-20020a05622a054600b0041822427823mr19590880qtx.32.1698241540167; Wed, 25 Oct 2023 06:45:40 -0700 (PDT) X-Received: by 2002:a05:622a:546:b0:418:2242:7823 with SMTP id m6-20020a05622a054600b0041822427823mr19590867qtx.32.1698241539921; Wed, 25 Oct 2023 06:45:39 -0700 (PDT) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Wed, 25 Oct 2023 06:45:39 -0700 From: Emil Renner Berthing In-Reply-To: <20231020103741.557735-4-william.qiu@starfivetech.com> References: <20231020103741.557735-1-william.qiu@starfivetech.com> <20231020103741.557735-4-william.qiu@starfivetech.com> Mime-Version: 1.0 Date: Wed, 25 Oct 2023 06:45:39 -0700 Message-ID: Subject: Re: [PATCH v6 3/4] riscv: dts: starfive: jh7110: Add PWM node and pins configuration To: William Qiu , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-pwm@vger.kernel.org Cc: Emil Renner Berthing , Rob Herring , Thierry Reding , Philipp Zabel , Krzysztof Kozlowski , Conor Dooley , =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= , Hal Feng , Paul Walmsley , Palmer Dabbelt , Albert Ou Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 25 Oct 2023 06:46:17 -0700 (PDT) William Qiu wrote: > Add OpenCores PWM controller node and add PWM pins configuration > on VisionFive 2 board. > > Signed-off-by: William Qiu > Reviewed-by: Hal Feng > --- > .../jh7110-starfive-visionfive-2.dtsi | 22 +++++++++++++++++++ > arch/riscv/boot/dts/starfive/jh7110.dtsi | 9 ++++++++ > 2 files changed, 31 insertions(+) > > diff --git a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi > index 12ebe9792356..63d16a6a4e12 100644 > --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi > +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi > @@ -268,6 +268,12 @@ reserved-data@600000 { > }; > }; > > +&pwm { > + pinctrl-names = "default"; > + pinctrl-0 = <&pwm_pins>; > + status = "okay"; > +}; > + Hi William, I just noticed this node reference is out of order. The references should be sorted alphabetically. /Emil > &spi0 { > pinctrl-names = "default"; > pinctrl-0 = <&spi0_pins>; > @@ -402,6 +408,22 @@ GPOEN_SYS_SDIO1_DATA3, > }; > }; > > + pwm_pins: pwm-0 { > + pwm-pins { > + pinmux = + GPOEN_SYS_PWM0_CHANNEL0, > + GPI_NONE)>, > + + GPOEN_SYS_PWM0_CHANNEL1, > + GPI_NONE)>; > + bias-disable; > + drive-strength = <12>; > + input-disable; > + input-schmitt-disable; > + slew-rate = <0>; > + }; > + }; > + > spi0_pins: spi0-0 { > mosi-pins { > pinmux = diff --git a/arch/riscv/boot/dts/starfive/jh7110.dtsi b/arch/riscv/boot/dts/starfive/jh7110.dtsi > index e85464c328d0..4024165d4538 100644 > --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi > +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi > @@ -736,6 +736,15 @@ spi6: spi@120a0000 { > status = "disabled"; > }; > > + pwm: pwm@120d0000 { > + compatible = "starfive,jh71x0-pwm"; > + reg = <0x0 0x120d0000 0x0 0x10000>; > + clocks = <&syscrg JH7110_SYSCLK_PWM_APB>; > + resets = <&syscrg JH7110_SYSRST_PWM_APB>; > + #pwm-cells = <3>; > + status = "disabled"; > + }; > + > sfctemp: temperature-sensor@120e0000 { > compatible = "starfive,jh7110-temp"; > reg = <0x0 0x120e0000 0x0 0x10000>; > -- > 2.34.1 >