Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1805963rdb; Sun, 24 Dec 2023 02:50:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2eeA+m3u3SiSzjQh2ZcOfaT+X+EPyEmyHd8GsXnLeahf2nZ6ecrJmiq6pQlD3yTYKStMd X-Received: by 2002:a05:6a20:4da6:b0:18c:64b7:b217 with SMTP id gj38-20020a056a204da600b0018c64b7b217mr4596893pzb.22.1703415038332; Sun, 24 Dec 2023 02:50:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703415038; cv=none; d=google.com; s=arc-20160816; b=wnKbJGsqwImat1GEdGbae3W8WGREqX6HsznuAN7wQCNt5v54jqtfbttprcy/xGE60a xj/0F5xDMKpLemk4GTukd/oYwQPzA2R3yPJ/DVDdvlRmoAX5pYTCOqrk5RKdXOeCrF0i D0flXv5ur/F7ftXUsjwnNQy7RnRxLG1/s5OGAJZHEuJlRA+/5klNF99IhYbuJONg0oOz 0/5GkgRMR1598infMrSfWA3HllhIY8uYsDgznjy1A8iz+57hTpVhuih5HwWhP19ixqxK LjvXHYGi2afBI/1GQBitaBQcgwfZRVJm2gxg17qnwF4iK62huy7AfQZPGh8b2bv72xRG 199Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:from :dkim-signature; bh=dRjx8VHHb0t27RVkqdYIaU34XdXmnq6meYjdKYyMtPA=; fh=NNTp1GzrGGY8jAh7tGqjOV4rm5u9W5rW/5njhmOUOp8=; b=QTdb2/f6GMx0Di7WE+pkbyt+4a9FdJdAvNs+pgI8sa0xInvukSK11/cBJMi15XjChL TFX85epgYTQxa65wNEAG+LZwyVQSyVaKAogPGHqr//JtwsTlCRHkNr6esjhGnZ6wjS6d e8+d9hDDhVTSPTzrO+BefPWjj2gG4s2QMEX21ezDnJ5aWwt2URdBCwWBAa8hgfUXBmcr X4vUIkAN29M3OMZ3XLaR8e0on5OE+ksgeb+iP3YHtuQ0fsp549Hn03KiYeFOs1EulZbA jzk35Sc9PViNCzGj6jj5hkh+7VkX/ZRcTraBu9RwAOWUjsPqxhrd6SmwZSGhQM544ILN SWxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=Nv0o5wXe; spf=pass (google.com: domain of linux-kernel+bounces-10690-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10690-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l63-20020a639142000000b005ce0cf4a959si1436688pge.560.2023.12.24.02.50.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Dec 2023 02:50:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10690-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=Nv0o5wXe; spf=pass (google.com: domain of linux-kernel+bounces-10690-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10690-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 7C443B21815 for ; Sun, 24 Dec 2023 10:50:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96D5023C8; Sun, 24 Dec 2023 10:50:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="Nv0o5wXe" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6EFCB2105 for ; Sun, 24 Dec 2023 10:50:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=canonical.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=canonical.com Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) (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-0.canonical.com (Postfix) with ESMTPS id E597C3F593 for ; Sun, 24 Dec 2023 10:50:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1703415022; bh=dRjx8VHHb0t27RVkqdYIaU34XdXmnq6meYjdKYyMtPA=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=Nv0o5wXe+/6CHPZ0yR7/04fuoAY63q8UP3xFEEvaR8giEz/Z6EamC0wAb8CLZcjpU 6wyjuIvSAoBUAScW5WnxaK3LtBof2//srbDBF4TsdRTuG2LS1v2lkCKc9k/tmtAz2m cRkOA6K09B1yMcpTHl04tHQ7q/F6hX5bIy1FAMawq1N4uHFRJ2vP4cQ77fQ9suStd7 ftp7L1SlzO9xsbg5XZm0Cr6jbXdg5a3sEwPOSXg6x5f6yZaOH3wRSur4ODPz3XHyhY ANtuCglCjtO1cf3DYpyT9PraJU5dQn9jn4diTbrhXweDlhTin3aTQOPCxx9VNvE82p V/4tKE4hZ57iA== Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-4278740faedso39889451cf.0 for ; Sun, 24 Dec 2023 02:50:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703415022; x=1704019822; 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=dRjx8VHHb0t27RVkqdYIaU34XdXmnq6meYjdKYyMtPA=; b=m8EXe323eTseho+F1lyIg8QAV6Ao69FZHzlhtsy4DEO9uK1poZpJPUkCxITcmetUvf R3Ov2es7o+tJEwl1W4a2M9o/4DBgnDRpiGtXoXjSBT0lYM/2e0U/OH/GRc/GIM7iAlgV 1D6W6YVWhAGxUyT1e1u2UKxuYtyglF84Zb4n7ChCubbQlTbsXd6+sTN4sf3Aq9qCNkW9 ojvV2KGczX5TEzDrAtVAJauGRoiVW8z5IXne8NdNAv+FdwSBe6sIbKF887gve6B3h0XO yPiSIVrcmMrWFFgusATgOU2mhJ7fSMVdd6Yr9YHNoNH8EtfW1vsWiK2nem3aY3qhFS5W E8gA== X-Gm-Message-State: AOJu0Yxi2VknHgi85Kt+nfKyQ3AxCn0cpe625i+cdacDsWsSYGPKPRzG 7yGQ9+kz1odODzwf4XrVTq2s+i4C7vwBlAHCavMgMIWryEoOxSThGR8VbFgkhbV018s+wpatmLG wXgIPc2N25Fj5DfaOvsAIObREdMMuf3NdfbOZBt3vegw5/yxyG2tj81Egkl4ynblm X-Received: by 2002:a05:622a:182:b0:425:76df:7e6f with SMTP id s2-20020a05622a018200b0042576df7e6fmr5609347qtw.119.1703415021914; Sun, 24 Dec 2023 02:50:21 -0800 (PST) X-Received: by 2002:a05:622a:182:b0:425:76df:7e6f with SMTP id s2-20020a05622a018200b0042576df7e6fmr5609335qtw.119.1703415021493; Sun, 24 Dec 2023 02:50:21 -0800 (PST) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Sun, 24 Dec 2023 02:50:21 -0800 From: Emil Renner Berthing In-Reply-To: <20231222094548.54103-5-william.qiu@starfivetech.com> References: <20231222094548.54103-1-william.qiu@starfivetech.com> <20231222094548.54103-5-william.qiu@starfivetech.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Date: Sun, 24 Dec 2023 02:50:21 -0800 Message-ID: Subject: Re: [PATCH v10 4/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" William Qiu wrote: > Add OpenCores PWM controller node and add PWM pins configuration > on VisionFive 2 board. > > Signed-off-by: William Qiu Reviewed-by: Emil Renner Berthing > --- > .../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 b89e9791efa7..e08af8a830ab 100644 > --- a/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi > +++ b/arch/riscv/boot/dts/starfive/jh7110-starfive-visionfive-2.dtsi > @@ -323,6 +323,12 @@ reserved-data@600000 { > }; > }; > > +&pwm { > + pinctrl-names = "default"; > + pinctrl-0 = <&pwm_pins>; > + status = "okay"; > +}; > + > &spi0 { > pinctrl-names = "default"; > pinctrl-0 = <&spi0_pins>; > @@ -513,6 +519,22 @@ GPOEN_ENABLE, > }; > }; > > + 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 45213cdf50dc..1b782f2c1395 100644 > --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi > +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi > @@ -829,6 +829,15 @@ i2stx1: i2s@120c0000 { > status = "disabled"; > }; > > + pwm: pwm@120d0000 { > + compatible = "starfive,jh7110-pwm", "opencores,pwm-v1"; > + 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 >