Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2872313rwb; Mon, 19 Sep 2022 11:13:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4jNAnYpsYSQtu/zKO5se/QQIdyhUjRky4/F7Tf2kEM7Ku0ty+shYf9VGILvrHF6V5IQUwS X-Received: by 2002:a17:902:d4cb:b0:178:6e81:35b7 with SMTP id o11-20020a170902d4cb00b001786e8135b7mr1020953plg.108.1663611202355; Mon, 19 Sep 2022 11:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663611202; cv=none; d=google.com; s=arc-20160816; b=v9fEEGF5WJubPoQ5kLA04UoZad5beSGhHTtYDKBWTUaHi8dlBIVp57iaCJ7FNNqBwa uDxG17+YHLzNs3rC7iyhQyZM1PJUAD+M/0vb1/YuVs2FbaQ/0bWnHARrzjqURJG88aee I5eWPoOvHfIurkr9y3WqHc+IW5oXyT/SYP3ony2ipNFgedX5qqFMbgD6g5A026z71tma 8Wwf10Gf3thzF5G2O534k/K7hG5uNMCbA3VTjJMPhtTVNiBe4wQ/Sjs9oC3BtgIdu4DM 4tqL5dQDOphxG0vYnpBN551aJEMpEhJjDE4Vg5thMpeDn6DeCp8vS7HboG1DOkup7cJb hS5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=UcztuMmpyNzzxISlKVrBEgTJUvCXsd+l8db0A7XKMLA=; b=gbjhwXBcVhGPrNMFb8vlLqltVa3bJ5s7BftBVXU2lzz9IZnaNM2+3FJkdAHLNB6/AS iFauR8A0WuxMSkwYx/aQelxYy7h4jiqW14YD/TXbjF19ObUlmxMOyZtqfyeTane0/AQG wdwOrJTHZWG1WOkCHXJzZ7COxQ8Rnn0j9mAr0MVbY0ifBlKE1BQ7V6/Ga+v9Ajq2Q54w rJdvzcMABI0LL6BjJanFtMzMt7/8waZSrHRNBkOS7/Yh4yixBgeVr6Q+AKj3YvOu3Gqb JOZetzlOGTzuyJFY2DINplRRQKyUopavNqOywKAdnTZzfZphQbuNqirl9oEjTYRGX986 oGxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u18-20020a056a00099200b0053e67522538si32886363pfg.331.2022.09.19.11.13.09; Mon, 19 Sep 2022 11:13:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229924AbiISR6Z (ORCPT + 99 others); Mon, 19 Sep 2022 13:58:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229691AbiISR6W (ORCPT ); Mon, 19 Sep 2022 13:58:22 -0400 Received: from maillog.nuvoton.com (maillog.nuvoton.com [202.39.227.15]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EFD4121E22; Mon, 19 Sep 2022 10:58:20 -0700 (PDT) Received: from NTHCCAS01.nuvoton.com (NTHCCAS01.nuvoton.com [10.1.8.28]) by maillog.nuvoton.com (Postfix) with ESMTP id 96F191C80FC7; Tue, 20 Sep 2022 01:48:02 +0800 (CST) Received: from NTHCCAS01.nuvoton.com (10.1.8.28) by NTHCCAS01.nuvoton.com (10.1.8.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Tue, 20 Sep 2022 01:48:02 +0800 Received: from taln60.nuvoton.co.il (10.191.1.180) by NTHCCAS01.nuvoton.com (10.1.12.25) with Microsoft SMTP Server id 15.1.2375.7 via Frontend Transport; Tue, 20 Sep 2022 01:48:01 +0800 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 793B262EFF; Mon, 19 Sep 2022 20:47:59 +0300 (IDT) From: Tomer Maimon To: , , , , , , , CC: , , , Tomer Maimon Subject: [PATCH v10 0/1] Introduce Nuvoton Arbel NPCM8XX BMC SoC Date: Mon, 19 Sep 2022 20:47:49 +0300 Message-ID: <20220919174750.118651-1-tmaimon77@gmail.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FORGED_GMAIL_RCVD,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,NML_ADSP_CUSTOM_MED,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds clock support for the Nuvoton Arbel NPCM8XX Board Management controller (BMC) SoC family. ? This patchset cover letter is based from the initial support for NPCM8xx BMC to keep tracking the version history. ? all the other initial support patches had been applied to Linux kernel 6.0. This patchset was tested on the Arbel NPCM8XX evaluation board. Addressed comments from: - Stephen Boyd: https://www.spinics.net/lists/arm-kernel/msg996551.html Changes since version 9: - NPCM8XX clock driver - Move configuration place. - Using clk_parent_data instead of parent_name - using devm_ioremap instead of ioremap. deeply sorry, I know we had a long discussion on what should the driver use, from other examples (also in other clock drivers) I see the combination of platform_get_resource and devm_ioremap are commonly used and it answer the reset and clock needs. Changes since version 8: - NPCM8XX clock driver - Move configuration place. - Add space before and aftre '{' '}'. - Handle devm_of_clk_add_hw_provider function error. Changes since version 7: - NPCM8XX clock driver - The clock and reset registers using the same memory region, due to it the clock driver should claim the ioremap directly without checking the memory region. Changes since version 6: - NPCM reset driver - Modify warning message. - dt-bindings: serial: 8250: Add npcm845 compatible string patch accepted, due to it the patch removed from the patchset. Changes since version 5: - NPCM8XX clock driver - Remove refclk if devm_of_clk_add_hw_provider function failed. - NPCM8XX clock source driver - Remove NPCM8XX TIMER_OF_DECLARE support, using the same as NPCM7XX. Changes since version 4: - NPCM8XX clock driver - Use the same quote in the dt-binding file. Changes since version 3: - NPCM8XX clock driver - Rename NPCM8xx clock dt-binding header file. - Remove unused structures. - Improve Handling the clocks registration. - NPCM reset driver - Add ref phandle to dt-binding. Changes since version 2: - Remove NPCM8xx WDT compatible patch. - Remove NPCM8xx UART compatible patch. - NPCM8XX clock driver - Add debug new line. - Add 25M fixed rate clock. - Remove unused clocks and clock name from dt-binding. - NPCM reset driver - Revert to npcm7xx dt-binding. - Skip dt binding quotes. - Adding DTS backward compatibility. - Remove NPCM8xx binding include file. - Warp commit message. - NPCM8XX device tree: - Remove unused clock nodes (used in the clock driver) - Modify gcr and rst node names. Changes since version 1: - NPCM8XX clock driver - Modify dt-binding. - Remove unsed definition and include. - Include alphabetically. - Use clock devm. - NPCM reset driver - Modify dt-binding. - Modify syscon name. - Add syscon support to NPCM7XX dts reset node. - use data structure. - NPCM8XX device tree: - Modify evb compatible name. - Add NPCM7xx compatible. - Remove disable nodes from the EVB DTS. Tomer Maimon (1): clk: npcm8xx: add clock controller drivers/clk/Kconfig | 6 + drivers/clk/Makefile | 1 + drivers/clk/clk-npcm8xx.c | 589 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 596 insertions(+) create mode 100644 drivers/clk/clk-npcm8xx.c -- 2.33.0