Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp5558591rwi; Sun, 23 Oct 2022 08:03:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ULXcWoziGcgIxpojmnrOwDluqYpl/LTxByX0uKGQET6MfGPzBqQ8ttLMbtgXThEdk3Cle X-Received: by 2002:a17:907:3f92:b0:78e:2eb5:6aec with SMTP id hr18-20020a1709073f9200b0078e2eb56aecmr23558719ejc.85.1666537438954; Sun, 23 Oct 2022 08:03:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666537438; cv=none; d=google.com; s=arc-20160816; b=WLmREXLgCLfYf/IDhL992ANqGmnCpw4aqcbfF2yteEKybf6xkFm7T5vr9dWRZq6lId NjMD29D/Uac7bGF+VA0Nl4790/xEHr8k5GZOQQrXYQc8lj0yQIOGwHWw45AYbeNx+XCo /AHFycpizfXsBJHS27dgfL2VHPMGLNwtgO7EiLPh6klg4CBzy/jsi93yQ2ZtxuCj1KpF Jxk9p+kH8h8SyHDqkBpWChTKm7ISp6Am9ymLtSbhhWwfitBr4b/iuaf5oFvY8K1zdP8D gOerXoqcmLq5f5sZz26YBz8UPSqdL7e94eDaxG4JgrkCafzKBSY3z/OLBUVvij4ZuixO j/hQ== 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 Return-Path: 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.03.32; Sun, 23 Oct 2022 08:03:58 -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 + 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 ); 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 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: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.38.1