From patchwork Sat Mar 30 12:33:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: NOGUCHI Hiroshi X-Patchwork-Id: 10878453 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4A704186D for ; Sat, 30 Mar 2019 12:33:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 325C628F8B for ; Sat, 30 Mar 2019 12:33:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26A4228FBA; Sat, 30 Mar 2019 12:33:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C4C2528FB1 for ; Sat, 30 Mar 2019 12:33:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730723AbfC3Md5 (ORCPT ); Sat, 30 Mar 2019 08:33:57 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:35292 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730698AbfC3Md4 (ORCPT ); Sat, 30 Mar 2019 08:33:56 -0400 Received: by mail-pl1-f193.google.com with SMTP id p19so2285018plo.2; Sat, 30 Mar 2019 05:33:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0mt+2TR/aQBYxFhl01YPRilqwpZdmJ6PLwvKjb1RvJI=; b=Rf4Wiq1MCmAW2ppC60/2MruXzVHa9AUy+KWPJsWxFM/QO0yMnyAPts217uAk5RkwW8 O8KNLS6YQPimAjb4fuBPYh/6HbCfLKy+Ax0T2dsBETxPSrkdWQ+zFGTYhKNWK+/0U2Jj Q71zh4V5ljHO4xQgem4dx7+Er9zl41QTksvG8jLzht+3Cl85W3BvwXww4Z3DwI/elWtx ZHc0Zk+F4BrmCWPjwrs69gOTsYW6rZLwejIkzIJBdImuMMosPtfF5pqwJ6q1nIt1KXGm i2TxQ0ZzAWKwP63QwAF8rZWwaBfjsjUmKwnCaoEcdomp0NvVshpxxbn1ceLXGxruJBiA wWZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=0mt+2TR/aQBYxFhl01YPRilqwpZdmJ6PLwvKjb1RvJI=; b=gCxIjFCC4+48C66XaxnsYHhuofZjalXX0yVEuk0C5EYQIR+dSuoXkiKkIHTmomQyCI pe1kVEk2DfKSBxHw0rudwqjT7iMNslXztwaTurD+i/6ANoJswXX11kPwoi7XBaWAYWAh aciILtG3MXsEsuNvUuqpo9rxznXVLz7HjNVzlBswxmK0rjVKb1t+rpideBqK5VtjrEND ZQZQh+X4mPhth5t2ynlRiE1Ocw6/Qq4HzLy6as87gs4dokMDDwuBjgJJ+jG+nMMHnxWR FrFwC6FoNoHNYY+v6Kvwad/l8QbZ1BN2XQEOEHdcg8pSqlbpoPv7kPiaF/wpcoz0RAEX uj8g== X-Gm-Message-State: APjAAAVZjiiP/2K0VjWrBPNcELetz7DCydtnnE8gGm1UD6DG/Moi4RE6 EBO5ugkvF8vznuq8yJLHivc= X-Google-Smtp-Source: APXvYqwsIadSLRHrSSeMgjyJE7PCbRVQOfy/m+H73UGPamh3/dCrtXNkiPxHOD3dtAnHAWppsq0OZg== X-Received: by 2002:a17:902:7081:: with SMTP id z1mr13220341plk.252.1553949236069; Sat, 30 Mar 2019 05:33:56 -0700 (PDT) Received: from localhost.localdomain ([2409:251:20c0:100:fe80:8e59:9ae1:e028]) by smtp.gmail.com with ESMTPSA id m23sm7864309pfa.117.2019.03.30.05.33.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 30 Mar 2019 05:33:55 -0700 (PDT) From: NOGUCHI Hiroshi To: John Crispin Cc: Michael Turquette , Stephen Boyd , Rob Herring , Mark Rutland , linux-mips@vger.kernel.org, linux-clk@vger.kernel.org, NOGUCHI Hiroshi Subject: [RFC 0/5] MIPS: ralink: peripheral clock gating driver Date: Sat, 30 Mar 2019 21:33:12 +0900 Message-Id: <20190330123317.16821-1-drvlabo@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This series introduce Mediatek/Ralink SoC's clock gating driver. The gating clock items are different at individual SoCs. Driver loads gating clock item table defined in individual SoC source files, via OF device id data. NOGUCHI Hiroshi (5): mips: ralink: add rt2880-clock driver mips: ralink: add dt-binding document for rt2880-clock driver mips: ralink: mt7620/76x8 use clk framework and rt2880-clock driver mips: ralink: mt7628: add nodes for clock provider mips: ralink: mt7620: add nodes for clock provider .../bindings/clock/ralink,rt2880-clock.txt | 20 +++ arch/mips/boot/dts/ralink/mt7620a.dtsi | 34 ++++- arch/mips/boot/dts/ralink/mt7628a.dtsi | 37 +++++ arch/mips/ralink/Kconfig | 6 + arch/mips/ralink/Makefile | 2 + arch/mips/ralink/clk.c | 30 ++++ arch/mips/ralink/common.h | 3 + arch/mips/ralink/mt7620.c | 132 ++++++++++++++--- arch/mips/ralink/rt2880-clk_internal.h | 21 +++ arch/mips/ralink/rt2880-clock.c | 134 ++++++++++++++++++ include/dt-bindings/clock/mt7620-clk.h | 17 +++ 11 files changed, 411 insertions(+), 25 deletions(-) create mode 100644 Documentation/devicetree/bindings/clock/ralink,rt2880-clock.txt create mode 100644 arch/mips/ralink/rt2880-clk_internal.h create mode 100644 arch/mips/ralink/rt2880-clock.c create mode 100644 include/dt-bindings/clock/mt7620-clk.h