From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.167.178 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795638107; b=vEjKUuwEZYOqGdgboA50uZUT1vo68hFzxZga69lNu+zzD4k/zu1K1KeVYSHg8WPPXZIq DLSJ9NwhBfgSe5/ntoj/NhzilNRIBO3QxqG6s4HffS3pg35KUtcLNpgSDvn9NqirvqJC6 yslUeQiyXsQCiC04QgKMrwUT926MssHuJ4cZz1M3F4iUVz5BeeCW+x4+4you3yUlHzDPD D8LopoQ9SEfkGziwsMvRhLTHFk74vEEf32VFXCGXaTYAWZKbfdE1ABvKlI5jy30sMAS2x wHg9e4wqerlGBQ2XN+npiy9eBTwrGt10XRA2MAg03XmZdu1IrMRYa/IeII/C4A+INlg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795638107; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-ID:X-Mailer:MIME-Version: Content-Transfer-Encoding; bh=3CfQrYxGmVhqVfBjXz2JxOYBYnlyriKE0w7C0oW3eCw=; b=wu1Lqqj4YMGY85ITOQRIuL3qQKedLPMBt+jOEMjsevI8aRfRfYETk95tK3fuw+wPWJh8 fqIFwRm2fF/BiF7uRKW371Acwg98UfDjXweu5CObSsFB+cVFQPBPcoMvcfbebUiRZfibE MUxC6v7K4Lyi3DUcFC0ym6RiqvZgnG5oa27fSpLo7NppkesjvW9Jc8e7qR9uaDSDSeXLL pnYTss6iRhM0QfTOk+OU3ombPVjrBrw1KGTe2CiV9iRcsyrpmT9fhRkbjiBhXpvF9mJS2 iLUSVRY8wV5WEqUW6YH8IFm6rTEQrIqRduoaKc9FyXemH1jGSYeJV/3JZdOhJfXl31g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=riscstar.com; spf=pass smtp.mailfrom=riscstar.com; dkim=pass header.d=riscstar.com header.i=@riscstar.com header.a=rsa-sha256 header.s=google header.b=yvL1qbup; arc=none smtp.remote-ip=209.85.167.178 Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17C74606A326 for ; Wed, 25 Nov 2026 20:21:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 17C74606A326 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=riscstar.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=riscstar.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=riscstar.com header.i=@riscstar.com header.a=rsa-sha256 header.s=google header.b=yvL1qbup Received: by mail-oi1-f178.google.com with SMTP id 5614622812f47-4b190cdc9feso3782844b6e.0 for ; Wed, 25 Nov 2026 12:21:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=riscstar.com; s=google; t=1795638106; x=1796242906; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=3CfQrYxGmVhqVfBjXz2JxOYBYnlyriKE0w7C0oW3eCw=; b=yvL1qbup9iqNKVVTLxLarpET/deJHiZWhfe/gHkYx5+N0idKilfWyv3K/XqdT+n2lZ lgf5muna3z/KdRp5A3+UrrU2U4QC0wrFU1txXmSQrcRU6MUd/8AxqFTA/VZNhycOu7aJ PTGdx1VdDxANBe8cmsOUEGCOjLvcD5V9nbJ3w0nNSE795XK7JHb7kz7J80xdbDadDxXM 4D0RuiVWYPziTvo3JTv5rFl14ciQGGXpHJhr+Kr/smdO6DhvySOY/b1fCqQ4kI5LYLVa Hh/3m1kD3LcNoZIsQEtUSgj6KLUUshK68BWFUBTTsWdG8HRZacDo5K4XJoACvLIbxRiJ 9muA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795638106; x=1796242906; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=3CfQrYxGmVhqVfBjXz2JxOYBYnlyriKE0w7C0oW3eCw=; b=kdy0CWhWCaTuSca6qPIUW2HaktujKNeJ72IZv36ocXdVIgWXyz6Buv80CtR1VgI7fR UX78FDVU0auU1MRMEvBe/wzqBJnAm2bpa3vd4DALZ22pJDrBGaUHqmAeoKLAkbkiYEcq qiCWiqlhE/d9abXOX8ALNIflyWASsjqgIBbEmt52mH4rdIPH3HiGGiuhPA8s72PsgP/x OT5ul2UaTOsgCCu88IEQGdp+Tgr2qiDENOdFgc8At5vUrQOj1yeeNfHQeuD9WTUhyNd5 MphtySM1zwvu+U83b2XLHT6c5H9I4EM1VR0bSGVXsrsV25AAks0fjRTpMiUKGtK1ePza elTg== X-Forwarded-Encrypted: i=1; AL+hErGn9HmZtvJuukjXOzsIiKjwfLAPvLKars99rtdSifI1b1xnA4B5AyLyzfwiV8QobAqXzvTJgHPly2k=@vger.kernel.org X-Gm-Message-State: APuU4Z8sWhOzFZBcsTwubg/lSlYszLK7mol6EyEkfZlOLFKtXORd4yvH KBkSKJxumh0Wp941vRXXYraFNi58PhLAcNrk3dfncBvLbZcUDAinmFRQKvuWQOd8Ug0= X-Gm-Gg: AZFdTZcKiqS5N2P+Erai+xjvGrD8AmECnNmr8/OKA3fof6BrnsviAiuxlPNaR6DfIw2 RqsRos2WRRnp8S2oH+Y8+dLnSNVkO4haFOV0YfTXpHhesoN+2YvJx2jTOgQdAKo/tagJYxhXzPr kIzwc/3KsH32X+qRcldNoeosvPGl7qYqZJgXs0ol8bAgGwOlVeSMSZEHTCIWgiGXfiJRPfYc2GK yLUjtWl4q1AVS9yyQ7jD2Bmt+/Zzl3rbxyW/fQhHafhRj247LLDl4863tbZoIFpP6QtFrkIT1xG 3QhNFYjeStCLzqi12SOZ6/cpM0NwtHgJA4xMwfe/N7sk8BjdxM9Y/+eeERZamUtBtgoXOXDrOdc 8aTw5U++H7JBi/3r8Zbs9+TqyproozMBZfxkpjr4SWaJ0DeFNHrsRJZuG/hRoLslE24FkiWH9Cv 73ljRJSOM00ABja7NqaYAoPPf7E6l3EMqBPflJgzaBo3gsyCaU7IR0WHxVS+bHXSdFgbJZL032r xTiU2ShYNM+QsEqc0QtJCulYPueKE6RNsXUR56vlaQFfjkWOtIGSA/951/pyylyOMHgeVXtJtub 6waM50dTxebM8UbnZZfqKG8rvuziKgJ887S4 X-Received: by 2002:a05:6808:1310:b0:573:d802:fb0 with SMTP id 5614622812f47-57a09504ab8mr19901858b6e.13.1795638105859; Wed, 25 Nov 2026 12:21:45 -0800 (PST) Received: from zippy.localdomain ([76.156.233.211]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-4bc5edc52aasm18900550fac.4.2026.11.25.12.21.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2026 12:21:45 -0800 (PST) From: Alex Elder To: sboyd@kernel.org, bmasney+clk@redhat.com, jbrunet+clk@baylibre.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, p.zabel@pengutronix.de, andersson@kernel.org, konradybcio@kernel.org, abelvesa@kernel.org Cc: daniel@riscstar.com, mohd.anwar@oss.qualcomm.com, lorenzo.bianconi@oss.qualcomm.com, fabrice.gasnier@foss.st.com, alexandre.torgue@foss.st.com, marex@nabladev.com, changhuang.liang@starfivetech.com, devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/3] clk: tc9564: introduce a clock and reset driver Date: Wed, 25 Nov 2026 14:21:38 -0600 Message-ID: <20261125202141.1288493-1-elder@riscstar.com> X-Mailer: git-send-email 2.53.0 X-Mailing-List: linux-clk@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series introduces a devicetree binding and single driver to support the clock and reset components present within the Toshiba TC9564 chip. The Toshiba TC9564 is an SoC that attaches to a host system via PCIe. It includes a PCIe switch with three downstream ports. To one of these ports an embedded PCIe endpoint is attached, and that implements two PCI functions. BAR 4 for both PCI functions provides access to registers controlling blocks within the SoC, including the clock and reset controllers supported by this series. The first version of this series included a system controller, which has since been removed. This version addresses all review feedback received on version 2. -Alex Version 2 is available here: https://lore.kernel.org/all/20261120183212.1264522-1-elder@riscstar.com/ Between version 2 and version 3: - Added Lorenzo's Reviewed-by on the devicetree binding patch - The devicetree binding now uses @kernel.org e-mail addresses for Daniel and me - Cleaned up the patch header text in patch 2 - The Kconfig option now depends on RESET_CONTROLLER - The Kconfig option can now be enabled if COMPILE_TEST is enabled - The generic gate clock controller code is now used rather than implementing a custom one - Only the gate clock IDs are now published in "toshiba,tc9564.h"; the PLL and internal fixed clocks are implemented and accessed only within "clk-tc9564.c" - The PLL is initialialized, followed by all fixed rate clocks, followed by the gate clocks, to ensure each clock's parent is initialized before the clock is - Updating the reset registers (read/modify/write) is now protected by a spinlock - There are no more "unnecessary newlines" in the initialization arrays for clocks and resets - An update to the DTS file is now included as the last patch in this series The version prior to v2 of this code was included in this series: https://lore.kernel.org/all/20261104004332.2141282-1-elder@riscstar.com/ Between that series (v1) and this one (v2): - There is no more syscon, so its devicetree binding and driver have been dropped - The clock and reset components now have a single devicetree binding - We no longer use a syscon-generated regmap for accessing the common range of memory used by multiple drivers; specific sub-ranges are instead mapped - The clock and reset drivers have been combined into a single driver located under drivers/clk - The config option for the driver includes COMPILE_TEST, as requested (last month) by Jerome Brunet - The help text for the config option is simplified, first suggested by Philipp Zabel - The driver now names clocks using dev_name() rather than trying to hand-code a unique name into a fixed-size name array (also suggested by Jerome) - Certain functions now always return 0, which simplifies callers so they can simply return what the called function returns - As suggested by sashiko, a counted-by field in a flex array is now assigned explicitly Alex Elder (3): dt-bindings: toshiba: introduce toshiba,tc9564-clock.yaml clk: toshiba: introduce a TC9564 clock/reset driver arm64: dts: qcom: qcs6490-rb3gen2: add TC9564 clock node .../bindings/clock/toshiba,tc9564-clock.yaml | 73 +++ MAINTAINERS | 9 + arch/arm64/boot/dts/qcom/qcs6490-rb3gen2.dts | 15 + drivers/clk/Kconfig | 9 + drivers/clk/Makefile | 1 + drivers/clk/clk-tc9564.c | 456 ++++++++++++++++++ include/dt-bindings/clock/toshiba,tc9564.h | 40 ++ 7 files changed, 603 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/toshiba,tc9564-clock.yaml create mode 100644 drivers/clk/clk-tc9564.c create mode 100644 include/dt-bindings/clock/toshiba,tc9564.h base-commit: 9437046953b2fb3bf55b36582450ea0267df82a7 -- 2.53.0