Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5896757rdb; Thu, 14 Dec 2023 02:53:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IE+o7PG8zl8PGkZc37ObIUD83LLvHCqGMZ7eW8OwxZboaXChrg6NOQTjDHWIAM6vLDpNyUp X-Received: by 2002:a05:6e02:1c25:b0:35f:7532:59de with SMTP id m5-20020a056e021c2500b0035f753259demr3105837ilh.56.1702551236880; Thu, 14 Dec 2023 02:53:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702551236; cv=none; d=google.com; s=arc-20160816; b=DGMRq3dzt9yNOZrzN6rx4T4b4oaQkIYduo+BK5fEUPU8Ohh8u84jLXg6kiHdlzATh/ KibWKC2Wh0euRFknZ3NfaZiLEMstN5P6Zx2ZA/SC/RUWgpFImdxVrriPxshIomXxWQrp kBZI6IlrNwItGQEN29RfHvexBPqOgXzTsYg2E+ndCBDE5RaGsk5T2txXjvN6qFnXkBsl MArvbp2bu4TapPj72ge5vLvVurFe7qHkqdfQxrAfBXgv5wtbhDodduFIyJD315ARi1Vf 8lVJ5ndIBsvGZNx0U/Iznp0fWClL4jHGeLtGYb4brM5432QrMHcm+EO6w7xyG+78zydX xLmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Mo3Dx5itQzWuax7FZn6pfcTiRVwQ5I0itNwdOhqnqJQ=; fh=OYFPLntDFpYgvzT/NKtNMO52NSVJYkQpXOK+UQuZgww=; b=yHgwIwpty3hb/X/lHNcMuQHWQciana51fw0nZ3oMbRJ6WUZMUh+2sHtnGMgS94hItS oAWbGKn8E1Hat9bBdhrN0DBRMbGWsidyYrDNOR5aVPNDrnO/y5G3KUbuJWev1AD/kFoW Gs5EpXHP50mXvpyV3KXzNNd2SY24/uKll67XHc7NToOJVtedOGreostwZYCLILGEnczm HF7JF8zEWYM7lCbsti9d67pol7JHtqslLPNgWTOhT9qGRlh8DcY06Y2psmjikdpnNtk5 0tLy/xKKmBOULg2184RRGTQUGa1oCBsmo/TSCtnWA54aQZFvgf+hCHGrw98ewetue1f5 SURw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e3e8bQuW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id u6-20020a631406000000b005c66350f55asi11107498pgl.343.2023.12.14.02.53.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:53:56 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e3e8bQuW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 10E8180FE297; Thu, 14 Dec 2023 02:53:51 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443878AbjLNKxV (ORCPT + 99 others); Thu, 14 Dec 2023 05:53:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443793AbjLNKxA (ORCPT ); Thu, 14 Dec 2023 05:53:00 -0500 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E55E1B8 for ; Thu, 14 Dec 2023 02:53:02 -0800 (PST) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-40c38de1ee4so56516385e9.0 for ; Thu, 14 Dec 2023 02:53:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702551180; x=1703155980; 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=Mo3Dx5itQzWuax7FZn6pfcTiRVwQ5I0itNwdOhqnqJQ=; b=e3e8bQuWvYbu5qOH8xAs9IihcWe61U6KaaczhFDR43vpstD0WhcrL2STk5EiKMlXj5 plSqUo3vhHMrpnmfC5wQx6eJMUPGFsNjsIrgvk7AjR/SA+hTcVgvcRSVUthSfWZO8Rw4 sjD/iq33F2lZTrSy0FGewtQDq0YZwb6SRlb8WEJnv3UA1pAkCmFyh4I4NTNxBxH596aC tC59oTi/xQs0OpWZG04F9euYFBUBxROOt/cNs9GnDNz9Al2NK3VTuTXDXe1hWUXS62R5 SzXqhTrB1ODKgGYGVhuGnz48hE1kp3/Pd9QQPnSMTABTXhpYa7q+HQHLD/PXSNLBPyxu L01g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702551180; x=1703155980; 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=Mo3Dx5itQzWuax7FZn6pfcTiRVwQ5I0itNwdOhqnqJQ=; b=CNGUSqxe0FTvU7ofJTE7Tgr1Eu6fdh8DkNIV+SEFeYzEGBX/M6Y7kf2ljXqyd4NTGH 0dtbWOPzK1KdlmxsX9znZCsjSd1YPwPvo//SoCyUCusLi89VCeghguxFmHsZpwdIUXJ9 gfO2vZyEnybxS76oOeEw2h9rS69WpDnH8rH+7I6jTFEgo24HS1JeXA0GdnJ8lDlxhoWh 4BEUx4n9AX38hzJZrs9s6u14W1GtOWFS1ly2e8xgPRvxp3YEvnzVmpsJd4HTAVg5mMmh UR3TfxTC6XV1Nx8EUhCNc2grL/5wV7TbklwV44yorQt++nVbsYBxd+3TFdI+wQ3Tdtyl Ih5A== X-Gm-Message-State: AOJu0Yx1pG4sWiMF/G/B+aRm2SFzp11ahg63rtKOY70p/1sXEJAjCnv9 vjSiv1wMVnOCQrBd9odtgnMaVw== X-Received: by 2002:a05:600c:4f82:b0:40c:4dc5:b2ee with SMTP id n2-20020a05600c4f8200b0040c4dc5b2eemr2697156wmq.149.1702551180487; Thu, 14 Dec 2023 02:53:00 -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.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:53:00 -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 10/13] arm64: dts: exynos: gs101: define USI8 with I2C configuration Date: Thu, 14 Dec 2023 10:52:40 +0000 Message-ID: <20231214105243.3707730-11-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog In-Reply-To: <20231214105243.3707730-1-tudor.ambarus@linaro.org> References: <20231214105243.3707730-1-tudor.ambarus@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 14 Dec 2023 02:53:51 -0800 (PST) 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 dtsi file. Signed-off-by: Tudor Ambarus --- arch/arm64/boot/dts/exynos/google/gs101.dtsi | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101.dtsi b/arch/arm64/boot/dts/exynos/google/gs101.dtsi index ffb7b4d89a8c..4ea1b180cd0a 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101.dtsi +++ b/arch/arm64/boot/dts/exynos/google/gs101.dtsi @@ -354,6 +354,32 @@ 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_DOUT_PERIC0_USI8_USI>, + <&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 = ; + clocks = <&cmu_peric0 CLK_DOUT_PERIC0_USI8_USI>, + <&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