Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp528972lqb; Wed, 29 May 2024 03:13:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCViwGA/J4B/JZQXRLtaSU9sZWowKR2sJZ/dhGtPeWwtjCBR50dk5sSDba+ffgQe4fYmVrCdWQ7vcTyQyrArM9HpR30gh5952Rm8R4RuwQ== X-Google-Smtp-Source: AGHT+IG1UI0QR35hKPe8F9rfJBc28Y34vt1cFLgNv7sg3rN9ultPRJZaJOzPtsqJdnGbF+1SRhWA X-Received: by 2002:a17:903:18a:b0:1f4:736a:27fa with SMTP id d9443c01a7336-1f4e95f4709mr27457025ad.0.1716977607215; Wed, 29 May 2024 03:13:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716977607; cv=pass; d=google.com; s=arc-20160816; b=HJvjZh4ixfrQyyIooFxia/uZmdhyEEg3SquROYG9WZUf/qjrxmxHG/snFk/PBxz3na DhyVBSbkqXWMzMAzXu2hmw36XUr67zc04JD9nIU14f9kI63/OgSgtgWIsZVpwqGrnfNV RksKvnE56cHNY/NkGnd583ixtDkgaMPZwz50RZ4JE++khiSzFARDyaqq38A9L/DhNH/+ 5NXp+e+OkLLOc8uH/Z7Us7sfwoPtquRTo28poLQW0QU/iR++JYgD6BmLu3PYtHDSIkZh so0HpWffMSDuAMEfFB8HEYzh/5cpPX9eRVi8d3/dKpvm+4We2yc5mvWRMFavskt+X2vK 4M7w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=reply-to:cc:to:content-transfer-encoding:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:from:dkim-signature; bh=8q2ufaidK6HRns/SDYbk8ghG5eBWzTouxAIm8UtqMjA=; fh=U91pnJL1fBLcCMjZPqZp5B4oUy798Iq5CD+2Re/NYmA=; b=btpIw17df0S8t+qEpHtLt/QbxTGBkG3klcBoNd0pbcnbZna50pdpLOOMVnRhFLZa4V DnToI4hY0KHUhZZfuhPgWHgX1iYHs+hpb9hmErjYEQFiHcOPoMeO3jML9sZU1uqWNprG 0B43NoyPPlThqB0AAOa62R9l80o0op7EIv3ICpZHPS+zId8C0ETUO8pxywkXTbn07VDY tkD5vlNP9J14P3GFnw9Ej4b/m9txVYiPtTukKa/4sdojDc/3QXsZ9OXqUtZOXL5JdrYV 5fibyp7+k7HdFz35r5MOeBUOnfokJ9QpF6oC4RgXY5YHgOC6v2S73vRUGLPJUAFmseMY t/1A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d+lMm492; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-193906-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193906-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c9e58d8si97862125ad.548.2024.05.29.03.13.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 May 2024 03:13:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-193906-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d+lMm492; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-193906-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-193906-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 4725EB249C0 for ; Wed, 29 May 2024 10:01:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ECA9017B4F9; Wed, 29 May 2024 10:01:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="d+lMm492" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1306517B400; Wed, 29 May 2024 10:01:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716976878; cv=none; b=MrtpCT8InvNzw3/xkTTW5kCfcMm55QfYqOhMeUiEs6BTVLrIUZSLsmWVsfLI3YPB5thG8JSm1eoAObJ6nCF+QoM1XYxEvmmjxFhL58lL/hgoxcG6rTOhfh1QsjTI5CpeaFx0/g3UhGzsipf9nbyArnFKy9qmr/4edUwUCretSng= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716976878; c=relaxed/simple; bh=a91FxspxlRCfgSu57AGk4ebkLMPvGl9K4zWKW9UVBnU=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=iSL2ceikzjMKnnRVaO+vWpEtrcmzYjOn+iVQGW8HIthO3RDRzhNwr91E71Ndg5LCL0oIFJXSlWyWX7d6nDYYHmNhAZmtXEHlKo0yXqlQMUHRkwcXtOYpLwZpNCJi9iV5uEfkPh132aKl/SNmOKhLghKmomJwf3V2TLnONz5/GAU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=d+lMm492; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id A2272C2BD10; Wed, 29 May 2024 10:01:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716976877; bh=a91FxspxlRCfgSu57AGk4ebkLMPvGl9K4zWKW9UVBnU=; h=From:Subject:Date:To:Cc:Reply-To:From; b=d+lMm492mXxD569WnYSsqnv7M7bM1QaWTk+8xuzoHl40aQi29EKTiI27LKYczrqQ4 89dp7KxTmEgpmPaV6m5FqL3mQm2j6RbUYcwne3EMQFghoCFAnP+wvhzRVpENeofd9x wNs5Cu8fs8BxzF+T8fpn3kYUyEYHigyL0eMleborjI0K3h6TPavimgxDyJuzpdZRB+ gnoorDSQyL5ABYGTTduKSO2qQlNiS6Tgh3j4nrnFZ4AbPD65MNEd0JmAs2a+ox2W4l brFX2gvc+4sZH/n2cBIIsHVBLwpW0vQXat0USkHz90jxRs4rJ/v7hJzbXwuflZ+BcQ HfX5HgrUdPKzw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85FCEC27C43; Wed, 29 May 2024 10:01:17 +0000 (UTC) From: Kelvin Zhang via B4 Relay Subject: [PATCH v6 0/2] Add support for Amlogic S4 PWM Date: Wed, 29 May 2024 18:00:55 +0800 Message-Id: <20240529-s4-pwm-v6-0-270f63049f20@amlogic.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIANf8VmYC/2WMQQrCMBBFr1JmbSQdk2pdeQ9xEZJJO2BNSSQqp Xc37UIRl+/z35sgUWRKcKwmiJQ5cbgVaDYV2N7cOhLsCgNKVFKhEkmJ8TEIdHvZtofGGiIo5zG S5+caOl8K95zuIb7WblbL+pfISkhBhEjeOyWdPJnhGjq2WxsGWCJZf0WN9UfURZS2rb32ZofW/ YrzPL8BBSOvPdcAAAA= To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-pwm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Kelvin Zhang , Junyi Zhao X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1716976876; l=1140; i=kelvin.zhang@amlogic.com; s=20240329; h=from:subject:message-id; bh=a91FxspxlRCfgSu57AGk4ebkLMPvGl9K4zWKW9UVBnU=; b=/SM+S10/vNZX/3yq/Vv/gVtGFkhrqyd951SBAMUefxD4hriwDQ+A5PQW7I5uW3k6gprCPivv7 CWOHQUlXHkZC6nYGzPJpAW4cp/lPI3y3ZfKAHt+qBWl+g5u6TG/gmuG X-Developer-Key: i=kelvin.zhang@amlogic.com; a=ed25519; pk=pgnle7HTNvnNTcOoGejvtTC7BJT30HUNXfMHRRXSylI= X-Endpoint-Received: by B4 Relay for kelvin.zhang@amlogic.com/20240329 with auth_id=148 X-Original-From: Kelvin Zhang Reply-To: kelvin.zhang@amlogic.com Add support for Amlogic S4 PWM, including the driver and DTS. Signed-off-by: Kelvin Zhang --- Changes in v6: - Rename 'pwm_meson_s4_data' to 'pwm_s4_data'. - Rename 'meson_pwm_init_channels_meson_s4' to 'meson_pwm_init_channels_s4'. - Adjust the order of the device nodes according to their unit addresses. - Some minor improvements. - Link to v5: https://lore.kernel.org/r/20240521-s4-pwm-v5-0-0c91f5fa32cd@amlogic.com Changes in v5: - Add devm_add_action_or_reset for free clk when unloading. - Replace the underscores of node name with dashes. - Link to v4: https://lore.kernel.org/r/20240424-s4-pwm-v4-0-ee22effd40d0@amlogic.com --- Junyi Zhao (2): pwm: meson: Add support for Amlogic S4 PWM arm64: dts: amlogic: Add Amlogic S4 PWM arch/arm64/boot/dts/amlogic/meson-s4.dtsi | 207 ++++++++++++++++++++++++++++++ drivers/pwm/pwm-meson.c | 49 +++++++ 2 files changed, 256 insertions(+) --- base-commit: 124cfbcd6d185d4f50be02d5f5afe61578916773 change-id: 20240424-s4-pwm-2d709986caee Best regards, -- Kelvin Zhang