Message ID | 20221023145653.177234-1-aidanmacdonald.0x0@gmail.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp28787wru; Sun, 23 Oct 2022 08:03:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5YGNZoI7rQjsh2asXd9cIMtk7eGsKXNh4QTgNn66+jRpIl2pwAk98j5FoVhaiH0Fc6kMS0 X-Received: by 2002:a05:6402:2402:b0:45c:a1ce:94d8 with SMTP id t2-20020a056402240200b0045ca1ce94d8mr25940676eda.50.1666537387489; Sun, 23 Oct 2022 08:03:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666537387; cv=none; d=google.com; s=arc-20160816; b=RPYumeW0gnbyVUm/fDVps7YMqn66TWuiOYnqNVLx2GGz4bc235qpLWB5PvBBct6VYj T5tQ08JlEuq4/RgknNapdo7siaDv1KprO8QV3ZKcgEkiH6G7P1z241JnxUvjM90c7KXH nX1AAV8xWRzoPul6jHXBN5z7PXCuq4A0wuKDBHQ2wZAaDc3//XvAzIW+u9eb/tBtlvaH G+8wbxw+qrl0SglJgzrScTUMioxtIZn4CGf7KNEFaKFJqJWjR0WudOMRcvHhJvwGviER m1Q+1XLBDT55Z2hdfw64GXhwE9oA9UQG1R7zM3665nd4FrZ8C0mqsRK53qti+qB/ztlf hynQ== 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:dkim-signature; bh=5N970xLEDqJdJWYY9u+esmQAZbPzXuz4v0lBTGeL7gI=; b=EbpCsXRLLaIE2fyebn344SyhstwULHEY1+f29EKMCdKQHsqdL844/JRAWAkNyYJcSO tTlmczpwMirxkeAzVUi1OEFbKvUry930dlDObqEI89KLGBGVVwwWZn/xFZfSwauQC3za PNRO5oWXBhp9No/aiTJyhg7GJaPsVKixCKwgRynhhsIddMGx6Qy0N9VKBjVmqDff0unw vrFF0WdSFZ566qn0EkN/RZwEmiZ5bFp0lzTd9Ia+shROVYXRul8ytOxMK8ZHJHRAaUkQ TMNsNqOZ24Ue8X2F5S/5K9eV+w1oTabVVRuE8Q3QehSLGTYFbacfcKu8BxuQo1oRDkqx 7ZSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Us+2SC+v; 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=pass (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 dd16-20020a1709069b9000b0078e54eda758si22732682ejc.611.2022.10.23.08.02.43; Sun, 23 Oct 2022 08:03:07 -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=pass header.i=@gmail.com header.s=20210112 header.b=Us+2SC+v; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230321AbiJWO5K (ORCPT <rfc822;pwkd43@gmail.com> + 99 others); Sun, 23 Oct 2022 10:57:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230251AbiJWO5I (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 23 Oct 2022 10:57:08 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15A9A5C97B; Sun, 23 Oct 2022 07:57:04 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id c7-20020a05600c0ac700b003c6cad86f38so8165812wmr.2; Sun, 23 Oct 2022 07:57:04 -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=5N970xLEDqJdJWYY9u+esmQAZbPzXuz4v0lBTGeL7gI=; b=Us+2SC+vgzvovV5/vrRo1YZQE9myy0R2LEpEag5Wv4SVx03oi+JgRIcIA37EeSdcVR mr+1XjDVCdRZu1n+S6QCYLIk5L014PjmqdZOa1gbcBBs4z+AZ8Uj24kEKEaW0WsghnZw g/38o4K6TtxWrVuWo1HHPZGMH3aaBlT5gdyqswXLbrFCyvNvhnx6tjIarELDlAuNKHoM 4UtnAMOrsX4K2F6QEqjkBK4Yz/3aHmhbeE/1PwZD+3/nDh5+om0LLDsU3iLBEBPxazTH JCIzuNCjzbc3rABz7g7++X4MYYrtu0pACpYkgZR3KBq8eTkL8HCE8iypjJuaihv6voCJ usTA== 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=5N970xLEDqJdJWYY9u+esmQAZbPzXuz4v0lBTGeL7gI=; b=mYloidtfQkua5fEgAbN8BmWY0UeI8xxa5wwkOiUmBWtduStfDTWJdKaK2Zs0deBjlo VXTzAy5PX1/ZopeCS9h3bk6qSYeEpVJNJUl7wQvVq1Hc4+ffn7g2KVLAstu0Q8r62FnI 22CIDvUdEZkXXUMbi8dz1gGa54dOEVOgufuYDoNAhIeYDyVPuAWB86+5EBdp+OJSVgJr ZDdYuUuQP95gt8WQDj2KT+6jFWKeRd+P4dh5k6rfMnEt21A/jL1sv+uS0mwgMkjnR3sb F6h87dxZbqBlrulQAWXGyS/lnnZ/vT3EHsYv9M87IcEctWOo17NtFDKaJJ0a6OiMgEdj QkDg== X-Gm-Message-State: ACrzQf0MecAMFqvMVqx+EQvLGGYZN3XXgZQv/qd/v0w0Cy7NPO0zABlP RIC8tW2pmh6vkbJhbkSpmig= X-Received: by 2002:a05:600c:4e8a:b0:3c6:da7c:8d71 with SMTP id f10-20020a05600c4e8a00b003c6da7c8d71mr37231818wmq.16.1666537022619; Sun, 23 Oct 2022 07:57:02 -0700 (PDT) Received: from localhost (94.197.10.75.threembb.co.uk. [94.197.10.75]) by smtp.gmail.com with ESMTPSA id l1-20020a7bc341000000b003b497138093sm8219656wmj.47.2022.10.23.07.57.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Oct 2022 07:57:02 -0700 (PDT) From: Aidan MacDonald <aidanmacdonald.0x0@gmail.com> To: paul@crapouillou.net, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: zhouyu@wanyeetech.com, linux-mips@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 0/5] Add support for X1000 audio clocks Date: Sun, 23 Oct 2022 15:56:48 +0100 Message-Id: <20221023145653.177234-1-aidanmacdonald.0x0@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 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,SPF_HELO_NONE,SPF_PASS autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747491107390592791?= X-GMAIL-MSGID: =?utf-8?q?1747491107390592791?= |
Series |
Add support for X1000 audio clocks
|
|
Message
Aidan MacDonald
Oct. 23, 2022, 2:56 p.m. UTC
The first three patches of this series modify the Ingenic CGU driver to allow the X1000's I2S divider to be modeled as a PLL clock. This is not really true -- it's just a fractional divider -- but doing it this way maximizes code reuse and avoids the need for a custom clock. (Thanks to Zhou Yanjie & Paul Cercueil for the idea.) The last two patches actually add the X1000 SoC's audio clocks. Aidan MacDonald (5): clk: ingenic: Make PLL clock "od" field optional clk: ingenic: Make PLL clock enable_bit and stable_bit optional clk: ingenic: Add .set_rate_hook() for PLL clocks dt-bindings: ingenic,x1000-cgu: Add audio clocks clk: ingenic: Add X1000 audio clocks drivers/clk/ingenic/cgu.c | 45 +++++++++--- drivers/clk/ingenic/cgu.h | 17 +++-- drivers/clk/ingenic/x1000-cgu.c | 69 +++++++++++++++++++ include/dt-bindings/clock/ingenic,x1000-cgu.h | 4 ++ 4 files changed, 120 insertions(+), 15 deletions(-)