From patchwork Thu Dec 28 12:58:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13505997 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 D6D0EC3DA6E for ; Thu, 28 Dec 2023 13:00:12 +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=37z0lLekjlmTHi0fgPO3j+mjHPLmUzDBtpg5zV1CkFg=; b=cZXoUQef1c5WGE SVIT8nKYm2xWe/NynMtLzS1tooDp4Uc8UHAV/5drjs+uAX+xRfxclQX6t5+nGXpBZekePHqMv+5SS gBL7Xsa8BqwIwABh6ML8RyQ+VmUu6gnzjqmG29ZOCTldrwrUtCJO/pFI23dgKsVYqXQCrQuzJ3G4I +ZUWlxQBk0aOE1goEYd9uGTvz7jWrsu9aYX8aayfDZJcbr5Y9eS/4Qkss3RScAKV9nhb02fPoFgn0 5Ed95AqRGbEv5u+Y2ZZDXV6rcOS1DgB7x4pxZzzfUR6Xv5gtfc5P8rBb//6aYYsr2ihgmE6ZYVtRk b0HdYJjo0JUfuybqFwxg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rIpzG-00Grkq-2R; Thu, 28 Dec 2023 12:59:46 +0000 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rIpxx-00Gr2V-03 for linux-arm-kernel@lists.infradead.org; Thu, 28 Dec 2023 12:58:26 +0000 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-40d5bc68bb7so18882925e9.3 for ; Thu, 28 Dec 2023 04:58:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703768303; x=1704373103; 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=T/YL/2OiXBxCX/gD6IApJPmq9GlVQJZGnRfROzab14c=; b=zJcYH3//0GO5wng9S8oK4y8+CVsdaEQrLsFv41pTtu+UDbTX2lHqsD+DPPDc0SWBFX Uj3xGSVClUh0PlQ2l/s6MLC4jXwDu23dpQVop6PacnIxYZb5HXXRzslVdv71Xi4ETNrx ddEEUi5smrJr+uINK1lsPZ7aCpOO9CbH/Pha9gJkYaieAnHvgS1zbO4R8XoNNc5xmOpb Y7X+L+LfD2vOuo7GkLcf5sCODzjPIiOMPtE4XGnXbUupvVhbV0uPIDbyVCEnKqFGZGtE TQuZ+HGcptenAsdIPYjw+PVdnmFIjLSq1XGVAZ/dNHNc2f2LXDXX3d7IxhzI/8Hhrh9i Hnxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703768303; x=1704373103; 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=T/YL/2OiXBxCX/gD6IApJPmq9GlVQJZGnRfROzab14c=; b=rHygd89q+ivG6DGg16WwK5Lb+ZrsymIE6yW3VdV/WZYYD+gpJ670hQwnJfM0rpHaXG ssjELAClOet+/4oag8uNCB1uujgjpuIxt8HJMCcq3UCvcG/Cy090qwZG6FF/qx13W8ds jp6ep1nKhs9aneDsEqSYxjx9RTYX3RNYxaRgv2Gh4hKMiM4fckamndvxg2cLlNcZ3kVF 6EICToLaBe1a1Rg7DeS4JScICWjqOmwO38btOKHp2ISuHsAbz/OEb6fgazIzroXKI7Bw j7SeCxdMYP6jZc2Z/RPuLGIO2D4sgoSpxAUXDqlO83oSz4WKY1z/iCLazXyHCnIVjHxm dvXg== X-Gm-Message-State: AOJu0YzthsTS+cDXfxHw4+5L2O5mfBAOGSvHABrGn0an5HWoDJHOvatG OYnsfDtTqmBh/bfWptIhbcCzsh8Iposnhg== X-Google-Smtp-Source: AGHT+IFFojsXoPb7K03oLgZ6jOvlLwBUwXu6zQoSVyiXDmyrmZ5YE9jkYffXSKkyFMwlzu2dsPNUsQ== X-Received: by 2002:a05:600c:4ca5:b0:40d:39cb:6af6 with SMTP id g37-20020a05600c4ca500b0040d39cb6af6mr5506215wmp.28.1703768302945; Thu, 28 Dec 2023 04:58:22 -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.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 04:58:22 -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 12/12] arm64: dts: exynos: gs101: enable eeprom on gs101-oriole Date: Thu, 28 Dec 2023 12:58:05 +0000 Message-ID: <20231228125805.661725-13-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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231228_045825_054096_82DD9A10 X-CRM114-Status: GOOD ( 10.18 ) 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 Enable the eeprom found on the battery connector. The selection of the USI protocol is done in the board dts file because the USI CONFIG register comes with a 0x0 reset value, meaning that USI8 does not have a default protocol (I2C, SPI, UART) at reset. Reviewed-by: Sam Protsenko Signed-off-by: Tudor Ambarus Reviewed-by: Peter Griffin --- v2: - move cells and pinctrls properties to dtsi - collect Sam's R-b arch/arm64/boot/dts/exynos/google/gs101-oriole.dts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts index 4a71f752200d..cb4d17339b6b 100644 --- a/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts +++ b/arch/arm64/boot/dts/exynos/google/gs101-oriole.dts @@ -63,6 +63,15 @@ &ext_200m { clock-frequency = <200000000>; }; +&hsi2c_8 { + status = "okay"; + + eeprom: eeprom@50 { + compatible = "atmel,24c08"; + reg = <0x50>; + }; +}; + &pinctrl_far_alive { key_voldown: key-voldown-pins { samsung,pins = "gpa7-3"; @@ -99,6 +108,11 @@ &usi_uart { status = "okay"; }; +&usi8 { + samsung,mode = ; + status = "okay"; +}; + &watchdog_cl0 { timeout-sec = <30>; status = "okay";