From patchwork Fri Jan 19 11:11:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13523630 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7BB7FC4725D for ; Fri, 19 Jan 2024 11:12:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=u8f1ewcTVxcQwq7I7JT59S8sncQtmbcZSugfoLlAU1c=; b=YIMBzbKU9fMA+t ZJKVEGw8odPRykOoGV40hNk7C2gr6fwJcgpVlemqL3Ew6+wrV27okvLwNMZwfxmx3yHE82EF9ZxEW HgtFTVJj7wgtnes0ASXQ57ODgDCo1vFrNgDv9uX1MbL3zVNJnqj+wmiesxGjbc0yGTK+zU1pxPx02 5sJcDFtVY/FnW86Iuj5IOhp8+Ip+uHe1lM1yAf96LI/xpldrerrmNIZZvOyPCuZABGjjW6BBigaTp ZdAKMEeT9wwsXARoxnvE/yr4FjmTYD6j4wGYqIXwf0c8NIjUdl8PnJxNsARFrMd6rrYGB5MG6hkz4 do6SvvLr+uJ/VYeqSBqQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rQmmt-005BrW-1h; Fri, 19 Jan 2024 11:11:51 +0000 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rQmmq-005BqW-0r for linux-arm-kernel@lists.infradead.org; Fri, 19 Jan 2024 11:11:49 +0000 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-338aca547d9so454207f8f.0 for ; Fri, 19 Jan 2024 03:11:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705662706; x=1706267506; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Gde/CEZexSF+MgWdYhtnhm3Pk0rf6HJ1JZWUNmdN21Q=; b=CZJtNlcfTIJpL9eaB63UykpH5hkucxYeE96vkFHUXHfTh/GPNH6D4+UDV1o/NJv8+W Vmw4CdzQpxLOHoWAF6evOnqp2/MbbvG3vr30sXNWOvV4aRED0avbQl17KhR+E5r++961 F5EMlRsaUJxUuus3p7FzdDXrioUZE4vQ0mIymKy8lIEL3pWlMxrZHetr34RRk+XF4UnW bMYo4fI/R6RA+ctYZZOzt2lCZO7ix1ct+vbzUGXNB6hh98pHjEpn4kUK4kBUYtk/Wl5n S5TC3Hza0fpF5XCUN23xCUtB6lRrgp/cpJoLRUhqOTb7V24gHHr6H1GuQttF+F7W4bs1 kGZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705662706; x=1706267506; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Gde/CEZexSF+MgWdYhtnhm3Pk0rf6HJ1JZWUNmdN21Q=; b=cTFE5bUTDFJSQZ7cb6rUAk7RBLJvLYw0VaCAYIb3UGA8WkpSIIjrl/P0XYlIVVlpDu AMK+vWgWrDIhXFOOC/v5WrGOJwBPIXOVuVEv9ihjrVHMOQDhbUkGVjPakt1FM+WuU/m4 tDbQ+0wOSneaJp9kTwAmZic4PO+L98AsMrbkwju+nLdoFXHLQNrLl5lE1ankixqb4ALg UL6fCWtxydbH6KT1hm9lkMGcIXUNayajH2C/y+iKgqtJxqzMb77JPUsCk5hQpvPsCTWb 6tCnN2zn6sHZz/fAHGh//3WpQb3/VbECjOJxZxQurrxiNkpm1umixWfAmGiH67zIYapW 6FuA== X-Gm-Message-State: AOJu0YwenGTAa0bClGM03o5dycv1lKcOxgSzNXB3tKclDc6/NqgAj7H4 vEzFf9dN2fhORkLd6C/WYzQCFEgaNg0ALb9VT2FBCx7ktkw2DSjNIMfoG5ko68M= X-Google-Smtp-Source: AGHT+IGtifd9K3NZvVC90VJrmNNTi5MUmQ5FbQ71/eCU55PSRhdJPA5+wlVQwRHcx3gTkzT850iqRQ== X-Received: by 2002:a5d:5183:0:b0:337:bf81:e06c with SMTP id k3-20020a5d5183000000b00337bf81e06cmr639071wrv.79.1705662706307; Fri, 19 Jan 2024 03:11:46 -0800 (PST) Received: from ta2.c.googlers.com.com (88.140.78.34.bc.googleusercontent.com. [34.78.140.88]) by smtp.gmail.com with ESMTPSA id o10-20020a5d62ca000000b00337d4ce6ab4sm3341868wrv.20.2024.01.19.03.11.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 03:11:45 -0800 (PST) From: Tudor Ambarus To: peter.griffin@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org Cc: andi.shyti@kernel.org, alim.akhtar@samsung.com, s.nawrocki@samsung.com, tomasz.figa@gmail.com, cw00.choi@samsung.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-i2c@vger.kernel.org, andre.draszik@linaro.org, semen.protsenko@linaro.org, willmcvicker@google.com, kernel-team@android.com, Tudor Ambarus Subject: [PATCH v4 0/8] GS101 Oriole: CMU_PERIC0 support and USI updates Date: Fri, 19 Jan 2024 11:11:24 +0000 Message-ID: <20240119111132.1290455-1-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240119_031148_307328_43B39B89 X-CRM114-Status: GOOD ( 17.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org v4 drops the serial patches as they should be queued through the tty tree. It also fixes the CMU PERIC0 DIV widths -> from 3 to 4. Saw the bug while enabling SPI. This patch set shall be queued after the cmu_misc clock name fixes from: https://lore.kernel.org/linux-arm-kernel/20240109114908.3623645-1-tudor.ambarus@linaro.org/ Users that want to test the series must merge the serial patches to infer the 32-bit register accesses from the compatible, otherwise they'll see a Serror Interrupt as in this patch set we remove the reg-io-width = <4> property. The serial set can be found at: https://lore.kernel.org/linux-arm-kernel/20240119104526.1221243-1-tudor.ambarus@linaro.org/T/#t Add support for PERIC0 clocks. Use them for USI in serial and I2C configurations. Tested the serial at different baudrates (115200, 1M, 3M) and the I2C with an at24 eeprom, all went fine. Cheers, ta Changes in v4: - drop all serial patches as they should be taken via Greg's tty tree - fix CMU PERIC0 DIV widths -> from 3 to 4. Discovered the bug while testing SPI - collect Sam's R-b tags Changes in v3: - rename cmu_peric0 clocks to just "bus" and "ip" and then comply with the change in device tree and clock driver - reposition ``iotype`` of ``struct s3c24xx_uart_info`` to reduce the memory footprint of the struct. A patch set reworking the members of the struct will follow. - fix the usi8 clocks order in the device tree - collect Peter's R-b tags - changes log in each patch set as well, in the comments section under ```---``` Changes in v2: - gs101 serial - infer the reg-io-width from the compatible as the entire PERIC block allows just 32-bit register accesses. - identify the critical clocks faaaaaaarom PERIC0 and mark them accordingly (if disabled theslocks hang the system even if their parents are still enabled). - update dtsi and use USI's gate clocks instead of the dividers clocks - move hsi2c_8 cells and pinctrls into dtsi - address Sam's cosmetic changes in the device tree files - drop defconfig patches (savedefconfig output & at24 eeprom enablement) - collect Acked-by and Reviewed-by tags - changes log in each patch as well, in the comments section under ```---``` Tudor Ambarus (8): dt-bindings: clock: google,gs101-clock: add PERIC0 clock management unit dt-bindings: i2c: exynos5: add google,gs101-hsi2c compatible clk: samsung: gs101: add support for cmu_peric0 arm64: dts: exynos: gs101: remove reg-io-width from serial arm64: dts: exynos: gs101: enable cmu-peric0 clock controller arm64: dts: exynos: gs101: update USI UART to use peric0 clocks arm64: dts: exynos: gs101: define USI8 with I2C configuration arm64: dts: exynos: gs101: enable eeprom on gs101-oriole .../bindings/clock/google,gs101-clock.yaml | 25 +- .../devicetree/bindings/i2c/i2c-exynos5.yaml | 1 + .../boot/dts/exynos/google/gs101-oriole.dts | 14 + arch/arm64/boot/dts/exynos/google/gs101.dtsi | 54 +- drivers/clk/samsung/clk-gs101.c | 583 ++++++++++++++++++ include/dt-bindings/clock/google,gs101.h | 81 +++ 6 files changed, 745 insertions(+), 13 deletions(-)