From patchwork Wed May 29 10:10:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13678618 Return-Path: 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 05333C25B75 for ; Wed, 29 May 2024 10:11:55 +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:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=xJN6SVlwc3uWt/08bceZEtVckyBd0FdtNfZZQYVtOq4=; b=gyAv/oA2/iFZan7/6HnarMIixE +4FDr3dEE63KTsQ7jiNiTBoXri2AOfH2EWp6hDUI+QUwxU1tT7bVB0hCOXK9WBlJ+QVpyZTG+K/YO V9U100pDCSMflJ19xZucaIOb0NgEJdNtUxYDiUjqUUBghu4seA1BHIATiiVUCnOFj4osebRrGm7ap eFW0/Y/L9T+Lm1EyGjsrs9uxQz1/AvJrjrIEWxSjbvWKFn7BFrXQLWXNS/ChqOlEE6of64peoYcBf Q3C8Ciep7lEwAmRfjXEDFliygJNXIT0y5LkdOWIgDhKIhyQTKhsO7dltH4Uh4flVDmo0qQiAvFxOf I6KP4Qtw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCGHe-00000003kmf-3o05; Wed, 29 May 2024 10:11:50 +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 1sCGGy-00000003kKL-2nhg; Wed, 29 May 2024 10:11:10 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ii8+LGl2Yjy6kAIuV6M7tpIT0IJto7GTnr7h6jmCEpZJ4QAq9ZR15j9Zbs9Tbs1ePvCJ1T0Alvbm1e8Nx90vWkgTBMM7tuf/+BKnDlMVyUj4ifH1ebMF28mk/1KehWYx+311grscqWJX2+aNda3v+I7//iHW8DTPEeu2YdtjyyvepR/X7vH3zh0tgzCwxWXyVEt6aPNAy325rOjQjnqP+nK6DqQPwzNmLuILabcknr/oK/ipQ0F9fHngjrT7ziadVy5tS6sg4TEytcGGWM+Ki+WBGXOZF57L0Mop3FsUqGqDze5miE+a9o7MTtq5gCet3EDTCk1HvZLwBo429JtRvA== 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=xENk2PqkKRyIU4NuVKHl9fpCj9f0GkGfa0R1ccqXcdg=; b=jsgO1ugvWj8WwaTCy44euTbqfLHkHqCo6oCrkFgBF2N88ZvmQvSRBVotQ4EuuC+vlF0V1m2cXAr2BZhTmD+n0/THG0QxaBFqcNfThfMq9KrODEMT/e7A3eH9McIkAAOXu/ngQhgxeeflQUjq11JwCysaBsaVByQyqFg/xeAcK2Kycag2vQjKRnrTsugM6lFMPGtsHSCMKt4v7JOC0QKV3JemmjfiRVjUH3Pe311oA2lMo0tpPGegKovI/zMBsLe1pwiCmMlssD5aysG+U+cFwR8D/QVRozUeWMN6YXzL9UQy+rBFHKKhVJcCEHCk9qlGcVC9PvCcuzEiynHPDI3NWg== 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=xENk2PqkKRyIU4NuVKHl9fpCj9f0GkGfa0R1ccqXcdg=; b=PA2zQN4lvPrRD16EmNRbtNrceuhTGxbNKTjAob1uBmkTh61Wzbw7tZDGdX1bNSPahIYQMptUjK/hXWCdeOeB0EdKlCTthumzzloC7yGN39rE9BuY7/HOiaQJQLxLVuREq/UnxYkIi7ktbLkT301coX98TRHEGeClF/eHSnUfOKo= 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:54 +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:54 +0000 From: Farouk Bouabid Date: Wed, 29 May 2024 12:10:33 +0200 Subject: [PATCH 4/6] arm64: dts: rockchip: add pwm-beeper to px30-ringneck-haikou Message-Id: <20240529-buzzer_support-v1-4-fd3eb0a24442@cherry.de> References: <20240529-buzzer_support-v1-0-fd3eb0a24442@cherry.de> In-Reply-To: <20240529-buzzer_support-v1-0-fd3eb0a24442@cherry.de> To: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Quentin Schulz , Heiko Stuebner 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 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: 96c76834-dd87-4cee-5097-08dc7fc79e4a 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?hpiOkZcgzjewBEhmvjmsS9o8NHvG6Oi?= =?utf-8?q?L185JbJbJCKpmDwEvbhI8bBP35F2yu22lg42Y++3Oy0Iobbb62v+ZX+FyqUyJAZE6?= =?utf-8?q?ASdPvLY3JhBguk7il/tQ2tCmJ6ziaGVamLwJAe9gjkmYVRnz6ZS/x0XgkqY6Rcw19?= =?utf-8?q?sxpvmKFOSNLjL+eSa7xt1UQL94XdtMbLtCv0Tdv75JxfKxbnZW42r3chZ7u3x2/t0?= =?utf-8?q?N+xtzhwYaUs5FlmXl5YArDWaEzN4beQOyWymFtFuvB1Iy/vWfzOEQQbdF/pnGvBbg?= =?utf-8?q?tkS1SJAQMKJ9jMf3dlwQkoW2nxpm96FfObVIp+FjjHQyt2PInDWZpIguil4apZkqU?= =?utf-8?q?1tW3l0ktDoKXlBLdVPr/4qtNSwYlLrRAAzgX5rOsE4deb/ZMB/fxrjIamm0mxECO2?= =?utf-8?q?uHRMfj6oHuYJTLPwtm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LEN/HXs06LOiBq5uEatLjVw=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?dNXDeqV8kSq64VL2yd+FcVWBSmzn?= =?utf-8?q?V09aWgW/KErrXuQQ2tlOnmmk2RzyKOTb+yInfOxSNBs2RIwwFOZMKKrTxV/8u3Z1J?= =?utf-8?q?SO2zW2iOZ/NWyzxBhYuZqdOLG0PAQzeSss++VlY6TnPPOKEtNiWSVEnjcDj4XSSsW?= =?utf-8?q?ObcFqHUO58ezVzv2Ss6RgsCMBNiKPn7BSr82IUY32XeBPLzbEEqH1Mho3/e1SoWTo?= =?utf-8?q?Ao3gRt1FJ8+4xifa6IeCCdKmQvwzBQbni7yIiP56+FPXiT6+Ain+O2jh8pg/ZEJGB?= =?utf-8?q?x+yF8JiCSFLDssBvz9c7PuNQTe+Ae2Liamhjoeg5ODHGWb2mNQTQfVYMztw2Jsmie?= =?utf-8?q?kBLW0eGs+pR4MiCmE9b5qV9dbLWqUD67mxVKesw39g0jDSwxPqAmyC/QmBNKrhh7A?= =?utf-8?q?eHgePeX3t8PGEhLJINNTI4dY3r3laN3oh4ANDILTHqxC8huE13sNjcXTK/L0ZX4mp?= =?utf-8?q?udaLwYW+mIKlZlYZ/cz3xddYqz/Vvzmw2FeEPqT5kTigXDlPsc49eYCT3KfYVx7ST?= =?utf-8?q?VfANtHAxG0+mqkXwg3A58ZyXAnjjbopVsGNy3b3gNUf27IIyHtNxb8O+ks26QBr3n?= =?utf-8?q?tLKvCfWzvZCKlBztGBWVpatSaygr4Ohx1IAooo/SlRL6NxTMm6MXDErXGVGwi4RL8?= =?ut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7oy?= =?utf-8?q?dXpKQFj/g/t+e2O4fTxPwuJ8DpFrgPpTJQ=3D=3D?= X-OriginatorOrg: cherry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 96c76834-dd87-4cee-5097-08dc7fc79e4a 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:51.2106 (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: HBffK7FEu+7nbLp29wMYS6cN0FSIKJ4NNZqdNh+uKi1LCLQoBiglfNnJDme324Rbe0H1i8TCDtbFsWv7zSDqWgCBVFimgoM0GegUUGBlv6Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8811 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240529_031108_882516_93F329F2 X-CRM114-Status: GOOD ( 10.70 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add PWM-beeper that uses Mule PWM-over-I2C controller on i2c-mux (0x18). Signed-off-by: Farouk Bouabid --- arch/arm64/boot/dts/rockchip/px30-ringneck-haikou.dts | 5 +++++ arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/px30-ringneck-haikou.dts b/arch/arm64/boot/dts/rockchip/px30-ringneck-haikou.dts index ae398acdcf45..513ecb382ccd 100644 --- a/arch/arm64/boot/dts/rockchip/px30-ringneck-haikou.dts +++ b/arch/arm64/boot/dts/rockchip/px30-ringneck-haikou.dts @@ -17,6 +17,11 @@ aliases { mmc2 = &sdmmc; }; + beeper { + compatible = "pwm-beeper"; + pwms = <&mule_pwm 0 250000>; + }; + chosen { stdout-path = "serial0:115200n8"; }; diff --git a/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi b/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi index eea906379983..0eee06024484 100644 --- a/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi +++ b/arch/arm64/boot/dts/rockchip/px30-ringneck.dtsi @@ -10,6 +10,7 @@ / { aliases { i2c10 = &i2c10; + i2c11 = &i2c11; mmc0 = &emmc; mmc1 = &sdio; rtc0 = &rtc_twi; @@ -309,6 +310,18 @@ fan: fan@18 { #cooling-cells = <2>; }; }; + + i2c11: i2c@1 { + reg = <0x1>; + #address-cells = <1>; + #size-cells = <0>; + + mule_pwm: pwm@18 { + compatible = "tsd,pwm-mule"; + reg = <0x18>; + #pwm-cells = <2>; + }; + }; }; rtc_twi: rtc@6f {