From patchwork Thu Feb 15 17:20:51 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 128486 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp1984685ljc; Thu, 15 Feb 2018 09:21:16 -0800 (PST) X-Google-Smtp-Source: AH8x226/6lXzOSB2+ZPoq+MurRT5v93QKyuDIUPxe4oTVofSGZIlMI19/qy09Kz2LnGMwGh1xqfK X-Received: by 2002:a17:902:2f84:: with SMTP id t4-v6mr3045535plb.81.1518715276426; Thu, 15 Feb 2018 09:21:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518715276; cv=none; d=google.com; s=arc-20160816; b=TK7m+V9cWqzRyJYZ91YjcHME+xeei0imD+4CH2tTMSjZKfOVdG7hR0XAbFax3RiePP jPegpp9Y7BgC2EC9VgBdzLW7rmNQC4LLm4/jw7qGVynWT6vBasJeJg+Ts0Ah5jFUN/h8 FsSc/h/R5KZLsGpw1g4wshaSvIKh9dRtXB8/R1hSSCQaJVVA7GfHus8g6yOP6JL5svNi ALB9VNtns+Vx8RCs8UjrvFsvsf9HvhkWZ2PA3zzIJrl8V8Uy/WzShcWCx8wSEx3hqE4t KUMu+SddKaoCGwgh6khUOV/JvVE3dHjaXUaaCvb5pED2Ro+m59UruyiCPkGju8i4U0AG cZhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to:arc-authentication-results; bh=QwO50bv1DS1njrCWZ4FGzM9/xt/S+QRg7lHmIu+9PkY=; b=V/kud3TkThDMn0IQaeIPU2ENR35CP4Qn+uKc8JRYIvZXIByj6s0PKHtl9SrcJM8ZyF KheOqSCpHlRYCgvrki+9wbw8DTIbrfF1K0+ZuaSNbryeDdN5XOg3nRaMeWBJ1Rp4h2MM ToNyi5VX9YeSO3vMD+qp+q/hllPlWV8dZ9qslC1UgTO07lajQSgu3MZ1Q4UxIN5bPao9 MLHd2RhUhbv3zd0OzuDs7feyjLAqKVy7cSVeJW4JW7pBH4oNTcXxEHSiw7pB8dZd3xBm 4rxsDH6RlG35s4LM6wVRbYnOOZhYLWs3GZi6B3MowpdvTNYtuBNDsL51u9iktzXZXea9 N10Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TWKaYnmm; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id i70si299026pgc.264.2018.02.15.09.21.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 09:21:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=TWKaYnmm; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id D276321CF1D1C; Thu, 15 Feb 2018 09:15:22 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:400c:c09::241; helo=mail-wm0-x241.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id AC7AD220F33C5 for ; Thu, 15 Feb 2018 09:15:18 -0800 (PST) Received: by mail-wm0-x241.google.com with SMTP id r71so2252772wmd.1 for ; Thu, 15 Feb 2018 09:21:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=75D+OrMbvGCO9ZMwrXpum6Lo927/mMGz7MgX9hKvWII=; b=TWKaYnmmRAIuUZOCw8p8sRC41BR9OeIuNjTgFBu69L/XIqqJYRAG0D+62O/k/7SHbL l5kHqiFZzvTy+V08Noryc5dUarhteyLlSzj/jhXZxWe39G1qQjr9lgJv8FbflyT+5dSV Ha2oV+DVqKl2CVxLHlbdeO7Drlnaw4RRlGzqg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=75D+OrMbvGCO9ZMwrXpum6Lo927/mMGz7MgX9hKvWII=; b=opCf6Ve4ceedWH7ybtMZPwyL9hYivx79pVZ9x8rbbm9pAnlyPn3hfr587adgIwbbaN zFTGv/+hK2klc4x30GkCKuK3IDoun71PxYdOH1JQcNWf2/w3qK7lev5pND0EyG+v3CUm ltq4lZomnaTjdVA91LWSYYWDkFAAaXJmVXj01WzABPNBnnOMB0Lo/0IjfnveY24DeA9u WwCB3ZZcJdELhoBMxMoQdbB3UBYl4NxbaNZqYi/3lbB/o8a8WveDxo2SfE89NZJ+8Dqu eLXYE2dCfTbBVaR6HMtA4vWTze6JecNg8ixJXMU528ruCU8dJp2qVc+QCBTNu3E7Pjnm dMiQ== X-Gm-Message-State: APf1xPAE9Jb0qwS5OP3cwfEG6krQHu9JbWERQ5gef9O+143pv7I2gh4n Sv+lzpHBs3mulTrMN7iRyp670r9KFGg= X-Received: by 10.28.14.134 with SMTP id 128mr2938526wmo.2.1518715269946; Thu, 15 Feb 2018 09:21:09 -0800 (PST) Received: from localhost.localdomain ([154.145.114.50]) by smtp.gmail.com with ESMTPSA id j125sm14142363wmd.19.2018.02.15.09.21.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Feb 2018 09:21:08 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Thu, 15 Feb 2018 17:20:51 +0000 Message-Id: <20180215172054.27452-3-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180215172054.27452-1-ard.biesheuvel@linaro.org> References: <20180215172054.27452-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH edk2-platforms 2/5] Silicon/SynQuaver/DeviceTree: add node for I2C controller X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: joakim.bech@linaro.org, leif.lindholm@linaro.org, Ard Biesheuvel MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" Add a node for the I2C controller #1 to the device tree so the OS may attach to it. This is the I2C controller that is attached to the 96boards mezzanine connector on Developer Box. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- Silicon/Socionext/SynQuacer/DeviceTree/SynQuacer.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) -- 2.11.0 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel diff --git a/Silicon/Socionext/SynQuacer/DeviceTree/SynQuacer.dtsi b/Silicon/Socionext/SynQuacer/DeviceTree/SynQuacer.dtsi index ba445a50f16f..9ec752956d05 100644 --- a/Silicon/Socionext/SynQuacer/DeviceTree/SynQuacer.dtsi +++ b/Silicon/Socionext/SynQuacer/DeviceTree/SynQuacer.dtsi @@ -556,4 +556,22 @@ #address-cells = <1>; #size-cells = <0>; }; + + clk_i2c: i2c_pclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <62500000>; + clock-output-names = "pclk"; + }; + + i2c: i2c@51210000 { + compatible = "socionext,synquacer-i2c"; + reg = <0x0 0x51210000 0x0 0x1000>; + interrupts = ; + clocks = <&clk_i2c>; + clock-names = "pclk"; + clock-frequency = <400>; + #address-cells = <1>; + #size-cells = <0>; + }; };