Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3045196pxb; Mon, 16 Nov 2020 04:29:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJScc0/x1ICf73jzf18Al9EM/YZgFpJ8Y1/EbuVfGMfYRsGbJKn98a5WzJpl2m33BnMJx7 X-Received: by 2002:a17:906:6a57:: with SMTP id n23mr15251705ejs.315.1605529758491; Mon, 16 Nov 2020 04:29:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605529758; cv=none; d=google.com; s=arc-20160816; b=jderHxKErUTg1Fn5CRZBKiVzkEv/s44Cg2+h+Nd6ni8H5kg7Jy98vLpL5h6q6sRJD2 qkeMvWleAi8PGT/BYr6nnqhuwkEYbtKJZDbVW6a0hxcEXStjZcy/kysSrCubeAAvqNV5 h2yyf2tSJ5uX8KxciQVaTcu9gkw+qIEMRq7UzT4OoTc1CDRJzLccbRONUXzSx+gQ3CQ9 aNqkNahsA8JHnrAZsxfbUSCeq0W6FlocKsHlt5vn6v3uWULsvYqyJC98tzL20Vj+a9Am aZWrXGoI0ILgHIB4CZwIA+YgN7iQF+PFI9ROTBKZUvVSALgtX75k+b48wwmRP7+HEmtn rduQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=NhnByTKHacvBfFX7LoBxN6v/c0+KH93VX+xILbPNiZ0=; b=Mb7zrrzWKNM7L0gP5unCPugXNfIar37mpqVnyB1YGdh/rQTmwJ4Dkp/8qjE/9h3ENm 91sEw3jHSEXqBmXyE1bVY922/mV36omTGzArFHN4+FFhAcTPbGNzfsReDQb8ckFZjTzV sdJ4+I+rtN3XE08lHOtwuhsS6ZprrxFUoc8AQ/WIjg95fX41+IWXtHAje4rB5rxEO5sD H85nwaWr25+GPBTDUGXokFWUx0ANMrVV45wJglaUnGkqDWTcjO4vf/5ExUE6YX1U2xqV ml9IDrzCMlOgPoybU8aRv+rpbA0ua+g++MThwChZxwLVrArpuE9RkALFWkME94SnkYe9 OACw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WUzSE04K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id om24si11412361ejb.235.2020.11.16.04.28.55; Mon, 16 Nov 2020 04:29:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WUzSE04K; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730098AbgKPM1B (ORCPT + 99 others); Mon, 16 Nov 2020 07:27:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53766 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727184AbgKPM1B (ORCPT ); Mon, 16 Nov 2020 07:27:01 -0500 Received: from mail-ed1-x541.google.com (mail-ed1-x541.google.com [IPv6:2a00:1450:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EA3F0C0613CF; Mon, 16 Nov 2020 04:27:00 -0800 (PST) Received: by mail-ed1-x541.google.com with SMTP id q3so18474803edr.12; Mon, 16 Nov 2020 04:27:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=NhnByTKHacvBfFX7LoBxN6v/c0+KH93VX+xILbPNiZ0=; b=WUzSE04KoVilvNxfYFWGftMel9yN2xdkmBkKZD8C+N2Achn3X6gU+TuYWPF6gJIWpw CCy4QtNZbLi6O+hoOBCwmCuIEg/lYxJyaMk2L6eZFd8wjb6fHRxAoIfCVjjym6Y3w3GC D+T+jdSz7Y8yOJSkftu4XloBVrx6FaTbY/lBe/mHY+UOqoI2vUVDK475X9zLEAaTv0rt 7LKAIczlncKngA6v96zaC03cSK92TRwu0yE6CX6FaSjJWRd74nWD6PbGbDifAomH48Ba nYNOewVkFoz25kzXGsysRyuERhoZUQZ47IwsJ3eOVC846S9PwVJnc5NMepSONZj9tCi9 QS8A== 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; bh=NhnByTKHacvBfFX7LoBxN6v/c0+KH93VX+xILbPNiZ0=; b=BXBTBQypGw4Tagjf6uktv18tluuk3VPhPHuGwFvBCevPKZGRbkTs9LOoXxwAthsHzG ElOk2z4bEJZmqABLc7KnNNnrdpjml1atO/QxwQ9B9ByVI3hceQLsdGEmeS/e3njr7Cmf 0BwDrz87zIfyGQf1xozlroGAt1jy0buv8imhbm7DUoPSUwAaM4INrBoUg8CNBNh7wYuY 5D0B0ChAqW0Ug7Z24EdxNhC1iU/fwcqqxNoWohoOm1iLiTAF1RjruN62EqrMXcS16+QT /iNJpZNFxeR/kQr6W+6eCau9jPcDfhzfXhx6qmICGsZX4ELNc1yPBdq3JRRx1TLLivHc GWhA== X-Gm-Message-State: AOAM530QUXwOaYBUVM7tShIwYQhsvxAylK/FtmjW/1zsPpoKJc72ASAg +PgLar/tfbJrMOHq8+qjPDE= X-Received: by 2002:a05:6402:1714:: with SMTP id y20mr15255357edu.306.1605529619681; Mon, 16 Nov 2020 04:26:59 -0800 (PST) Received: from debian.home (81-204-249-205.fixed.kpn.net. [81.204.249.205]) by smtp.gmail.com with ESMTPSA id n22sm10704848edr.11.2020.11.16.04.26.58 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Nov 2020 04:26:59 -0800 (PST) From: Johan Jonker To: heiko@sntech.de Cc: zhangqing@rock-chips.com, mturquette@baylibre.com, sboyd@kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 1/2] clk: rockchip: add CLK_SET_RATE_PARENT to sclk for rk3066a i2s and uart clocks Date: Mon, 16 Nov 2020 13:26:50 +0100 Message-Id: <20201116122651.4215-1-jbx6244@gmail.com> X-Mailer: git-send-email 2.11.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add CLK_SET_RATE_PARENT to sclk for rk3066a i2s and uart clocks, so that the parent COMPOSITE_FRACMUX and COMPOSITE_NOMUX also update. Signed-off-by: Johan Jonker --- drivers/clk/rockchip/clk-rk3188.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/clk/rockchip/clk-rk3188.c b/drivers/clk/rockchip/clk-rk3188.c index 1ba25b460..81ecf348e 100644 --- a/drivers/clk/rockchip/clk-rk3188.c +++ b/drivers/clk/rockchip/clk-rk3188.c @@ -255,19 +255,19 @@ static struct rockchip_clk_branch common_spdif_fracmux __initdata = RK2928_CLKSEL_CON(5), 8, 2, MFLAGS); static struct rockchip_clk_branch common_uart0_fracmux __initdata = - MUX(SCLK_UART0, "sclk_uart0", mux_sclk_uart0_p, 0, + MUX(SCLK_UART0, "sclk_uart0", mux_sclk_uart0_p, CLK_SET_RATE_PARENT, RK2928_CLKSEL_CON(13), 8, 2, MFLAGS); static struct rockchip_clk_branch common_uart1_fracmux __initdata = - MUX(SCLK_UART1, "sclk_uart1", mux_sclk_uart1_p, 0, + MUX(SCLK_UART1, "sclk_uart1", mux_sclk_uart1_p, CLK_SET_RATE_PARENT, RK2928_CLKSEL_CON(14), 8, 2, MFLAGS); static struct rockchip_clk_branch common_uart2_fracmux __initdata = - MUX(SCLK_UART2, "sclk_uart2", mux_sclk_uart2_p, 0, + MUX(SCLK_UART2, "sclk_uart2", mux_sclk_uart2_p, CLK_SET_RATE_PARENT, RK2928_CLKSEL_CON(15), 8, 2, MFLAGS); static struct rockchip_clk_branch common_uart3_fracmux __initdata = - MUX(SCLK_UART3, "sclk_uart3", mux_sclk_uart3_p, 0, + MUX(SCLK_UART3, "sclk_uart3", mux_sclk_uart3_p, CLK_SET_RATE_PARENT, RK2928_CLKSEL_CON(16), 8, 2, MFLAGS); static struct rockchip_clk_branch common_clk_branches[] __initdata = { @@ -408,28 +408,28 @@ static struct rockchip_clk_branch common_clk_branches[] __initdata = { COMPOSITE_NOMUX(0, "uart0_pre", "uart_src", 0, RK2928_CLKSEL_CON(13), 0, 7, DFLAGS, RK2928_CLKGATE_CON(1), 8, GFLAGS), - COMPOSITE_FRACMUX(0, "uart0_frac", "uart0_pre", 0, + COMPOSITE_FRACMUX(0, "uart0_frac", "uart0_pre", CLK_SET_RATE_PARENT, RK2928_CLKSEL_CON(17), 0, RK2928_CLKGATE_CON(1), 9, GFLAGS, &common_uart0_fracmux), COMPOSITE_NOMUX(0, "uart1_pre", "uart_src", 0, RK2928_CLKSEL_CON(14), 0, 7, DFLAGS, RK2928_CLKGATE_CON(1), 10, GFLAGS), - COMPOSITE_FRACMUX(0, "uart1_frac", "uart1_pre", 0, + COMPOSITE_FRACMUX(0, "uart1_frac", "uart1_pre", CLK_SET_RATE_PARENT, RK2928_CLKSEL_CON(18), 0, RK2928_CLKGATE_CON(1), 11, GFLAGS, &common_uart1_fracmux), COMPOSITE_NOMUX(0, "uart2_pre", "uart_src", 0, RK2928_CLKSEL_CON(15), 0, 7, DFLAGS, RK2928_CLKGATE_CON(1), 12, GFLAGS), - COMPOSITE_FRACMUX(0, "uart2_frac", "uart2_pre", 0, + COMPOSITE_FRACMUX(0, "uart2_frac", "uart2_pre", CLK_SET_RATE_PARENT, RK2928_CLKSEL_CON(19), 0, RK2928_CLKGATE_CON(1), 13, GFLAGS, &common_uart2_fracmux), COMPOSITE_NOMUX(0, "uart3_pre", "uart_src", 0, RK2928_CLKSEL_CON(16), 0, 7, DFLAGS, RK2928_CLKGATE_CON(1), 14, GFLAGS), - COMPOSITE_FRACMUX(0, "uart3_frac", "uart3_pre", 0, + COMPOSITE_FRACMUX(0, "uart3_frac", "uart3_pre", CLK_SET_RATE_PARENT, RK2928_CLKSEL_CON(20), 0, RK2928_CLKGATE_CON(1), 15, GFLAGS, &common_uart3_fracmux), @@ -543,15 +543,15 @@ static struct clk_div_table div_aclk_cpu_t[] = { }; static struct rockchip_clk_branch rk3066a_i2s0_fracmux __initdata = - MUX(SCLK_I2S0, "sclk_i2s0", mux_sclk_i2s0_p, 0, + MUX(SCLK_I2S0, "sclk_i2s0", mux_sclk_i2s0_p, CLK_SET_RATE_PARENT, RK2928_CLKSEL_CON(2), 8, 2, MFLAGS); static struct rockchip_clk_branch rk3066a_i2s1_fracmux __initdata = - MUX(SCLK_I2S1, "sclk_i2s1", mux_sclk_i2s1_p, 0, + MUX(SCLK_I2S1, "sclk_i2s1", mux_sclk_i2s1_p, CLK_SET_RATE_PARENT, RK2928_CLKSEL_CON(3), 8, 2, MFLAGS); static struct rockchip_clk_branch rk3066a_i2s2_fracmux __initdata = - MUX(SCLK_I2S2, "sclk_i2s2", mux_sclk_i2s2_p, 0, + MUX(SCLK_I2S2, "sclk_i2s2", mux_sclk_i2s2_p, CLK_SET_RATE_PARENT, RK2928_CLKSEL_CON(4), 8, 2, MFLAGS); static struct rockchip_clk_branch rk3066a_clk_branches[] __initdata = { @@ -615,21 +615,21 @@ static struct rockchip_clk_branch rk3066a_clk_branches[] __initdata = { COMPOSITE_NOMUX(0, "i2s0_pre", "i2s_src", 0, RK2928_CLKSEL_CON(2), 0, 7, DFLAGS, RK2928_CLKGATE_CON(0), 7, GFLAGS), - COMPOSITE_FRACMUX(0, "i2s0_frac", "i2s0_pre", 0, + COMPOSITE_FRACMUX(0, "i2s0_frac", "i2s0_pre", CLK_SET_RATE_PARENT, RK2928_CLKSEL_CON(6), 0, RK2928_CLKGATE_CON(0), 8, GFLAGS, &rk3066a_i2s0_fracmux), COMPOSITE_NOMUX(0, "i2s1_pre", "i2s_src", 0, RK2928_CLKSEL_CON(3), 0, 7, DFLAGS, RK2928_CLKGATE_CON(0), 9, GFLAGS), - COMPOSITE_FRACMUX(0, "i2s1_frac", "i2s1_pre", 0, + COMPOSITE_FRACMUX(0, "i2s1_frac", "i2s1_pre", CLK_SET_RATE_PARENT, RK2928_CLKSEL_CON(7), 0, RK2928_CLKGATE_CON(0), 10, GFLAGS, &rk3066a_i2s1_fracmux), COMPOSITE_NOMUX(0, "i2s2_pre", "i2s_src", 0, RK2928_CLKSEL_CON(4), 0, 7, DFLAGS, RK2928_CLKGATE_CON(0), 11, GFLAGS), - COMPOSITE_FRACMUX(0, "i2s2_frac", "i2s2_pre", 0, + COMPOSITE_FRACMUX(0, "i2s2_frac", "i2s2_pre", CLK_SET_RATE_PARENT, RK2928_CLKSEL_CON(8), 0, RK2928_CLKGATE_CON(0), 12, GFLAGS, &rk3066a_i2s2_fracmux), -- 2.11.0