From patchwork Sat Feb 24 16:56:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Xiwen via B4 Relay X-Patchwork-Id: 20918 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp1234342dyb; Sat, 24 Feb 2024 08:56:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU9P20HEMUh3ekJnq0ayLpSG/6Aw7O7zT1hZeVI1gYYCemd+5Rvw4jZCcTd6bvBNhdQmq3sNvfR5DIiudPmEuhFcpRXqQ== X-Google-Smtp-Source: AGHT+IGCTl+u6PLq+dwV8ntmVIQZBOLOPI8LvtRBXJq4W8NBBqEvpf37E4v6SqXRHwIAjz193PGN X-Received: by 2002:a05:6358:e49d:b0:17a:b810:aacf with SMTP id by29-20020a056358e49d00b0017ab810aacfmr3492145rwb.18.1708793813495; Sat, 24 Feb 2024 08:56:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708793813; cv=pass; d=google.com; s=arc-20160816; b=dQdj9B6ybUyTFVlfmZYuTo2+tf1zI2lHEuXtsEgIR0JeJREi9MmBYdhmC2AFUfZNur yk3CUb7jvUbfXHa8dVoHknTG8OYxcXlweSTgnYUer5rDujnQCPGaLFSZI1ef8rHvKD/g JheRpLfMfsaVkUw/OTzxGyAKVxrSSOXJOe9w2NKq3OcU61WmXsDDrGWBBauRX6Coxy6g XgEZW0pXxAzISBF8ruDfgwJAgJaUn6fS0SD+Vin7YZBuiXFUiBWoCT7hSRXZgpA8FrDF 0w+5UQ8MwARcjBI4cT4pDjzGBK+LfSHwVjYeaMlyrnzb96Y3YTwupzlXnHDvZj6TCiK8 kZfA== 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=ga0BNWcOfRp72mkBd4Zh2M/h5sDItEJ4TX1L54GP3ik=; fh=tZhDNUr0Obju3m18gj6ZfutDO64SiIx/rzzNUEZnsQM=; b=V/E9t+o9MUv9fvms+xvYb65iuQKqb2BgB7GXoHOjg7N+KS8olTDuwacykS2pyPK3Ro w3wTTKJc0oKSp5ghX2mE2XV/7qtbTxTJ9UToMzVSeh1KV/BhKA85gooqaXuB5VPpgVGI xrIDodDYKWk7Qk7BgFW7umN0rUtvjbtn4UeoMhLeFXRcg7rqiKRiBUQ1RoffY3fFJp/9 +j/KXvh1wc7ptJmGCcyOxPyao3OHpGqgyUYfFjeSWlW8a/DdIZytSq/qHYsrHndLD76S xGGRENvJQ0/Zx7K364oLSMkEDaMoFgwD+XbIJe/YNQYI5SCcC0rjPK2i5qSFSur/PYAk 9yPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=asRaPFNE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79748-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79748-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id y10-20020aa79e0a000000b006e4c0a6acbbsi1099336pfq.50.2024.02.24.08.56.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 24 Feb 2024 08:56:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79748-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=asRaPFNE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-79748-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79748-ouuuleilei=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 5CEE9B21BE7 for ; Sat, 24 Feb 2024 16:56:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DD044B5CD; Sat, 24 Feb 2024 16:56:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="asRaPFNE" 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 6E05FDDCB; Sat, 24 Feb 2024 16:56:14 +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=1708793774; cv=none; b=KahoRnMODPtOzMd9DOFPz9OHov6XFz7Dtie1ccgRJ0/XYDjsJN8DV4UTzdDC6B+PktHpEnlnGleuxmXncX6YJdZEhDTM6rn4a6HcO7Y65hrYjz+MyQVt0MZLBUq2SRFoxgQtRMZafeXKMGJZxCQFd0pdO2vvzSSMtEqjLSzidyc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708793774; c=relaxed/simple; bh=qtrP800EKdOTmakNAoNosODy8gqESCOm/APUkVSRbhY=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=jLzEXcIiMUvlOyoROht8DRjRnpljIWRT0/FJVP7eBNjGYanOzePHlelBTFOI0nPx4qSRK3TUwY7H0zRmOfZ4HwZcAhU9agNhO8k8thx4jRr04pHFtAZxpNTZGDnn4yBqrFxA8TFrnTJVEqXOvPSCUQw/VK3R9iIWOb82HF3wZl8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=asRaPFNE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPS id EFBD4C433F1; Sat, 24 Feb 2024 16:56:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708793774; bh=qtrP800EKdOTmakNAoNosODy8gqESCOm/APUkVSRbhY=; h=From:Subject:Date:To:Cc:Reply-To:From; b=asRaPFNE5fnyNq+onqbaiQKvKBv8MEwZ2GKeXdBSccm6uAi6CdZiIvPL1NGEI0Q/4 AQ3YQDNc5MV1VfkDt73WD3dugifFcGpf20l6kAsHZLEm5Q6edTmIcK9WwX0LxpRsWQ 28BcTuN/Lsy1GApV7b9DrehoYHMHjvnIqW0S3eEIaj4DQpyI0sE/pfUS4z1fRCkksP SddaZC/jL6/O3fnzl1HywCdRaA7nJujmvBMpSnUHGE8d0G3ri5deEegMp55dO/ltjq 67tNdQnfgauLHWnMCGvY4vOZc+jQ4Mrz81/owENuZyISW8pbS/5kWkzljlryS1OS/k hAPpN7F6BO+ZA== 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 D0276C5478C; Sat, 24 Feb 2024 16:56:13 +0000 (UTC) From: Yang Xiwen via B4 Relay Subject: [PATCH RFC 0/2] clk: hisilicon: add support for PLL Date: Sun, 25 Feb 2024 00:56:08 +0800 Message-Id: <20240225-pll-v1-0-fad6511479c6@outlook.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAKgf2mUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDIyNT3YKcHF0jM1NjM3PzZNNUwxQloMqCotS0zAqwKdFKQW7OSrG1tQD OUuxAWgAAAA== To: Michael Turquette , Stephen Boyd Cc: David Yang , Igor Opaniuk , Jorge Ramirez-Ortiz Gmail , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Xiwen X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708793775; l=863; i=forbidden405@outlook.com; s=20230724; h=from:subject:message-id; bh=qtrP800EKdOTmakNAoNosODy8gqESCOm/APUkVSRbhY=; b=VWJx7sn+15PK7vXf+ej8Tpz2unugzwQue+YKYT03SMOkuuerrVwyZG8WJLBnAciOPt5OL6Gl5 AU9RANsVZYJASYwKbIKwjuzsTBxnyTqY1qcsYQ9BTMbKnxBS6NeIyjA X-Developer-Key: i=forbidden405@outlook.com; a=ed25519; pk=qOD5jhp891/Xzc+H/PZ8LWVSWE3O/XCQnAg+5vdU2IU= X-Endpoint-Received: by B4 Relay for forbidden405@outlook.com/20230724 with auth_id=67 X-Original-From: Yang Xiwen Reply-To: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791800181302065513 X-GMAIL-MSGID: 1791800181302065513 HiSilicon PLLs are used by various SoCs to provide variable clocks for various system on the SoC. Hi3559 has implemented their own PLL driver. Also fix name duplication because of that. Signed-off-by: Yang Xiwen --- Yang Xiwen (2): clk: hisilicon: rename hi3519 PLL registration function clk: hisilicon: add support for PLL drivers/clk/hisilicon/Makefile | 2 +- drivers/clk/hisilicon/clk-hi3559a.c | 4 +- drivers/clk/hisilicon/clk-pll.c | 171 ++++++++++++++++++++++++++++++++++++ drivers/clk/hisilicon/clk.c | 24 +++++ drivers/clk/hisilicon/clk.h | 12 +++ 5 files changed, 210 insertions(+), 3 deletions(-) --- base-commit: 8d3dea210042f54b952b481838c1e7dfc4ec751d change-id: 20240225-pll-2653677c5e1d Best regards,