From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp142.mail.ukl.yahoo.com (smtp142.mail.ukl.yahoo.com [77.238.184.73]) by ozlabs.org (Postfix) with SMTP id 1D3F61007D3 for ; Thu, 26 Nov 2009 05:09:45 +1100 (EST) Message-ID: <4B0D72E2.5010108@yahoo.es> Date: Wed, 25 Nov 2009 19:09:38 +0100 From: Albert Herranz MIME-Version: 1.0 To: Segher Boessenkool Subject: Re: [RFC PATCH 04/19] powerpc: wii: device tree References: <1258927311-4340-1-git-send-email-albert_herranz@yahoo.es> <1258927311-4340-2-git-send-email-albert_herranz@yahoo.es> <1258927311-4340-3-git-send-email-albert_herranz@yahoo.es> <1258927311-4340-4-git-send-email-albert_herranz@yahoo.es> <1258927311-4340-5-git-send-email-albert_herranz@yahoo.es> <4B0AE865.4030502@yahoo.es> <49404.84.105.60.153.1259168264.squirrel@gate.crashing.org> In-Reply-To: <49404.84.105.60.153.1259168264.squirrel@gate.crashing.org> Content-Type: text/plain; charset=ISO-8859-1 Cc: linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Segher Boessenkool wrote: >>>> + i2c-video { >>>> + #address-cells = <1>; >>>> + #size-cells = <0>; >>>> + compatible = "virtual,i2c-gpio"; >>> There isn't a documented binding for this. Is there a driver for it? >>> >> I have a driver for it. But it isn't yet published. > > I bet there already is a generic IIC-via-GPIOs driver that > you could use. > Yes, there is a platform driver for that. I picked that, extracted the common code into a common file, converted the existing driver to use the common code, then created a new one for platform bindings using the common code again. (Then added gpio_direction_is_output() to gpiolib and sda_enforce_dir() to i2c-gpio). Thanks, Albert