From patchwork Wed Sep 7 13:12:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Romain Perier X-Patchwork-Id: 12968955 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DDBD1C38145 for ; Wed, 7 Sep 2022 13:14:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Qj7JE+OK6VbE8sZJrHbAAm9ZhxATVJfZMqXBIeKqEKI=; b=3Itr9AUD8Tvy+S nki+T3BJ1Zapzw2tC2E52LAE0F8QQVSYjnGcTC/TMcZM9L1KPCupo7QoMgn7tqBYLlDNcy3zPonF7 xQGEwqUkthlkVFbL+l6QMs6s2uZQls4grlrJn4SlMcuD5JW8G48nIPI4yT7WjzMmmcmJNm3Xi+YgR 2Bl38xqIw4NTLAQTA0o4pT/MZvozkJFduXqLKc7LnQXVGXxxCE7DW0V0JwZeVZX3+u0GLMCh2oa+l u2bZ4Iow/Pl60NFnZf4E2/PmytsvRMR+FL0PeuJpcPUNl/pkBCEUWUJGonhn8XqwNTO4atkpEtWwg VM6X6vS57SnC3CtftDbg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVuro-006OFO-SB; Wed, 07 Sep 2022 13:13:20 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oVurU-006O36-K1 for linux-arm-kernel@lists.infradead.org; Wed, 07 Sep 2022 13:13:05 +0000 Received: by mail-wm1-x336.google.com with SMTP id h1so8715338wmd.3 for ; Wed, 07 Sep 2022 06:12:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=Cg9l8Dw5kbbaSW9iT/X0V7LIeInZuZuCPQHiyAl6l3A=; b=WaxsfxNy7+St/xFCEq7LB6yj5uX8QOofkkoPrnD7B01kaNBbXyjj14aMyijZX9eI5G iTmj9nFSUckNUW7x6cceUhVqxFrMHXAkuc/ztty+ZyEbCsXSsmcx5AxBjdSp89FUA9F1 O0jIG3qMaAyESeUqR1waMk7oXzcKR7QKXuFKWlWNH6Lpl4nknF6Lt50ejCl9RCw6I4BE 9/aDHlEYQK+PIvnT0tiobQZlvZhPZRGrx9JqRZBHdcS36UN89+FjwQjiImsBYTXq/ZSr hJYCR+MUlUUq1z8ZQ295H6dcYKc+vqxdJu9Dyx/1na33KCB09LznhkMcjeY3FJCkOQJ9 PhFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=Cg9l8Dw5kbbaSW9iT/X0V7LIeInZuZuCPQHiyAl6l3A=; b=gjVwEg9xTTji4KMThEa/VSRgoGYguKE6cZ6c/HELEb6BUCMxbsLtJxSwjCk5tnyNME W4e3hKuavOCPJTsxBkL3Gj3fwhx39CGbZW4ugG3e0ugFEH/X9VuRB9PWZ4FWYsVxf7Qy qLXfoFFnE+98LjI5xbETFqt0xEURRg/I+HduXa6uIb4STyA51yAO+N5cs691Wvw1awlr uNXWVtCfNzpInhz92SwyVEH+azSEw7ncfXOmZQY+cpvvEPtWc3YmID+VJUGSds/z7AHs eWcmxVfBXU9ZJ0W6Rx4ULqvbFogFVwqfg5Z38uRb8Z5/mxCeksb40LRas2a0jkdgdWWD +kTw== X-Gm-Message-State: ACgBeo2TB+xI0P+nUrr3DcqCUSGVBn3oMGnjr59NOqJIx2YklF9EhCdU +rpB4VvDLDybv1F7nRKYfcOQHlQo1Kc= X-Google-Smtp-Source: AA6agR63JPlJ6/mZi4VqQFezZCqRtSgr+iT8vrl1gV+TaEHGA7RlV1QdCx55mc8jEd6KlXF3pkuycg== X-Received: by 2002:a05:600c:34c2:b0:3a5:d2f5:9d02 with SMTP id d2-20020a05600c34c200b003a5d2f59d02mr2083482wmq.153.1662556370181; Wed, 07 Sep 2022 06:12:50 -0700 (PDT) Received: from debby ([2a01:e0a:a6d:a8d0:7ff4:8f61:5574:9f95]) by smtp.gmail.com with ESMTPSA id bh5-20020a05600005c500b0021ee65426a2sm16745847wrb.65.2022.09.07.06.12.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Sep 2022 06:12:49 -0700 (PDT) From: Romain Perier To: Thierry Reding , Lee Jones , Daniel Palmer , Romain Perier , Rob Herring Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 4/5] ARM: dts: mstar: Add pwm device node to infinity3 Date: Wed, 7 Sep 2022 15:12:40 +0200 Message-Id: <20220907131241.31941-5-romain.perier@gmail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220907131241.31941-1-romain.perier@gmail.com> References: <20220907131241.31941-1-romain.perier@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220907_061300_696985_D69C1499 X-CRM114-Status: GOOD ( 12.68 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This adds the definition of the pwm device node. The PWM being able to work with the oscillator at 12Mhz for now, it shares the same xtal than other devices (rtc or watchdog for instance). Signed-off-by: Romain Perier --- arch/arm/boot/dts/mstar-infinity3.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/mstar-infinity3.dtsi b/arch/arm/boot/dts/mstar-infinity3.dtsi index a56cf29e5d82..aa26f25392d0 100644 --- a/arch/arm/boot/dts/mstar-infinity3.dtsi +++ b/arch/arm/boot/dts/mstar-infinity3.dtsi @@ -67,3 +67,13 @@ opp-1512000000 { &imi { reg = <0xa0000000 0x20000>; }; + +&riu { + pwm: pwm@3400 { + compatible = "mstar,msc313e-pwm"; + reg = <0x3400 0x400>; + #pwm-cells = <2>; + clocks = <&xtal_div2>; + status = "disabled"; + }; +};