From patchwork Tue Jan 9 12:58:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13514900 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 59E8EC47077 for ; Tue, 9 Jan 2024 12:59:05 +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=f5TLJE1NxdP3srrOR2idmeu24DnrCk97PE5/0+i7Gxs=; b=Z0JSPQWcDDsVRD SefgA7RApCqvaekwo6OFQ+yKa8Z65NGGYyMRsDoFy7Lml/ngga6nXSgPKwa48a/tvn89CRK1iVa8s jHE1546dS5m0Z/cry4NwBF1+Jtul02JxDYeB6eKeRauoJyuKhd3Bzd4ZZKnLO0/yLwVKkZGiVF0U/ dCyiJ/NdC/wM8hAxhKu9SacLHeO1He+rRm7Z87sprGxxzwbUvX2N0V65/H5JonSJTb0CE60rx85Ci fTRZ/1V+jclzxga2Heq1ZeBjPabrOOhPx77AuZ/iMD6BVYhK6WblA50GRW5YZPWrKFcdvrFEsJ6qD WFFhcj3k+g9eGWrJIyzQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rNBgj-008IOR-0N; Tue, 09 Jan 2024 12:58:37 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rNBgf-008IMX-1c for linux-arm-kernel@lists.infradead.org; Tue, 09 Jan 2024 12:58:35 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-40e5280a33eso2183935e9.0 for ; Tue, 09 Jan 2024 04:58:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1704805109; x=1705409909; 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=9i0+GNnJ7PUDNqQJFZRpfiefslzNtbvECkFwhm7N13k=; b=ZFK61T5k4Uon5adcAEhunJH6eeg9Wt6PZMAu8GOpU/8FvkR1LUf5CsLd8TFC0co7vN jxJWB/WCk8Z1iuuSauiUYaxUPqngSj24D3pwaqnJykydPVOsdqygloWsufxbDEGapa5t BjVLB7q2qUP8JSQg462SzQK46/xHX2/mNWwavA3rZJy+o/w+sGkXRaB2UnewK4DTvQok ZTBGBFlyxZHKlMhrYa2PJZugjmTlDlyZ4mrgkuq5RRw+Aw4YR7zJzZ5FsEnAz+oF8VGo X1QxHeBgEfG8peEpJaQwQFZYV5MaIDHVA51SFRfeUoSfNgPQTaPhdq6rn+q/vHXY1Rsl tqGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704805109; x=1705409909; 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=9i0+GNnJ7PUDNqQJFZRpfiefslzNtbvECkFwhm7N13k=; b=V1nqd0Bmb+02hqZoJj5tc9556b1WWCK6uxnrmKbbQj/K+FdEDavFzlzWyZjQ2euVDk e6TXNvN/lJQcACSrGEpMa6qolpZLJZ5u9zsTDuu27TTjd8rpQtAXzA2DMWNjH9lp2r5D OfoCubFl5M16mhLAGVA8e0hRuEQSuwOoT4cAV9gbPJkWXd1HUY0mVq6PzAtXixE4Y9Df ergsGX9Mz2GF8JnegYiXj2lMNkaNYMxt94Udpy07SHrtllJ8hJEG5jU3xEw/iVXeRPyb CD62aCmvt+T33cfT4XFH0q6vrm4bet0P2lQYufuTASt7eYSRmypq2+6BwAl9Q6bJ7xcd wl9g== X-Gm-Message-State: AOJu0YynNIVsFvsS9VdkBjOCCdu4lqzPRQq4BzfLOwS6JEgRmkUpoIF/ GnrTKbT2KjOCb+u1atjCM/OhxXVXx46Q3A== X-Google-Smtp-Source: AGHT+IHQPeZVpACVYWJHOPDubk8UtBjdRQGuYcTeBwwLCvBDewKeTmwELU2B1EfBf9Fp4u7vSaHDEg== X-Received: by 2002:a7b:cc10:0:b0:40d:8cb5:1b9f with SMTP id f16-20020a7bcc10000000b0040d8cb51b9fmr374679wmh.81.1704805108903; Tue, 09 Jan 2024 04:58:28 -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 cw16-20020a056000091000b0033753a61e96sm2351302wrb.108.2024.01.09.04.58.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 04:58:28 -0800 (PST) From: Tudor Ambarus To: peter.griffin@linaro.org, krzysztof.kozlowski+dt@linaro.org, gregkh@linuxfoundation.org Cc: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, conor+dt@kernel.org, andi.shyti@kernel.org, alim.akhtar@samsung.com, jirislaby@kernel.org, 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, linux-serial@vger.kernel.org, andre.draszik@linaro.org, kernel-team@android.com, willmcvicker@google.com, Tudor Ambarus Subject: [PATCH v3 00/12] GS101 Oriole: CMU_PERIC0 support and USI updates Date: Tue, 9 Jan 2024 12:58:02 +0000 Message-ID: <20240109125814.3691033-1-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240109_045833_606331_291FF9D8 X-CRM114-Status: GOOD ( 16.90 ) 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 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/ 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. Apart of the DT and defconfig changes, the patch set spans through the tty and clk subsystems. The expectation is that Krzysztof will apply the whole series through the Samsung SoC tree. If the tty and clk subsystem maintainers can give an acked-by or reviewed-by on the relevant patches that would be most appreciated! Thanks! ta 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 (12): dt-bindings: clock: google,gs101-clock: add PERIC0 clock management unit dt-bindings: i2c: exynos5: add google,gs101-hsi2c compatible dt-bindings: serial: samsung: do not allow reg-io-width for gs101 tty: serial: samsung: prepare for different IO types tty: serial: samsung: set UPIO_MEM32 iotype for gs101 tty: serial: samsung: add gs101 earlycon support 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 + .../bindings/serial/samsung_uart.yaml | 2 + .../boot/dts/exynos/google/gs101-oriole.dts | 14 + arch/arm64/boot/dts/exynos/google/gs101.dtsi | 54 +- drivers/clk/samsung/clk-gs101.c | 583 ++++++++++++++++++ drivers/tty/serial/samsung_tty.c | 58 +- include/dt-bindings/clock/google,gs101.h | 81 +++ 8 files changed, 794 insertions(+), 24 deletions(-)