From patchwork Wed May 29 10:10:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Farouk Bouabid X-Patchwork-Id: 13678608 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 52F22C27C43 for ; Wed, 29 May 2024 10:11:11 +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=HUQDP2H5rrd7FGuH+mjDSIz8cz1hAiz5AJ5TUus8qhs=; b=ggLuNWfhj8FbxrdqWstkSChBB/ kN6dC5oGy7Lz1yDuhX36DmhrOTDnG55f0bpwjtGS+s0V8JRaC/LKqVmnC+u/+XvUwyvTVn7g59KAc n5KRlJlX1C8okjMGePi2T5ENeGPs7LP+kCKrh+cIE/D65D0w+9sADx5x26K4waEpO7Sswu1Uqf3ab NB9AkEzt8homw0N6NU7sFoXTGtmzj9MbmNmgoqgDjsjve6UCjLzwJiIOR8UIFewjFBGLrsDTk58xE /k02tM0vejl+Gg3TlLcAXJPK4MknLjjv99K0MzGkHBkqYW6eMNpOp1+wnWDUwTgrfk2PgNWb1VwT7 M1XQ7J7g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCGGw-00000003kMY-2LXW; Wed, 29 May 2024 10:11:06 +0000 Received: from mail-he1eur04on2070a.outbound.protection.outlook.com ([2a01:111:f403:260f::70a] helo=EUR04-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sCGGs-00000003kKB-2Y10; Wed, 29 May 2024 10:11:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=exfHCjlRG1geJKyY5AhPZzRnuQ4IoNI4iKc2gYdf8fvqzWeI6XVxpz7zSOFuGaVXPdM0ABnWvOG5nBJypQJcerTTot6kqaleWaI82voEh78f9IDyYYc8f+FB8j8+39KCKXUSO6KmVlOE/2U1hj1U7DbSFCmCRVkHLzq1Qdc7yfMuZcUOtenYadI0TTH9lu6awo97ZkBBxVwZdSRqyPOXZuIlcSOQBttowEerdPKco0LyuL4SDsrvJraoR2ACZO79rb21lXAH+VvyKvQ/hAb/s9iNMEF7uLvdxVMn0sZA1QDbnDx7Z5mzSeQaH+Y2ANqGNw2H0gj1i3HBFGjgruOibw== 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=U1jJiRoiElBzJxqW+tBes1orTvu25HSPL9hW3V570Y4=; b=kb62oZ5+kcRM/dovkmtrOqwCAE8Zb5OSYc4QJmteBSbMRIlyi33zvetqJPQplCe/yF0tEu64fha77vPFO+wIMwWpnHG4Orp7BM5mOUYvZ3LXe0zMKQ+LNWzTF+JcLu2ITQqNRHnXX9ptOoHFD8hAzUiHwDxDAs7XPXmORlfmQYycYivsq0fZCy5IGzTPJ2s9Eswbs/mEG+eMEc5sb0z5hqS1P0Wkup0qC+hW29XQwChDcY8GE1kaFpJkjPEH85bxfS9Lnm92SaMz0STVTQRbWKsO45SOd0zXEwhYdSJshU8pQHE+bo7WALa4l7ID7R8uCeKXSHmG4tKMJO9tC2nR5Q== 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=U1jJiRoiElBzJxqW+tBes1orTvu25HSPL9hW3V570Y4=; b=k1PmCy5k/PDn+sKgY0MZa3SsP3mzPDtiIhG8/c5DcdMvPvXGV7EMBijOfEI0TLAUEabc+0j/vGBRVnxlZA+UxRm2DgnytFD39aSWmKiIWEFeTVTrJXkEiS/b2EimcpfiBu9RdADe09TwPjNcwZQ7Qoi97s9vULgHqiQpB8Ju6HQ= 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:53 +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:53 +0000 From: Farouk Bouabid Date: Wed, 29 May 2024 12:10:32 +0200 Subject: [PATCH 3/6] arm64: dts: rockchip: add pwm-beeper to rk3399-puma-haikou Message-Id: <20240529-buzzer_support-v1-3-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: 387c1acf-58f7-4990-70e7-08dc7fc79e2b 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?dnIMzKAQ0rmxoHl9CjGlENB7gDguDb4?= =?utf-8?q?P+dT5Ur4xO+yXJg4qNAWeu9kD8xrjefnDa9UcLC1lORY5RhvHV483qjnxC2QkLgi4?= =?utf-8?q?9xXLLNE9suY5M912JEAVhVBJLSYleX0ldtfzpDWB0DRfSvPJsaGzaBZBQNT8Ri6Sd?= =?utf-8?q?3lU8WnuyvpakHfn9LMtMM4TkFv9Y3ESdOoj4vjxRga4hAiepPNMhr5SZYaizBNydS?= =?utf-8?q?cpFvFElKQ13kjp7aKiK2jEuqmCXLXkh6eWhTQY2XucQwAV+Wzbz/HX8yXafhUOpB/?= =?utf-8?q?cdv6Hli7DNA4Ak0JhqH4wenmN0AgNQegRPjAityCsGXFn+jSLMewMx8CGbQ3Z20VO?= =?utf-8?q?PjJHFY2V9fIZTDwLlq79tx8TfQL0MQGqY0LNMnVmPa2x3kZLRrkxsLLETL0N/RmJi?= =?utf-8?q?BLs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ispam-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?xa2nDgBPwt+HnVI/lOIDPlaW6l6e?= =?utf-8?q?8fs2v7Vso0+CivxI4PeSmDqIIYgxpI9wrB5irO1g2s+EINSH0/VQaS4lOjZe+1FGv?= =?utf-8?q?Su1GgkaQln6Ur2hlKGLemshc0BK8CuXa0zT4gCOl+D+sU4Mx+DxL+EJ9ChYK2yP+K?= =?utf-8?q?vw4aQugI7NicJwG4O2uYUXiLVbMFWVeKRt2YQL6tWf+ZTQEAzOE5MrF8nhC382iVG?= =?utf-8?q?RKVlQVt3x56p6wNG0lMPFCNPeJDlMwj7/uuf+8HngV+896++sWeFAIk5EU1L35bP8?= =?utf-8?q?UV39t12B8EeeRQ6mVLlNjx0oRXchvPRwIFY7ICzYwJMQYo0/0tGpyw6kvnRwcb0LT?= =?utf-8?q?Ql+ta8jG3UUGUBt2+9YuSgvrv4O+7190R+zPeGepOWAYqFp4x+tFSZm3HCqJs/GsP?= =?utf-8?q?a503h+6Hlr0va7KwmVo2rlZU6ixStgJz72eqkBnk19FalxFY80DmKwwnVQKVxC4qY?= =?utf-8?q?K64YSdjNQ75ysRwJtkmD0Xrw/tXsANSkHfatArHdadHsUEUD6FHpaCmOgb0Pucglc?= =?utf-8?q?KvpDH4dTCRLTT4XDMnZEXzi8LrTifYoiboA/3OI7XeeyLKIENVsHySOkmTL3+MQ6I?= =?utf-8?q?8ljhl2+yOmE4QURvH+0OWWA+W7X/OD1nTTT9mZCW0aP4cVAeIkQy5Oshnm8wv9ZI+?= =?utf-8?q?XXgcS/QrcCHgX/dciHZAO4fZYJzvLbWWK4/PmCM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herry.de X-MS-Exchange-CrossTenant-Network-Message-Id: 387c1acf-58f7-4990-70e7-08dc7fc79e2b 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.9715 (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: 2npFpS8JbcQaPBmjObijXY2IGdRKUuf79qeygShCYXr/gPvL1iSPFAXTS4CXukiM5l/iOkungCeQSU1VfU6vQk3X8e7YTQEml+hVjn6yMXI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8811 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240529_031102_695311_5A67B185 X-CRM114-Status: GOOD ( 10.57 ) 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/rk3399-puma-haikou.dts | 5 +++++ arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi | 13 +++++++++++++ 2 files changed, 18 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts b/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts index f6f15946579e..3d57c606707b 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts +++ b/arch/arm64/boot/dts/rockchip/rk3399-puma-haikou.dts @@ -15,6 +15,11 @@ aliases { mmc1 = &sdmmc; }; + beeper { + compatible = "pwm-beeper"; + pwms = <&mule_pwm 0 250000>; + }; + chosen { stdout-path = "serial0:115200n8"; }; diff --git a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi index 69b57cde7d78..e3d2d27d4ca3 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399-puma.dtsi @@ -11,6 +11,7 @@ / { aliases { ethernet0 = &gmac; i2c10 = &i2c10; + i2c11 = &i2c11; mmc0 = &sdhci; }; @@ -395,6 +396,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 {