From patchwork Sun Aug 12 18:46:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Ravnborg X-Patchwork-Id: 956709 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-pwm-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ravnborg.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="OcIkzFOR"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 41pVzx6XTdz9sCW for ; Mon, 13 Aug 2018 06:38:05 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727948AbeHLVZr (ORCPT ); Sun, 12 Aug 2018 17:25:47 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:45499 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727822AbeHLVZr (ORCPT ); Sun, 12 Aug 2018 17:25:47 -0400 Received: by mail-ed1-f67.google.com with SMTP id s16-v6so7148075edq.12; Sun, 12 Aug 2018 11:46:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=oKGH7m88QYf0QvZUtUYfoiDMJ2NNJu/8OIIAdiJoFh4=; b=OcIkzFORkZyRMCDREy3ePRBBhCv0cUoBsIGCm18oGInvLsc5s8432Qxh8jUOUe92/N JsnnnXacQi7TvZ3NaKyumJp5bWHaNTUS0AO7C05JBD0Zs8X34S/ijzMpxQ1e9eEHoF3U LucO74s8HOG5Ck0NAlffDGSlCEdgCV1naHl9zaWNLJS38e0BHS4r5yp5GP4W6JJu9RMR E1UXKjCbOfqfZ4Q4OAGDdAZt1SIgnzB31enG0vbxwUJzhaMgu9QJ0FhyAZLnfSjsQ11o cV0CaUpNsLC7HKBY7lHegXaeaHsgFn42JfqVcX4K7IG5YADvgM7ofoGYHZGC1JJjZgFy Qw5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=oKGH7m88QYf0QvZUtUYfoiDMJ2NNJu/8OIIAdiJoFh4=; b=E0fWD0Uv2uxFs7nMYpRGsh5qbRFKiMMQ8D8tC9VqUOr0xRW0DUE88qrVZnCF4bOdWJ we7hu/bnSwVx/pOSeRE17Lahpvw7yDGYIej3B+PiF3X3l+rS3XgCEydJT4V+j12N9g+r d/5aakyxGQWOrkbevhZ85M0TjqRcBCfoHsH88xKEctwqBeh84sLtRuRfS++0qZnvHH8x BbaEpd9Z5OuQ5QEcPXW+9o9C5GMkTv8BwuyTSa3BPCKK6MoGLLW+/MYYg4gP3nCwGWys JwIyfYyIwvDF1+QzSb5xoGsvvKLWXmN7DSE1228V0N0dsgMzFP2+I1bPKTt0qYjROIIr dpyg== X-Gm-Message-State: AOUpUlF/Ljq6n3+9ZApd9VQ7Kg7w/1rggHxdubl2LWeB3tQ/B6jodDvL Y1cJpMb9SD7JbPTL6bBeUhA= X-Google-Smtp-Source: AA+uWPz1TfTzsVNeIscJ7x4Nu/36+D6zdv2qeS6etO0enisXxjbX3rA1tdUA46Y4FpIWqUmBmEeygQ== X-Received: by 2002:a50:b134:: with SMTP id k49-v6mr18321316edd.55.1534099610180; Sun, 12 Aug 2018 11:46:50 -0700 (PDT) Received: from jupiter.lan (126.158-248-196.customer.lyse.net. [158.248.196.126]) by smtp.gmail.com with ESMTPSA id g14-v6sm5897941edm.25.2018.08.12.11.46.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Aug 2018 11:46:49 -0700 (PDT) From: Sam Ravnborg To: Boris Brezillon , Rob Herring , Mark Rutland , Lee Jones , Nicolas Ferre , Alexandre Belloni Cc: Sam Ravnborg , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org, Boris Brezillon Subject: [PATCH v1 2/7] dt-binding: add bindings for Atmel LCDC mfd Date: Sun, 12 Aug 2018 20:46:24 +0200 Message-Id: <20180812184629.3808-2-sam@ravnborg.org> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180812184152.GA22343@ravnborg.org> References: <20180812184152.GA22343@ravnborg.org> Sender: linux-pwm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pwm@vger.kernel.org The LCDC IP used by some Atmel SOC's have a multifunction device that include two sub-devices: - pwm - display controller This binding describe the multi function device that act as root for the sub-devices The Atmel SOC's are at91sam9 etc. The compatible name is intentionally prefixed with -mfd to avoid clash with existing compatible entries. Signed-off-by: Sam Ravnborg Cc: Lee Jones Cc: Boris Brezillon --- .../devicetree/bindings/mfd/atmel-lcdc.txt | 75 ++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/atmel-lcdc.txt diff --git a/Documentation/devicetree/bindings/mfd/atmel-lcdc.txt b/Documentation/devicetree/bindings/mfd/atmel-lcdc.txt new file mode 100644 index 000000000000..70e9b7bda6c7 --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/atmel-lcdc.txt @@ -0,0 +1,75 @@ +Device-Tree bindings for Atmel's LCDC (LCD Controller) MFD driver + +Required properties: + - compatible: value should be one of the following: + "atmel,at91sam9261-lcdc-mfd" + "atmel,at91sam9263-lcdc-mfd" + "atmel,at91sam9g10-lcdc-mfd" + "atmel,at91sam9g45-lcdc-mfd" + "atmel,at91sam9g46-lcdc-mfd" + "atmel,at91sam9m10-lcdc-mfd" + "atmel,at91sam9m11-lcdc-mfd" + "atmel,at91sam9rl-lcdc-mfd" + - reg: base address and size of the LCDC device registers. + - clock-names: the name of the 2 clocks requested by the LCDC device. + Should contain "lcdc_clk", and "hclk". + - clocks: should contain the 2 clocks requested by the LCDC device. + May specify the same clock twice is there is no need to enable + "hclk" to use the display. + - interrupts: should contain the description of the LCDC interrupt line + +The LCDC IP exposes two subdevices: + - a PWM chip: see ../pwm/atmel-lcdc-pwm.txt + - a Display Controller: see ../display/atmel/lcdc-display-controller.txt + +Example: + lcdc0: lcdc@700000 { + compatible = "atmel,at91sam9263-lcdc-mfd"; + reg = <0x700000 0x1000>; + interrupts = <26 IRQ_TYPE_LEVEL_HIGH 3>; + clocks = <&lcd_clk>, <&lcd_clk>; + clock-names = "lcdc_clk", "hclk"; + + lcdc-display-controller { + compatible = "atmel,lcdc-display-controller"; + lcd-supply = <&lcdc_reg>; + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + #address-cells = <1>; + #size-cells = <0>; + lcdc_panel_output: endpoint@0 { + reg = <0>; + remote-endpoint = <&panel_input>; + }; + }; + }; + + lcdc_pwm: lcdc-pwm { + compatible = "atmel,lcdc-pwm"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lcdc_pwm>; + #pwm-cells = <3>; + }; + + }; + + panel: panel { + compatible = "logictechnologies,lttd800480070-l2rt", "simple-panel"; + backlight = <&backlight>; + power-supply = <&panel_reg>; + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + #address-cells = <1>; + #size-cells = <0>; + + panel_input: endpoint@0 { + reg = <0>; + remote-endpoint = <&lcdc_panel_output>; + }; + }; + };