Received: by 10.223.185.116 with SMTP id b49csp3576055wrg; Tue, 6 Mar 2018 01:08:21 -0800 (PST) X-Google-Smtp-Source: AG47ELuitCwAaH8ckpey8TWOINwiAo78KYQqgHnK3luUEGH9OPKmIqz04wUiVwjhTyXvoP56Ta1j X-Received: by 2002:a17:902:6a8a:: with SMTP id n10-v6mr2864144plk.430.1520327301100; Tue, 06 Mar 2018 01:08:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520327301; cv=none; d=google.com; s=arc-20160816; b=1BISMcky4Oe5eK0aw2ou0jxzm2haM9793dqDzmZnwveCi48YoqMfXvW3pL4Tdm59yF Kxfzhr75eX6bsIpz9haAZVL6z6o9Wnq6T1SBDYxH0IR+oLDnsT+roSmvMyAzftmZ+cuU 6jP+Bvbj8GMWyZeY9uf2ilH++yn6JzZnaVk7XtYrBqmhMZ1bqf3WTkEhnOk9+efmen6o 8K2L/XKnMDwQjvFCHoQwlATSsfLpZqY0jw6aWZd6sDzATfUTWb0hU4Ad0/xh3BkD2vgV OXbTiVsxfyh8MI+I8XWPUZdO8XuJ2K734ZDMNYHSZVqZywGEfJIDRfg+4o4t4V01RE0o ZTHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=nss6vk/Tvwh4XGWWGFRbeW8LurXMxk3dGBOV5wRu2jY=; b=SdFA0JbehZepiBb/uNaLWHNEBRcI4myyt7dXkCloxB0inM+b2GZgO0t8yvUC4J+LD8 1iBENoHMiVg9fgQt34AxufCuhva36mBFMTJsm82TkFZyZ1WJLUOuYVRg/b2jPEfmf3G8 EThNrGXUBZlckwJGtYNqtNbe0OEMqboYaqxfIZiQQYJ53I6DB45oddS/EfN82Szp6XR5 /HYXPXWxoCL34ic7X58k2kHusI1uABTSVw/jkHSmNM1K4o3uAMlQRtzHpC/Bo49c9LSs I3D3OA29NpMx3yuaKWl7fsi0U1bKSiNTzCjyMAv5MJDUEsEd283rS6KxD0g0tRjXgkjc 2fGA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w24-v6si10556941plq.553.2018.03.06.01.08.02; Tue, 06 Mar 2018 01:08:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751024AbeCFJHJ (ORCPT + 99 others); Tue, 6 Mar 2018 04:07:09 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:30789 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750801AbeCFJHF (ORCPT ); Tue, 6 Mar 2018 04:07:05 -0500 X-UUID: 0927b44106d645e6b071d90f8dd95527-20180306 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 881673852; Tue, 06 Mar 2018 17:07:00 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 6 Mar 2018 17:06:59 +0800 Received: from mtkslt306.mediatek.inc (10.21.14.136) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 6 Mar 2018 17:06:59 +0800 From: Ryder Lee To: Stephen Boyd , Rob Herring CC: Mark Brown , Lee Jones , Matthias Brugger , , , , , , Garlic Tseng , Ryder Lee Subject: [PATCH v4 0/6] Fix the overlapping registers issue for the MediTek audio system Date: Tue, 6 Mar 2018 17:06:34 +0800 Message-ID: X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This is the new round of the audsys. I add devm_of_platform_populate() in the clock driver to populate the child devices (AFE) so that we can handle the dependency for all functions. changes since v4: - remove "simple-mfd" from mediatek,audsys.txt. - switch to use devm_of_platform_populate() to populate the child devices. changes since v3: - Rebase to v4.16. - Modify clock driver for the sake of the backward compatibility. - Rewrite commit message of patch 4/5 to make it more specific. changes since v2: - Drop useless changes in clk-mt7622-aud.c. - Revise binding text: - Add more information about audio subsystem. - Separate clock node and AFE node. - Update license header. changes since v1: - To avoid writing an MFD driver, we add "simple-mfd" in the audsys binding. - Move three top clocks to audio driver [1] as we remove mfd/mtk-audsys.c in v1. Ryder Lee (6): clk: mediatek: update missing clock data for MT7622 audsys clk: mediatek: add devm_of_platform_populate() for MT7622 audsys clk: mediatek: add audsys support for MT2701 dt-bindings: clock: mediatek: update audsys documentation to adapt MFD device dt-bindings: clock: mediatek: add audsys support for MT2701 arm: dts: mediatek: modify audio related nodes for both MT2701 and MT7623 .../bindings/arm/mediatek/mediatek,audsys.txt | 20 ++- arch/arm/boot/dts/mt2701.dtsi | 188 ++++++++++---------- arch/arm/boot/dts/mt7623.dtsi | 190 ++++++++++----------- drivers/clk/mediatek/Kconfig | 6 + drivers/clk/mediatek/Makefile | 1 + drivers/clk/mediatek/clk-mt2701-aud.c | 177 +++++++++++++++++++ drivers/clk/mediatek/clk-mt7622-aud.c | 9 +- include/dt-bindings/clock/mt7622-clk.h | 3 +- 8 files changed, 390 insertions(+), 204 deletions(-) create mode 100644 drivers/clk/mediatek/clk-mt2701-aud.c -- 1.9.1