From patchwork Thu Oct 27 19:20:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Siarhei Volkau X-Patchwork-Id: 790 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp414309wru; Thu, 27 Oct 2022 12:21:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4FRUDJSweGgAvjsYovcZEXn1YGyrycWfLnY/ZjjGhJy7iMoxyGadzWiFFm0KKVQT5Oddmh X-Received: by 2002:a17:907:a40f:b0:790:540c:b6e3 with SMTP id sg15-20020a170907a40f00b00790540cb6e3mr43690184ejc.41.1666898480018; Thu, 27 Oct 2022 12:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666898480; cv=none; d=google.com; s=arc-20160816; b=sqAI7wZ1u+3wsE7ecUC34i5YyDNXWdlWsQ/TdvPx94KZ95Vflh/8ZSvNvqpT/Pewq8 b7ZO3W/XgQ9AY1vB12Qezy7LkEWfYrJAqmf8wQQgOeVBpwVwWU6OnPgSlQ3gUQTy/rRQ Mli2/pLoZUz4gsXcvN3cAKNrvKTfpKEMiPyRZyQ9+B5EgmdgCJL6uS7l25s/k+R0aqGx 2qzYZGvBjX3uXez89ikNMlMIiTqX5zuxchX+Y+6E5AqXYolzwiHfFF8sP1DjsaShGils S34pwut7bokmdi4CtzoCIX0gE+tXS0DZ+DMk5zSs9XQrc8GvtkrEk/UBScNyZWFIfvzH u37A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=hTXTxpRXShFbPiHM7S8wpDbDvWGlQSU0q78VfQI6CFQ=; b=exEE0R7OQuGPjmu1Mr2fJj41H7SLRftfZpWMceGIhVT2F8Kj4gt/C8ph5yGsEHNPvY sT5qMR3tAApZpGljJpO6TgeQb53oSTOIgG6G8dVzr3cVlrpWLn5EDv9Qra8U1eLFCG2a yMSxyEgTMkUW6WfuRhCOlg2k2dcvNx7ZxV8HeckHvZ8nNqhu6Qidcla+s779dKlwd8Cn JGqaweSf0XCnswB1IPDlkK4ad41s9lZSnrq7KKInl81pYol5OiKr+RCy1Y9vIF0ct3zO OQodSvmyP2WX+jwjtsTkeyylcJkrDTyUnGjhIJSyXxvgeyveFYG00OkcrIvVycwKia7d WQrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20210112 header.b=HVr8+jxy; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sc40-20020a1709078a2800b007306ac0faa0si2605461ejc.615.2022.10.27.12.20.54; Thu, 27 Oct 2022 12:21:20 -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; dkim=fail header.i=@gmail.com header.s=20210112 header.b=HVr8+jxy; 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 S235986AbiJ0TUh (ORCPT + 99 others); Thu, 27 Oct 2022 15:20:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45566 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236484AbiJ0TUe (ORCPT ); Thu, 27 Oct 2022 15:20:34 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA2A861DBC; Thu, 27 Oct 2022 12:20:32 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id sc25so7442468ejc.12; Thu, 27 Oct 2022 12:20:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=hTXTxpRXShFbPiHM7S8wpDbDvWGlQSU0q78VfQI6CFQ=; b=HVr8+jxyRsKTwpQYugPekXWCngvNMSZ2rTMe3KmF782GymOKjtP1tYsmLraAJJ5V2M 9kLCHXZjF/Ojt4zbuFMs0CU8BzKLSQy50pnLZt1z4ZnuFgWBJvbJvxZHmccPjr/5YxCZ pDaFJm32HRP/LjEPjQy+qozrmN+U7LoxbFUvFd6LgP6HFg3Zrva5njAD6mngg1NLDUg5 n9C/hCQuT8ya3W25710rMYhiwWG4Ia5i1iZZMn7xarMVDrEEAVcuXLzrua+qRlhayRzk bt0Rsl67734ANq9YmtdNDMw2n7TQgOwcdoyPB5LIiC4w2ekWcZTYx9gmET8WQlwjX9ui etqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hTXTxpRXShFbPiHM7S8wpDbDvWGlQSU0q78VfQI6CFQ=; b=09OkekWk1aV4qZ/E6nR4vDlZJ2K+ko0gPNwd4S2yYA7+ya7L012VDcLYEh0o8u9TA3 c3HWwFtZA0We9AljYNrjjBppxwe0mxs4y/hiavQnAr5UA/yTHGv1n8G2izE4nHz6FFfn cmvPQQ5u00KcCxv5B4wLRZuK+tpmRcxUJXLslpsyIF+UTETxkvkWI/JQPL1xzKm8L5L3 5H8BCtb6Cwe3SYAy0PXozmuHkKi8DNVo95qyLD91XXzwsnCBKKkISxPH1vDsJeK2KDfN GZFrNkMp97D7yNj/9fAPCQ9ICmMgiyFY+cBQB04FrnvWTlaVnAIOXn/xCeugYGyQtDjn w/0g== X-Gm-Message-State: ACrzQf1Xy1+4HokowoTOqh/PtRdkjCQ6X7PEthzo+heGHvDRjo9/dmav W5EZFGEWaWt/2LZiswftofG+t1CtJHqkRA== X-Received: by 2002:a17:907:7ba4:b0:78e:281d:91ef with SMTP id ne36-20020a1709077ba400b0078e281d91efmr44165876ejc.288.1666898431231; Thu, 27 Oct 2022 12:20:31 -0700 (PDT) Received: from hp-power-15.localdomain (mm-238-32-212-37.vitebsk.dynamic.pppoe.byfly.by. [37.212.32.238]) by smtp.gmail.com with ESMTPSA id w18-20020a1709067c9200b007acc5a42e77sm1187006ejo.88.2022.10.27.12.20.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 12:20:30 -0700 (PDT) From: Siarhei Volkau Cc: Siarhei Volkau , Michael Turquette , Stephen Boyd , Rob Herring , Krzysztof Kozlowski , Paul Cercueil , linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org Subject: [PATCH v6 0/3] Add Ingenic JZ4755 CGU driver Date: Thu, 27 Oct 2022 22:20:20 +0300 Message-Id: <20221027192024.484320-1-lis8215@gmail.com> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,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 To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747869740578955285?= X-GMAIL-MSGID: =?utf-8?q?1747869740578955285?= This patch series adds a Clock Generation Unit (CGU) driver for the JZ4755 SoC. v6: - polish parent clock declarations - reparent "not sure" BCH clock to H1CLK - ack collected v5: - reword commit msg for documentation - reword cover letter v4: - absent commit msg fixed - +/- ack v3: - MACH_JZ4755 creation removed - AIC clock parent fixed - EXT/512 clock clarified (tested) - dt header license refined v2: - CGU patches moved into its own patchset - dual license for dt-bindings header - Krzysztof's ack picked up v1: - adds support for the whole JZ4755 Siarhei Volkau (3): dt-bindings: ingenic: Add support for the JZ4755 CGU dt-bindings: clock: Add Ingenic JZ4755 CGU header clk: Add Ingenic JZ4755 CGU driver .../bindings/clock/ingenic,cgu.yaml | 2 + drivers/clk/ingenic/Kconfig | 10 + drivers/clk/ingenic/Makefile | 1 + drivers/clk/ingenic/jz4755-cgu.c | 346 ++++++++++++++++++ .../dt-bindings/clock/ingenic,jz4755-cgu.h | 49 +++ 5 files changed, 408 insertions(+) create mode 100644 drivers/clk/ingenic/jz4755-cgu.c create mode 100644 include/dt-bindings/clock/ingenic,jz4755-cgu.h