From owner-freebsd-arm@FreeBSD.ORG Fri Jun 5 13:37:41 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 252BA89F for ; Fri, 5 Jun 2015 13:37:41 +0000 (UTC) (envelope-from jack.avenger@gmail.com) Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B3EE61F40 for ; Fri, 5 Jun 2015 13:37:40 +0000 (UTC) (envelope-from jack.avenger@gmail.com) Received: by wibdq8 with SMTP id dq8so19381179wib.1 for ; Fri, 05 Jun 2015 06:37:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=yLxuNhncSuSUICW5VVhMTDSCbmyKbtes1NX9Ot0HD34=; b=fwUxRN/pysBpcRTq6i3RfPY26U5IHBHYvLSzHaT7loGtwcoimfPioWAjChkViLzg18 l2ln1oFYZXqbPwJoX8PaBctO7FEJYv8YWjF3xO+iOkM/4m1gGSlkqB/xjWV7RA3qPUu1 V/VfUlvokMCMA7SKWJ2aP8/z+39KhZw9mbTSTmeDTbtXd/N+q1GHZrGQvMQeK6FWsqI6 x6dSvLcdpnDwFNwJ8mioZiW8AsIr3ABtCBmHB//SqhvnI/LUch/znDQ7BX0mynWZxk1H 9+NwOUrMnXdVpFURRRkyM9q25BnTQRWmoHXF4QVHfMTfMtdZkfa2QLCM42/PUTNvILMK SAGQ== MIME-Version: 1.0 X-Received: by 10.180.94.106 with SMTP id db10mr61467980wib.1.1433511459174; Fri, 05 Jun 2015 06:37:39 -0700 (PDT) Received: by 10.194.72.35 with HTTP; Fri, 5 Jun 2015 06:37:39 -0700 (PDT) Date: Fri, 5 Jun 2015 16:37:39 +0300 Message-ID: Subject: RTC I2C DS1338 on RPI-B: can't make it work. From: Jack Avenger To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2015 13:37:41 -0000 Hi! I'm trying to run DS1338 on raspberry Pi B+, but still no luck. First of all I added string "device ds133x" into kernel config. Kernel stops booting: gpiobus0: on gpio0 gpioled0: at pin(s) 16 on gpiobus0 gpioc0: on gpio0 iichb0: mem 0x205000-0x20501f irq 61 on simplebus0 iicbus0: on iichb0 ds133x_rtc0: on iicbus0 iic0: on iicbus0 iichb1: mem 0x804000-0x80401f irq 61 on simplebus0 iicbus1: on iichb1 ds133x_rtc1: on iicbus1 iic1: on iicbus1 spi0: mem 0x204000-0x20401f irq 62 on simplebus0 spibus0: on spi0 bcm_dma0: mem 0x7000-0x7fff,0xe05000-0xe05fff irq 24,25,26,27,28,29,30,31,32,33,34,35,36 on simplebus0 mbox0: mem 0xb880-0xb8bf irq 1 on simplebus0 sdhci_bcm0: mem 0x300000-0x3000ff irq 70 on simplebus0 and freeze. Trying boot -v -s: simplebus0: mem 0xb400-0xb423 irq 0 compat broadcom,bcm2835-sp804 (no driver attached) bcmwd0: mem 0x10001c-0x100027 on simplebus0 gpio0: mem 0x200000-0x2000af irq 57,59,58,60 on simplebus0 gpio0: read-only pins: 46-53. gpio0: reserved pins: 48-53. gpiobus0: on gpio0 gpioled0: at pin(s) 16 on gpiobus0 gpioc0: on gpio0 iichb0: mem 0x205000-0x20501f irq 61 on simplebus0 iicbus0: on iichb0 ds133x_rtc0: on iicbus0 ds133x_rtc0: registered as a time-of-day clock (resolution 1000000us, adjustment 0.500000000s) iic0: on iicbus0 iichb1: mem 0x804000-0x80401f irq 61 on simplebus0 iicbus1: on iichb1 ds133x_rtc1: on iicbus1 ds133x_rtc0: removed as time-of-day clock: clock ds133x_rtc has higher resolution ds133x_rtc1: registered as a time-of-day clock (resolution 1000000us, adjustment 0.500000000s) iic1: on iicbus1 spi0: mem 0x204000-0x20401f irq 62 on simplebus0 spibus0: on spi0 bcm_dma0: mem 0x7000-0x7fff,0xe05000-0xe05fff irq 24,25,26,27,28,29,30,31,32,33,34,35,36 on simplebus0 mbox0: mem 0xb880-0xb8bf irq 1 on simplebus0 sdhci_bcm0: mem 0x300000-0x3000ff irq 70 on simplebus0 Next I want tell to kernel that DS1338 is located on iic1, but can't find section for any iic bus in rpi.dts file. root@rpi-b:~ # uname -a FreeBSD rpi-b 11.0-CURRENT FreeBSD 11.0-CURRENT #4 r283577: Fri Jun 5 14:32:21 EEST 2015