From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mundt Date: Tue, 25 Jan 2011 06:49:49 +0000 Subject: Re: [PATCH 4/4 v5] powerpc, video: add SM501 support for charon board. Message-Id: <20110125064949.GF11673@linux-sh.org> List-Id: References: <1291451028-22532-2-git-send-email-hs@denx.de> <1295937946-26934-1-git-send-email-hs@denx.de> In-Reply-To: <1295937946-26934-1-git-send-email-hs-ynQEQJNshbs@public.gmane.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Heiko Schocher Cc: linux-fbdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org, Samuel Ortiz , Vincent Sanders , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Ben Dooks , linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org On Tue, Jan 25, 2011 at 07:45:46AM +0100, Heiko Schocher wrote: > @@ -197,6 +198,15 @@ > #address-cells = <1>; > }; > > + display@1,0 { > + compatible = "smi,sm501"; > + reg = <1 0x00000000 0x00800000 > + 1 0x03e00000 0x00200000>; > + mode = "640x480-32@60"; > + interrupts = <1 1 3>; > + little-endian; > + }; > + The endian designation looks good, but it still doesn't explain why you have a remaining CONFIG_PPC_MPC52xx ifdef encapsulating the property check in the sm501fb patch. It shouldn't be needed at all. If the platform supports OF then the property will need to be set one way or the other, so there is no need for any board or CPU ifdeffery within the driver itself. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from master.linux-sh.org (124x34x33x190.ap124.ftth.ucom.ne.jp [124.34.33.190]) by ozlabs.org (Postfix) with ESMTP id 6CFCF1007D3 for ; Tue, 25 Jan 2011 17:49:57 +1100 (EST) Date: Tue, 25 Jan 2011 15:49:49 +0900 From: Paul Mundt To: Heiko Schocher Subject: Re: [PATCH 4/4 v5] powerpc, video: add SM501 support for charon board. Message-ID: <20110125064949.GF11673@linux-sh.org> References: <1291451028-22532-2-git-send-email-hs@denx.de> <1295937946-26934-1-git-send-email-hs@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1295937946-26934-1-git-send-email-hs@denx.de> Cc: linux-fbdev@vger.kernel.org, devicetree-discuss@ozlabs.org, Samuel Ortiz , Vincent Sanders , linux-kernel@vger.kernel.org, Ben Dooks , linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Jan 25, 2011 at 07:45:46AM +0100, Heiko Schocher wrote: > @@ -197,6 +198,15 @@ > #address-cells = <1>; > }; > > + display@1,0 { > + compatible = "smi,sm501"; > + reg = <1 0x00000000 0x00800000 > + 1 0x03e00000 0x00200000>; > + mode = "640x480-32@60"; > + interrupts = <1 1 3>; > + little-endian; > + }; > + The endian designation looks good, but it still doesn't explain why you have a remaining CONFIG_PPC_MPC52xx ifdef encapsulating the property check in the sm501fb patch. It shouldn't be needed at all. If the platform supports OF then the property will need to be set one way or the other, so there is no need for any board or CPU ifdeffery within the driver itself. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752337Ab1AYGt6 (ORCPT ); Tue, 25 Jan 2011 01:49:58 -0500 Received: from 124x34x33x190.ap124.ftth.ucom.ne.jp ([124.34.33.190]:34981 "EHLO master.linux-sh.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751355Ab1AYGt5 (ORCPT ); Tue, 25 Jan 2011 01:49:57 -0500 Date: Tue, 25 Jan 2011 15:49:49 +0900 From: Paul Mundt To: Heiko Schocher Cc: linuxppc-dev@lists.ozlabs.org, linux-fbdev@vger.kernel.org, devicetree-discuss@ozlabs.org, Ben Dooks , Vincent Sanders , Samuel Ortiz , linux-kernel@vger.kernel.org Subject: Re: [PATCH 4/4 v5] powerpc, video: add SM501 support for charon board. Message-ID: <20110125064949.GF11673@linux-sh.org> References: <1291451028-22532-2-git-send-email-hs@denx.de> <1295937946-26934-1-git-send-email-hs@denx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1295937946-26934-1-git-send-email-hs@denx.de> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 25, 2011 at 07:45:46AM +0100, Heiko Schocher wrote: > @@ -197,6 +198,15 @@ > #address-cells = <1>; > }; > > + display@1,0 { > + compatible = "smi,sm501"; > + reg = <1 0x00000000 0x00800000 > + 1 0x03e00000 0x00200000>; > + mode = "640x480-32@60"; > + interrupts = <1 1 3>; > + little-endian; > + }; > + The endian designation looks good, but it still doesn't explain why you have a remaining CONFIG_PPC_MPC52xx ifdef encapsulating the property check in the sm501fb patch. It shouldn't be needed at all. If the platform supports OF then the property will need to be set one way or the other, so there is no need for any board or CPU ifdeffery within the driver itself. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mundt Subject: Re: [PATCH 4/4 v5] powerpc, video: add SM501 support for charon board. Date: Tue, 25 Jan 2011 15:49:49 +0900 Message-ID: <20110125064949.GF11673@linux-sh.org> References: <1291451028-22532-2-git-send-email-hs@denx.de> <1295937946-26934-1-git-send-email-hs@denx.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1295937946-26934-1-git-send-email-hs-ynQEQJNshbs@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: Heiko Schocher Cc: linux-fbdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org, Samuel Ortiz , Vincent Sanders , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Ben Dooks , linuxppc-dev-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: devicetree@vger.kernel.org On Tue, Jan 25, 2011 at 07:45:46AM +0100, Heiko Schocher wrote: > @@ -197,6 +198,15 @@ > #address-cells = <1>; > }; > > + display@1,0 { > + compatible = "smi,sm501"; > + reg = <1 0x00000000 0x00800000 > + 1 0x03e00000 0x00200000>; > + mode = "640x480-32@60"; > + interrupts = <1 1 3>; > + little-endian; > + }; > + The endian designation looks good, but it still doesn't explain why you have a remaining CONFIG_PPC_MPC52xx ifdef encapsulating the property check in the sm501fb patch. It shouldn't be needed at all. If the platform supports OF then the property will need to be set one way or the other, so there is no need for any board or CPU ifdeffery within the driver itself.