From patchwork Fri Jan 19 11:11:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13523638 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 47184C4725D for ; Fri, 19 Jan 2024 11:12:47 +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:References:In-Reply-To: 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: List-Owner; bh=tKcipnLHdl4/rfTUWvw+XqnC77xxh6svxNjcyWq1/dU=; b=bIQn/CpBESD6d/ sRWV6zXzDzHW/JPVA8IjFjqpdB91MvfjcohaVM7IBSfenQyXHq0uXEETS1NBPo93OOZ+iAcoS8KjK 5t8Le0y5DyKQV9HTec7oKoMv45tK72Aw198PckVjgpZZbB3oiZh1eMOmcEoEBELA5YzOIcF76OK8O gbkqmHKDrpsUkJyKzIg7+uJwsrlD63Y2EhiogDGOcByPO/haIMK2icVHwqDLbFTHDTpUMGLjevmP4 XBSmZAH4BgtUvQmEHYMFDggRC5Uo9ZDxQwvEYMz3dl0CrvnTpq8L0W3GDV9zY9oxCJ9zydaEXPVV+ Z46FEF3dHrIkvYI7IzYg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rQmnD-005BzV-11; Fri, 19 Jan 2024 11:12:11 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rQmn4-005BtI-1u for linux-arm-kernel@lists.infradead.org; Fri, 19 Jan 2024 11:12:04 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-40e8d3b29f2so6942885e9.1 for ; Fri, 19 Jan 2024 03:11:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705662716; x=1706267516; darn=lists.infradead.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=bgotcyv6wBhXLN6V7LbPKLDpi2/3Hoq5LfRbcHxmUHc=; b=cgaV9U/tfb1Ng/F1i7iZvNE52VvHgDBSvEI0N6y2xNewm+CIyKdfh5oSsxFbYokg6j iVBMwU9HGok4/QNqq1qNKlBqMYpdM88jY/5eBnP2zgSnMHIY4HzuK5doSOKzO7V6Da0W Of6zZG26c1l79W0BgrmLIv9eIPEUVtOH1NhzhqCmJq8E2OcwTCbbx03+qIEVtj+qLJRl GMfZpVX3JanCf16ERgVRwuLzaS8Q/kDEaW42E+hm9ATLYlIOk0k5SZ4PHDOCJr6UnjR9 wmYHxLTnCMDpMp2auyN/2b2hX/MB+LoW8SyKSYFaE6r8DjN0/SucRSwfnUHEGwsKO5QG 5TZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705662716; x=1706267516; 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=bgotcyv6wBhXLN6V7LbPKLDpi2/3Hoq5LfRbcHxmUHc=; b=hb2kEUZ19K6aNqX76x3btG2OkeES1wLK5mwx1sZAXnJKyU8qyGMg/w4KxG7AjKu8aa m3YplyCM63FxN5J2J4PwdW9glSBv5aztca/GA/IttzyDtffJ67qFouvqa6OVO16NYwLF tB0PzOGIVyAAYmQyHiQzxCcOJAP/D/qzJ3mUUTTxRORfIlGmk/QMBz5N9cqh01HTimD0 o4rbaI4uJYHYtP7OcmdATmq116qsrvGz/u3ELTexGuLGCDiICiOk83MTrPux0dQie+fo y1vgki2vhqXUfH/RIZMGcjFCr6t131ouVCXoPcst1cMURXbZwtgEoKk8qUasMInAgslD 4P2w== X-Gm-Message-State: AOJu0YzmP+cpZOnmq9En20GRE3JbCzZ+BoSQjyDPVLjOSW80clcHr2R5 HsVGY3TWJrSJEveNCz+7+nbF3Btzf9DRgQz213x3fzeqOwjP50QIqQDnbpqignQ= X-Google-Smtp-Source: AGHT+IFOpbihLWfMf2GioHDTZHU+LDQAEWF13vJ2V013dnNsxpZseCv/sWgDjN14DXvTqQqv3RW4Kg== X-Received: by 2002:a05:600c:2184:b0:40e:50e7:daf1 with SMTP id e4-20020a05600c218400b0040e50e7daf1mr897840wme.263.1705662715986; Fri, 19 Jan 2024 03:11:55 -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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 03:11:55 -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 7/8] arm64: dts: exynos: gs101: define USI8 with I2C configuration Date: Fri, 19 Jan 2024 11:11:31 +0000 Message-ID: <20240119111132.1290455-8-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog In-Reply-To: <20240119111132.1290455-1-tudor.ambarus@linaro.org> References: <20240119111132.1290455-1-tudor.ambarus@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240119_031202_626979_4C707BAB X-CRM114-Status: UNSURE ( 9.83 ) 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 USI8 I2C is used to communicate with an eeprom found on the battery connector. Define USI8 in I2C configuration. USI8 CONFIG register comes with a 0x0 reset value, meaning that USI8 doesn't have a default protocol (I2C, SPI, UART) at reset. Thus the selection of the protocol is intentionally left for the board dts file. Reviewed-by: Sam Protsenko Signed-off-by: Tudor Ambarus --- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi index 6aa25cc4676e..f14a24628d04 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -352,6 +352,35 @@ pinctrl_peric0: pinctrl@10840000 { interrupts = ; }; + usi8: usi@109700c0 { + compatible = "google,gs101-usi", + "samsung,exynos850-usi"; + reg = <0x109700c0 0x20>; + ranges; + #address-cells = <1>; + #size-cells = <1>; + clocks = <&cmu_peric0 CLK_GOUT_PERIC0_CLK_PERIC0_USI8_USI_CLK>, + <&cmu_peric0 CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_7>; + clock-names = "pclk", "ipclk"; + samsung,sysreg = <&sysreg_peric0 0x101c>; + status = "disabled"; + + hsi2c_8: i2c@10970000 { + compatible = "google,gs101-hsi2c", + "samsung,exynosautov9-hsi2c"; + reg = <0x10970000 0xc0>; + interrupts = ; + #address-cells = <1>; + #size-cells = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&hsi2c8_bus>; + clocks = <&cmu_peric0 CLK_GOUT_PERIC0_PERIC0_TOP0_IPCLK_7>, + <&cmu_peric0 CLK_GOUT_PERIC0_CLK_PERIC0_USI8_USI_CLK>; + clock-names = "hsi2c", "hsi2c_pclk"; + status = "disabled"; + }; + }; + usi_uart: usi@10a000c0 { compatible = "google,gs101-usi", "samsung,exynos850-usi";