Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp60750lqi; Wed, 6 Mar 2024 10:02:28 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXLpKpJ4Wt6OBJN4E42In2c69SGvC+DzxUB5w8rmmn1ziF2brZDApeTfPMqfSCfiv1kI3oliVAevbVq1X2htGk3jRlYIXq8xAQAJGaTBA== X-Google-Smtp-Source: AGHT+IH/LGw+CeyEGIb+csQYL9meCz36ZLCd3IZJ+RPHjds2MASY4aeZDxnIzto49MKDn48D63/2 X-Received: by 2002:a05:620a:1a88:b0:788:4505:bee3 with SMTP id bl8-20020a05620a1a8800b007884505bee3mr109035qkb.38.1709748148367; Wed, 06 Mar 2024 10:02:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709748148; cv=pass; d=google.com; s=arc-20160816; b=JdQyfL24YRkUj9zX2szMVTaDEYgwuOh8p4+F1T1r0uAS2/5F992qhsVMnITEs0TfYK IaQKcHjj9x9IA7ZUmsNHv7E8Brwkts30kXq7yVV169WLMfjpZ1iwTlESZK5dhS7iOmpG bF9DwostiXcvDSHkarxjHHggLvG05JWtabk18n/ZZzhOk1guY+LSzbHQBvvLQGmcWM7R L/uxIIsXAiRrAeWqPB2TaP7ZIyZlAAhNIdEiQRo7RjWtwxnevBHKxsfnxZNhv2vE+Jzr T5BE5O454rKikgHjjrrkvBxuG+2RvAGV8iut05NX59F12CUdXG9lkiZSf7WRMIXIqt6M 5IMg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=40IK1rIa0NCsanKJIItd4Iag1sxSHlN8ItGNUBkuB1c=; fh=5JSnMO1qLgeVtLVJilSQcFnAcZn2MWLSM3RnsAdOnEU=; b=zQU7uToAVaqfn7auD8ofVrviGMNr5mstU22dsVthUHT0s0/strxL/u6zdZMFkWgUOT YsxDTWZ8HdFObL3QJDjN/+rHXzkF7Pe2Ed7xUb41yMqIi4nQxj3SCJ8rbMuwJ/75KP5N Ruw+USgR9elb4FARDfUVCc6ici2m5hCQdAeCJjd/JQv5yatosZrizlioMwoHCLPDlFZo OkW2N2lFdt4Eouk67RKhJdlXNFKbsGUj8AERjD2X49qJpInv10VoBQY3pa5S00BtxkfQ Dc5WmDCw4D9NVCOsWz9kjHCEfOUIacjBe1d8ZGwlBuATLvrkYj2zcj/yxiBrpn2pp03V MOqA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=mqPB3YpA; 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-94363-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94363-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id bk13-20020a05620a1a0d00b00787e0068f98si17010361qkb.311.2024.03.06.10.02.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 10:02:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94363-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=mqPB3YpA; 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-94363-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94363-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E6D901C233CB for ; Wed, 6 Mar 2024 18:00:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64666142634; Wed, 6 Mar 2024 17:59:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="mqPB3YpA" Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [217.70.183.194]) (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 6C2DE1361C1; Wed, 6 Mar 2024 17:59:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709747975; cv=none; b=fRsW4Ft+ym+UrYri6+CufcyGzqt6epASpyOuspWHqd8y6rGGqp259jw8M03TH4J4Wzqn1gd1zAS7q186UpeiCEiQ+WNz0Yfj2bNuCOzBMtuLV6xjOPe4gQFHU/jbMpalOsQjuf1awb2MgOKSMpFavIOk1d5ysCvA93KWC2Ukj/Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709747975; c=relaxed/simple; bh=db/EhOo99keFp7glvvPrWzruTiq2FzpZdxxWEEzc3Xw=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=e/JJDiEhnkuvI7J8OgpWs3pQlAEmFMZl4jm3rFKheHfSLBA6qod2x1U1vprpyWyDPK7PkTAk8QQ3LpBHcxbnuzjQY/drwYWYk8NtaoSjMi5ubRmyysXaZRBvwpWuAOYh1yZzXUOgJ/lSe3YmOH2Z67puy0AaCmYVIp70TJrLjfM= 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=mqPB3YpA; arc=none smtp.client-ip=217.70.183.194 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 3BB4F40007; Wed, 6 Mar 2024 17:59:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1709747963; 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: in-reply-to:in-reply-to:references:references; bh=40IK1rIa0NCsanKJIItd4Iag1sxSHlN8ItGNUBkuB1c=; b=mqPB3YpAemlMQxiVfvmr6lvD+gYCHUvoXOf5+p/AhmQ9K+wtnWE8gGYsspwKVyl2+r/2Yf /COgKEpiKlIAqykj1/ErDrv57lEfxsDWovDOcEPxzwYgrAwtrjaj7M3SreO9CellKj0/WA Qxdw8OhTdZjNT31QvjAjhqpoD4JwwIopES8iLTu3jRgUioaXYYGBRd1kP1b3H67HOq4tLU bfb5F6JHrDNAqmPcBkqISq4K6aDHJnzAiBwZtA9w5GFNCicQBuduqhFUE4uJGYRm6euRPE ls+Dx0NDunKhop8pmMtXUy5SrMK5Bzh6wmYxIapTGwyMKFd37MRWhJ1SttL2Lw== From: =?utf-8?q?Th=C3=A9o_Lebrun?= Date: Wed, 06 Mar 2024 18:59:21 +0100 Subject: [PATCH v3 01/11] dt-bindings: i2c: nomadik: add mobileye,eyeq5-i2c bindings and example 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: 8bit Message-Id: <20240306-mbly-i2c-v3-1-605f866aa4ec@bootlin.com> References: <20240306-mbly-i2c-v3-0-605f866aa4ec@bootlin.com> In-Reply-To: <20240306-mbly-i2c-v3-0-605f866aa4ec@bootlin.com> To: Linus Walleij , Andi Shyti , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Thomas Bogendoerfer Cc: linux-arm-kernel@lists.infradead.org, linux-i2c@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Gregory Clement , Vladimir Kondratiev , Thomas Petazzoni , Tawfik Bayouk , =?utf-8?q?Th=C3=A9o_Lebrun?= X-Mailer: b4 0.13.0 X-GND-Sasl: theo.lebrun@bootlin.com Add EyeQ5 bindings to the existing Nomadik I2C dt-bindings. Add the EyeQ5-specific property behind a conditional. Add an example for this compatible. Signed-off-by: Théo Lebrun --- .../devicetree/bindings/i2c/st,nomadik-i2c.yaml | 49 +++++++++++++++++++--- 1 file changed, 43 insertions(+), 6 deletions(-) diff --git a/Documentation/devicetree/bindings/i2c/st,nomadik-i2c.yaml b/Documentation/devicetree/bindings/i2c/st,nomadik-i2c.yaml index 16024415a4a7..44c54b162bb1 100644 --- a/Documentation/devicetree/bindings/i2c/st,nomadik-i2c.yaml +++ b/Documentation/devicetree/bindings/i2c/st,nomadik-i2c.yaml @@ -14,9 +14,6 @@ description: The Nomadik I2C host controller began its life in the ST maintainers: - Linus Walleij -allOf: - - $ref: /schemas/i2c/i2c-controller.yaml# - # Need a custom select here or 'arm,primecell' will match on lots of nodes select: properties: @@ -24,21 +21,23 @@ select: contains: enum: - st,nomadik-i2c + - mobileye,eyeq5-i2c required: - compatible properties: compatible: oneOf: - # The variant found in STn8815 - items: - const: st,nomadik-i2c - const: arm,primecell - # The variant found in DB8500 - items: - const: stericsson,db8500-i2c - const: st,nomadik-i2c - const: arm,primecell + - items: + - const: mobileye,eyeq5-i2c + - const: arm,primecell reg: maxItems: 1 @@ -55,7 +54,7 @@ properties: - items: - const: mclk - const: apb_pclk - # Clock name in DB8500 + # Clock name in DB8500 or EyeQ5 - items: - const: i2cclk - const: apb_pclk @@ -70,6 +69,16 @@ properties: minimum: 1 maximum: 400000 + mobileye,olb: + $ref: /schemas/types.yaml#/definitions/phandle-array + items: + - items: + - description: Phandle to OLB system controller node. + - description: Platform-wide controller ID (integer starting from zero). + description: + The phandle pointing to OLB system controller node, with the I2C + controller index. + required: - compatible - reg @@ -79,6 +88,20 @@ required: unevaluatedProperties: false +allOf: + - $ref: /schemas/i2c/i2c-controller.yaml# + - if: + properties: + compatible: + contains: + const: mobileye,eyeq5-i2c + then: + required: + - mobileye,olb + else: + properties: + mobileye,olb: false + examples: - | #include @@ -111,5 +134,19 @@ examples: clocks = <&i2c0clk>, <&pclki2c0>; clock-names = "mclk", "apb_pclk"; }; + - | + #include + i2c@300000 { + compatible = "mobileye,eyeq5-i2c", "arm,primecell"; + reg = <0x300000 0x1000>; + interrupt-parent = <&gic>; + interrupts = ; + clock-frequency = <400000>; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&i2c_ser_clk>, <&i2c_clk>; + clock-names = "i2cclk", "apb_pclk"; + mobileye,olb = <&olb 0>; + }; ... -- 2.44.0