Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753869AbbBQWzA (ORCPT ); Tue, 17 Feb 2015 17:55:00 -0500 Received: from mail-lb0-f175.google.com ([209.85.217.175]:41510 "EHLO mail-lb0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753603AbbBQWy6 (ORCPT ); Tue, 17 Feb 2015 17:54:58 -0500 MIME-Version: 1.0 In-Reply-To: References: <1423657572-22299-1-git-send-email-ricardo.ribalda@gmail.com> From: Ricardo Ribalda Delgado Date: Tue, 17 Feb 2015 23:54:35 +0100 Message-ID: Subject: Re: [PATCH] led/led-class: Handle LEDs with the same name To: Bryan Wu Cc: Richard Purdie , Linux LED Subsystem , lkml Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1883 Lines: 82 Hello Bryan On Tue, Feb 17, 2015 at 11:34 PM, Bryan Wu wrote: > > Can you show me your device tree code for overlaying describing a camera? > The camera is composed by fpga modules. The fpga is attached via pcie to the host. The whole dt would be too long. Here you can see the relevant parts &axi1 { packer_0: packer_0{ #address-cells = <1>; #size-cells = <1>; compatible = "qtec,axi_matrix_packer-1.00.a"; reg = < 0x30060000 0x10000 >; qtec,serial_number = "Invalid Head Serial Number"; qtec,bitstream_version = < 0 >; qtec,head_i2c_address = < 0 >; qtec,cdma = <&cdma_0>; qtec,desc_mem= <&cdma_desc_mem>; qtec,pcie_bridge= <&pcie_bridge_0>; qtec,aperture-addr= < 0 4 >; qtec,circular_buffer= <&video_mem>; qtec,white_balance= <&white_0>; qtec,sensor = <&ccd_fg_0>; qtec,pll = < &pll_0 >; qtec,xform = <&xform_0>; qtec,testgen = <&testgen_0>; qtec,encoder = <&encoder_0>; interrupt-parent = <&xps_intc_0>; interrupts = < 5 2 >; }; gpio_0: gpio_0 { #gpio-cells = <2>; compatible = "xlnx,xps-gpio-1.00.a"; reg = < 0x30040000 010000 >; xlnx,dout-default = < 0xffffffff >; xlnx,tri-default = < 0xfffffff8 >; xlnx,gpio-width = < 5 >; }; /*Leds*/ leds { reg = < 0x30040000 010000 >; compatible = "gpio-leds"; red { gpios = <&gpio_0 0 0>; linux,default-trigger = "drop-qt5023_video0"; }; yellow { gpios = <&gpio_0 1 0>; linux,default-trigger = "packer-qt5023_video0"; }; green { gpios = <&gpio_0 2 0>; linux,default-trigger = "heartbeat"; }; }; If there are multiple cameras, then there will be multiple red, yellow and green leds, throwing out the error I copied earlier. Thanks! -- Ricardo Ribalda -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/