Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1636293rdb; Wed, 31 Jan 2024 04:59:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IFlLRxHk4ab5+rKFzm29ECt99uy0q+/NJfBXFeH93L0+KycQ3t3K4tF+Ql2Jr9NuIKDiq8/ X-Received: by 2002:a05:6402:71a:b0:55e:acb4:45ac with SMTP id w26-20020a056402071a00b0055eacb445acmr1005076edx.11.1706705984214; Wed, 31 Jan 2024 04:59:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706705984; cv=pass; d=google.com; s=arc-20160816; b=Pm28FrYfHMC16vqR6HvJ5gh6UsO5OlEuAJRFLaLzdbrSeM9pBG3Vhf77jicAEeawUh o32dm/Z8rLHrASogd/RVrTwroS0/wbviIRyBXSegojBDgH97Z3n1iwZ4T8F8QalRgwvo 0gTJqHxtpY87cK9btxjahKmq0+L3IeC4asUuJXsA0CZwhDQLWxaRHuf9fV9RwCisZkFU wQtbMWV+y7tUVr8owCORR1TZWRlX/pgvZJoLHc+fG6NIV2OTko/CncgMHPG3e3Hjv9zh 5aC+ADVO4/I/ppEUot/yzovfghp/ZRbDjXRPnF0qtxM94kwDM2H0gfW8E5Rn0/ZSSbtg 4xIg== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=qiLW6Y7RRXrik6dDAtU4CB215hHq9HP/DTZOIjF86/s=; fh=Q/qThaB+g8JhAVDJ+0ks5y0T7sxi9wV3AT+9oTs219w=; b=r3oQoZN23PY3gGwIYfA0dCkx4YqkAftcdo/xdbjTHsd/YgGllDyaAIjeLSTQntSYe7 t1cPK4Ba46Y9oMaJih8ajykmV+pWaqvU8DlY+QikMDJHqHj5oveVWQMj+rowEY4WT8kb zysgtkLPM9zZ0UrlHKdyjElN/W3frQgBTlMMLj5EVvjg7kYL00nKew69ShHSddOjjaDU ncz+zVib9IYtXYnVuEljTgJT73hoYskSdBY8jaUMetVXWVej+4DJWoJlJlYZGNhxHC35 91AApRjFlCgXvLE3gl0RhHU6nn/7mZ9bPQPGaC/die1g/QqrYXwWV+ZtykTW3eUDtpsC 4QxA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jwro7rvO; 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-46449-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46449-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com X-Forwarded-Encrypted: i=1; AJvYcCXUJLZ7X+xwRSEfezPBrYAyM6mWUInmqWsvu7dU3WfuAxQ3VykBKsKOB5vpUzlmzA1tdS2yj3FvocGGYEPfUuydQK/cLso5ZEOEklKafw== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id bt22-20020a0564020a5600b0055f04e114bfsi2854704edb.275.2024.01.31.04.59.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 04:59:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46449-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=jwro7rvO; 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-46449-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46449-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 am.mirrors.kernel.org (Postfix) with ESMTPS id EF5211F2CCD4 for ; Wed, 31 Jan 2024 12:59:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EC0DD7AE71; Wed, 31 Jan 2024 12:59:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="jwro7rvO" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 7FAF07AE6D; Wed, 31 Jan 2024 12:59:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706705978; cv=none; b=dDzXnXH35iEC4lPaxKg67024tuVdD5VDbdJMWqBp8nof6EvN1nShuPJJ6eq3/rgnVbHhXluru1MOwdu6ctx/vlX7B6UHto8PcL+br1zK6+wLKPL//D6TaWkFjDUnWuhShhkF8710T8F+Aw8B4zTYTi10+w26BBemGP5UQ9kFx+s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706705978; c=relaxed/simple; bh=5qWwM4rybSn3sQwL/T5QTpDSTH0pGNitJxfA4afPac0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=KD2cSF+4OWDtPKHpngG4D+IKNLIFHhlcKJPtpBZJSZ2OaVb47/BBHoq9NeXQIy5sLH85FLsjyjnW/xHGR9DNfvVkMTx8xD9AWG0zgAupz819x1voAbdzxn96rbMwJr97iM6A4lx1K2r3tijkuz277xZul5yXzcLf9ZRKC57q0vM= 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=jwro7rvO; arc=none smtp.client-ip=209.85.167.48 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-f48.google.com with SMTP id 2adb3069b0e04-510e0d700c6so3817910e87.2; Wed, 31 Jan 2024 04:59:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706705974; x=1707310774; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=qiLW6Y7RRXrik6dDAtU4CB215hHq9HP/DTZOIjF86/s=; b=jwro7rvO1uWkHUv4X4xiprZmX1tc3eSbrurA0kucSzfv+gv6dR7UD9Q1R8Hjg8makX EbQnTJ4pCNqSt9q8WAtAdw/jImsexC1y0Ge0LZyzdCY0/ro7gq8RfYq9C37/WSKGeqvZ IKoMEpmtcd701ZzbtssLL8MHAn2aPt9pQ2XtC1A+c1Wxxe0r7R/f/nB0bdDXOSucPpfp 12iWRsscgRoPjfG0NB+vGbr8jltMTO+tRXphcT23r82zWbg5FGUNxSMpKQY1kqye6J+P DP4JawbZ9BxznLQE5jLkAxwC9ba4QEhV3Uts/F3iF9wYmD/L6072FuInvVOuZFjS/Ysk 5tIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706705974; x=1707310774; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qiLW6Y7RRXrik6dDAtU4CB215hHq9HP/DTZOIjF86/s=; b=ReDcIE2kauGbVM/vd3IemNyIbrB/bndB1cOYW57EEwjYbVHRVYOBxRaGatqEwzhTBM iXzKMc21dO2YLaS6mgN/ZTlq3hdTOtLNKEyzwbpEoKSpUJsYpbF3sCx2T2f/auW++NMB yquVuxEqOBZ0chfkey3bAm8F3NGCYJBKjGa8Q0BH6s8G+t7Rs5u1ZzPASj02TFN2meW2 5vuyZFfn0hf+rX+U6n7DFciqT5yojUTNYuTUelmPM/CXzgicfbenMMbByPuhzz1pWwMv 8aDMjY0eMwEXo7uyUaiGARNVKx1JkvM8+gddqTZZnxr+v82y9LpOR+ipMli/Mrg9NYn/ QVdA== X-Gm-Message-State: AOJu0YwmYGOLmcVOV/oWyA7UDbX9FGRaYsv8fquMwehx0aDC+ldWuiky JRSbsb0NzhUc/NEEhFSz3a61gHsSYXqkzAwgpSW7IOY9h4T/hOyfDZwBhU2HeQq7qsI= X-Received: by 2002:a05:6512:282a:b0:511:863:4a0b with SMTP id cf42-20020a056512282a00b0051108634a0bmr1358837lfb.60.1706705973568; Wed, 31 Jan 2024 04:59:33 -0800 (PST) Received: from localhost.localdomain ([188.162.49.60]) by smtp.gmail.com with ESMTPSA id h25-20020a19ca59000000b00510faaa62cfsm1361135lfj.222.2024.01.31.04.59.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 04:59:32 -0800 (PST) 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 , Marc Kleine-Budde , Maksim Kiselev , John Watts , Cristian Ciocaltea , 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 v8 0/3] Add support for Allwinner PWM on D1/T113s/R329 SoCs Date: Wed, 31 Jan 2024 15:59:13 +0300 Message-Id: <20240131125920.2879433-1-privatesub2@gmail.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit v2: - fix dt-bindings - fix a remark in the driver v3: - fix dt-bindings - fix sunxi-d1s-t113.dtsi v4: - fix a remark in the driver v5: - dropped unused varibale in the driver - fix dt-bindings v6: - add apb0 clock v7: - fix a remark in the driver - add maintainer v8: - fix compile driver for 6.8-rc Aleksandr Shubin (3): dt-bindings: pwm: Add binding for Allwinner D1/T113-S3/R329 PWM controller pwm: Add Allwinner's D1/T113-S3/R329 SoCs PWM support riscv: dts: allwinner: d1: Add pwm node .../bindings/pwm/allwinner,sun20i-pwm.yaml | 88 ++++ .../boot/dts/allwinner/sunxi-d1s-t113.dtsi | 12 + drivers/pwm/Kconfig | 10 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-sun20i.c | 380 ++++++++++++++++++ 5 files changed, 491 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/allwinner,sun20i-pwm.yaml create mode 100644 drivers/pwm/pwm-sun20i.c -- 2.25.1