Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2644056lqo; Mon, 20 May 2024 11:43:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2134m+IQyxvk+O4D7L956ISrgFVJQg/oRu4Frr4C0H1lR0ObS0a9wtA6yR1ckYLbJX+kkb/8v0OjTXI5+guUKaX+tGQGBN+0LDSdLfA== X-Google-Smtp-Source: AGHT+IEY18Akrg2pe7ZTuavSvsc3WQhVcUw8G5ONRNoY52gyXp95FZI7h4RXM2DC5945pz62MaSv X-Received: by 2002:a05:6a00:3913:b0:6ec:faff:ec1f with SMTP id d2e1a72fcca58-6f4e02ad991mr33126463b3a.11.1716230623232; Mon, 20 May 2024 11:43:43 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716230623; cv=pass; d=google.com; s=arc-20160816; b=xU79d6caeJmpPrNkW1ExchvouysQJ8v1+8f+8EE0jXamf1T1vCHkZc9u8oTtuVUpsR JafnOxpR0X9g7uH9yRDo5Pr5ABGVaLyfEc8iXLYYe5qGuOMsEc+ncQvO4zUQwgprcQCX u98E46TQ1spJLuNqiOXOZgjVVt4kPmrznFX//mSC7O25RTeDd1dIZu0Znj3DVfBAPlem GQC52hRvzkGMWQksgEGAUd8ikRcUdT67vin72iLwkPQXfgQ4fumLTBKmqTUdiX5hLV2x qYHEugZbnci8ZyWVr20Ly0+ZNCcTPU3Pwu1JBOnxkksLbrn9vmnBM0Lpm50wanSKxPlM Jh4A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=p0OurAq4gNaktjTguChGRH09zP44yFK+BI9ZEKeRFnI=; fh=AHMVWeKwSlvcxX0EDkt5/x/v39vnVIEWJpyQ40pRY1w=; b=V0XtOg/R068KDtYuSDoOjRVORPYBtjKE5ZOLmt8Y3d0dNF9NVoJpn0wQwahZXby7Zf HSyjgq84XTlp1tsKc61tPgj4+SG2zh8mDQRjUlYoa1eRNu6uEG+WnSD1Q+K9cHRSApCn wl3ULIatQkVlWHTcRU4o5xQ3/3X/JANYMdbF3pvWOoEbnLApzqUsFnd5CAlxxok+N8cG BvqHod7v37c+UqnZ4k6yiuLa4zZciUpL0CYg++pVUICm1gOG8KPmq7i0qGGDdh5XgVn2 7CM9NeINN3EjYSFPoAAkrY0cRkGxlQrjocbmB3wbzDmoF1S+MYveGH5/7C9BiA1RZ+nx VyWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OAHNpXOf; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-184075-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184075-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2b198d2si3609838b3a.291.2024.05.20.11.43.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 11:43:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184075-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=OAHNpXOf; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-184075-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184075-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 04E3B282548 for ; Mon, 20 May 2024 18:43:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE51313956B; Mon, 20 May 2024 18:43:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="OAHNpXOf" Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3C4E41386B5; Mon, 20 May 2024 18:43:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716230597; cv=none; b=YgGEa8v19Ag4XpEqeWcCQVaBHJWFZtVV9JxIrGt3e/c0uicNXrpwO6bmWblfAxv4EPCKiguMPMv2vL8UeyS/6H75Q3Se6svJwN8lVsLyD9LWhpk6O4UR1Sm/EK0+X5DeBDaFNEy245dgJId5fco2+nMsFDh7gpEvAqnGHXOsB6E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716230597; c=relaxed/simple; bh=HnSg3+8yvYDWyM1nLfi8rFvp5yUPrPDHA9iB7+b6vZ0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YhCC7ceaeaXeorGY0kAn+o9AbXr6nolviQ/MeLxW/r/aJPmYSCIo6vuIPGeAKzxqSAN0qnOE3q2PrbJYDMok1CmiFjcWEGAh27es2nLI0YgV/yRuryeAmEKWVrL6jvEgqu7tZUHwMilgKmZHUKLUJNPotc1xJhpekydrakPiuXw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=OAHNpXOf; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-51ff65b1e14so5236972e87.2; Mon, 20 May 2024 11:43:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716230594; x=1716835394; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=p0OurAq4gNaktjTguChGRH09zP44yFK+BI9ZEKeRFnI=; b=OAHNpXOf2C7pVLjV7VfDXmZjO3H1RNqJs6j53Cd18695AXq0knY8SKK9z7udK7SCFq 6PBCgCQ9QECVhTxDKtUHMfvHLrsFOz+xhZM2cLdeQ1Tp8kjvYsEiQup/aaZRN/5hZup0 zNcIha06ZYWKGCrIegs/thR/WtlybOubr4/P6Giw8xMfWD0Ph6/wKHkWH07Ymceis8ZT Iyy9khpTuOiJ+YvSviJS0hoXWL8jopv3R1qNQONYfcBGgZQ0VatmkIy70NUfdRoxYS2I vt/yl7hMbnT2Q8jbQjdtf22RNT8XzW8ZyQSbm7OSqQe+hlM4GYk+f0zvUAs1ooifWp79 seFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716230594; x=1716835394; 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:message-id:reply-to; bh=p0OurAq4gNaktjTguChGRH09zP44yFK+BI9ZEKeRFnI=; b=QP2fEPV60evUpvsCAeCkuUMU1e+8/XgoA/0bsHeZxPWmiO3canps0N5ewAUxgtvasE c2B0yEQF43HiVBmHlhQeEuwLH12/zEuBnrN38ax5l9c1p81t97D3UvjPFu1w4qrbltYN JryEDNwNWYV5IWtNFIpU5P5TyH+R7GNZ3a+Drx7MlYhgc47RbPyHaCOvneCUX1NFxNlP GF65PQyZaSfqrrMynbcoG49/Bkg3WbIudTOoqoNxd4FPM9HLraWvZzDVwWF3f+qgKQla i5vQ5UCeEAK6kAqfZkLUkBAMzdAu85/qbTVO2kbkao/ix14TNcTTx0BFdV5qTslgmdwE /pQw== X-Forwarded-Encrypted: i=1; AJvYcCVleUlrxndptw9UV2mcOl9rszNHZjSxCfnrzoImSuSIOV+nazzY8GLB1d9UuOqjg/iPkeBU2MzkW0pjyCknI3T8BNtPuRTo7a9TL7palZiXnn4x9P1uzVt1giwB2WEiNpjwzx9RkA== X-Gm-Message-State: AOJu0Yzqlz4F/fSORCAzeFX6swQw2iQ5X5VzcBf/958dSJmJnwl1fIrE BFvB0EuAXlortH5a8SFv/8iX0LDc5RGRrON5mFTrGqlR1GRtqgpQx3gqgXUPh4G0 X-Received: by 2002:a05:6512:3a83:b0:51e:7fa6:d59f with SMTP id 2adb3069b0e04-52210074380mr22923108e87.53.1716230593937; Mon, 20 May 2024 11:43:13 -0700 (PDT) Received: from localhost.localdomain ([188.162.49.81]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f38d335csm4368967e87.125.2024.05.20.11.43.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 11:43:13 -0700 (PDT) From: Aleksandr Shubin To: linux-kernel@vger.kernel.org Cc: Aleksandr Shubin , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , John Watts , Marc Kleine-Budde , Maksim Kiselev , Cheo Fusi , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-riscv@lists.infradead.org Subject: [PATCH v9 3/3] riscv: dts: allwinner: d1: Add pwm node Date: Mon, 20 May 2024 21:42:21 +0300 Message-Id: <20240520184227.120956-4-privatesub2@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240520184227.120956-1-privatesub2@gmail.com> References: <20240520184227.120956-1-privatesub2@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit D1 and T113s contain a pwm controller with 8 channels. This controller is supported by the sun20i-pwm driver. Add a device tree node for it. Signed-off-by: Aleksandr Shubin --- arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi index 5a9d7f5a75b4..22821b21b9a2 100644 --- a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi +++ b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi @@ -145,6 +145,18 @@ uart3_pb_pins: uart3-pb-pins { }; }; + pwm: pwm@2000c00 { + compatible = "allwinner,sun20i-d1-pwm"; + reg = <0x02000c00 0x400>; + clocks = <&ccu CLK_BUS_PWM>, + <&dcxo>, + <&ccu CLK_APB0>; + clock-names = "bus", "hosc", "apb"; + resets = <&ccu RST_BUS_PWM>; + status = "disabled"; + #pwm-cells = <0x3>; + }; + ccu: clock-controller@2001000 { compatible = "allwinner,sun20i-d1-ccu"; reg = <0x2001000 0x1000>; -- 2.25.1