From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 310CB2DC786 for ; Thu, 11 Sep 2025 18:45:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757616331; cv=none; b=k5DhV+Edr2p06izlXArdD4edKUSuG5avVKDpH4EeG84FV766ey4TVSHPkMLGL11khDrLTJQwsHvKlb53tYK5s5C01ZvbRnZ6LxhnfcLuf+Cep17oyYJ7JJvfwU6LH7rm9X6RqKq2RJyRwed69qzQ6Uch/m5gsw+IamSHa3vkOh4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757616331; c=relaxed/simple; bh=PU72Key0SVmvWQm9PWpGLknK5t1ThOCAfthGViLodCM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=D57HAnNhbxzmz1d1OK452DQRssBCd+MzI3pig9t05cNmwTJuNPJHUTO0/TfDtVqQzdZtUhCPtBOzQ6xCzZjXX6uqQMSrhstvUjdaR/moVrTpd7XpqIyNQh1tMN/xzx7zlmj3kiOLBc7mkYx8jKIOrglHx3/05WPgTnn5y6n8kOI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=F1uxIby+; arc=none smtp.client-ip=209.85.128.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="F1uxIby+" Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-45dcfecdc0fso10725965e9.1 for ; Thu, 11 Sep 2025 11:45:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757616328; x=1758221128; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qgoU6ODnHJHjlxJ7O2reyqhOrHLfmkxgDzAUfsAuBJc=; b=F1uxIby+n1jD+eHkASJDtKaDlKcr0uDSdut0D2oEdcPWsLxNf4XiqJdf5V13zl2CsW Whs0PIfU93LX4cvBT1dxLgB3ewp87RX0wPjDqwkITf4WsnNC7UhxNHBglyGD/gRLUZIP 6z9W9OrIuEvZvuFjPkfWqky7FVlbxX7rpQtaXRgFJitnH7BLL2L2gfbCwBgV6y2+KyrV O5WmqxEiWBj/1B5EGxgSc5KatPJtNrx+exYcbta7liENKRxdihoGLZfeCVcF6TKhP8qp fayCccMwtd0008RDBI64tJmo+Mn1cAP4FojO1Z1MpjY37jZ5IuWMoqRZ4jQa663u8sun Rdog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757616328; x=1758221128; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qgoU6ODnHJHjlxJ7O2reyqhOrHLfmkxgDzAUfsAuBJc=; b=KnVBtVYgewXvRria8AaKaZKlnLKj7r7OCCej4zX1b75vZv29uYjHYrSZ5UIVoMu0ME pI+R+sgaqmn7vbGCRFgi61Oczv7wLeckw5Syv+JAsq5c63+BIRMbeqCEW0Q3ORiqBpUp 3msuo3gcT9gvI5F2w50C86YHC2qapQ63QbweNVCI0KhncbnsOo60UaKCtlPyA79so9nv koaejCTn5fN1G1RUKHYb9JgRVE7lLr+dsi7YUC5FPQWI4F2Yqq9ws4Rt6cGnNj8joqAg b5bSeZQwQUvkf5EodQlsT9Dr7sTwgcA8xF5cJp9a+uHOA9AQrGbPoMk5G6a1TfP0pJbb lZIg== X-Forwarded-Encrypted: i=1; AJvYcCWe46LwwD7f5O02nc2pRQZrTvEmtCf/TWOT8xm2Bs5Bj592zOAFXr0dg7gNoxY6Yt6vPSapk4zdU/YV@vger.kernel.org X-Gm-Message-State: AOJu0YwIV271K3Y63r4K6yDlMXH+izfVyCzpEhrwTaSMnSkWMWNnVjy9 V4P9MyIa+jy6O3l7qcxdjejCGBtMPPHrPYkPRlJjeTKb9JTnBx+0PMI0 X-Gm-Gg: ASbGnctDXz+sLsZovI0HDdGocZUfWNGCmEgHo05VECaMNFNtstM9ISkdjsA0rv68L9e Lq1ObBeQbgW8S2ICF6RPkMQYo3TyVWiXUFfaPbHvDGgbh+gwHW9uQb6Zu0HQcR1o8psJvuQR0tx zpmewQ4QN2VUvpeUx4gn+Jen5LGmKIEyu5zjtDc5h9Qgp1mClVhdqog1sE+EMxMf1d5heEwejBm xy5Opo+yrqugkTJzV6+dnJsWsMdFOp0opBNZP9ko1ZYujPakBnjBBrLxJC/TbhS7Gie3NioF8Q+ 9U6lQl/V2gfNxlwRLCbu3bLj7oflBFElbaMPTW9aj4DKsaM2Td7sHmLslaZVWohwtiH017xAibG 24nHA+vBNZrzYJr6S4elBRvstc1a6OCZlZbZKN6rIirbGDK4coEnqSg67vLPFwCbCEYe9PBl5ar xJYPxLsvQKqqpJIRM6h6w= X-Google-Smtp-Source: AGHT+IF35WXiz7qtt5E7pbWdiKdOZLXpqRy4oaXj/fJmaGWMagVTnOpk2kyKlLObTat0jClq3/mWxg== X-Received: by 2002:a05:600c:34d4:b0:453:2066:4a26 with SMTP id 5b1f17b1804b1-45f211d008dmr7116755e9.16.1757616328099; Thu, 11 Sep 2025 11:45:28 -0700 (PDT) Received: from jernej-laptop.localnet (86-58-6-171.dynamic.telemach.net. [86.58.6.171]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-45e01575fadsm36130825e9.6.2025.09.11.11.45.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Sep 2025 11:45:27 -0700 (PDT) From: Jernej =?UTF-8?B?xaBrcmFiZWM=?= To: Stephen Boyd , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Chen-Yu Tsai Cc: Andre Przywara , linux-sunxi@lists.linux.dev, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 5/7] clk: sunxi-ng: add support for the A523/T527 MCU CCU Date: Thu, 11 Sep 2025 20:45:26 +0200 Message-ID: <5037780.31r3eYUQgx@jernej-laptop> In-Reply-To: <20250911174710.3149589-6-wens@kernel.org> References: <20250911174710.3149589-1-wens@kernel.org> <20250911174710.3149589-6-wens@kernel.org> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Dne =C4=8Detrtek, 11. september 2025 ob 19:47:08 Srednjeevropski poletni = =C4=8Das je Chen-Yu Tsai napisal(a): > From: Chen-Yu Tsai >=20 > The A523/T527 SoCs have a new MCU PRCM, which has more clocks and reset > controls for the RISC-V MCU and other peripherals. There is a second > audio PLL, but no bus clock dividers. The BSP driver uses the 24MHz main > oscillator as the parent for all the bus clocks. But the diagram > suggests busses from the other PRCM are used in this block as well. >=20 > Add a driver to support this part. Unlike the BSP driver, the SoC's main > MBUS clock is chosen as the parent for the MCU MBUS clock, and the > latter then serves as the parent of the MCU DMA controller's MBUS clock. > The bus gate clocks also use their respective bus clocks as parents > according to the system bus tree diagram. In cases where a block does > not appear in that diagram, an educated guess is made. >=20 > Signed-off-by: Chen-Yu Tsai > --- > Changes since v1: > - Added comment for "fixed" dividers in audio PLL clock > - Corrected variable names for audio PLL divider clocks > - Added comment for the reversed order of some of the DSP clock's > parents when compared to the manual > - Added comments for clocks and resets only found in the BSP driver > - Corrected register offset for i2s3-asrc and bus-mcu-pwm0 clocks > - Made "r-ahb" and new "r-apb0" external bus clocks the parents of the > bus gate clocks, with comments if guessed which one applies > - Moved .num_clks to after the list of clocks, making it obvious that > the value needs to be added if more clocks are added to the list Reviewed-by: Jernej Skrabec Best regards, Jernej