From mboxrd@z Thu Jan 1 00:00:00 1970 From: swarren@wwwdotorg.org (Stephen Warren) Date: Tue, 8 Mar 2016 11:12:13 -0700 Subject: [PATCH 3/3] ARM: bcm2835: Add VC4 to the device tree. In-Reply-To: <87bn6ozw0c.fsf@eliezer.anholt.net> References: <1457123528-13482-1-git-send-email-eric@anholt.net> <1457123528-13482-4-git-send-email-eric@anholt.net> <56DE6A80.1060707@wwwdotorg.org> <87bn6ozw0c.fsf@eliezer.anholt.net> Message-ID: <56DF15FD.3090807@wwwdotorg.org> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 03/08/2016 11:04 AM, Eric Anholt wrote: > Stephen Warren writes: > >> On 03/04/2016 01:32 PM, Eric Anholt wrote: >>> VC4 is the GPU (display and 3D) present on the 283x. >> >>> diff --git a/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts b/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts >> >>> +&hdmi { >>> + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; >>> +}; >> >> Isn't that the same everywhere? If so, adding it to bcm2835-rpi.dtsi >> seems like a better idea; it'd avoid duplicating it everywhere. > > It's not the same everywhere (_HIGH vs _LOW), which is why it's in the > individual files. Oh right, it looks OK then. The series, Acked-by: Stephen Warren One could reduce the duplication by moving the common block into the common .dtsi file, but using a board-defined #define for the polarity: bcm2835-rpi-a-plus.dts: #define RPI_HDMI_HPD_POLARITY #include "bcm2835-rpi.dtsi" bcm2835-rpi.dtsi: &hdmi { hpd-gpios = <&gpio 46 RPI_HDMI_HPD_POLARITY>; }; ... although this case is so tiny I'm not sure there's any benefit trying to unify it like that right now. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Warren Subject: Re: [PATCH 3/3] ARM: bcm2835: Add VC4 to the device tree. Date: Tue, 8 Mar 2016 11:12:13 -0700 Message-ID: <56DF15FD.3090807@wwwdotorg.org> References: <1457123528-13482-1-git-send-email-eric@anholt.net> <1457123528-13482-4-git-send-email-eric@anholt.net> <56DE6A80.1060707@wwwdotorg.org> <87bn6ozw0c.fsf@eliezer.anholt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <87bn6ozw0c.fsf-omZaPlIz5HhaEpDpdNBo/KxOck334EZe@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Eric Anholt Cc: linux-rpi-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Lee Jones , Florian Fainelli , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, David Airlie List-Id: devicetree@vger.kernel.org On 03/08/2016 11:04 AM, Eric Anholt wrote: > Stephen Warren writes: > >> On 03/04/2016 01:32 PM, Eric Anholt wrote: >>> VC4 is the GPU (display and 3D) present on the 283x. >> >>> diff --git a/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts b/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts >> >>> +&hdmi { >>> + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; >>> +}; >> >> Isn't that the same everywhere? If so, adding it to bcm2835-rpi.dtsi >> seems like a better idea; it'd avoid duplicating it everywhere. > > It's not the same everywhere (_HIGH vs _LOW), which is why it's in the > individual files. Oh right, it looks OK then. The series, Acked-by: Stephen Warren One could reduce the duplication by moving the common block into the common .dtsi file, but using a board-defined #define for the polarity: bcm2835-rpi-a-plus.dts: #define RPI_HDMI_HPD_POLARITY #include "bcm2835-rpi.dtsi" bcm2835-rpi.dtsi: &hdmi { hpd-gpios = <&gpio 46 RPI_HDMI_HPD_POLARITY>; }; ... although this case is so tiny I'm not sure there's any benefit trying to unify it like that right now. -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751200AbcCHSMY (ORCPT ); Tue, 8 Mar 2016 13:12:24 -0500 Received: from avon.wwwdotorg.org ([70.85.31.133]:40094 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750898AbcCHSMQ (ORCPT ); Tue, 8 Mar 2016 13:12:16 -0500 Subject: Re: [PATCH 3/3] ARM: bcm2835: Add VC4 to the device tree. To: Eric Anholt References: <1457123528-13482-1-git-send-email-eric@anholt.net> <1457123528-13482-4-git-send-email-eric@anholt.net> <56DE6A80.1060707@wwwdotorg.org> <87bn6ozw0c.fsf@eliezer.anholt.net> Cc: linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Lee Jones , Florian Fainelli , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, David Airlie From: Stephen Warren Message-ID: <56DF15FD.3090807@wwwdotorg.org> Date: Tue, 8 Mar 2016 11:12:13 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <87bn6ozw0c.fsf@eliezer.anholt.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/08/2016 11:04 AM, Eric Anholt wrote: > Stephen Warren writes: > >> On 03/04/2016 01:32 PM, Eric Anholt wrote: >>> VC4 is the GPU (display and 3D) present on the 283x. >> >>> diff --git a/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts b/arch/arm/boot/dts/bcm2835-rpi-a-plus.dts >> >>> +&hdmi { >>> + hpd-gpios = <&gpio 46 GPIO_ACTIVE_LOW>; >>> +}; >> >> Isn't that the same everywhere? If so, adding it to bcm2835-rpi.dtsi >> seems like a better idea; it'd avoid duplicating it everywhere. > > It's not the same everywhere (_HIGH vs _LOW), which is why it's in the > individual files. Oh right, it looks OK then. The series, Acked-by: Stephen Warren One could reduce the duplication by moving the common block into the common .dtsi file, but using a board-defined #define for the polarity: bcm2835-rpi-a-plus.dts: #define RPI_HDMI_HPD_POLARITY #include "bcm2835-rpi.dtsi" bcm2835-rpi.dtsi: &hdmi { hpd-gpios = <&gpio 46 RPI_HDMI_HPD_POLARITY>; }; ... although this case is so tiny I'm not sure there's any benefit trying to unify it like that right now.