Message ID | 20240529-buzzer_support-v1-0-fd3eb0a24442@cherry.de (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org> 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 67662C25B75 for <linux-rockchip@archiver.kernel.org>; Wed, 29 May 2024 10:11:31 +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:Cc:To:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ipR25Vj2D0GLvHB30mvzVVZoC7BdFPLVY0QGv6/npyg=; b=1MDO4eTOlYz4eT djnJQ1orAK9qDDT/kzml1aXQeUSR4eGc9krD4iyqHUJAtrs0scLid8ctaCz9FBGWeWsTFQNb3Kn81 IlNMIDYBaXYOk7C8vYjjX9FTTU/qQQOPyfz96N3elJ7Iv32hoqDMIX49gOKrtuZfmRj78svvNH+IH IssPapK7oor1NGQh8SPgPSTkIwZcSCAuPvJvtHifekfgRlqqNQ0nSr7Gk9pVySjrwgNlouVrP91KN 1HukBwo9M2Ci4wrTDZAihLuWGHcL/yiG5kF/BVVhXBhnPHWtIjjF9rgUhz5TxJnRJBdYFnpIEXtM5 5piOiaBlk9mNx5SJv0iQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCGHI-00000003kXn-0Uj1; Wed, 29 May 2024 10:11:28 +0000 Received: from mail-am7eur03on20700.outbound.protection.outlook.com ([2a01:111:f403:260e::700] helo=EUR03-AM7-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCGGw-00000003kKL-24WV; Wed, 29 May 2024 10:11:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=n+s1VfxtT+LElADHKlufzwOsjdMVe6HTpM6oYs5FcPmNQME9XXf+KLT9IalumCKGe5AQ4EBnNlNjDdMgygwLaJE0D3Nf/QE50nk0tcWHaLR1R/vSEb6dQyMAVdW2XsQEYIV5UWhN9Zss6yKgU/w9un8JMER115WEx0vpZ0jt6EmKiHZMsE2JehHOZ7XG+iP5q2ZDwRvdp74syAGWggjNYhnyxgrLMR9vcYnNMims/f4IqwaigP9dUB3k+DvBv6yHfZRXo1M9Gxva9CQJyIOlzIMbrbv8fwlWgbzwms6zioi9tmljikrES7or8JpPKzLM5FFI4HEQsXobVt2Xhdp8Gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=jxWFOafSEWg8GVa7FIRUhdWVZTfHV/SfAVlmj0XA2tU=; b=FZ9aXV/W+P0J3fhiTPR0y0Dy6UaY7oPLMnBsdNQfn4yVIUHV+9tQThearPP9zUgoLccUuOdJnfO9jjsUkO3yq7ZLRG2cp1rG5hBLTFZMTwPOAuuIi4wTPHyWzmGpAroPZpupntbTeVCtDIM/93OgwS+90CWpwdcBSatN0kst8pbQcurpx+TFWFd7NA4KSfxxRCTy3fWWoQJ57WZJFfjbrxRoQhBirW8/tsw9xqMeo1e0d2dZZ9WrkRnr9Tjy1Olzdk3H/3nieLkUaCb9+WbAQbtZaNYoZ5zDpiM9RFPn4oAkb5g7w6BMSjCAf/hlj4T/9635CZT6rSFpMcpzYtbMAg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cherry.de; dmarc=pass action=none header.from=cherry.de; dkim=pass header.d=cherry.de; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cherry.de; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jxWFOafSEWg8GVa7FIRUhdWVZTfHV/SfAVlmj0XA2tU=; b=kUotTfrposaVJkwo6R1xAxEtZcMnmXPkB5Jm/YtoGGkBQEtEC6nGKF3dh//i7tXVdK1u9K0lorKJ812Yij4C3hK05yK31kJVlrkMwu730Kf6+LTKeiw0W5Pt3Y4VjB54Q7sdEnGgrNiBfv1K4gJVFEw+FnpWsRUZSOyoDPV5/6k= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=cherry.de; Received: from VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) by AM9PR04MB8811.eurprd04.prod.outlook.com (2603:10a6:20b:40a::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.19; Wed, 29 May 2024 10:10:51 +0000 Received: from VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6]) by VE1PR04MB6382.eurprd04.prod.outlook.com ([fe80::2a24:328:711:5cd6%4]) with mapi id 15.20.7633.018; Wed, 29 May 2024 10:10:50 +0000 From: Farouk Bouabid <farouk.bouabid@cherry.de> Subject: [PATCH 0/6] Add Mule PWM-over-I2C support Date: Wed, 29 May 2024 12:10:29 +0200 Message-Id: <20240529-buzzer_support-v1-0-fd3eb0a24442@cherry.de> X-B4-Tracking: v=1; b=H4sIABX/VmYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDU0NT3aTSqqrUovji0oKC/KISXWPjFEvjZMsUgzTDJCWgpoKi1LTMCrC B0bG1tQAqsYyYYAAAAA== To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= <ukleinek@kernel.org>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Quentin Schulz <quentin.schulz@cherry.de>, Heiko Stuebner <heiko@sntech.de> Cc: linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Farouk Bouabid <farouk.bouabid@cherry.de> X-Mailer: b4 0.13.0 X-ClientProxiedBy: VI1P194CA0043.EURP194.PROD.OUTLOOK.COM (2603:10a6:803:3c::32) To VE1PR04MB6382.eurprd04.prod.outlook.com (2603:10a6:803:122::31) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VE1PR04MB6382:EE_|AM9PR04MB8811:EE_ X-MS-Office365-Filtering-Correlation-Id: e8480373-6d0a-4f9a-348c-08dc7fc79db2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|366007|52116005|1800799015|7416005|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Gz+05Kxnc7dwsjVOWsKp5cPp1VVXsTb?= =?utf-8?q?dADl3r4dcfB/ty5f/Q4CZLPQp/gU8CCrJ04tNx/J23isl08EedDzNSip19cSWtVTY?= =?utf-8?q?HIpQKNN1neXBJhmzR+yWiywzzK9h5LnU1pKUxqHOrN7fGicu7wwX1vBTI2i8cRhbI?= =?utf-8?q?XnOOV7iNiw8hGKXMOooJsa4b2AvcOAMt6aZpQvMcvqj28HosNr4Rtv7u/uQa/a+Kt?= =?utf-8?q?pySiKp2ww4yxETwc2RWj4WLDDa6peLLjbo7v9GPm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xWQGjcxuxUIdeqcWBHE?= =?utf-8?q?LYILvBv3Uz7I2vDDE30sY+YVKut/RdXTRqQ/TSqgIa84x/G0vxDURZC1rfc+sSG6X?= =?utf-8?q?D2jG35FG9ei+lwMIb4cpwNGaPfzPfutFZmjA=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VE1PR04MB6382.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(52116005)(1800799015)(7416005)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?dPj1sHQUtuibBBzVuKrr4308RhCr?= =?utf-8?q?gXQf6tQjrmMpgT2wVzKp31Z4Xkc7vGrvkdz3AqcCBWyqF9weYCusmOQB+x6/sztkB?= =?utf-8?q?9an/u/P8m+0zmmuwbbfx6BeatbGB6+emrBSFIZLIhVrtuGdx29mW3m2ywFMAq5HPh?= =?utf-8?q?5pb+PWXzLanqo31/seklZRBGIMbDlCIhEYGBUaI0wU0IIXvzVQKD23UxkGn4tLVKE?= =?utf-8?q?tpBOpch3YoEfCYhri0D3WMpgqZKeZcKtlgGfvyJ+ua/Amp4/uDFDEUWwM4FXT0kWN?= =?utf-8?q?3Lap8helui3tpwbtxb1TkjxVhL2BA6n0yAd+xNQOEumZjRr+sboA2bWi0iBxNoOC1?= =?utf-8?q?xM9Q9FGaPexxSyrkNy/uOy5KG/DiJirxJxhSjWe3AfMbX+D7bM0LxZvNWMfWeVdhG?= =?utf-8?q?zrSqSsoJROIBn0qvujhp6K5k5G88J0ib0OFhd3EiZBFc5nGyW2FSfq/4UfRwB5YA0?= =?utf-8?q?UqY0ykjrNutJrI8l609bW5Wu5zqt4gfZQoT+13XbdOywNBN3WbmuJKC/N4QvYsdz6?= =?utf-8?q?y9r3VuIDVZdgemXsg5kpsNmGe80tOFB6iuh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KBabRCfFZIdmbGO55FuV4ZFhb?= =?utf-8?q?/NRzmyUIEv8Uj/ofTzrZJXlEGmP7MKMfBbuvz/YMqaOCfD00zfnMMRglhqUSV8hYF?= =?utf-8?q?vNnXont+wtYN0AS1XBniHQw4FWt8r786fg=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: e8480373-6d0a-4f9a-348c-08dc7fc79db2 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6382.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2024 10:10:50.2541 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5e0e1b52-21b5-4e7b-83bb-514ec460677e X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PjZUB+x1YcHSL8AlEsUsAQhc8R1su1NeHj5BfNjjgYlSQiv84zPw24gla2HfJgt7RHP8eI2fwzoePwn1iH9jhv1vKcdVHDtc7UiXu1iaXgM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8811 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240529_031106_593907_DCCBED80 X-CRM114-Status: GOOD ( 11.69 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms <linux-rockchip.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-rockchip>, <mailto:linux-rockchip-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-rockchip/> List-Post: <mailto:linux-rockchip@lists.infradead.org> List-Help: <mailto:linux-rockchip-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-rockchip>, <mailto:linux-rockchip-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-rockchip" <linux-rockchip-bounces@lists.infradead.org> Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org |
Series |
Add Mule PWM-over-I2C support
|
expand
|
Mule is an MCU that emulates a set of I2C devices which are reachable through an I2C-mux that is implemented in a different patch-series[1]. Device #1 on the mux is a PWM controller that allows users to I2C-configure the PWM output signal. On rk3399-puma-haikou, px30-ringneck-haikou, rk3588-tiger-haikou and rk3588-jaguar boards, this PWM controller is connected to a PWM beeper. +-----------------------------------------------+ | Mule | | +---------------+ | ----+----->|Config register| | | | +--------|------+ | | | | | | | V | | | __ +--------------+ | | | | \-------->| amc6821 | | | | | | +--------------+ | +--------+ | | | M |-------->| PWM over I2C |------->| Beeper | | +------------->| U | +--------------+ | +--------+ | | X |-------->| dev #2 | | | | | +--------------+ | | | /-------->| dev #3 | | | |__/ +--------------+ | +-----------------------------------------------+ This patch-series add support for Mule PWM-over-I2C controller as well as the PWM-beeper on theses boards. The device-tree patches are to be merged after the other patch-series. The dt-bindings and driver patches can be merged regardless of the state of the other series. [1] https://lore.kernel.org/lkml/20240506-dev-mule-i2c-mux-v2-0-a91c954f65d7@cherry.de/ Signed-off-by: Farouk Bouabid <farouk.bouabid@cherry.de> --- Farouk Bouabid (6): dt-bindings: pwm: add dt-bindings for mule pwm-over-i2c controller pwm: add mule pwm-over-i2c driver arm64: dts: rockchip: add pwm-beeper to rk3399-puma-haikou arm64: dts: rockchip: add pwm-beeper to px30-ringneck-haikou arm64: dts: rockchip: add pwm-beeper to rk3588-tiger-haikou arm64: dts: rockchip: add pwm-beeper to rk3588-jaguar .../devicetree/bindings/pwm/tsd,pwm-mule.yaml | 46 +++++++++ .../boot/dts/rockchip/px30-ringneck-haikou.dts | 5 + arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi | 13 +++ .../arm64/boot/dts/rockchip/rk3399-puma-haikou.dts | 5 + arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 13 +++ arch/arm64/boot/dts/rockchip/rk3588-jaguar.dts | 18 ++++ .../boot/dts/rockchip/rk3588-tiger-haikou.dts | 6 ++ arch/arm64/boot/dts/rockchip/rk3588-tiger.dtsi | 13 +++ drivers/pwm/Kconfig | 10 ++ drivers/pwm/Makefile | 1 + drivers/pwm/pwm-mule.c | 115 +++++++++++++++++++++ 11 files changed, 245 insertions(+) --- base-commit: fd8c3f3cd1b029f1851393839f7ce558db9cf202 change-id: 20240515-buzzer_support-33d93c9d0f1b Best regards,