Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1805795rdb; Sun, 24 Dec 2023 02:49:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IEmVKtI9cRppQgQ+6cD/HSoi9+wP1VRYWG9eJpsazz23zYZ1IyDblonnD5pE3r5F5e5mU/U X-Received: by 2002:a05:622a:1493:b0:427:7bb7:ed45 with SMTP id t19-20020a05622a149300b004277bb7ed45mr4555251qtx.78.1703414995689; Sun, 24 Dec 2023 02:49:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703414995; cv=none; d=google.com; s=arc-20160816; b=e7Y39IZVjl5oDPDIWmv7fgUk/F7S9j+noE+XXjaKEZN2WeLyQ4dDJ3X1xHxEBVoJHn y+sZiGrknZpmTZvOCc4KQ8VBL95I567fVZoW21Kw/M0ZaN2sx901B3XEk+gXAMJmwtrh BbDBtlsP01zS+I29cm+aj5+e/82JDQbi0MjVEiy69YCdSHARcJa0jPrwUp1a5DKla1/L mJ/3RYJoOAQftOCSqI2kvxrt8JmTrnJKMsA93VXSsD1I/0aFkOlsY5quK8Za/NB9nrGl 3GBzfwCxf1thoZv/vRkTYviOAngg1ek25XpiOL90Zh8t+ZGT72U6rd1mV373tC0ZpHzy lfUQ== 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=T6CV/w/Oj4/yKhfarK+UEYWwoSl7TNmHch082+K72XA=; fh=NNTp1GzrGGY8jAh7tGqjOV4rm5u9W5rW/5njhmOUOp8=; b=y9Q0DVTkxHhAoWEz7LwERTNSlvnbNsEdNzSZsQvLZftiabOwoz8PAVeytKAEKNRZTd BVzMXg0w4hrCQq85GYHm5C2QRX4W9GnVSqb73J49t7C9JDZtvEnga5vLFDjMDWemGSeM XA4S70JSRT30vggRRC8QSHGo5jDLfFA7i7PamJlhomvrwRNLPxQxF/WClHKrfp6bc5AJ 8zX+475q7YyawXqipC8jMBrZfd/V+dfx+vMlPxOFTBf2SAttIvg62gV2on1/pFU3xjrX SmCqAARo0kGaenbZzHEtVlmvxzm3tWc9MHOi/4w4XiqsNlRD4O+0rjC8OBpi/0psQkzm napQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="s/fRoIh8"; spf=pass (google.com: domain of linux-kernel+bounces-10689-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10689-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z8-20020a05622a060800b004277f14a28bsi8483163qta.339.2023.12.24.02.49.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Dec 2023 02:49:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10689-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b="s/fRoIh8"; spf=pass (google.com: domain of linux-kernel+bounces-10689-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10689-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 710A31C217E8 for ; Sun, 24 Dec 2023 10:49:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CAC8420F9; Sun, 24 Dec 2023 10:49:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=canonical.com header.i=@canonical.com header.b="s/fRoIh8" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-relay-internal-1.canonical.com (smtp-relay-internal-1.canonical.com [185.125.188.123]) (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 988222105 for ; Sun, 24 Dec 2023 10:49:44 +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-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 B110F3F73B for ; Sun, 24 Dec 2023 10:49:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1703414976; bh=T6CV/w/Oj4/yKhfarK+UEYWwoSl7TNmHch082+K72XA=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=s/fRoIh8SY0TKT7w5PsksY/lcSI8UApq2MHVl8DyiQFRguc04FhM2gmwAcF2L2Wqr maVTFHaZ8WlhYPCnsTHJSzSkKAk6M/mF/6qbwS8udCB69dW+ysX20SaQaBi7KlF/V+ 7/2rK3KJSsZ0UH7Vh03wqWQh4PV3LGpf6Yatn9er5sHGnZ+tgaqDd8giffpzbdpnWu dJyQ910RIv9vzqM4GWKoz9bGIRFi8EQTxzzGOf8dH2UuQv76aCnC4GcKviDr+B5X74 UeJexQqFxIX14gYoVZYSYd7A0NNakCaxgveR9p0uUkiiiQHA4qdqyP2SEBBpJH10t7 fcOxCrUkZ7Gsw== Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-427c4693423so11157721cf.1 for ; Sun, 24 Dec 2023 02:49:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703414975; x=1704019775; 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=T6CV/w/Oj4/yKhfarK+UEYWwoSl7TNmHch082+K72XA=; b=EpHm45tMeszhpibo4FZ77FdihmqCpoVTPq523UMBuMhA2UPeXSzm3N0J54EC4m/95U gjzHRxxu9/QuqeMYxj8LGciIBjN0UJhJjxoCLThvyipAjz0zP5BhA70B5uloqOfMmc9+ h37E/8v6NFsDmIgb0F31+e69hYLHEG7fBRWw3p6d+DtxT2RavKTXuqMuWtiyYI6SG8CQ zO+MmGeSpK3EzMDXTy/PbS+zGJEnzZoHIzJfKyGjASiF6nzt/5lVARkEPqzyGGRojOab W6qKgCxUK2br9+22lCIhgCB34Zza3bh52poNUG/4LdYxvn+50MmVOHLExk9BNZwh8sik Hy0A== X-Gm-Message-State: AOJu0YxrcwCwJhHCXSZbKbL+PhUFW/AuEVvsO6N6qeq2hIYVjRXpRFg/ GJ2PS+pvgtnKcfuzrzRTej09JPg/k6xxcI5YRXzFXwaWi/5Pyjdy//qrycmHU4i6cC+rv/Lh0GA F22mU2TSS57PS+76QHyh6bVtWaJYBcEnHr6R/XCZFE86F6TmyvlLsiyDLYL2c7TDz X-Received: by 2002:a05:622a:590:b0:425:4043:8d55 with SMTP id c16-20020a05622a059000b0042540438d55mr4267074qtb.112.1703414975523; Sun, 24 Dec 2023 02:49:35 -0800 (PST) X-Received: by 2002:a05:622a:590:b0:425:4043:8d55 with SMTP id c16-20020a05622a059000b0042540438d55mr4267060qtb.112.1703414975298; Sun, 24 Dec 2023 02:49:35 -0800 (PST) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Sun, 24 Dec 2023 02:49:34 -0800 From: Emil Renner Berthing In-Reply-To: <20231222094548.54103-4-william.qiu@starfivetech.com> References: <20231222094548.54103-1-william.qiu@starfivetech.com> <20231222094548.54103-4-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:49:34 -0800 Message-ID: Subject: Re: [PATCH v10 3/4] riscv: dts: starfive: jh7100: 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 1 board. > > Signed-off-by: William Qiu Sorry, I thought I already sent my review. This looks good. Reviewed-by: Emil Renner Berthing > --- > .../boot/dts/starfive/jh7100-common.dtsi | 24 +++++++++++++++++++ > arch/riscv/boot/dts/starfive/jh7100.dtsi | 9 +++++++ > 2 files changed, 33 insertions(+) > > diff --git a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi > index b93ce351a90f..11876906cc05 100644 > --- a/arch/riscv/boot/dts/starfive/jh7100-common.dtsi > +++ b/arch/riscv/boot/dts/starfive/jh7100-common.dtsi > @@ -84,6 +84,24 @@ GPO_I2C2_PAD_SDA_OEN, > }; > }; > > + pwm_pins: pwm-0 { > + pwm-pins { > + pinmux = + GPO_PWM_PAD_OUT_BIT0, > + GPO_PWM_PAD_OE_N_BIT0, > + GPI_NONE)>, > + + GPO_PWM_PAD_OUT_BIT1, > + GPO_PWM_PAD_OE_N_BIT1, > + GPI_NONE)>; > + bias-disable; > + drive-strength = <35>; > + input-disable; > + input-schmitt-disable; > + slew-rate = <0>; > + }; > + }; > + > uart3_pins: uart3-0 { > rx-pins { > pinmux = @@ -154,6 +172,12 @@ &osc_aud { > clock-frequency = <27000000>; > }; > > +&pwm { > + pinctrl-names = "default"; > + pinctrl-0 = <&pwm_pins>; > + status = "okay"; > +}; > + > &uart3 { > pinctrl-names = "default"; > pinctrl-0 = <&uart3_pins>; > diff --git a/arch/riscv/boot/dts/starfive/jh7100.dtsi b/arch/riscv/boot/dts/starfive/jh7100.dtsi > index e68cafe7545f..4f5eb2f60856 100644 > --- a/arch/riscv/boot/dts/starfive/jh7100.dtsi > +++ b/arch/riscv/boot/dts/starfive/jh7100.dtsi > @@ -280,6 +280,15 @@ watchdog@12480000 { > <&rstgen JH7100_RSTN_WDT>; > }; > > + pwm: pwm@12490000 { > + compatible = "starfive,jh7100-pwm", "opencores,pwm-v1"; > + reg = <0x0 0x12490000 0x0 0x10000>; > + clocks = <&clkgen JH7100_CLK_PWM_APB>; > + resets = <&rstgen JH7100_RSTN_PWM_APB>; > + #pwm-cells = <3>; > + status = "disabled"; > + }; > + > sfctemp: temperature-sensor@124a0000 { > compatible = "starfive,jh7100-temp"; > reg = <0x0 0x124a0000 0x0 0x10000>; > -- > 2.34.1 >