From patchwork Thu Dec 14 10:52:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13492774 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 3F475C4332F for ; Thu, 14 Dec 2023 10:53:31 +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=gJXiPaOqwVNt9UPV6BXDhemf3P/QulWkiL/9X85dgSg=; b=SttJDyASA6MqFs joFxvGD/pvVNMj0qOgs7M8kP888ZwbQL1z+F0G6nKRPcTbFEMEBs4SkuISSF1a3wCkHV8ZyhRWYBj UYk+91ucA1hGEgjbDaTuaE6gOYbBMBhlug1Yavd/Zo8lLfEbP/eaWkPiE7xezMsYz1N9QcrigsB7c 4P5kkArb+R3vS6vxp05VVGAZvj99DEWXeAkFYJ2tCfu0TTzvdITLyfs+xRQ6remK5I8gb5n+AYPAY phbeKObLXr0YX7CcPr3f66FwfSfmyIykdcRKl99GqEibx0F8HzoeyKskTHYU5sKUYmjorK2bbpxDm RNRBcMgfm5vru8enoWZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rDjKv-00HXYS-1W; Thu, 14 Dec 2023 10:53:01 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rDjKn-00HXSH-0m for linux-arm-kernel@lists.infradead.org; Thu, 14 Dec 2023 10:52:54 +0000 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40c29f7b068so75230605e9.0 for ; Thu, 14 Dec 2023 02:52:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702551171; x=1703155971; 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=6tm42FF4c3bt5Gu3FnnyW38+ClAYR6mlbk3a/l087HU=; b=E8OX/rozkYN6w/jvz88rnJb6rFaH2Xfui0Yws5srz76fXHfB1Qh1bpUlKwlrqsHigi 6SiBzPgsplUammUUR/LZ0bbqaxH1tyDAXrqbyjASxkpTmH11iE0Z1KpZx5PzgliccJj1 Po+VQM44gVN7Stkb18r7qOr9UdGzf5jYhKvUjXRqdG2+7EZd5A4zqrG2ytOoiCcjJUEB NJcWVvGM9voZ9WauGxrWhxzEhLBVxC9uYQdPzDQ/JdZIOFDcsFpVNXkUiZK6t5UweFgv 8X07wwYzYmU9GJFeESxf0pPNyu4bBG7DzYVVu+AE+gGvwsSx1Jj4uuUChJ3BIIRi9k65 7wpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702551171; x=1703155971; 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=6tm42FF4c3bt5Gu3FnnyW38+ClAYR6mlbk3a/l087HU=; b=fDctQBlfSXuIC9ouyIFq7gDkS7brccFpx/0bpSGTgfCMx4ogSirkqARaMNeAhWOkRT YVFHq73+YhxGOmQ+s1GzHqTxi/Zyq7gpvt3LSDG05cZ7ejhxpqWV1pH2HVDCWO9l05jm mUjklXjrolaCgqaC80doObcVN2roHkbGgdJF3Xth1LhOA+XsnEYg20sI2VVWy/vmqenP bNEqBTN4CN2BmXnVgnDE226DZul4Xtyvyj9c8hXvozzLkKWoe9V43q+7my3Hl6vLML2E CZdk0mspPFonzs7mOwnI6+75+5WphSMso4T5q70LBTkLGQIXjCbxeqdz8Zp0RqhNUxSg 6Y2w== X-Gm-Message-State: AOJu0YxjrlrgWB4XMCgDloCpXuPj/DRi9rsaY5GviLDc5jseYTyTs8QW Oaew9aQ8uKEoQVbEpeV+I6zg7g== X-Google-Smtp-Source: AGHT+IFCKio55lZadUI3MBs5J+fZ9q8GCTSRx+SQFiZCVZbiGTTeCOe8TJ0CPUb0n+BSn7oBZ0NY0w== X-Received: by 2002:a7b:cb92:0:b0:40c:3308:3b02 with SMTP id m18-20020a7bcb92000000b0040c33083b02mr5256825wmi.99.1702551171270; Thu, 14 Dec 2023 02:52:51 -0800 (PST) Received: from ta2.c.googlers.com.com (216.131.76.34.bc.googleusercontent.com. [34.76.131.216]) by smtp.gmail.com with ESMTPSA id p7-20020a05600c468700b0040c420eda48sm17614854wmo.22.2023.12.14.02.52.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:52:50 -0800 (PST) From: Tudor Ambarus To: peter.griffin@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, conor+dt@kernel.org, andi.shyti@kernel.org, alim.akhtar@samsung.com, gregkh@linuxfoundation.org, jirislaby@kernel.org, catalin.marinas@arm.com, will@kernel.org, s.nawrocki@samsung.com, tomasz.figa@gmail.com, cw00.choi@samsung.com, arnd@arndb.de, semen.protsenko@linaro.org Cc: andre.draszik@linaro.org, saravanak@google.com, willmcvicker@google.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, Tudor Ambarus Subject: [PATCH 00/13] GS101 Oriole: CMU_PERIC0 support and USI updates Date: Thu, 14 Dec 2023 10:52:30 +0000 Message-ID: <20231214105243.3707730-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-20231214_025253_282549_CE828964 X-CRM114-Status: UNSURE ( 9.74 ) X-CRM114-Notice: Please train this message. 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 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 Tudor Ambarus (13): dt-bindings: clock: google,gs101: fix CMU_TOP gate clock names dt-bindings: clock: google,gs101-clock: add PERIC0 clock management unit dt-bindings: i2c: exynos5: add google,gs101-hsi2c compatible dt-bindings: serial: samsung: gs101: make reg-io-width required property tty: serial: samsung: add gs101 earlycon support clk: samsung: gs101: add support for cmu_peric0 clk: samsung: gs101: mark PERIC0 IP TOP gate clock as critical 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 arm64: defconfig: sync with savedefconfig arm64: defconfig: make at24 eeprom builtin .../bindings/clock/google,gs101-clock.yaml | 25 +- .../devicetree/bindings/i2c/i2c-exynos5.yaml | 1 + .../bindings/serial/samsung_uart.yaml | 4 + .../boot/dts/exynos/google/gs101-oriole.dts | 18 + arch/arm64/boot/dts/exynos/google/gs101.dtsi | 52 +- arch/arm64/configs/defconfig | 146 ++-- drivers/clk/samsung/clk-gs101.c | 748 ++++++++++++++++-- drivers/tty/serial/samsung_tty.c | 11 + include/dt-bindings/clock/google,gs101.h | 230 ++++-- 9 files changed, 980 insertions(+), 255 deletions(-)