Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3929695rdb; Thu, 28 Dec 2023 05:02:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IG4S0LhPPVjWt4ZFKu5S3gJadAsedblWhE2jNG49Bpxk7LYvvKFXRW9LPbZTiXZ0duJG6sz X-Received: by 2002:ac8:5742:0:b0:427:f63e:7e50 with SMTP id 2-20020ac85742000000b00427f63e7e50mr1400196qtx.107.1703768539257; Thu, 28 Dec 2023 05:02:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703768539; cv=none; d=google.com; s=arc-20160816; b=KJZqi5nnhmaEUQUW4f8hjhYBlz3MrDdzanyYANdTQEENC+tv2Vqt4OJwPIc3s4C5ng +POZjSs4Wg0489USjmM1JwwG/LrD8yRPBtkxZjQKzHopkxuZEAbJutci/3QR90d8kEle CfCawKFlDzM+/8x1DGbIo5rpIzEzksz6RqEUHR7Q39tQzU2tbpnydiIyEVtaFGnoJl07 +84bLFk4MrJf3a6R4MywFD0zsGvgl4CICv/jmoCBd0sY3wLTxsZdIRYmq8hNn2rkizsN L3axPk7d/otgAvFXb5g+aiUGa5Mu9gXy23sgBgH5Wfm+6akGokGtL68bozjZlHCe0dvl uA1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=nshL/2BWW/EmympyN/DOS/o4W55HuW8fqdS5mFUVUCI=; fh=nWlCePkpcllO+vKFQygjujkY+gVFca0fYRfPkdb3OoE=; b=E6m8OU2vB9M2BETZN6Jcx8+V5rxVuziUkX5lW6DgxvQg5a8FBIRlo5WKfdhxg97uwS l6Yj+7GXCnOVOEululjenNk20jw8bq5mVDSjDYPZnFyKLTaiWVcY4ZrHuqr+Uz430Ka6 +5uMEAfyrBXvj6crfpkk4Ok9Zc6/EjXL/Zse6SIB7HtrleSeJCQpf5A/6VrLfLcINkuQ fvb+pN4If/7naMyH4/fIpKe58/jpOa/7oNnG9EmK/tscfs3hdtuVHgJPshHhVnE8NUss shxsLZ/jNRVayP0U/8dg1wjWREj3TRnrNGEakhtD3pb1a5Ni4/kh0E6zd6GFcSY0WTjq 0wJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mkk3Pw39; spf=pass (google.com: domain of linux-kernel+bounces-12658-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12658-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p7-20020a05622a00c700b00427f8b9ff4esi1176531qtw.627.2023.12.28.05.02.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 05:02:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12658-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mkk3Pw39; spf=pass (google.com: domain of linux-kernel+bounces-12658-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12658-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E40D11C22B43 for ; Thu, 28 Dec 2023 13:02:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AD45612B61; Thu, 28 Dec 2023 12:58:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="mkk3Pw39" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B98EB10A28 for ; Thu, 28 Dec 2023 12:58:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f43.google.com with SMTP id 2adb3069b0e04-50e80d40a41so2739913e87.1 for ; Thu, 28 Dec 2023 04:58:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703768301; x=1704373101; darn=vger.kernel.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=nshL/2BWW/EmympyN/DOS/o4W55HuW8fqdS5mFUVUCI=; b=mkk3Pw39fpmwTjMyLFLDajaq7IFSKoh6S8NF5IWmxPF0e5N6KLtL8xDyJUzfAecCrp FTpQbHEKN5xytknfDzurqYBORK8KoydCFJhkNc4hjLSOY+38T7pXN8rT6TvY4WlvDB/2 WG/a9PvTTeoMUl11PtTUV6nsArmOVZ3Beghc/2BQXiA5IS77eqjanHeci+dezSM+XAX2 XHGCAGkR/fmc6TTZE9147e7S4czbFX2ry/lXYqoItWDb6+6zW3QGxD78Hwoml/8O16OS NieEe8ks2/gcnG1uKiVJ04dBWXpsxpF5w7Y2GS2fkFIh69YDnEEDO179WGhk/rClHTYW 9uIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703768301; x=1704373101; 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=nshL/2BWW/EmympyN/DOS/o4W55HuW8fqdS5mFUVUCI=; b=RhQEogYz6KWhWq45EO98RqgVL0eSV6eF/CLC5qbtjp3Firf/BJBiRemMM6MnwWqdNl AKkXDTGnjRQVndnB1dqm1YTY28GD/oAn31GjdFxIyKabD5fI6CdZgcXld+J4CR9hcZ8v L1kh33az+JCkDzgAgOHde1twWHFGiSkDuKr/Uf3HpgCOKKV3MD33pOeu0ealHDPif5pH UXPlFs5u/v/FgM6NQ5lCBF1+7QKfk+0ZPlpaPv7UykAfZ/HIxx0uQEPTzTE8mreQOoZi sXcKoognLg9p7o2CcD+fctcbgrg94BfuJEeMdY93MwstuZMnKD1DQUDCOD5ku8JhYKDr 65gQ== X-Gm-Message-State: AOJu0YxkXzzwcCt7dcSBg5ETfLPdz8yV0PFyFeSuPAgaNpjqCq1AZQ9R LT2+4A8YrBmh9gM1v/x8SDB3RQ3yZckdJg== X-Received: by 2002:a05:6512:348c:b0:50e:7c73:f4f3 with SMTP id v12-20020a056512348c00b0050e7c73f4f3mr2253161lfr.9.1703768301689; Thu, 28 Dec 2023 04:58:21 -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 h9-20020a05600c350900b0040d5aca25f1sm8615807wmq.17.2023.12.28.04.58.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 04:58:21 -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, 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, kernel-team@android.com, Tudor Ambarus Subject: [PATCH v2 11/12] arm64: dts: exynos: gs101: define USI8 with I2C configuration Date: Thu, 28 Dec 2023 12:58:04 +0000 Message-ID: <20231228125805.661725-12-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20231228125805.661725-1-tudor.ambarus@linaro.org> References: <20231228125805.661725-1-tudor.ambarus@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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. Signed-off-by: Tudor Ambarus --- v2: - identify and use gate clocks instead of dividers - move cells and pinctrl properties from dts to dtsi - move IRQ type constant on the previous line 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 0e5b1b490b0b..c6ae33016992 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -354,6 +354,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_PERIC0_TOP0_IPCLK_7>, + <&cmu_peric0 CLK_GOUT_PERIC0_CLK_PERIC0_USI8_USI_CLK>; + 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"; -- 2.43.0.472.g3155946c3a-goog