Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1303277ybe; Fri, 13 Sep 2019 14:24:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqyKnMYewpIRlpQg9J8vJwr7T+feqnfpBVc21d3UKsD5pyw7mbzKF92Umbph0SCp2vV47kLJ X-Received: by 2002:a17:906:31c6:: with SMTP id f6mr6599730ejf.41.1568409877053; Fri, 13 Sep 2019 14:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568409877; cv=none; d=google.com; s=arc-20160816; b=qk2GAbjifOwIPEZC+D0vYShP1OkJP8/5BcEjInMX5jRXCDvaRPYul83CfZXQNKAHVc j1qTxj32gHEFM8AlpxBBe++SncVxl2V9r10uFeR0qvARbGCBVvix+/qW3DqWFg0GKguQ iHAPhqkR8ziAh3G/wuQmH50kCVhm/anfh2HRAnwvmtEJ399VhYOXdxXWck58W1qbROqE G9jcYBn2Qx1iGhUHmhnvvrhzEJyYZyE7GEXZZ+gJ5atu7b3jDCLFNt6AjtyUqDRm7jM9 yU78rp5oTFWe8/9O1JgAoOwcydUXeg1q/+JfUQSD86LoCVQyiDMqmivQx+6SpoKhyCGl ellw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:to:from:cc:in-reply-to:subject:date; bh=9P/XjVbI97/jTRRG3gmFq66lGI4E5K6bWBMtKJXZDto=; b=cfQ5AzZZX9EMU3nqfao4XoH/aIIUZ7f8TBAKeX7r33r4odga47G6WKJ+GUstTsH5lj ecd0lCmWDrsXZwudZoWb1jhY4PLMDJw5J34/Pwq0zTnTRYo6H1CkxYQa0dPe28k+xhMz mA7LgCjej+Eajr60/7DYK5TFYvUy35HmrNvCZcwBJ0JmkjPiclb7hBPQFfSJSct/WtcM 9OXOHu1ELuJm8/YwuNfExfSh/QgkcQv6z3LUsLdUSsL53kOJZ+ZLAR2kZStAW1/udURi aK+aC+z09M8f2D1i1CfE2PYO5WdNe/ju1hrZSmCrBNgnnnRd5M8IMC2oRvJu2TVAuGF2 p/hQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cw9si15355682ejb.173.2019.09.13.14.24.13; Fri, 13 Sep 2019 14:24:37 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731272AbfIMVUz (ORCPT + 99 others); Fri, 13 Sep 2019 17:20:55 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:37878 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731105AbfIMVUz (ORCPT ); Fri, 13 Sep 2019 17:20:55 -0400 Received: by mail-pf1-f194.google.com with SMTP id y5so16105583pfo.4 for ; Fri, 13 Sep 2019 14:20:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:subject:in-reply-to:cc:from:to:message-id :mime-version:content-transfer-encoding; bh=9P/XjVbI97/jTRRG3gmFq66lGI4E5K6bWBMtKJXZDto=; b=jOoyPEKWjbet+gBera2P92KJv6JMNMBnex1/tgwXFB4G1e5sIzNzJeJzvr/+lOo7k/ msICywoBTqm/JsZjDoiqY3pKCCwCQYfwB0XHnQsrQeHaC0K77ks/ky4075ztQ3x1GxK2 reEJwyAcdzNnxDj4BqEfQ1jQMcaJotBtXnqQzIilewen3j7HEUYdqXpa25RcmRO66cjD hd4MYi1Z3Buu3/hCd+9Q8EjOOO36vzDunMiorPBQE5NiQ8P7jciJD/roGLgtTAB7vuD1 CRnRm87X9N7IuAq4qgsGwvmkj6dd1WKX8M/b6m7OAtPMpuEZ5c3iDuGYsTRyOSHAnDdf fzTg== X-Gm-Message-State: APjAAAUPlnYt5ddLvoKGhztxKHvKpYBlHxu2MBUmXNhSKJ5o6Pxa1/z1 g4FlhiToNgU16WVLS+PdCvuiXg== X-Received: by 2002:a17:90a:37d1:: with SMTP id v75mr7640029pjb.33.1568409654241; Fri, 13 Sep 2019 14:20:54 -0700 (PDT) Received: from localhost (amx-tls3.starhub.net.sg. [203.116.164.13]) by smtp.gmail.com with ESMTPSA id s73sm2940942pjb.15.2019.09.13.14.20.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Sep 2019 14:20:53 -0700 (PDT) Date: Fri, 13 Sep 2019 14:20:53 -0700 (PDT) X-Google-Original-Date: Fri, 13 Sep 2019 14:18:36 PDT (-0700) Subject: Re: [PATCH] riscv: dts: Add DT support for SiFive FU540 PWM driver In-Reply-To: CC: robh+dt@kernel.org, mark.rutland@arm.com, Paul Walmsley , aou@eecs.berkeley.edu, bmeng.cn@gmail.com, sagar.kadam@sifive.com, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Sachin Ghadi From: Palmer Dabbelt To: yash.shah@sifive.com Message-ID: Mime-Version: 1.0 (MHng) Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 10 Sep 2019 02:52:07 PDT (-0700), yash.shah@sifive.com wrote: > Hi, > > Any comments on this patch? I don't see "sifive,pwm0" in the DT bindings documentation, and it doesn't match our standard way of doing these things (which would have at least "sifive,fu540-c000-pwm"). > > - Yash > > On Wed, Aug 21, 2019 at 2:53 PM Yash Shah wrote: >> >> Add the PWM DT node in SiFive FU540 soc-specific DT file. >> Enable the PWM nodes in HiFive Unleashed board-specific DT file. >> >> Signed-off-by: Yash Shah >> --- >> arch/riscv/boot/dts/sifive/fu540-c000.dtsi | 19 +++++++++++++++++++ >> arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts | 8 ++++++++ >> 2 files changed, 27 insertions(+) >> >> diff --git a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi >> index 42b5ec2..bb422db 100644 >> --- a/arch/riscv/boot/dts/sifive/fu540-c000.dtsi >> +++ b/arch/riscv/boot/dts/sifive/fu540-c000.dtsi >> @@ -230,6 +230,25 @@ >> #size-cells = <0>; >> status = "disabled"; >> }; >> + pwm0: pwm@10020000 { >> + compatible = "sifive,pwm0"; >> + reg = <0x0 0x10020000 0x0 0x1000>; >> + interrupt-parent = <&plic0>; >> + interrupts = <42 43 44 45>; >> + clocks = <&prci PRCI_CLK_TLCLK>; >> + #pwm-cells = <3>; >> + status = "disabled"; >> + }; >> + pwm1: pwm@10021000 { >> + compatible = "sifive,pwm0"; >> + reg = <0x0 0x10021000 0x0 0x1000>; >> + interrupt-parent = <&plic0>; >> + interrupts = <46 47 48 49>; >> + reg-names = "control"; >> + clocks = <&prci PRCI_CLK_TLCLK>; >> + #pwm-cells = <3>; >> + status = "disabled"; >> + }; >> >> }; >> }; >> diff --git a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts >> index 93d68cb..104d334 100644 >> --- a/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts >> +++ b/arch/riscv/boot/dts/sifive/hifive-unleashed-a00.dts >> @@ -85,3 +85,11 @@ >> reg = <0>; >> }; >> }; >> + >> +&pwm0 { >> + status = "okay"; >> +}; >> + >> +&pwm1 { >> + status = "okay"; >> +}; >> -- >> 1.9.1 >>