Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp811101lqo; Fri, 17 May 2024 02:11:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXljQnTmnwK/RV/87YQ6s6zWa9BZhC2yAnMMIGTK/IgPV23a+zbyrkVmpEuye3MxIPPkFqFHni9vlwDyOj/jVWC9BArJ5bMyJal6uJxkw== X-Google-Smtp-Source: AGHT+IG780rvqK49K707cg6Gy77yS+96/01e/PuxObF6i9+9C0wapIxGjaPKQAtMlopH/J9CKt2B X-Received: by 2002:a17:902:d490:b0:1e7:d482:9e09 with SMTP id d9443c01a7336-1ef43d0a022mr246334665ad.7.1715937062962; Fri, 17 May 2024 02:11:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715937062; cv=pass; d=google.com; s=arc-20160816; b=uMi1xvXSFdgYbJ59qIZ8aMm+VaAZYScnp8YlQ8kuYbYWu3Wdv62mec7aom0k7Dxcav RM/kzNBfhi4xAbFB8jGiOcWVTgRfHcKuxExbvrSW1ctJc3XaSd0fITLL69tgXrJIEm5H +1bAY0oa5RqvEwxdpWdUdgbeFTiedp63kirDJPyYqKjYNJkucdXKc6nLIwlsVPsN/tDC fInEuoCl8mIGl57Ei2LTedGiuJOmr9o1O4OZcSwXDMwkAR97LzeJLtOO0WHUMtIuj4ui V7oYT13+TZIqXMASQG4WtrGuI7GXKmpNr4VAbDzFzMGNNKrvIszYR01UVkDPuo38X69X xd9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=E9YI5IhJQd+9CPiNZ2Juj0hyKn1eM6koEnskZ7nXuGk=; fh=hGynCpO8BgwD6sxeeFTaU2YJRakK2Xsqmi16sdRz/oI=; b=ALAWkrQBsl7KvtY72gqFKqvI0s1iuK1Qyp82UIR3erWub8fdM+oThZ4QZgO/5xnUWY ovAqyrVB7nMSabXtBFswX95j3vV6kkvq6GK89eQOVh416JpsEVkEOE14/qglYme9dH2m /a4OrxzIXL9Ir/b5gl+CLuznqiP93e86ZMbIxtmD541t+D7zLUsYYpspBmu7EI3E+FAs tQCozrXxj36e2euXKf/v307BZq3BZyG119HCQk6NzqPHXkYTGVlvUqAr48N1nVUARQoa jzsCNIi7Hyf5g+YbkS1WIQSUGLEHPQrs+N4vbk09O6JeCi1lii2FcGzEvIIP3g3a127Y f08w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Z3XVq7HT; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-181900-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181900-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f082b77248si79410975ad.296.2024.05.17.02.11.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 02:11:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-181900-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=Z3XVq7HT; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-181900-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-181900-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6A9F0B21F02 for ; Fri, 17 May 2024 09:10:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DACB4200CD; Fri, 17 May 2024 09:10:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="Z3XVq7HT" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A33541EB26; Fri, 17 May 2024 09:10:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715937023; cv=none; b=V5LYY2u3rCLUGvZB7p9vIe07xbp57IvujZlk8ZG4V5K0p0M5QA1G/0WYDqjkXV8LEv08RV4gmsX2p67RGYEY4Ay2Bq+iTVqQ+YW3TdEpBONZ/I2Y1GCv6kNFF7XJ0oL5wxoQ+yUz+TjhpHXx16btiHpToHXmYz9xJSlom0SfBNo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715937023; c=relaxed/simple; bh=BMycXKMVC3HpLwk8KGm1ckRBUv6vbXZF1bf3OI+h9x0=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=ubj3HNy/Kwwsmg+b/qsgOzoQt0z79rYyQ13UksqNBjzb+UEMWRV8eBLaRJSZPs1JzAdw+yqOww6uUFQiJoMix2C2G91wAtCLzVUiGQGVtYcIX2xOvwbeiPsitIjIomhItuTW4/ZzdgJNeaCUFHwAlLwYt/KBudXPWDtnjxu6Dfw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=Z3XVq7HT; arc=none smtp.client-ip=217.70.183.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 2A19320003; Fri, 17 May 2024 09:10:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1715937013; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=E9YI5IhJQd+9CPiNZ2Juj0hyKn1eM6koEnskZ7nXuGk=; b=Z3XVq7HTZDQDQNn5t+fzpekKxhSYeQR0NMJsT0E7v0NazyG3Hhd6Ij3FodPhpxYXezfIJR 2iP1ZwBWYEj0iyUI8ijZEwnm48MU51UBF03xMCZoYiUDom7zrRfo1hVhg5btwgXAtzgOhI pmN/L9ci8XIRqwztOOBo8FPD9KAh0SSVD8rK6Nx83JFtMi4WwT1BPClN9Ns8R3uxdmfVG+ X3o+kD1tMz9+rUJuLHDj7wDntCwSCawoO0D58y5bLO4+5lUT/mj40cIaUkmxMke2JovFD+ G8vxkgmp4Wo1KEBaFpH+hY33JP/IK31HHo6WnSDonQ7Us7wvzslv4xCJG3adXw== From: Thomas Bonnefille Subject: [PATCH v2 0/3] Add I2C support on TH1520 Date: Fri, 17 May 2024 11:09:52 +0200 Message-Id: <20240517-i2c-th1520-v2-0-d364d135ccc6@bootlin.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAOAeR2YC/1XMQQ7CIBCF4as0sxYDI6TElfcwXRRKZRIFA4RoG u4u1pXL/yXv2yC7RC7DedgguUqZYuiBhwGsn8PNMVp6A3KUXKJihJYVLxRyttqTdWLWRo4I/fB MbqXXjl2n3p5yiem92xW/649R4o+pyDgzRokF9agk1xcTY7lTONr4gKm19gGCJDUwpgAAAA== To: Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jisheng Zhang , Guo Ren , Fu Wei , Drew Fustini , Emil Renner Berthing , Conor Dooley Cc: Palmer Dabbelt , Albert Ou , Paul Walmsley , Thomas Petazzoni , =?utf-8?q?Miqu=C3=A8l_Raynal?= , linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Thomas Bonnefille X-Mailer: b4 0.13.0 X-GND-Sasl: thomas.bonnefille@bootlin.com This adds I2C support in the device tree of the T-Head TH1520 RISCV-SoC and a default configuration for the BeagleV-Ahead. It appears that the TH1520 I2C is already supported in the upstream kernel through the Synopsis Designware I2C adapter driver. This patch depends on the clock patch from Drew Fustini Link: https://lore.kernel.org/linux-riscv/20240426-th1520-clk-v2-v2-0-96b829e6fcee@tenstorrent.com and the pinctrl patch from Emil Renner Berthing Link: https://lore.kernel.org/linux-riscv/20240103132852.298964-1-emil.renner.berthing@canonical.com Changed from v1: 1. Remove redundant example for Synopsis DesignWare-I2C bindings 2. Remove Node Ordering commit as it has already been taken 3. Remove EEPROM label 4. Rebase on pinctrl and clock driver patches 5. Add pinctrl configuration 6. Replaced the fixed-clock with a correct configuration Signed-off-by: Thomas Bonnefille --- Thomas Bonnefille (3): dt-bindings: i2c: dw: Document compatible thead,th1520-i2c riscv: dts: thead: Add TH1520 I2C nodes riscv: dts: thead: Enable I2C on the BeagleV-Ahead .../bindings/i2c/snps,designware-i2c.yaml | 4 ++ arch/riscv/boot/dts/thead/th1520-beaglev-ahead.dts | 84 ++++++++++++++++++++++ arch/riscv/boot/dts/thead/th1520.dtsi | 50 +++++++++++++ 3 files changed, 138 insertions(+) --- base-commit: e1fb0b71c746f863fa49ff359d58c949538ce181 change-id: 20240425-i2c-th1520-fc3ce1a8b472 Best regards, -- Thomas Bonnefille