From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Google-Smtp-Source: AH8x2258IY7xiRTSzjSvXqp+JKdiGQ76LNVAeZpJrc+ugdGrOIZtVF6eHukrU+xihxyypjooYMvEzw== 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 Cc: leif.lindholm@linaro.org, joakim.bech@linaro.org, Ard Biesheuvel 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: [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: , X-List-Received-Date: Thu, 15 Feb 2018 17:15:19 -0000 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(+) 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>; + }; }; -- 2.11.0