Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2643748lqo; Mon, 20 May 2024 11:43:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUcDJ9hX5JzSL8ZpN1uggSK6hMBcg9ekeRFrHPG2IsBICv2XrNNhRN1DVLAfTFDi6QmmZBryyYL6tvJyfCmNzUbllgJEonSXTS6I7DtXw== X-Google-Smtp-Source: AGHT+IHWvROQtd1Xghp38wUwOa3U0Y5j+RtEyh2ClWeuEjjWKG96fUWpVyK/3tqQj5F3P91nKfGK X-Received: by 2002:a05:620a:3904:b0:792:989e:7c4e with SMTP id af79cd13be357-792c7600fdbmr4019339885a.72.1716230581996; Mon, 20 May 2024 11:43:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716230581; cv=pass; d=google.com; s=arc-20160816; b=nWJ3fnj89oiQOfsqU/yZCboe21W2+MzjhyB1+sBqnnz2XFTjSA/4QRuYyjiSJx+vm+ ccvxO4ZnQ1vyejsogLy8Z2jHNnV4XjAM8Smgp2Yt2FSWYeyAeD3wFOOtmVjnSZtYQRtL b3ql5Mg6txQw3KX9eQt2epivvcqcTiMw2tirMirKFxxaG4fb48HuG7f6nEirIqpSm2nq lyVrGP1itCaanDoDDxBWbqDrIe5Zgwy9lCPAUVTojZS4Qjxb1voUhlJsBPiZBFKrhf4p 7RNCy3Znzs/lzvpGgHK7OkxDUyq2QH8L5o3lqLa4z4XDt1UWsfBbAudnI9S4By4ZlNrB TuNQ== 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=d2oO4m1fNwQVp4jNZt/1i65mTC9NxrLa2XCOe6bVJYw=; fh=iuxRgp1AYF8C62meRUeRlixQQv8bKfuwUxoA3mcHDoE=; b=mYYQaJF4y+eywLaljM2C0lcAYbT5BI+xPA6nATemGqhk40N6eJIy/QlRY1EJP/lFgC nWcGmsc5zZ/0vs6txZoZS9FRqyThevQHYAqzDd4kSmoqmpDJQVmjBIrdgbYfD8a1EeCK LdpTzny+MF1j0DDWSPFuOnJLxzMGeLgGhEeEZqryLKacaBOZvxA8FWz6K39GH2MF0Kcy 21ivMXF+cKx3/f+cOsDOnD3CortqUJ1Qr5Xrk6BsxvJqAoZbwfJzVZciOhkuKmh3hWDJ CxWlRI7BN8AglbCa6D7B/PvYV1ro2AJK4B4FXOHWWS8m8aXICkvwcv9Q+9rJlDq29fY2 F8oQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="FH258/8x"; 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-184071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184071-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792d2884ee7si1046391785a.345.2024.05.20.11.43.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 11:43:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184071-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=@gmail.com header.s=20230601 header.b="FH258/8x"; 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-184071-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184071-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8404A1C20D69 for ; Mon, 20 May 2024 18:43:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01B151384A6; Mon, 20 May 2024 18:42:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="FH258/8x" Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (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 9D71213848B; Mon, 20 May 2024 18:42:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716230575; cv=none; b=sJz7dk4xb+fVQ7JGvIzeTdnnyyg0zWL0p5Pmq4N9ye2rjWn7wmwR6YDg4ffxW102gyQhgyDc5SSliUKVWwUtlkUVJfJavunT8meTnjeQQiLITRNzUcLzfy8Y2H5AHxD2tCiG0Va0Z7BBs0mwhXLrW9UNF0OI3okUc+ELrEeC4yU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716230575; c=relaxed/simple; bh=RAL8/W82ql7maGP9+Gccu8VKK+bvQNcePTIKExMfiSU=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ULXv5gOojOo5HR00adDOZ2FM9mrygqQ9htRHIggX9scBX7KyfuAtXP/Mr3eTDvDnKXgAldAY/hqgx+1iYi+EAu+46mFmUUvNOipJkWNa7eMM4CUNxDpjiDSJW1j55bzh+dyb2iBwxDMD3OTp0lpQ+kl5mOGUYjYl4MIGR+xM8Ow= 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=FH258/8x; arc=none smtp.client-ip=209.85.167.45 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-f45.google.com with SMTP id 2adb3069b0e04-51f174e316eso3698959e87.0; Mon, 20 May 2024 11:42:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716230571; x=1716835371; 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=d2oO4m1fNwQVp4jNZt/1i65mTC9NxrLa2XCOe6bVJYw=; b=FH258/8xU2piMGWfR8+Y5UG4ujMPnZbpT5tkWWdYuVpJvs86j/JChM9QAAGQmXVQYL ZNQ4IyDhsy7mq7sSlAoZivhcWxOdsZxeinnc35YdPwzjQhGSzh3SOSThlR+2LDwfAMmy NmnqY5zOKNK42QXAAGMERwhVfDbSw9Rc/RDGQ4Ty+wK/gw41WBIsOXkBsCVYKvJbXYS9 D6DY1Y1vljIBShefrogbjvTifnDvlng6PATFb66cnKcqlPRWJbliFx2VxOy01sDaW61r uDDa7rYRfMKiLe141cXo+Nm6wX1g+D2ydRmOqgckx+rJuW4pbj132Hz4OkMBvcopde+3 jlVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716230571; x=1716835371; 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=d2oO4m1fNwQVp4jNZt/1i65mTC9NxrLa2XCOe6bVJYw=; b=oYpCYD/EFrRlx6aw4B9caD3Z8NePWwWVF261f6AtCnEKQFzP0vLttvShbnVcVuiCXk 40MGAejmU8yGxttgALFNDYPs5Bm9qUnQsVFbSEorgFFFouXWKcRTBTqnrmyX5ms3dXxx YaMm7M0JCpC3irII90/IgUql45LUrENV6yAi6gLLaTETNipdcDE4u76wnFtBWmFoxbua JAebQBxFqTUIHbDSZv2WpMhc/IGBhH7WK7vNGw3mlIJKSqFNsaBpBwn2ukF1x8lU4PHj 7jOaUXdh2tizzv9UIjrnNDTgTEeO4DPQppIgq6Qs5JySZNgf9v5etMLxt5hozUbACI5Q V/tg== X-Forwarded-Encrypted: i=1; AJvYcCWPDx49lDurbvgBDQa4WjJTVNqsyQDRsiz0fDiOrjlpjf78URvHYB3yYxzDsgU4KobyVQ2dbPlMW60RJa11O13HVmv+1UUA1v3VU+jSdGzd775i3DjdnPepyUkzir+3InoceXfcsA== X-Gm-Message-State: AOJu0YyGT4JAB8dp3KIDAhoR7Vynsf4R/1HZucTui+fsPOSIRLRxmn+1 7BCFNFv6zjWlt4wu1URNkHK0pJkgRwSGRcebaPwqXJorBj3mkZjSlcao/bHGjyPo X-Received: by 2002:a05:6512:3494:b0:516:be80:178f with SMTP id 2adb3069b0e04-5220fe7934bmr19194028e87.43.1716230571213; Mon, 20 May 2024 11:42:51 -0700 (PDT) Received: from localhost.localdomain ([188.162.49.81]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f38d335csm4368967e87.125.2024.05.20.11.42.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 11:42:50 -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 0/3] Add support for Allwinner PWM on D1/T113s/R329 SoCs Date: Mon, 20 May 2024 21:42:18 +0300 Message-Id: <20240520184227.120956-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 v9: - fix a remark in the driver - fix dt-bindings - rename apb0 -> apb 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 | 84 ++++ .../boot/dts/allwinner/sunxi-d1s-t113.dtsi | 12 + drivers/pwm/Kconfig | 10 + drivers/pwm/Makefile | 1 + drivers/pwm/pwm-sun20i.c | 387 ++++++++++++++++++ 5 files changed, 494 insertions(+) create mode 100644 Documentation/devicetree/bindings/pwm/allwinner,sun20i-pwm.yaml create mode 100644 drivers/pwm/pwm-sun20i.c -- 2.25.1